Z39.50/SRU search not working (only when language set to English)
Hi, if I enter an ISBN in "Search the catalog", on the next page, the "Z39.50/SRU search" button is not working (it does not open the popup for the Z39.50/SRU search). In the web console I get this error: Uncaught SyntaxError: expected expression, got ';' search.pl:636:29 This happens, when I set the language to german (haven't tests other non-english languages). When I set the language to English, everything works fine. Any ideas? Regards, Stephan
Hi Stephan, which exact version of Koha are you using? Le mer. 5 août 2020 à 16:26, zefanja <koha@zefanjas.de> a écrit :
Hi,
if I enter an ISBN in "Search the catalog", on the next page, the "Z39.50/SRU search" button is not working (it does not open the popup for the Z39.50/SRU search). In the web console I get this error:
Uncaught SyntaxError: expected expression, got ';' search.pl:636:29
This happens, when I set the language to german (haven't tests other non-english languages). When I set the language to English, everything works fine.
Any ideas?
Regards, Stephan _______________________________________________
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
Hi,
Hi Stephan, which exact version of Koha are you using?
Sry, forgot to include it: 20.05.02 (running on Ubuntu 16.04 → maybe that's part of the problem?) The about page in my Koha installations also has an error: Can't locate object method "structured_requirements_for_module" via package "CPAN::Meta::Requirements" at /usr/share/koha/lib/C4/Installer/PerlModules.pm line 66. Regards, Stephan
That's certainly an unsupported version combination. Worth investigating anyway. El mié., 5 ago. 2020 21:24, zefanja <koha@zefanjas.de> escribió:
Hi,
Hi Stephan, which exact version of Koha are you using?
Sry, forgot to include it: 20.05.02 (running on Ubuntu 16.04 → maybe that's part of the problem?)
The about page in my Koha installations also has an error:
Can't locate object method "structured_requirements_for_module" via package "CPAN::Meta::Requirements" at /usr/share/koha/lib/C4/Installer/PerlModules.pm line 66.
Regards, Stephan
_______________________________________________
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
This is a known bug for 20.05. libcpan-meta-perl must be version 2.150010. If not you can try `sudo apt install libcpan-meta-perl`. Better would be to upgrade the system of course. Le jeu. 6 août 2020 à 02:23, zefanja <koha@zefanjas.de> a écrit :
Hi,
Hi Stephan, which exact version of Koha are you using?
Sry, forgot to include it: 20.05.02 (running on Ubuntu 16.04 → maybe that's part of the problem?)
The about page in my Koha installations also has an error:
Can't locate object method "structured_requirements_for_module" via package "CPAN::Meta::Requirements" at /usr/share/koha/lib/C4/Installer/PerlModules.pm line 66.
Regards, Stephan
_______________________________________________
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
Hi, ok, I've upgraded our system to Ubuntu 20.04, but I still get this error (in the web console) when my language is set to a non-english (in my cae german) language: Uncaught SyntaxError: expected expression, got ';' search.pl:636:29 (when I enter an ISBN in "Search the catalog", on the next page, the "Z39.50/SRU search" button is not working (it does not open the popup for the Z39.50/SRU search).) Regards, Stephan Am 06.08.20 um 14:33 schrieb Jonathan Druart:
This is a known bug for 20.05. libcpan-meta-perl must be version 2.150010. If not you can try `sudo apt install libcpan-meta-perl`. Better would be to upgrade the system of course.
Le jeu. 6 août 2020 à 02:23, zefanja <koha@zefanjas.de> a écrit :
Hi,
Hi Stephan, which exact version of Koha are you using?
Sry, forgot to include it: 20.05.02 (running on Ubuntu 16.04 → maybe that's part of the problem?)
The about page in my Koha installations also has an error:
Can't locate object method "structured_requirements_for_module" via package "CPAN::Meta::Requirements" at /usr/share/koha/lib/C4/Installer/PerlModules.pm line 66.
Regards, Stephan
_______________________________________________
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
I have opened a new bug report https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26158 A workaround is to edit your de-DE template file de-DE/modules/catalogue/results.tt and replace line 681 var SEARCH_RESULTS = [% IF (SEARCH_RESULTS) %]1[% ELSE %][% END %]; with var SEARCH_RESULTS = [% IF (SEARCH_RESULTS) %]1[% ELSE %]0[% END %]; Le jeu. 6 août 2020 à 12:58, zefanja <koha@zefanjas.de> a écrit :
Hi,
ok, I've upgraded our system to Ubuntu 20.04, but I still get this error (in the web console) when my language is set to a non-english (in my cae german) language:
Uncaught SyntaxError: expected expression, got ';' search.pl:636:29
(when I enter an ISBN in "Search the catalog", on the next page, the "Z39.50/SRU search" button is not working (it does not open the popup for the Z39.50/SRU search).)
Regards, Stephan
Am 06.08.20 um 14:33 schrieb Jonathan Druart:
This is a known bug for 20.05. libcpan-meta-perl must be version 2.150010. If not you can try `sudo apt install libcpan-meta-perl`. Better would be to upgrade the system of course.
Le jeu. 6 août 2020 à 02:23, zefanja <koha@zefanjas.de> a écrit :
Hi,
Hi Stephan, which exact version of Koha are you using?
Sry, forgot to include it: 20.05.02 (running on Ubuntu 16.04 → maybe that's part of the problem?)
The about page in my Koha installations also has an error:
Can't locate object method "structured_requirements_for_module" via package "CPAN::Meta::Requirements" at /usr/share/koha/lib/C4/Installer/PerlModules.pm line 66.
Regards, Stephan
_______________________________________________
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
I have opened a new bug report https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26158
Thank you!
A workaround is to edit your de-DE template file de-DE/modules/catalogue/results.tt and replace line 681 var SEARCH_RESULTS = [% IF (SEARCH_RESULTS) %]1[% ELSE %][% END %]; with var SEARCH_RESULTS = [% IF (SEARCH_RESULTS) %]1[% ELSE %]0[% END %];
Great! Fixed my problem! Thanks again! Regards, Stephan
participants (3)
-
Jonathan Druart -
Tomas Cohen Arazi -
zefanja