Skip to content

Commit

Permalink
#541 Fixed ppn import
Browse files Browse the repository at this point in the history
  • Loading branch information
Possommi committed May 7, 2024
1 parent 366718a commit f6d5e1c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions common/src/main/resources/xsl/import/dbt2mods.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
<xsl:apply-templates select="mods:titleInfo"/>
<!-- omitting "conference" -> mods:name[@type='conference']/mods:namePart, seemingly not in DBT data -->
<xsl:apply-templates
select="mods:name[@type='personal'][contains('aut ths rev',mods:role/mods:roleTerm)]"/> <!-- unclear if this is in DBT -->
select="mods:name[@type='personal'][contains('aut ths rev',mods:role/mods:roleTerm)]"/> <!-- unclear if this is in DBT -->
<xsl:apply-templates select="mods:part"/>
<xsl:apply-templates select="mods:originInfo[@eventType='publication']"/>
<xsl:apply-templates select="mods:originInfo[@eventType='creation']"/>
Expand Down Expand Up @@ -142,9 +142,10 @@
<mods:classification authorityURI="{$uri}" valueURI="{$uri}#{$id}"/>
</xsl:template>

<xsl:template match="mods:identifier[@type='uri'][contains(. ,'ppn')]">
<mods:identifier type="ppn">
<xsl:value-of select="text()"/>
<xsl:template match="mods:identifier[@type='uri'][contains(. , 'ppn')]">
<mods:identifier type="uri">
<!-- convert http:// uris to https:// uris -->
<xsl:value-of select="concat('https://', substring-after(., '://'))"/>
</mods:identifier>
</xsl:template>

Expand Down

0 comments on commit f6d5e1c

Please # to comment.