Skip to content

Commit

Permalink
fix XPath for HTTP-Rostock-PURLS on right side #69
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteph-de committed Sep 28, 2023
1 parent fbf77de commit d7aee38
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
</xsl:when>
<xsl:when test="/mycoreobject/metadata/def.modsContainer/modsContainer/mods:mods/mods:identifier[@type='purl']">
<xsl:for-each select="/mycoreobject/metadata/def.modsContainer/modsContainer/mods:mods/mods:identifier[@type='purl' and not(contains(text(), 'ub1vm'))]">
<xsl:variable name="p" select="replace(./mods:identifier[@type='purl'], 'http://purl.uni-rostock.de', 'https://purl.uni-rostock.de')" />
<xsl:variable name="p" select="replace(., 'http://purl.uni-rostock.de', 'https://purl.uni-rostock.de')" />
<p class="d-none d-xl-block mb-0"><a href="{$p}" style="transform: scaleX(96%) translate(-2%);display: inline-block;white-space: nowrap">
{substring-before($p,'.de/')}.de/<br class="d-md-none"/>{substring-after($p,'.de/')}
</a></p>
Expand Down

0 comments on commit d7aee38

Please sign in to comment.