View | Details | Raw Unified | Return to bug 30958
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-overdrive-search.tt (-2 / +5 lines)
Lines 72-78 Link Here
72
[% BLOCK jsinclude %]
72
[% BLOCK jsinclude %]
73
    [% Asset.js("js/overdrive.js") | $raw %]
73
    [% Asset.js("js/overdrive.js") | $raw %]
74
    <script>
74
    <script>
75
        var OD_password_required = [% IF Koha.Preference('OverDrivePasswordRequired') %]1[% ELSE %]0[% END %];
75
        [%- IF Koha.Preference('OverDrivePasswordRequired') -%]
76
            var OD_password_required = 1;
77
        [%- ELSE -%]
78
            var OD_password_required = 0;
79
        [%- END -%]
76
        var querystring = "[% q |replace( "'", "\'" ) |replace( '\n', '\\n' ) |replace( '\r', '\\r' ) | html %]";
80
        var querystring = "[% q |replace( "'", "\'" ) |replace( '\n', '\\n' ) |replace( '\r', '\\r' ) | html %]";
77
        var results_per_page = [% OPACnumSearchResults | html %];
81
        var results_per_page = [% OPACnumSearchResults | html %];
78
82
79
- 

Return to bug 30958