- use iso639-2 for language tag for dc:language
- list mn. 100 record for ListRecords request - add header("Content-Type", "application/xml; charset=utf-8") inside oai.controller.ts
This commit is contained in:
parent
6944deac83
commit
3e24bdd92f
7 changed files with 57 additions and 43 deletions
|
@ -34,7 +34,7 @@
|
|||
<xsl:param name="oai_error_code" />
|
||||
<xsl:param name="oai_error_message" />
|
||||
<xsl:param name="baseURL" />
|
||||
<xsl:param name="setPubType" />
|
||||
<!-- <xsl:param name="setPubType" />
|
||||
<xsl:param name="downloadLink" />
|
||||
<xsl:param name="doiLink" />
|
||||
<xsl:param name="docId" />
|
||||
|
@ -43,7 +43,9 @@
|
|||
<xsl:param name="oai_identifier" />
|
||||
<xsl:param name="oai_from" />
|
||||
<xsl:param name="oai_until" />
|
||||
<xsl:param name="oai_set" />
|
||||
<xsl:param name="oai_set" /> -->
|
||||
|
||||
<xsl:variable name="langCodes" select="document('assets/langCodeMap.xml')/langCodeMap/langCode"/>
|
||||
|
||||
<!--create the head of oai response -->
|
||||
<xsl:template match="/root">
|
||||
|
@ -52,8 +54,7 @@
|
|||
<xsl:text>type="text/xsl" href="../assets/oai2_style.xslt" title="Defaultstyle"</xsl:text>
|
||||
</xsl:processing-instruction>
|
||||
|
||||
<OAI-PMH xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="http://www.openarchives.org/OAI/2.0/" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd">
|
||||
<OAI-PMH xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd">
|
||||
<responseDate>
|
||||
<xsl:value-of select="$responseDate" />
|
||||
</responseDate>
|
||||
|
@ -635,8 +636,10 @@
|
|||
</xsl:template>
|
||||
|
||||
<xsl:template match="@Language" mode="oai_dc">
|
||||
<xsl:variable name="language" select="string(.)"/>
|
||||
<dc:language>
|
||||
<xsl:value-of select="." />
|
||||
<!-- <xsl:value-of select="." /> -->
|
||||
<xsl:value-of select="$langCodes[@iso639-1 = $language]/@iso639-2" />
|
||||
</dc:language>
|
||||
</xsl:template>
|
||||
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue