Hi to all,
Trying to add my test repository to the openarchive.org list
(http://www.openarchives.org/Register/ValidateSite) I got the
following error:
-----
Unfortunately your repository did not validate at version 2.0 of the OAI-PMH
according to our OAI protocol conformance tester. The errors received during
testing are listed below.
The baseURL supplied
http://invenio.lib.auth.gr/oai2d
does not match the baseURL provided in the Identify response
http://invenio.lib.auth.gr/oai2d/
The baseURL you enter must EXACTLY match the baseURL returned in the Identify
response.
-----
Indeed, the baseURL should not be ..."oai2d/" because this would
produce errors when appending verbs. Instead, the following
quick-and-dirty fix for the above mentioned problem could be used to
change the definition of oaiidentify (found in oai_repository.py) from:
baseurl = " <baseURL>%s/oai2d/</baseURL>\n" % CFG_SITE_URL
to:
baseurl = " <baseURL>%s/oai2d</baseURL>\n" % CFG_SITE_URL
This solves the problem, and all the oaiarchive tests complete without
problem!
(FYI, the tests would complete anyway, since all the handling of verbs
do not relate to the identify function. It's just the openarchive.org
that makes this extra consistency test...)
Best regards,
Theodoropoulos Theodoros
ps. I've checked the repository and I couldn't find a fix for this
issue. However if it has been solved recently, please accept my
apologies for double-posting :)