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@lists.koha-community.org
          Reporter: alexbuck...@catalyst.net.nz
        QA Contact: testo...@bugs.koha-community.org
                CC: frede...@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.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to