Created attachment 126822 [details] [review] Bug 29314: Move OpenURL code from XSLT to Koha::Biblio We need to pass the xslt variable OpenURLResolverURL in a few opac code locations: opac detail, results (via C4), shelves and tags. The logic with itemtypes is moved to Koha::Biblio. Added a few trivial tests. Test plan: Inspect web page and look for OpenURL when enabled (opac detail and results). Run t/db_dependent/Koha/Biblio.t Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Julian, could you please have a look?
Looks reasonable to me.. but I'll defer to Julian for initial testing as I think he's closer to coins and openurl than I am
ping Julian
I would like to know what the overall goal is. As I see it, we are making the callers need to pass the OpenURLResolverURL variable, instead of taking it for granted implicitly. I'm failing it because it makes some tests fail: t/db_dependent/Search.t .......... # Looks like you planned 90 tests but ran 27. t/db_dependent/Search.t .......... 1/3 # Failed test 'MARC21 + DOM' # at t/db_dependent/Search.t line 906. Can't use an undefined value as a HASH reference at /kohadevbox/koha/C4/Search.pm line 1994. # Looks like your test exited with 255 just after 1.
Closing this report. Noting that I was kind of amazed that Julian did never respond at all.