Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pubmed plugin exports articles out of order compared to issue order #8564

Closed
jnugent opened this issue Jan 24, 2023 · 9 comments
Closed

Pubmed plugin exports articles out of order compared to issue order #8564

jnugent opened this issue Jan 24, 2023 · 9 comments
Assignees
Milestone

Comments

@jnugent
Copy link
Member

jnugent commented Jan 24, 2023

Describe the bug
The generated XML that the PubMed plugin generates when exporting an issue does not sort the articles according to how they appear in an issue's table of contents. This used to happen in older versions of OJS but is no longer the case. This is probably due to the plugin using the submission service's getMany method since the old way of doing this with the PublishedArticleDAO is no longer possible. Restoring the order of content is important to some of our largest medical journal clients.

To Reproduce
Steps to reproduce the behavior:

  1. Export an issue using the PubMed plugin
  2. Examine the elements and compare them to the issue's table of contents.

What application are you using?
OJS 3.3.0.13

@mgscano
Copy link

mgscano commented Jan 30, 2023

Just to add a note here, since I'm the client impacted, also I hope I'm not the only one.
This one's really a painful thing to work around, since when a journal is under periodic publishing it becomes necessary to have PubMed IDs in the correct page order.
Reordering the XML code manually is definitely prone to error, and becomes an unnecessary long task.

@kaitlinnewson
Copy link
Member

@bozana
Copy link
Collaborator

bozana commented Aug 8, 2024

Hi @kaitlinnewson, the plugin does not consider the section ordering, and the publication sequence is currently only per section. Thus, I think some more work is needed -- similar to how the articles are displayed on the issue TOC page, we would need to consider the sections (and their order) too.
Depending on how the issue #8998 is going to be fixed, this plugin will maybe need to be adapted as well, but lets fix it now as if that other issue would not exists :-)

kaitlinnewson added a commit to kaitlinnewson/ojs that referenced this issue Aug 28, 2024
kaitlinnewson added a commit to kaitlinnewson/ojs that referenced this issue Aug 28, 2024
kaitlinnewson added a commit to kaitlinnewson/ojs that referenced this issue Aug 28, 2024
@kaitlinnewson
Copy link
Member

Hi @bozana, I've updated the PRs above, can you take another look?

@bozana
Copy link
Collaborator

bozana commented Aug 29, 2024

Hi @kaitlinnewson, I left a few comments for the PR for the main branch, but they can be applied to other PRs/branches as well. Thanks!

kaitlinnewson added a commit to kaitlinnewson/ojs that referenced this issue Aug 29, 2024
kaitlinnewson added a commit to kaitlinnewson/ojs that referenced this issue Aug 29, 2024
kaitlinnewson added a commit to kaitlinnewson/ojs that referenced this issue Aug 29, 2024
@kaitlinnewson
Copy link
Member

Hi @bozana, I've updated the PRs above, ready for another check!

@bozana
Copy link
Collaborator

bozana commented Aug 30, 2024

Hi @kaitlinnewson, one more comment in the PR for stable-3_3_0, but relevant for all :-)
Thanks!

kaitlinnewson added a commit to kaitlinnewson/ojs that referenced this issue Aug 30, 2024
kaitlinnewson added a commit to kaitlinnewson/ojs that referenced this issue Aug 30, 2024
kaitlinnewson added a commit to kaitlinnewson/ojs that referenced this issue Aug 30, 2024
@kaitlinnewson
Copy link
Member

Hi @bozana, PRs updated and hopefully ready to merge now!

bozana added a commit to pkp/ojs that referenced this issue Aug 30, 2024
pkp/pkp-lib#8564 order export by issue ordering in pubmed plugin
bozana added a commit to pkp/ojs that referenced this issue Aug 30, 2024
pkp/pkp-lib#8564 order export by issue ordering in pubmed plugin
bozana added a commit to pkp/ojs that referenced this issue Aug 30, 2024
pkp/pkp-lib#8564 order export by issue ordering in pubmed plugin
@bozana
Copy link
Collaborator

bozana commented Aug 30, 2024

All merged, thus closing

@bozana bozana closed this as completed Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants