From 2d1dc103c303494f27d295132d855a50a89ca642 Mon Sep 17 00:00:00 2001 From: llehtine Date: Thu, 3 Apr 2014 15:59:15 +0300 Subject: [PATCH] switched the url for oai2d to prefer http [issue 40] --- invenio/lib/oai_repository_server.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/invenio/lib/oai_repository_server.py b/invenio/lib/oai_repository_server.py index c8ce6e5916..af3b9c7022 100644 --- a/invenio/lib/oai_repository_server.py +++ b/invenio/lib/oai_repository_server.py @@ -127,7 +127,7 @@ def oai_header(argd, verb): """ out = "" + "\n" - out += "\n" % CFG_SITE_SECURE_URL or CFG_SITE_URL + out += "\n" % CFG_SITE_URL or CFG_SITE_SECURE_URL out += "\n" #out += "%s" % get_utc_now() @@ -575,7 +575,7 @@ def oai_identify(argd): """ out = X.repositoryName()(CFG_SITE_NAME) - out += X.baseURL()((CFG_SITE_SECURE_URL or CFG_SITE_URL) + '/oai2d') + out += X.baseURL()((CFG_SITE_URL or CFG_SITE_SECURE_URL) + '/oai2d') out += X.protocolVersion()("2.0") out += X.adminEmail()(CFG_SITE_SUPPORT_EMAIL) out += X.earliestDatestamp()(get_earliest_datestamp()) @@ -592,7 +592,7 @@ def oai_identify(argd): X.delimiter()(":") + X.sampleIdentifier()(CFG_OAI_SAMPLE_IDENTIFIER) + """""") - out += CFG_OAI_IDENTIFY_DESCRIPTION % {'CFG_SITE_URL': EscapedXMLString(CFG_SITE_SECURE_URL or CFG_SITE_URL)} + out += CFG_OAI_IDENTIFY_DESCRIPTION % {'CFG_SITE_URL': EscapedXMLString(CFG_SITE_URL or CFG_SITE_SECURE_URL)} if CFG_OAI_FRIENDS: friends = """