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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc (-1 / +1 lines)
Lines 272-278 $.widget.bridge('uitooltip', $.ui.tooltip); Link Here
272
[% END %]
272
[% END %]
273
273
274
[% IF (RecordedBooksEnabled) %]
274
[% IF (RecordedBooksEnabled) %]
275
  var SPINNER_THROBBER = "[% interface %]/lib/jquery/plugins/themes/classic/throbber.gif";
275
  var SPINNER_THROBBER = "[% interface | html %]/lib/jquery/plugins/themes/classic/throbber.gif";
276
[% END %]
276
[% END %]
277
277
278
[% Asset.js("lib/jquery/plugins/jquery.cookie.min.js") | $raw %]
278
[% Asset.js("lib/jquery/plugins/jquery.cookie.min.js") | $raw %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-recordedbooks-search.tt (-5 / +5 lines)
Lines 2-8 Link Here
2
[% USE Asset %]
2
[% USE Asset %]
3
[% USE Koha %]
3
[% USE Koha %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog &rsaquo; RecordedBooks search for '[% q | html %]'</title>
5
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog &rsaquo; RecordedBooks search for '[% q | html %]'</title>
6
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% BLOCK cssinclude %]
7
[% BLOCK cssinclude %]
8
[% Asset.css("css/jquery.rating.css") | $raw %]
8
[% Asset.css("css/jquery.rating.css") | $raw %]
Lines 61-74 Link Here
61
61
62
[% INCLUDE 'opac-bottom.inc' %]
62
[% INCLUDE 'opac-bottom.inc' %]
63
[% BLOCK jsinclude %]
63
[% BLOCK jsinclude %]
64
[% Asset.js("js/recordedbooks.js") %]
64
[% Asset.js("js/recordedbooks.js") | $raw %]
65
[% Asset.js("lib/jquery/plugins/jquery.rating.js") %]
65
[% Asset.js("lib/jquery/plugins/jquery.rating.js") | $raw %]
66
<script type="text/javascript">
66
<script type="text/javascript">
67
var querystring = "[% q |replace( "'", "\'" ) |replace( '\n', '\\n' ) |replace( '\r', '\\r' ) |html %]";
67
var querystring = "[% q |replace( "'", "\'" ) |replace( '\n', '\\n' ) |replace( '\r', '\\r' ) |html %]";
68
var results_per_page = [% OPACnumSearchResults || 20 %];
68
var results_per_page = [% OPACnumSearchResults || 20 | html %];
69
69
70
function search( page ) {
70
function search( page ) {
71
    $( '#recordedbooks-status' ).html( MSG_SEARCHING.format("RecordedBooks") + ' <img class="throbber" src="[% interface %]/lib/jquery/plugins/themes/classic/throbber.gif" /></span>' );
71
    $( '#recordedbooks-status' ).html( MSG_SEARCHING.format("RecordedBooks") + ' <img class="throbber" src="[% interface | html %]/lib/jquery/plugins/themes/classic/throbber.gif" /></span>' );
72
72
73
    KOHA.RecordedBooks.search( querystring, results_per_page, page, function( data ) {
73
    KOHA.RecordedBooks.search( querystring, results_per_page, page, function( data ) {
74
        if ( data.error ) {
74
        if ( data.error ) {
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt (-1 / +1 lines)
Lines 907-913 $(document).ready(function(){ Link Here
907
        var $recordedbooks_results = $( '<div id="recordedbooks-results">' + MSG_SEARCHING.format('RecordedBooks') + ' <img class="throbber" src="[% interface | html %]/lib/jquery/plugins/themes/classic/throbber.gif" /></div>' );
907
        var $recordedbooks_results = $( '<div id="recordedbooks-results">' + MSG_SEARCHING.format('RecordedBooks') + ' <img class="throbber" src="[% interface | html %]/lib/jquery/plugins/themes/classic/throbber.gif" /></div>' );
908
        $( '#numresults' ) .append( ' ' )
908
        $( '#numresults' ) .append( ' ' )
909
            .append( $recordedbooks_results );
909
            .append( $recordedbooks_results );
910
        KOHA.RecordedBooks.search( querystring, [% OPACnumSearchResults || "null" %], null, function( data ) {
910
        KOHA.RecordedBooks.search( querystring, [% OPACnumSearchResults || "null" | html %], null, function( data ) {
911
            if ( data.error ) {
911
            if ( data.error ) {
912
                $recordedbooks_results.html( MSG_ERROR_SEARCHING_COLLECTION.format('RecordedBooks')  + ': ' + data.error);
912
                $recordedbooks_results.html( MSG_ERROR_SEARCHING_COLLECTION.format('RecordedBooks')  + ': ' + data.error);
913
                return;
913
                return;
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (-3 / +2 lines)
Lines 1074-1084 Link Here
1074
    </script>
1074
    </script>
1075
    [% END %]
1075
    [% END %]
1076
    [% IF RecordedBooksCirculation %]
1076
    [% IF RecordedBooksCirculation %]
1077
        [% Asset.js("js/recordedbooks.js") %]
1077
        [% Asset.js("js/recordedbooks.js") | $raw %]
1078
        <script type="text/JavaScript">
1078
        <script type="text/JavaScript">
1079
            $(document).ready(function() {
1079
            $(document).ready(function() {
1080
                [% IF ( recordedbooks_error ) %]
1080
                [% IF ( recordedbooks_error ) %]
1081
                    KOHA.RecordedBooks.display_error("#opac-user-recordedbooks", "[% recordedbooks_error.dquote %]");
1081
                    KOHA.RecordedBooks.display_error("#opac-user-recordedbooks", "[% recordedbooks_error.dquote | html %]");
1082
                [% END %]
1082
                [% END %]
1083
                [% IF ( recordedbooks_tab ) %]
1083
                [% IF ( recordedbooks_tab ) %]
1084
                    $("#opac-user-views").tabs("select", "#opac-user-recordedbooks");
1084
                    $("#opac-user-views").tabs("select", "#opac-user-recordedbooks");
1085
- 

Return to bug 17602