Bug 26158: Fix Z3950 search button broken for translations
This is similar to bug 23713 var SEARCH_RESULTS = [% IF (SEARCH_RESULTS) %]1[% ELSE %]0[% END %]; become, once translated: var SEARCH_RESULTS = [% IF (SEARCH_RESULTS) %]1[% ELSE %][% END %]; and a JS error appears in the console Uncaught SyntaxError: expected expression, got ';' search.pl:636:29 Caused by commitef4306cc02Bug 23885: Move staff client search results JavaScript into separate file Test plan: Use the staff interface in a translated language Search for a term that won't return any results Click the Z3950 button Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> (cherry picked from commit85005b7198) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
f7c87626c7
commit
d3ca378db6
|
|
@ -724,7 +724,11 @@
|
|||
var biblionumber = "[% biblionumber | html %]";
|
||||
var holdfor_cardnumber = "[% holdfor_cardnumber | html %]";
|
||||
var holdforclub = "[% holdforclub | html %]";
|
||||
var SEARCH_RESULTS = [% IF (SEARCH_RESULTS) %]1[% ELSE %]0[% END %];
|
||||
[% IF SEARCH_RESULTS %]
|
||||
var SEARCH_RESULTS = 1;
|
||||
[% ELSE %]
|
||||
var SEARCH_RESULTS = 0;
|
||||
[% END %]
|
||||
var new_results_browser = [
|
||||
[%- FOREACH result IN SEARCH_RESULTS -%]
|
||||
[%- result.biblionumber | html -%],
|
||||
|
|
|
|||
Loading…
Reference in New Issue