Skip to content

Commit

Permalink
remove whitespaces in id
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulBorchert committed Jan 25, 2024
1 parent f81e144 commit 542890b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/resources/xsl/pica2mods_dfi.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,19 @@
<xsl:template name="modsDfiFIVSubject" >
<xsl:for-each select="./p:datafield[@tag='045N'][not(@occurrence)]" >
<mods:subject xlink:type="simple">
<xsl:variable name="valueURI" select="concat('http://bartoc.org/en/node/20447#',./p:subfield[@code='a'])"/>
<xsl:variable name="valueURI" select="concat('http://bartoc.org/en/node/20447#',translate(./p:subfield[@code='a'],' ',''))"/>
<mods:geographic authorityURI="http://bartoc.org/en/node/20447" valueURI="{$valueURI}"/>
</mods:subject>
</xsl:for-each>
<xsl:for-each select="./p:datafield[@tag='045N'][@occurrence='01']" >
<mods:subject xlink:type="simple">
<xsl:variable name="valueURI" select="concat('http://bartoc.org/en/node/20446#',./p:subfield[@code='a'])"/>
<xsl:variable name="valueURI" select="concat('http://bartoc.org/en/node/20446#',translate(./p:subfield[@code='a'],' ',''))"/>
<mods:topic authorityURI="http://bartoc.org/en/node/20446" valueURI="{$valueURI}"/>
</mods:subject>
</xsl:for-each>
<xsl:for-each select="./p:datafield[@tag='045N'][@occurrence='02']" >
<mods:subject xlink:type="simple">
<xsl:variable name="valueURI" select="concat('http://repo.dfi.de/api/v1/classifications/fivdfi#',./p:subfield[@code='a'])"/>
<xsl:variable name="valueURI" select="concat('http://repo.dfi.de/api/v1/classifications/fivdfi#',translate(./p:subfield[@code='a'],' ',''))"/>
<mods:topic authorityURI="http://repo.dfi.de/api/v1/classifications/fivdfi" valueURI="{$valueURI}"/>
</mods:subject>
</xsl:for-each>
Expand Down

0 comments on commit 542890b

Please sign in to comment.