<div dir="ltr"><div><div><div><div>> It has been removed from HTTP::OAI::Response 4.03<br></div>This is wrong, the method still exist.<br></div>The change is that caused by (lib/HTTP/OAI/GetRecord.pm):<br>-@ISA = qw( HTTP::OAI::Response );<br>+@ISA = qw( HTTP::OAI::ListRecords );<br><br></div>And there is no ->xslt in HTTP::OAI::ListRecords.<br></div>Sounds like we will need someone to have a complete look at 4.06 to adapt our Koha::OAI modules.<br><div> <div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, 1 Feb 2018 at 11:35 Jonathan Druart <<a href="mailto:jonathan.druart@bugs.koha-community.org">jonathan.druart@bugs.koha-community.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi,<br><br>Quick tests on master, hitting<br>/cgi-bin/koha/<a href="http://oai.pl?verb=GetRecord&identifier=KOHA-OAI-TEST:1&metadataPrefix=marcxml" target="_blank">oai.pl?verb=GetRecord&identifier=KOHA-OAI-TEST:1&metadataPrefix=marcxml</a><br><br></div>3.27 => OK<br></div>3.28 => OK<br><br></div>4.02 => KO cannot install via cpan<br><div>make: *** No rule to make target 'bin/<a href="http://oai_pmh.pl" target="_blank">oai_pmh.pl</a>', needed by 'blib/script/<a href="http://oai_pmh.pl" target="_blank">oai_pmh.pl</a>'.  Stop.<br><br></div><div>4.03 => KO<br>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.<br></div><div>with --force:<br>Can't locate object method "xslt" via package "HTTP::OAI::GetRecord" at /home/vagrant/kohaclone/Koha/OAI/Server/Repository.pm line 147.<br><br></div><div>4.04 to 4.06 => KO<br></div><div>Can't locate object method "xslt" via package "HTTP::OAI::GetRecord" at /home/vagrant/kohaclone/Koha/OAI/Server/Repository.pm line 147.<br><br></div><div>We use this xslt method since bug 15527 (OAI-PMH should have a stylesheet to aid usability).<br>It has been removed from HTTP::OAI::Response 4.03<br><br></div><div>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:<br>Can't call method "start_element" on an undefined value at /usr/local/share/perl/5.20.2/HTTP/OAI/Verb.pm line 55.<br><br></div><div>Next?<br></div><div>I do not know :)<br></div><div><br></div><div>Cheers,<br></div><div>Jonathan<br></div></div></blockquote></div></div>