- Ausbesserungen oai_datacite.xslt remove empty xmlns=""

- editor edit view: Abstracts in einer Textarea
This commit is contained in:
Arno Kaimbacher 2020-04-21 21:52:00 +02:00
parent 0d210e4e95
commit 06effbb2f7
3 changed files with 23 additions and 18 deletions

View File

@ -162,8 +162,12 @@
<metadataPrefix> <metadataPrefix>
<xsl:text>oai_datacite</xsl:text> <xsl:text>oai_datacite</xsl:text>
</metadataPrefix> </metadataPrefix>
<schema>http://schema.datacite.org/meta/kernel-4.1/metadata.xsd</schema> <schema>
<metadataNamespace>http://datacite.org/schema/kernel-4</metadataNamespace> <xsl:text>http://schema.datacite.org/meta/kernel-4.1/metadata.xsd</xsl:text>
</schema>
<metadataNamespace>
<xsl:text>http://datacite.org/schema/kernel-4</xsl:text>
</metadataNamespace>
</metadataFormat> </metadataFormat>
</ListMetadataFormats> </ListMetadataFormats>
</xsl:template> </xsl:template>

View File

@ -38,8 +38,8 @@
<xsl:output method="xml" indent="yes" /> <xsl:output method="xml" indent="yes" />
<xsl:template match="Rdr_Dataset" mode="oai_datacite"> <xsl:template match="Rdr_Dataset" mode="oai_datacite">
<resource xmlns="http://datacite.org/schema/kernel-4" <resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://datacite.org/schema/kernel-4"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4.1/metadata.xsd"> xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4.1/metadata.xsd">
<!-- <isReferenceQuality>true</isReferenceQuality> <!-- <isReferenceQuality>true</isReferenceQuality>
<schemaVersion>4.1</schemaVersion> <schemaVersion>4.1</schemaVersion>
<datacentreSymbol>RDR.GBA</datacentreSymbol> --> <datacentreSymbol>RDR.GBA</datacentreSymbol> -->
@ -115,7 +115,7 @@
</resource> </resource>
</xsl:template> </xsl:template>
<xsl:template name="RdrDate2" mode="oai_datacite"> <xsl:template name="RdrDate2" mode="oai_datacite" xmlns="http://datacite.org/schema/kernel-4">
<xsl:if test="EmbargoDate"> <xsl:if test="EmbargoDate">
<date> <date>
<xsl:attribute name="dataType">Available</xsl:attribute> <xsl:attribute name="dataType">Available</xsl:attribute>
@ -140,7 +140,7 @@
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template match="Coverage" mode="oai_datacite"> <xsl:template match="Coverage" mode="oai_datacite" xmlns="http://datacite.org/schema/kernel-4">
<geoLocation> <geoLocation>
<geoLocationBox> <geoLocationBox>
<westBoundLongitude> <westBoundLongitude>
@ -159,7 +159,7 @@
</geoLocation> </geoLocation>
</xsl:template> </xsl:template>
<xsl:template match="TitleAbstract" mode="oai_datacite"> <xsl:template match="TitleAbstract" mode="oai_datacite" xmlns="http://datacite.org/schema/kernel-4">
<description> <description>
<xsl:attribute name="xml:lang"> <xsl:attribute name="xml:lang">
<xsl:value-of select="@Language" /> <xsl:value-of select="@Language" />
@ -172,7 +172,7 @@
<xsl:value-of select="@Value" /> <xsl:value-of select="@Value" />
</description> </description>
</xsl:template> </xsl:template>
<xsl:template match="TitleAbstractAdditional" mode="oai_datacite"> <xsl:template match="TitleAbstractAdditional" mode="oai_datacite" xmlns="http://datacite.org/schema/kernel-4">
<description> <description>
<xsl:attribute name="xml:lang"> <xsl:attribute name="xml:lang">
<xsl:value-of select="@Language" /> <xsl:value-of select="@Language" />
@ -186,7 +186,7 @@
</description> </description>
</xsl:template> </xsl:template>
<xsl:template match="TitleMain" mode="oai_datacite"> <xsl:template match="TitleMain" mode="oai_datacite" xmlns="http://datacite.org/schema/kernel-4">
<title> <title>
<xsl:if test="@Language != ''"> <xsl:if test="@Language != ''">
<xsl:attribute name="xml:lang"> <xsl:attribute name="xml:lang">
@ -201,7 +201,7 @@
<xsl:value-of select="@Value"/> <xsl:value-of select="@Value"/>
</title> </title>
</xsl:template> </xsl:template>
<xsl:template match="TitleAdditional" mode="oai_datacite"> <xsl:template match="TitleAdditional" mode="oai_datacite" xmlns="http://datacite.org/schema/kernel-4">
<title> <title>
<xsl:if test="@Language != ''"> <xsl:if test="@Language != ''">
<xsl:attribute name="xml:lang"> <xsl:attribute name="xml:lang">
@ -217,7 +217,7 @@
</title> </title>
</xsl:template> </xsl:template>
<xsl:template match="Subject" mode="oai_datacite"> <xsl:template match="Subject" mode="oai_datacite" xmlns="http://datacite.org/schema/kernel-4">
<subject> <subject>
<xsl:if test="@Language != ''"> <xsl:if test="@Language != ''">
<xsl:attribute name="xml:lang"> <xsl:attribute name="xml:lang">
@ -228,7 +228,7 @@
</subject> </subject>
</xsl:template> </xsl:template>
<xsl:template match="Reference" mode="oai_datacite"> <xsl:template match="Reference" mode="oai_datacite" xmlns="http://datacite.org/schema/kernel-4">
<relatedIdentifier> <relatedIdentifier>
<xsl:attribute name="relatedIdentifierType"> <xsl:attribute name="relatedIdentifierType">
<xsl:value-of select="@Type" /> <xsl:value-of select="@Type" />
@ -240,7 +240,7 @@
</relatedIdentifier> </relatedIdentifier>
</xsl:template> </xsl:template>
<xsl:template match="PersonContributor" mode="oai_datacite"> <xsl:template match="PersonContributor" mode="oai_datacite" xmlns="http://datacite.org/schema/kernel-4">
<contributor> <contributor>
<contributorName> <contributorName>
<xsl:if test="@NameType != ''"> <xsl:if test="@NameType != ''">
@ -254,7 +254,7 @@
</xsl:template> </xsl:template>
<xsl:template match="PersonAuthor" mode="oai_datacite"> <xsl:template match="PersonAuthor" mode="oai_datacite" xmlns="http://datacite.org/schema/kernel-4">
<creator> <creator>
<creatorName> <creatorName>
<xsl:if test="@NameType != ''"> <xsl:if test="@NameType != ''">
@ -291,13 +291,13 @@
</creator> </creator>
</xsl:template> </xsl:template>
<xsl:template match="File/@MimeType" mode="oai_datacite"> <xsl:template match="File/@MimeType" mode="oai_datacite" xmlns="http://datacite.org/schema/kernel-4">
<format> <format>
<xsl:value-of select="." /> <xsl:value-of select="." />
</format> </format>
</xsl:template> </xsl:template>
<xsl:template match="Licence" mode="oai_datacite"> <xsl:template match="Licence" mode="oai_datacite" xmlns="http://datacite.org/schema/kernel-4">
<rights> <rights>
<xsl:if test="@LinkLicence != ''"> <xsl:if test="@LinkLicence != ''">
<xsl:attribute name="rightsURI"> <xsl:attribute name="rightsURI">

View File

@ -195,9 +195,10 @@
<td> <td>
<input v-bind:name="'abstracts[' + index +'][id]'" readonly class="form-control" v-model="abstract.id" hidden /> <input v-bind:name="'abstracts[' + index +'][id]'" readonly class="form-control" v-model="abstract.id" hidden />
<input type="text" :id="'abstracts['+ index +'][value]'" <textarea rows="4" cols="40" :id="'abstracts['+ index +'][value]'"
:name="'abstracts['+index+'][value]'" v-validate="'required|min:4|max:2500'" v-model="abstract.value" :name="'abstracts['+index+'][value]'" v-validate="'required|min:4|max:2500'" v-model="abstract.value"
class="form-control"> class="form-control"></textarea>
</td> </td>
<td> <td>
<template v-if="abstract.type == 'Abstract'"> <template v-if="abstract.type == 'Abstract'">