Skip to content
Snippets Groups Projects
Commit 0f360ac4 authored by David Maus's avatar David Maus
Browse files

Normalisiere @ID der physischen Struktur

parent 3a95b7e1
No related branches found
No related tags found
No related merge requests found
...@@ -107,6 +107,16 @@ ...@@ -107,6 +107,16 @@
</metsHdr> </metsHdr>
</xsl:template> </xsl:template>
<xsl:template match="@ID[parent::div/fptr][ancestor::structMap/@TYPE = 'PHYSICAL']">
<xsl:variable name="fileId" select="fun:normalize-fileId(key('files', ../fptr/@FILEID))"/>
<xsl:attribute name="ID" select="fun:normalize-physId($fileId)"/>
</xsl:template>
<xsl:template match="@xlink:to[parent::smLink]">
<xsl:variable name="fileId" select="fun:normalize-fileId(key('files', /mets/structMap/div/div[@ID = current()]/fptr/@FILEID))"/>
<xsl:attribute name="xlink:to" select="fun:normalize-physId($fileId)"/>
</xsl:template>
<xsl:template match="@ID[parent::file]"> <xsl:template match="@ID[parent::file]">
<xsl:attribute name="ID" select="fun:normalize-fileId(..)"/> <xsl:attribute name="ID" select="fun:normalize-fileId(..)"/>
</xsl:template> </xsl:template>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment