- 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>
|
</gmd:keyword>
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
<gmd:type>
|
<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:type>
|
||||||
</gmd:MD_Keywords>
|
</gmd:MD_Keywords>
|
||||||
</gmd:descriptiveKeywords>
|
</gmd:descriptiveKeywords>
|
||||||
|
@ -775,7 +775,7 @@
|
||||||
<gmd:scope>
|
<gmd:scope>
|
||||||
<gmd:DQ_Scope>
|
<gmd:DQ_Scope>
|
||||||
<gmd:level>
|
<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:level>
|
||||||
<gmd:levelDescription xmlns:gco="http://www.isotc211.org/2005/gco" gco:nilReason="inapplicable" />
|
<gmd:levelDescription xmlns:gco="http://www.isotc211.org/2005/gco" gco:nilReason="inapplicable" />
|
||||||
</gmd:DQ_Scope>
|
</gmd:DQ_Scope>
|
||||||
|
@ -795,7 +795,7 @@
|
||||||
<gco:Date xmlns:gco="http://www.isotc211.org/2005/gco">2010-12-08</gco:Date>
|
<gco:Date xmlns:gco="http://www.isotc211.org/2005/gco">2010-12-08</gco:Date>
|
||||||
</gmd:date>
|
</gmd:date>
|
||||||
<gmd:dateType>
|
<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:dateType>
|
||||||
</gmd:CI_Date>
|
</gmd:CI_Date>
|
||||||
</gmd:date>
|
</gmd:date>
|
||||||
|
|
|
@ -52,8 +52,11 @@
|
||||||
|
|
||||||
<!-- main template for is 19139 -->
|
<!-- main template for is 19139 -->
|
||||||
<xsl:template match="Rdr_Dataset" mode="iso19139">
|
<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"
|
<!-- <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">
|
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 -->
|
<!-- gmd:fileIdentifier -->
|
||||||
<xsl:if test="Identifier">
|
<xsl:if test="Identifier">
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
* xml as required by the OAI-PMH protocol.
|
* 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:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
|
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
|
||||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -3,8 +3,8 @@ import DocumentXmlCache from "../models/DocumentXmlCache";
|
||||||
import { XMLBuilder } from "xmlbuilder2/lib/interfaces";
|
import { XMLBuilder } from "xmlbuilder2/lib/interfaces";
|
||||||
import Dataset from "../models/Dataset";
|
import Dataset from "../models/Dataset";
|
||||||
import Logger from "jet-logger";
|
import Logger from "jet-logger";
|
||||||
import { create } from "xmlbuilder2";
|
// import { create } from "xmlbuilder2";
|
||||||
import dayjs from "dayjs";
|
// import dayjs from "dayjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is the description of the interface
|
* This is the description of the interface
|
||||||
|
@ -107,9 +107,9 @@ export default class XmlModel {
|
||||||
}
|
}
|
||||||
|
|
||||||
public async getDomDocument() {
|
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) {
|
if (domDocument) {
|
||||||
return domDocument;
|
return domDocument;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -255,6 +255,6 @@ export function initModels() {
|
||||||
Coverage: Coverage,
|
Coverage: Coverage,
|
||||||
Subject: Subject,
|
Subject: Subject,
|
||||||
License: License,
|
License: License,
|
||||||
DocumentPersons: DocumentPersons
|
DocumentPersons: DocumentPersons,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user