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 = """