Skip to content

Commit

Permalink
specifiy x path to author_role classification
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulBorchert committed Sep 5, 2024
1 parent 9e71c68 commit 2fc56c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/xsl/openagrar-solr.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
</xsl:for-each>
<xsl:for-each select="mods:name[mods:role/mods:roleTerm[@authority='marcrelator' and (@type='text' and text()='author') or (@type='code' and text()='aut')]]">
<xsl:choose>
<xsl:when test="not(../mods:name/mods:role/mods:roleTerm[contains(@valueURI, '#')])">
<xsl:when test="not(../mods:name/mods:role/mods:roleTerm[contains(@valueURI, 'author_roles#')])">
<xsl:variable name="autrole">
<xsl:choose>
<xsl:when test="position()=1">
Expand Down Expand Up @@ -94,7 +94,7 @@
</xsl:if>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="mods:role/mods:roleTerm[contains(@valueURI, '#')]">
<xsl:for-each select="mods:role/mods:roleTerm[contains(@valueURI, 'author_roles#')]">
<xsl:variable name="autrole">
<xsl:choose>
<xsl:when test="substring-after(@valueURI, '#') ='main_author'">
Expand Down

0 comments on commit 2fc56c4

Please sign in to comment.