Skip to content

Commit

Permalink
Merge pull request #458 from ufal/issue_457
Browse files Browse the repository at this point in the history
Issue 457
  • Loading branch information
kosarko committed Jan 4, 2016
2 parents 9917a43 + e43f048 commit ba0de2a
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private Element disseminateItem(Item item) throws CrosswalkException, IOExceptio
String remSource = ConfigurationManager.getProperty("oai", "ore.authoritative.source");
if (remSource == null || remSource.equalsIgnoreCase("oai"))
{
oaiUrl = ConfigurationManager.getProperty("lr", "lr.dspace.oai.url");
oaiUrl = ConfigurationManager.getProperty("oai", "dspace.oai.url");
}
else if (remSource.equalsIgnoreCase("xmlui") || remSource.equalsIgnoreCase("manakin"))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void addBody(Map objectModel, Division div) throws WingException {
dspace.addItem(Site.getSiteHandle());

dspace.addLabel("OAI url");
String oai_url = notempty(ConfigurationManager.getProperty("lr", "lr.dspace.oai.url"));
String oai_url = notempty(ConfigurationManager.getProperty("oai", "dspace.oai.url"));
dspace.addItemXref(oai_url, oai_url);

dspace.addLabel("Solr log url");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

<xsl:variable name="query-string" select="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='request'][@qualifier='queryString']" />

<xsl:variable name="oai-url" select="confman:getProperty('lr', 'lr.dspace.oai.url')" />
<xsl:variable name="oai-url" select="confman:getProperty('oai', 'dspace.oai.url')" />

<!-- dynamically select the static html file based on requested page name -->
<xsl:variable name="static-page-name">
Expand Down
3 changes: 0 additions & 3 deletions dspace/config/modules/lr.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,6 @@ lr.shibboleth.discofeed.url = ${lr.shibboleth.discofeed.url}

lr.aai.url = ${lr.aai.url}

# The base URL of the OAI webapp (do not include /request).
lr.dspace.oai.url = ${dspace.baseUrl}/oai

# page with info about harvesting the repository
lr.harvester.info.url = ${harvesterInfo.url}

Expand Down
2 changes: 1 addition & 1 deletion dspace/config/modules/oai.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ harvester.unknownSchema = fail
# format: [baseURI]/metadata/handle/[theHandle]/ore.xml
# Default value is oai
#ore.authoritative.source = oai
dspace.oai.url = ${dspace.baseUrl}/oai
dspace.oai.url = ${dspace.oai.url}

# A harvest process will attempt to scan the metadata of the incoming items
# (dc.identifier.uri field, to be exact) to see if it looks like a handle.
Expand Down
4 changes: 4 additions & 0 deletions utilities/project_helpers/config/local.conf.dist
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ dspace.hostname = ufal-point-dev.ms.mff.cuni.cz
# !!! URL must NOT contain trailing slash !!!
dspace.baseUrl = https://ufal-point-dev.ms.mff.cuni.cz/repository

# OAI webapp url without context (eg. /request) use http
# in theory ${dspace.baseUrl}/oai except for the http requirement
dspace.oai.url = http://ufal-point-dev.ms.mff.cuni.cz/repository/oai

# DSpace URL, usually ending with /xmlui
# DSpace base URL. Include port number etc., but NOT trailing slash
dspace.url = ${dspace.baseUrl}/xmlui
Expand Down

0 comments on commit ba0de2a

Please sign in to comment.