Skip to content

Commit

Permalink
#541 Import mods:note
Browse files Browse the repository at this point in the history
  • Loading branch information
Possommi committed Apr 25, 2024
1 parent fb2298b commit 1b86db3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions common/src/main/resources/xsl/import/dbt2mods.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
exclude-result-prefixes="xsl mods xlink">

<xsl:param name="WebApplicationBaseURL"/>
<xsl:param name="MCR.user2.IdentityManagement.UserCreation.Affiliation"/>

<xsl:template match="/mycoreobject">
<xsl:apply-templates select="metadata/def.modsContainer/modsContainer/mods:mods"/>
Expand All @@ -31,6 +32,7 @@
<xsl:copy-of select="mods:language"/>
<xsl:apply-templates select="mods:subject"/>
<xsl:apply-templates select="mods:abstract"/>
<xsl:apply-templates select="mods:note"/>
<xsl:apply-templates select="mods:relatedItem"/>
<xsl:apply-templates select="mods:identifier[@type='uri'][contains(. ,'ppn')]"/>
<xsl:apply-templates select="mods:physicalDescription"/>
Expand Down Expand Up @@ -287,8 +289,7 @@

<xsl:template match="mods:dateOther">
<mods:note>
<xsl:text>Dissertation, Friedrich-Schiller-Universitaet Jena, </xsl:text>
<xsl:value-of select="substring-before(.,'-')"/>
<xsl:value-of select="concat('Dissertation, ', $MCR.user2.IdentityManagement.UserCreation.Affiliation, ', ', substring-before(.,'-'))"/>
</mods:note>
</xsl:template>

Expand Down Expand Up @@ -320,4 +321,8 @@
<xsl:copy-of select="."/>
</xsl:template>

<xsl:template match="mods:note">
<xsl:copy-of select="."/>
</xsl:template>

</xsl:stylesheet>

0 comments on commit 1b86db3

Please # to comment.