Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oai elg crosswalk #798

Merged
merged 7 commits into from
Nov 15, 2024
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 23 additions & 4 deletions dspace/config/crosswalks/oai/metadataFormats/elg.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -381,11 +381,30 @@ elg.xml:62: element typeOfVideoContent: Schemas validity error : Element '{http:

<xsl:template name="ms_language_inside">
<xsl:param name="isoCode"/>
<xsl:variable name="modifiedIsoCode">
<xsl:choose>
<xsl:when test="$isoCode = 'eng'">en</xsl:when>
<xsl:when test="$isoCode = 'ces'">cs</xsl:when>
<xsl:when test="$isoCode = 'lit'">lt</xsl:when>
<xsl:when test="$isoCode = 'urd'">ur</xsl:when>
<xsl:when test="$isoCode = 'sme'">se</xsl:when>
<xsl:when test="$isoCode = 'kor'">ko</xsl:when>
<xsl:when test="$isoCode = 'uig'">ug</xsl:when>
<xsl:when test="$isoCode = 'vie'">vi</xsl:when>
<xsl:when test="$isoCode = 'bel'">be</xsl:when>
<xsl:when test="$isoCode = 'tur'">tr</xsl:when>
<xsl:when test="$isoCode = 'san'">sa</xsl:when>
<xsl:when test="$isoCode = 'slk'">sk</xsl:when>
<xsl:when test="$isoCode = 'ukr'">uk</xsl:when>
<xsl:when test="$isoCode = 'rus'">ru</xsl:when>
<xsl:otherwise><xsl:value-of select="$isoCode"/></xsl:otherwise>
</xsl:choose>
</xsl:variable>
<ms:languageTag>
<xsl:value-of select="$isoCode"/>
<xsl:value-of select="$modifiedIsoCode"/>
</ms:languageTag>
<ms:languageId>
<xsl:value-of select="$isoCode"/>
<xsl:value-of select="$modifiedIsoCode"/>
</ms:languageId>
</xsl:template>

Expand Down Expand Up @@ -607,7 +626,7 @@ elg.xml:62: element typeOfVideoContent: Schemas validity error : Element '{http:
test="doc:metadata/doc:element[@name='local']/doc:element[@name='size']/doc:element[@name='info']/doc:element/doc:field[@name='value']">
<xsl:for-each
select="doc:metadata/doc:element[@name='local']/doc:element[@name='size']/doc:element[@name='info']/doc:element/doc:field[@name='value']">
<xsl:variable name="size_arr" select="tokenize(., '@@')"/>
<xsl:variable name="size_arr" select="tokenize(., ';')"/>
<xsl:call-template name="size">
<xsl:with-param name="amount" select="$size_arr[1]"/>
<xsl:with-param name="unit" select="$size_arr[2]"/>
Expand All @@ -616,7 +635,7 @@ elg.xml:62: element typeOfVideoContent: Schemas validity error : Element '{http:
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="size">
<xsl:with-param name="amount" select="sum(exsl:node-set($files)/doc:element[@name='bitstream']/doc:field[@name='size']/text())"/>
<xsl:with-param name="amount" select="format-number(sum(exsl:node-set($files)/doc:element[@name='bitstream']/doc:field[@name='size']/text()), '0')"/>
<xsl:with-param name="unit" select="'bytes'"/>
</xsl:call-template>
</xsl:otherwise>
Expand Down
Loading