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
Generated URN does not contain check number #6293
Comments
@NateWr, I'm drawing a bit of a blank on this -- do you have a reference for the check number calculation? |
That's a good question! I did a quick search and couldn't find a specification for how to apply a check number either. I think URNs are used mostly in Germany. @bozana or @withanage do you know if URNs have a check number applied and where we might find documentation of how to generate that? |
URNs have a check number (one digit ) applied as a suffix to the characters. I I have found a PHP project which calculates the digit here. $purn is the check number, which should be added to a calculation. I am not sure, if it should work for urns not registered in German national library, cause I remember slightly seing that it depdens on the registration agency. |
Uff... do you know anyone we can talk to learn more? |
Hmmm... I think I do not understand the problem here -- I do not understand why the number is not calculated/displayed -- will have to take a further look -- but: |
Thanks @bozana, that helps! This issue has to do with the new pub id field in the publication area, which bypasses some of the previous pub ID stuff and does not call on checkNumber.js as it should. |
@NateWr, i have forgotten to say that there is also a function _calculateCheckNo in URNPubIdPlugin class that is/was used to add the number automatically (e.g. for default suffixes), and JS function was used for custom suffixes clicking on a button... |
In our documentation in Notion it seems that node dependencies are build, but I am still not sure if I should merge the changes now... 🤔 |
I say yes. I'll send a reminder to Michael in advance of the release so when they update they can double-check. |
#6293 fix checkDuplicate in PKPPubIdPlugin
pkp/pkp-lib#6293 consider urnCheckNo setting, fix checkDuplicate in PubIdPlugin
Describe the bug
The URN should generate a check number that is calculated based on the URN. When the URN plugin is configured with a default pattern, the generated URN for an article does not include the check number.
To Reproduce
Steps to reproduce the behavior:
The URN follows the suffix pattern but does not include the check number. This is because it uses
FieldPubId
, which doesn't by default apply a check number. The URN plugin needs to extendFieldPubId
or otherwise implement a solution that applys the check number whenFieldPubId::generateId
is called.What application are you using?
OJS 3.2.1
Additional information
Reported in the forum.
PRs:
The text was updated successfully, but these errors were encountered: