Skip to content

pkp/pkp-lib#12509 Add Crossref support for peer review DOIs#93

Open
taslangraham wants to merge 3 commits into
pkp:mainfrom
taslangraham:i12509-main
Open

pkp/pkp-lib#12509 Add Crossref support for peer review DOIs#93
taslangraham wants to merge 3 commits into
pkp:mainfrom
taslangraham:i12509-main

Conversation

@taslangraham

Copy link
Copy Markdown
Contributor

@taslangraham taslangraham force-pushed the i12509-main branch 5 times, most recently from be1739b to faaf5f8 Compare May 10, 2026 00:00
@taslangraham taslangraham marked this pull request as ready for review May 11, 2026 01:51

@bozana bozana left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @taslangraham, see my comments/questions...

Comment thread filter/PeerReviewCrossrefXmlFilter.php Outdated
Comment thread filter/PeerReviewCrossrefXmlFilter.php Outdated
Comment thread filter/PeerReviewCrossrefXmlFilter.php Outdated
Comment thread filter/PeerReviewCrossrefXmlFilter.php Outdated
Comment thread filter/PeerReviewCrossrefXmlFilter.php Outdated
$publication = $this->getPublication($reviewAssignment);


$doiVersioning =$deployment->getContext()->getData(Context::SETTING_DOI_VERSIONING);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

empty space between = and the code is missing

Comment thread filter/PeerReviewCrossrefXmlFilter.php Outdated
foreach ($this->reviewAssignments as $reviewAssignment) {
$this->reviewRounds->put(
$reviewAssignment->getReviewRoundId(),
$reviewRoundDao->getById($reviewAssignment->getReviewRoundId())

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes one DB query per review assignment. It should rather batch-load all review rounds at once, similar to how loadPublications and loadReviewers do.
Maybe/probably you would need to implement such a function in that DAO, but maybe it is worth it?
What do you think?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, and yes, a new method will need to be added to the DAO; I'll go ahead and implement your suggestion.

Comment thread filter/PeerReviewCrossrefXmlFilter.php Outdated
Comment thread filter/PeerReviewCrossrefXmlFilter.php Outdated
Comment thread filter/PeerReviewCrossrefXmlFilter.php Outdated
Comment thread filter/PeerReviewCrossrefXmlFilter.php Outdated
@taslangraham taslangraham force-pushed the i12509-main branch 2 times, most recently from 82be03c to e8d37d0 Compare June 19, 2026 02:52
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

Successfully merging this pull request may close these issues.

2 participants