Skip to content

Commit

Permalink
#656 Check for 'at sign' before apply substring
Browse files Browse the repository at this point in the history
  • Loading branch information
Possommi committed Nov 28, 2024
1 parent 0ffdd18 commit 7053094
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion common/src/main/resources/xsl/thunibib-solr.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,16 @@
<field name="leadid.scoped">
<xsl:value-of select="$leadid-scoped"/>
</field>

<field name="leadid">
<xsl:value-of select="substring-before($leadid-scoped, '@')"/>
<xsl:choose>
<xsl:when test="contains($leadid-scoped, '@')">
<xsl:value-of select="substring-before($leadid-scoped, '@')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$leadid-scoped"/>
</xsl:otherwise>
</xsl:choose>
</field>
</xsl:template>

Expand Down

0 comments on commit 7053094

Please # to comment.