[Koha-devel] State of HTTP::OAI versions

Jonathan Druart jonathan.druart at bugs.koha-community.org
Thu Feb 1 15:35:14 CET 2018


Hi,

Quick tests on master, hitting
/cgi-bin/koha/
oai.pl?verb=GetRecord&identifier=KOHA-OAI-TEST:1&metadataPrefix=marcxml

3.27 => OK
3.28 => OK

4.02 => KO cannot install via cpan
make: *** No rule to make target 'bin/oai_pmh.pl', needed by 'blib/script/
oai_pmh.pl'.  Stop.

4.03 => KO
Can't call method "start_element" on an undefined value at
/root/.cpanm/work/1517493937.13902/HTTP-OAI-4.03/blib/lib/HTTP/OAI/Verb.pm
line 53.
with --force:
Can't locate object method "xslt" via package "HTTP::OAI::GetRecord" at
/home/vagrant/kohaclone/Koha/OAI/Server/Repository.pm line 147.

4.04 to 4.06 => KO
Can't locate object method "xslt" via package "HTTP::OAI::GetRecord" at
/home/vagrant/kohaclone/Koha/OAI/Server/Repository.pm line 147.

We use this xslt method since bug 15527 (OAI-PMH should have a stylesheet
to aid usability).
It has been removed from HTTP::OAI::Response 4.03

If I comment the line in our codebase ($response->xslt(
"/opac-tmpl/xslt/OAI.xslt" ); in Koha::OAI::Server::Repository->new), with
4.06 I get:
Can't call method "start_element" on an undefined value at
/usr/local/share/perl/5.20.2/HTTP/OAI/Verb.pm line 55.

Next?
I do not know :)

Cheers,
Jonathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20180201/8265a618/attachment.html>


More information about the Koha-devel mailing list