[Koha-bugs] [Bug 30958] New: OPAC Overdrive search result page broken for translations
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Jun 14 00:38:26 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30958
Bug ID: 30958
Summary: OPAC Overdrive search result page broken for
translations
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: I18N/L10N
Assignee: koha-bugs at lists.koha-community.org
Reporter: alexbuckley at catalyst.net.nz
QA Contact: testopia at bugs.koha-community.org
CC: frederic at tamil.fr
If a library does not have the OverDrivePasswordRequired system preference =
'Required' then translated OPAC Overdrive search result pages throw a
JavaScript error and do not display results.
The problematic line (below) in the English template is:
var OD_password_required = [% IF Koha.Preference('OverDrivePasswordRequired')
%]1[% ELSE %]0[% END %];
Which is translated to the following in the en-NZ (and other languages)
template:
var OD_password_required = [% IF Koha.Preference('OverDrivePasswordRequired')
%]1[% ELSE %][% END %];
Like in bug 23713 the line is translated to:
var OD_password_required = ;
When it should be:
var OD_password_required = 0;
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list