- 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('link_sign', 200)->nullable();
$table->string('mime_type', 30)->nullable(); $table->string('mime_type', 30)->nullable();
$table->string('name_long', 200); $table->string('name_long', 200);
$table->string('name', 50);
$table->boolean('pod_allowed')->default(false); $table->boolean('pod_allowed')->default(false);
$table->tinyInteger('sort_order'); $table->tinyInteger('sort_order');
}); });

View File

@ -572,6 +572,11 @@
<dc:rights> <dc:rights>
<xsl:value-of select="@NameLong" /> <xsl:value-of select="@NameLong" />
</dc:rights> </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:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -349,6 +349,14 @@
</xsl:attribute> </xsl:attribute>
<xsl:value-of select="@NameLong" /> <xsl:value-of select="@NameLong" />
</rights> </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:template>
</xsl:stylesheet> </xsl:stylesheet>