Summary: | Z3950 search button broken for translations | ||
---|---|---|---|
Product: | Koha | Reporter: | Jonathan Druart <jonathan.druart> |
Component: | I18N/L10N | Assignee: | Jonathan Druart <jonathan.druart> |
Status: | CLOSED FIXED | QA Contact: | Josef Moravec <josef.moravec> |
Severity: | major | ||
Priority: | P5 - low | CC: | aleisha, f.demians, josef.moravec, lucas |
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
See Also: | https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23713 | ||
Change sponsored?: | --- | Patch complexity: | Trivial patch |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: |
20.11.00, 20.05.03
|
|
Circulation function: | |||
Bug Depends on: | 23885 | ||
Bug Blocks: | |||
Attachments: |
Bug 26158: Fix Z3950 search button broken for translations
Bug 26158: Fix Z3950 search button broken for translations Bug 26158: Fix Z3950 search button broken for translations |
Description
Jonathan Druart
2020-08-06 11:26:32 UTC
Created attachment 107876 [details] [review] 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 commit ef4306cc02e2f15aa2466ae65d0b4f9a1fd70ad9 Bug 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 Created attachment 107878 [details] [review] 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 commit ef4306cc02e2f15aa2466ae65d0b4f9a1fd70ad9 Bug 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> Created attachment 107898 [details] [review] 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 commit ef4306cc02e2f15aa2466ae65d0b4f9a1fd70ad9 Bug 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> Pushed to master for 20.11, thanks to everybody involved! backported to 20.05.x for 20.05.03 missing dependencies, not backported to 19.11.x |