- add name columns to table 'document_licences'

- add open access hints to dc and datacite (xslt)
This commit is contained in:
Arno Kaimbacher 2020-05-19 20:18:31 +02:00
parent 35e71a13c3
commit 671cdb1e4e
3 changed files with 17 additions and 3 deletions

View File

@ -25,6 +25,7 @@ class CreateLicencesTable extends Migration
$table->string('link_sign', 200)->nullable();
$table->string('mime_type', 30)->nullable();
$table->string('name_long', 200);
$table->string('name', 50);
$table->boolean('pod_allowed')->default(false);
$table->tinyInteger('sort_order');
});

View File

@ -164,10 +164,10 @@
<xsl:text>oai_datacite</xsl:text>
</metadataPrefix>
<schema>
<xsl:text>http://schema.datacite.org/meta/kernel-4.3/metadata.xsd</xsl:text>
<xsl:text>http://schema.datacite.org/meta/kernel-4.3/metadata.xsd</xsl:text>
</schema>
<metadataNamespace>
<xsl:text>http://datacite.org/schema/kernel-4</xsl:text>
<xsl:text>http://datacite.org/schema/kernel-4</xsl:text>
</metadataNamespace>
</metadataFormat>
</ListMetadataFormats>
@ -572,6 +572,11 @@
<dc:rights>
<xsl:value-of select="@NameLong" />
</dc:rights>
<xsl:if test="@Name = 'CC BY' or @Name = 'CC BY-SA'">
<dc:rights>
<xsl:text>info:eu-repo/semantics/openAccess</xsl:text>
</dc:rights>
</xsl:if>
</xsl:template>
</xsl:stylesheet>

View File

@ -349,6 +349,14 @@
</xsl:attribute>
<xsl:value-of select="@NameLong" />
</rights>
<xsl:if test="@Name = 'CC BY' or @Name = 'CC BY-SA'">
<rights>
<xsl:attribute name="rightsURI">
<xsl:text>info:eu-repo/semantics/openAccess</xsl:text>
</xsl:attribute>
<xsl:text>Open Access</xsl:text>
</rights>
</xsl:if>
</xsl:template>
</xsl:stylesheet>