Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use https in cmdi self handle #881

Merged
merged 1 commit into from Jan 29, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions dspace/config/crosswalks/oai/metadataFormats/lindat_cmdi.xsl
Expand Up @@ -7,11 +7,12 @@
xmlns:isocodes="cz.cuni.mff.ufal.IsoLangCodes"
xmlns:xalan="http://xml.apache.org/xslt"
xmlns:configuration="org.dspace.core.ConfigurationManager"
xmlns:jstring="java.lang.String"
xmlns:ms="http://www.ilsp.gr/META-XMLSchema"
xmlns:olac="http://experimental.loc/olac"
xmlns:cmd="http://www.clarin.eu/cmd/"
xmlns:lindat="http://lindat.mff.cuni.cz/ns/experimental/cmdi"
exclude-result-prefixes="doc xalan itemUtil isocodes configuration ms"
exclude-result-prefixes="doc xalan itemUtil isocodes configuration ms jstring"
version="1.0">
<xsl:import href="metadataFormats/metasharev2.xsl"/>
<xsl:import href="metadataFormats/olac-dcmiterms.xsl"/>
Expand All @@ -23,7 +24,8 @@


<xsl:variable name="handle" select="/doc:metadata/doc:element[@name='others']/doc:field[@name='handle']/text()"/>
<xsl:variable name="dc_identifier_uri" select="/doc:metadata/doc:element[@name='dc']/doc:element[@name='identifier']/doc:element[@name='uri']/doc:element/doc:field[@name='value']"/>
<xsl:variable name="dc_identifier_uri"
select="jstring:replaceFirst(jstring:new(/doc:metadata/doc:element[@name='dc']/doc:element[@name='identifier']/doc:element[@name='uri']/doc:element/doc:field[@name='value']), 'http://', 'https://')"/>
<xsl:variable name="modifyDate" select="/doc:metadata/doc:element[@name='others']/doc:field[@name='lastModifyDate']/text()"/>
<xsl:variable name="dc_rights_uri" select="/doc:metadata/doc:element[@name='dc']/doc:element[@name='rights']/doc:element[@name='uri']/doc:element/doc:field[@name='value']" />
<xsl:variable name="dsURL" select="configuration:getProperty('dspace.url')"/>
Expand Down