Hello everyone,
I've spotted a small typo that produces wrong results in
oai_repository_server (both in the release and the trunk versions).
To reproduce the problem, you can try
http://servername/oai2d?verb=ListIdentifiers&metadataPrefix=oai_dc and
even if the results are more than the CFG_OAI_LOAD, you will get them
all (no record split, no resumptionToken shown)
The line that holds the typo (around line 625) is
if (not _record_exists == -1 and CFG_OAI_DELETED_POLICY == "no"):
and it should be changed to:
if not (_record_exists == -1 and CFG_OAI_DELETED_POLICY == "no"):
Furthermore, around line 746, I think there is another syntax error in
return md5(str(time.time())).hexdigest()
It think it should probably be something like
return md5.new(str(time.time())).hexdigest()
Best regards,
Theodoros
ps. Apologies for reposting. Previous email was sent to
[email protected] (old list maybe?) by mistake.