- add citation for dc:source inside datasetxml2oai.pmh.xslt
- add ddc collection for ListSets request - add ddc category into the header of GetReord and GetRecords requests - npm updates
This commit is contained in:
parent
ab57fabc36
commit
b1d62e14f7
10 changed files with 322 additions and 23 deletions
|
@ -15,7 +15,7 @@
|
|||
<xsl:include href="assets/oai_2_iso19139.xslt" />
|
||||
|
||||
|
||||
<xsl:output method="xml" indent="yes" encoding="iso-8859-1" />
|
||||
<xsl:output method="xml" indent="yes" encoding="utf-8" />
|
||||
|
||||
<xsl:param name="responseDate" />
|
||||
<xsl:param name="unixTimestamp" />
|
||||
|
@ -431,9 +431,45 @@
|
|||
<xsl:if test="EmbargoDate and ($unixTimestamp < EmbargoDate/@UnixTimestamp)">
|
||||
<dc:rights>embargo</dc:rights>
|
||||
</xsl:if>
|
||||
<!-- dc:source -->
|
||||
<xsl:call-template name="citation"/>
|
||||
</oai_dc:dc>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="citation">
|
||||
<dc:source>
|
||||
<xsl:variable name="creatorName">
|
||||
<xsl:for-each select="*[name() = 'PersonAuthor']">
|
||||
<xsl:variable name="person" select="."/>
|
||||
<xsl:variable name="uppercase" select="'ABC..XYZ'"/>
|
||||
<xsl:variable name="lowercase" select="'abc..zyz'"/>
|
||||
<xsl:variable name="authorName">
|
||||
<xsl:choose>
|
||||
<xsl:when test="string($person/@FirstName)">
|
||||
<xsl:variable name="name" select="concat(
|
||||
$person/@LastName, ', ', concat(translate(substring($person/@FirstName, 1, 1), $lowercase, $uppercase), '.')
|
||||
)" />
|
||||
<xsl:value-of select="$name"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$person/@LastName"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<xsl:value-of select="normalize-space($authorName)"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="position() != last()">,</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="year" select="concat( ' (', string(ServerDatePublished/@Year), '): ' )" />
|
||||
<xsl:variable name="mainTitle" select="string(TitleMain/@Value)" />
|
||||
<xsl:variable name="creatingCorporation" select="concat('.', string(@CreatingCorporation), ', ')" />
|
||||
<xsl:variable name="publisherName" select="string(@PublisherName)" />
|
||||
<xsl:value-of select="concat($creatorName, $year, $mainTitle, $creatingCorporation, $publisherName, ', Wien')"/>
|
||||
</dc:source>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="Coverage" mode="oai_dc">
|
||||
<dc:coverage>
|
||||
<xsl:variable name="geolocation" select="concat(
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue