- small changes for oai_iso19139.xslt
- oai_datacite.xslt version 3.0
This commit is contained in:
parent
5b6f81c34d
commit
cb40b2c7dc
|
@ -470,7 +470,7 @@
|
|||
</gmd:keyword>
|
||||
</xsl:for-each>
|
||||
<gmd:type>
|
||||
<MD_KeywordTypeCode xmlns="http://www.isotc211.org/2005/gmd" codeList="https://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_KeywordTypeCode" codeListValue="theme">theme</MD_KeywordTypeCode>
|
||||
<gmd:MD_KeywordTypeCode xmlns="http://www.isotc211.org/2005/gmd" codeList="https://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_KeywordTypeCode" codeListValue="theme">theme</gmd:MD_KeywordTypeCode>
|
||||
</gmd:type>
|
||||
</gmd:MD_Keywords>
|
||||
</gmd:descriptiveKeywords>
|
||||
|
@ -697,45 +697,45 @@
|
|||
|
||||
<!-- <gmd:onLine> -->
|
||||
<xsl:template name="datacite_identifier">
|
||||
<xsl:for-each select="*[name() = 'Identifier']">
|
||||
<xsl:variable name="identifier" select="."/>
|
||||
<xsl:if test="starts-with($identifier/@Value, 'doi:') or $identifier/@Type = 'Doi' or starts-with($identifier/@Value, 'http://')">
|
||||
<gmd:onLine>
|
||||
<gmd:CI_OnlineResource>
|
||||
<gmd:linkage>
|
||||
<gmd:URL>
|
||||
<xsl:choose>
|
||||
<xsl:when test="starts-with($identifier/@Value, 'doi:')">
|
||||
<!-- stower http auf https gesetzt -->
|
||||
<xsl:value-of select="concat('http://dx.doi.org/', substring-after($identifier/@Value, 'doi:'))"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="$identifier/@Type = 'Doi'">
|
||||
<xsl:value-of select="concat('http://dx.doi.org/', normalize-space($identifier/@Value))"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="starts-with($identifier/@Value, 'http://')">
|
||||
<xsl:value-of select="normalize-space($identifier/@Value)"/>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</gmd:URL>
|
||||
</gmd:linkage>
|
||||
<gmd:protocol>
|
||||
<gco:CharacterString>WWW:LINK-1.0-http--link</gco:CharacterString>
|
||||
</gmd:protocol>
|
||||
<gmd:name>
|
||||
<gco:CharacterString>Landing Page</gco:CharacterString>
|
||||
</gmd:name>
|
||||
<gmd:description>
|
||||
<gco:CharacterString>
|
||||
<xsl:value-of select="normalize-space(string(
|
||||
'Link to DOI landing page or data facility landing page if no DOI is assigned.'))"/>
|
||||
</gco:CharacterString>
|
||||
</gmd:description>
|
||||
<gmd:function>
|
||||
<gmd:CI_OnLineFunctionCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#CI_OnLineFunctionCode" codeListValue="information">information</gmd:CI_OnLineFunctionCode>
|
||||
</gmd:function>
|
||||
</gmd:CI_OnlineResource>
|
||||
</gmd:onLine>
|
||||
</xsl:if>
|
||||
<xsl:for-each select="*[name() = 'Identifier']">
|
||||
<xsl:variable name="identifier" select="."/>
|
||||
<xsl:if test="starts-with($identifier/@Value, 'doi:') or $identifier/@Type = 'Doi' or starts-with($identifier/@Value, 'http://')">
|
||||
<gmd:onLine>
|
||||
<gmd:CI_OnlineResource>
|
||||
<gmd:linkage>
|
||||
<gmd:URL>
|
||||
<xsl:choose>
|
||||
<xsl:when test="starts-with($identifier/@Value, 'doi:')">
|
||||
<!-- stower http auf https gesetzt -->
|
||||
<xsl:value-of select="concat('http://dx.doi.org/', substring-after($identifier/@Value, 'doi:'))"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="$identifier/@Type = 'Doi'">
|
||||
<xsl:value-of select="concat('http://dx.doi.org/', normalize-space($identifier/@Value))"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="starts-with($identifier/@Value, 'http://')">
|
||||
<xsl:value-of select="normalize-space($identifier/@Value)"/>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</gmd:URL>
|
||||
</gmd:linkage>
|
||||
<gmd:protocol>
|
||||
<gco:CharacterString>WWW:LINK-1.0-http--link</gco:CharacterString>
|
||||
</gmd:protocol>
|
||||
<gmd:name>
|
||||
<gco:CharacterString>Landing Page</gco:CharacterString>
|
||||
</gmd:name>
|
||||
<gmd:description>
|
||||
<gco:CharacterString>
|
||||
<xsl:value-of select="normalize-space(string(
|
||||
'Link to DOI landing page or data facility landing page if no DOI is assigned.'))"/>
|
||||
</gco:CharacterString>
|
||||
</gmd:description>
|
||||
<gmd:function>
|
||||
<gmd:CI_OnLineFunctionCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#CI_OnLineFunctionCode" codeListValue="information">information</gmd:CI_OnLineFunctionCode>
|
||||
</gmd:function>
|
||||
</gmd:CI_OnlineResource>
|
||||
</gmd:onLine>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
|
@ -775,7 +775,7 @@
|
|||
<gmd:scope>
|
||||
<gmd:DQ_Scope>
|
||||
<gmd:level>
|
||||
<MD_ScopeCode xmlns="http://www.isotc211.org/2005/gmd" codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_ScopeCode" codeListValue="dataset" />
|
||||
<gmd:MD_ScopeCode xmlns="http://www.isotc211.org/2005/gmd" codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_ScopeCode" codeListValue="dataset" />
|
||||
</gmd:level>
|
||||
<gmd:levelDescription xmlns:gco="http://www.isotc211.org/2005/gco" gco:nilReason="inapplicable" />
|
||||
</gmd:DQ_Scope>
|
||||
|
@ -795,7 +795,7 @@
|
|||
<gco:Date xmlns:gco="http://www.isotc211.org/2005/gco">2010-12-08</gco:Date>
|
||||
</gmd:date>
|
||||
<gmd:dateType>
|
||||
<CI_DateTypeCode xmlns="http://www.isotc211.org/2005/gmd" codeList="https://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_DateTypeCode" codeListValue="publication" />
|
||||
<gmd:CI_DateTypeCode xmlns="http://www.isotc211.org/2005/gmd" codeList="https://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_DateTypeCode" codeListValue="publication" />
|
||||
</gmd:dateType>
|
||||
</gmd:CI_Date>
|
||||
</gmd:date>
|
||||
|
|
|
@ -52,8 +52,11 @@
|
|||
|
||||
<!-- main template for is 19139 -->
|
||||
<xsl:template match="Rdr_Dataset" mode="iso19139">
|
||||
<gmd:MD_Metadata xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gml="http://www.opgeris.net/gml/3.2" xmlns:gmx="http://www.isotc211.org/2005/gmx"
|
||||
xsi:schemaLocation="http://www.isotc211.org/2005/gmd https://www.isotc211.org/2005/gmd/metadataApplication.xsd http://www.isotc211.org/2005/gmd http://schemas.opengis.net/iso/19139/20060504/gmd/gmd.xsd http://www.isotc211.org/2005/gmx http://schemas.opengis.net/iso/19139/20060504/gmx/gmx.xsd">
|
||||
<!-- <gmd:MD_Metadata xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gml="http://www.opgeris.net/gml/3.2" xmlns:gmx="http://www.isotc211.org/2005/gmx"
|
||||
xsi:schemaLocation="http://www.isotc211.org/2005/gmd https://www.isotc211.org/2005/gmd/metadataApplication.xsd http://www.isotc211.org/2005/gmd http://schemas.opengis.net/iso/19139/20060504/gmd/gmd.xsd http://www.isotc211.org/2005/gmx http://schemas.opengis.net/iso/19139/20060504/gmx/gmx.xsd"> -->
|
||||
<gmd:MD_Metadata xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:srv="http://www.isotc211.org/2005/srv" xmlns:gmx="http://www.isotc211.org/2005/gmx"
|
||||
xmlns:gts="http://www.isotc211.org/2005/gts" xmlns:gsr="http://www.isotc211.org/2005/gsr" xmlns:gmi="http://www.isotc211.org/2005/gmi" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xsi:schemaLocation="http://www.isotc211.org/2005/gmd http://schemas.opengis.net/iso/19139/20060504/gmd/gmd.xsd http://www.isotc211.org/2005/gmx http://schemas.opengis.net/iso/19139/20060504/gmx/gmx.xsd http://www.isotc211.org/2005/srv http://schemas.opengis.net/iso/19139/20060504/srv/srv.xsd">
|
||||
|
||||
<!-- gmd:fileIdentifier -->
|
||||
<xsl:if test="Identifier">
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
* xml as required by the OAI-PMH protocol.
|
||||
*/
|
||||
-->
|
||||
<xsl:stylesheet version="1.0"
|
||||
<xsl:stylesheet version="3.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -216,7 +216,7 @@ export class OaiController {
|
|||
}
|
||||
|
||||
protected handleIdentify() {
|
||||
const email = process.env.OAI_EMAIL ||"repository@geosphere.at";
|
||||
const email = process.env.OAI_EMAIL || "repository@geosphere.at";
|
||||
const repositoryName = "Tethys RDR";
|
||||
const repIdentifier = "tethys.at";
|
||||
const sampleIdentifier = "oai:" + repIdentifier + ":1"; //$this->_configuration->getSampleIdentifier();
|
||||
|
|
|
@ -3,8 +3,8 @@ import DocumentXmlCache from "../models/DocumentXmlCache";
|
|||
import { XMLBuilder } from "xmlbuilder2/lib/interfaces";
|
||||
import Dataset from "../models/Dataset";
|
||||
import Logger from "jet-logger";
|
||||
import { create } from "xmlbuilder2";
|
||||
import dayjs from "dayjs";
|
||||
// import { create } from "xmlbuilder2";
|
||||
// import dayjs from "dayjs";
|
||||
|
||||
/**
|
||||
* This is the description of the interface
|
||||
|
@ -107,9 +107,9 @@ export default class XmlModel {
|
|||
}
|
||||
|
||||
public async getDomDocument() {
|
||||
const dataset = this.config.model;
|
||||
// const dataset = this.config.model;
|
||||
|
||||
let domDocument: XMLBuilder | null = await this.getDomDocumentFromXmlCache();
|
||||
const domDocument: XMLBuilder | null = await this.getDomDocumentFromXmlCache();
|
||||
if (domDocument) {
|
||||
return domDocument;
|
||||
} else {
|
||||
|
|
|
@ -255,6 +255,6 @@ export function initModels() {
|
|||
Coverage: Coverage,
|
||||
Subject: Subject,
|
||||
License: License,
|
||||
DocumentPersons: DocumentPersons
|
||||
DocumentPersons: DocumentPersons,
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user