pkp / pkp-lib

The library used by PKP's applications OJS, OMP and OPS, open source software for scholarly publishing.
https://pkp.sfu.ca
GNU General Public License v3.0
297 stars 442 forks source link

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

Open jonasraoni opened 1 month ago

jonasraoni commented 1 month ago

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

What application are you using? OJS 3.3

kaitlinnewson commented 1 month ago

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 commented 1 month ago

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.