-
Notifications
You must be signed in to change notification settings - Fork 16
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
DOI text nodes are doubled up #53
Comments
ewhanson
added a commit
that referenced
this issue
Nov 13, 2024
ewhanson
added a commit
to ewhanson/oaiJats
that referenced
this issue
Nov 13, 2024
ewhanson
added a commit
to ewhanson/oaiJats
that referenced
this issue
Nov 13, 2024
ewhanson
added a commit
to ewhanson/oaiJats
that referenced
this issue
Nov 13, 2024
PRs:
|
ewhanson
added a commit
to ewhanson/oaiJats
that referenced
this issue
Nov 13, 2024
ewhanson
added a commit
to ewhanson/oaiJats
that referenced
this issue
Nov 13, 2024
ewhanson
added a commit
that referenced
this issue
Nov 13, 2024
ewhanson
added a commit
to ewhanson/oaiJats
that referenced
this issue
Nov 13, 2024
ewhanson
added a commit
that referenced
this issue
Nov 13, 2024
ewhanson
added a commit
that referenced
this issue
Nov 13, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Seen in
stable-3_3_0
, probably also in3.4
andmain
If this line of code executes:
https://github.com/pkp/oaiJats/blob/stable-3_3_0/OAIMetadataFormat_JATS.inc.php#L341
The resulting OAI XML contains a doubled up doi with it being repeated twice in the node. Example:
<article-id pub-id-type="doi" >10.18357/kula.24710.18357/kula.247</article-id>
The DOI retrieved from the article here:
https://github.com/pkp/oaiJats/blob/stable-3_3_0/OAIMetadataFormat_JATS.inc.php#L339
is not doubled up. The
$match->item(0)
bit here is already returning a text node and the call toappendChild
is adding another instance of the DOI to it. You can remedy this by changing this line to justif ($match->length) $match->item(0)->appendChild();
and the original text node will be appended without the double DOI appearing.
The text was updated successfully, but these errors were encountered: