MCR-3757 use xml:lang instead of lang() for classification label sele…#3039
MCR-3757 use xml:lang instead of lang() for classification label sele…#3039michael-becker wants to merge 1 commit into
Conversation
Should the new behavior only be used for language-tags starting with 'x-'?
|
Should the new behavior only be used for language-tags starting with |
|
I would argue to change it for all languages. Since the function returns a single element, and lang() can return a list of elements, we can always run in an exception, e.g. if we have en_uk and en_us statements in a classification. Leaving it with lang, we would have to change the signature of the function and this might break applications elsewhere. |
Link to jira.
Pull Request Checklist (Author)
Please go through the following checklist before assigning the PR for review:
Ticket & Documentation
fixed-versionis correctly set in the ticket and matches the PR's target branch (main).Feature & Improvement Specific Checks
Bugfix-Specific Checks
Testing
MCR Conventions & Metadata
mycore.properties.mycore.properties.Multi-Repo Considerations
MIRrequired?