Skip to content
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

Import breaks user interface when person has multiple roles #3640

Closed
matthias-ronge opened this issue May 18, 2020 · 2 comments
Closed

Import breaks user interface when person has multiple roles #3640

matthias-ronge opened this issue May 18, 2020 · 2 comments
Labels

Comments

@matthias-ronge
Copy link
Collaborator

Example: GBV PPN 1041657277
Here the person has 2 roles, author and artist.

Error message:

Type error evaluating ($role) in xsl:when/@test on line 209 column 70 
  XPTY0004: A sequence of more than one item is not allowed as the first argument of
  fn:starts-with() ("VerfasserIn", "KünstlerIn") 
  In template rule with match="element(Q{http://www.loc.gov/mods/v3}name)[xs:string(@type) eq "personal"]" on line 196 of 
     invoked by xsl:apply-templates at #28
  In template rule with match="element(Q{http://www.loc.gov/mods/v3}mods)" on line 24 of 
     invoked by built-in template rule (text-only)

Goal: XSLT has to be adjusted accordingly.

In addition: The error message must be caught and displayed correctly.

@solth
Copy link
Member

solth commented May 19, 2020

In addition: The error message must be caught and displayed correctly.

This part is already working (screenshot from preview system that has the current version of the software installed):
xslt-error-message

@Kathrin-Huber
Copy link
Contributor

please reopen, if this is still a problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants