From 15c7df78c7a6c4cd8f197291861e79de44d60559 Mon Sep 17 00:00:00 2001 From: Arno Kaimbacher Date: Thu, 19 Sep 2019 16:10:15 +0200 Subject: [PATCH] - add TiteAdditional and TitleAbstractAdditional - addapt datasetxml2oai-pmh.xslt - neww title name --- app/Library/Xml/DatasetExtension.php | 14 +++++++-- public/datasetxml2oai-pmh.xslt | 21 +++++++++++-- public/prefixes/oai_datacite.xslt | 44 +++++++++++++++++++++++++++ resources/views/layouts/app.blade.php | 4 +-- 4 files changed, 77 insertions(+), 6 deletions(-) diff --git a/app/Library/Xml/DatasetExtension.php b/app/Library/Xml/DatasetExtension.php index b57acc7..40ab858 100644 --- a/app/Library/Xml/DatasetExtension.php +++ b/app/Library/Xml/DatasetExtension.php @@ -23,12 +23,22 @@ trait DatasetExtension protected $externalFields = array( 'TitleMain' => array( 'model' => Title::class, - 'options' => array('type' => ['Main', 'Alternative', 'Sub', 'Translated', 'Other']), + 'options' => array('type' => ['Main']), + 'fetch' => 'eager' + ), + 'TitleAdditional' => array( + 'model' => Title::class, + 'options' => array('type' => ['Alternative', 'Sub', 'Translated', 'Other']), 'fetch' => 'eager' ), 'TitleAbstract' => array( 'model' => Description::class, - 'options' => array('type' => ['Abstract', 'Methods', 'Technical_info', 'Series_information', 'Other']), + 'options' => array('type' => ['Abstract']), + 'fetch' => 'eager' + ), + 'TitleAbstractAdditional' => array( + 'model' => Description::class, + 'options' => array('type' => ['Methods', 'Technical_info', 'Series_information', 'Other']), 'fetch' => 'eager' ), 'Licence' => array( diff --git a/public/datasetxml2oai-pmh.xslt b/public/datasetxml2oai-pmh.xslt index b29628d..4e4fe75 100644 --- a/public/datasetxml2oai-pmh.xslt +++ b/public/datasetxml2oai-pmh.xslt @@ -315,8 +315,12 @@ + + + + @@ -397,6 +401,11 @@ + + + + + @@ -406,12 +415,20 @@ + + + + + + + + - + - + diff --git a/public/prefixes/oai_datacite.xslt b/public/prefixes/oai_datacite.xslt index ae2e1be..bdfb093 100644 --- a/public/prefixes/oai_datacite.xslt +++ b/public/prefixes/oai_datacite.xslt @@ -55,6 +55,7 @@ + @@ -62,6 +63,9 @@ + + + @@ -86,6 +90,7 @@ + @@ -133,6 +138,19 @@ + + + + + + + + + + + + + @@ -149,6 +167,32 @@ <xsl:value-of select="@Value"/> + + + <xsl:if test="@Language != ''"> + <xsl:attribute name="xml:lang"> + <xsl:value-of select="@Language" /> + </xsl:attribute> + </xsl:if> + <xsl:if test="@Type != '' and @Type != 'Main'"> + <xsl:attribute name="titleType"> + <xsl:value-of select="@Type" /> + </xsl:attribute> + </xsl:if> + <xsl:value-of select="@Value"/> + + + + + + + + + + + + + diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index 5b98a94..1ef5478 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -8,7 +8,7 @@ - RDR - For Scientists + RDR - Geology Geophysics Meteorology @@ -46,7 +46,7 @@
- Repository Demo + RDR Testphase