-
Notifications
You must be signed in to change notification settings - Fork 447
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
[OMP] ONIX extract reports different authorship metadata depending on the user's language #9784
Comments
Thanks, @kaitlinnewson! Actually, I'll pass this over to @bozana for review. Bozana, could you have a look? |
@kaitlinnewson, rather than keep you waiting -- the change you've proposed doesn't resolve the issue, which is that we're hard-coding tests against user-entered (localized) data. The English-language abbreviation for the Author role might be It's not a perfect solution, but you could try using the user group setting called |
Thanks @asmecher, ready for a second look now |
Ready for another review @bozana. If everything looks good, I'll work on PRs to 3.4/main. |
pkp/pkp-lib#9784 get unlocalized authorship metadata in onix export
Hi @kaitlinnewson, great! I have merged the PR for stable-3_3_0 and you can proceed with other branches. |
@bozana the other branch PRs are listed above and ready for review |
Hi @kaitlinnewson, this looks good to me, I am just waiting to see if that one MariaDB test will pass... |
pkp/pkp-lib#9784 get unlocalized authorship metadata in onix export
pkp/pkp-lib#9784 get unlocalized authorship metadata in onix export
Thanks a lot @kaitlinnewson! |
Describe the bug
The ONIX extract from OMP detects author roles in a way that's dependent on the exporting user's language selection.
It uses the user group abbreviation (typically
AU
for Author, for example) to determine the mapping to ONIX's role codes (e.g.A01
for author). However, it looks up the abbreviation based on the current locale; if that's not English, the abbreviation is not likely to beAU
.It would be better still to use something that's not dependent on localized data or defaults, but that may have to wait for another mechanism (e.g. CRediT) to be integrated.
To Reproduce
Steps to reproduce the behavior:
<ContributorRole>A01</ContributorRole>
<ContributorRole>Z99</ContributorRole>
The two extracts should not differ depending on the UI locale.
What application are you using?
OMP 3.3.0-x and 3.4.0-x
The text was updated successfully, but these errors were encountered: