Skip to content

Pubmed export plugin fails when exporting non-published article #10251

@jonasraoni

Description

@jonasraoni

Describe the bug
It's not possible to export non-published articles. It fails to pass through the schema validation, the DTD needs a published date.

Possible solutions

  • Hide/disable non-published articles.
  • Use a fake date (submission date/current date).
  • Disable the DTD validation (leads to a possibly invalid file).

What application are you using?
OJS 3.3

Activity

added
Bug:1:MinorA bug found in uncommon paths, with low consequences, limited users or has an easy workaround
on Jul 25, 2024
added this to the 3.3.0-x milestone on Jul 25, 2024
kaitlinnewson

kaitlinnewson commented on Jul 31, 2024

@kaitlinnewson
Member

What would the use case be for exporting non-published articles? If there isn't a need for this, then hiding non-published articles may be the best option.

Some export plugins have an option to disable validation that we could re-use, but the export wouldn't be usable for submitting to data providers (and I assume they don't accept unpublished records).

I would avoid fake data in case users try to submit that to data providers.

jonasraoni

jonasraoni commented on Jul 31, 2024

@jonasraoni
ContributorAuthor

I'd personally hide the non-published articles and leave a "Published articles" label somewhere, it's not even a breaking change (it's already not working). According to the Git history @asmecher seems to be the one who knows the possible use cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug:1:MinorA bug found in uncommon paths, with low consequences, limited users or has an easy workaround

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Pubmed export plugin fails when exporting non-published article · Issue #10251 · pkp/pkp-lib