Lines 812-818
Link Here
|
812 |
}); |
812 |
}); |
813 |
[% END # /IF OpacHighlightedWords %] |
813 |
[% END # /IF OpacHighlightedWords %] |
814 |
[% IF ( OverDriveEnabled ) %] |
814 |
[% IF ( OverDriveEnabled ) %] |
815 |
var $overdrive_results = $( '<div id="overdrive-results">' + MSG_SEARCHING.format('OverDrive') + ' <img class="throbber" src="[% interface | html %]/lib/jquery/plugins/themes/classic/throbber.gif" /></div>' ); |
815 |
var $overdrive_results = $( '<div id="overdrive-results">' + MSG_SEARCHING.format('OverDrive') + ' <img class="throbber" src="[% interface | html %]/[% theme | html %]/images/spinner-small.gif" /></div>' ); |
816 |
$( '#numresults' ) .after( $overdrive_results ); |
816 |
$( '#numresults' ) .after( $overdrive_results ); |
817 |
//Clean querystring, first we remove CCL entities, then decode HTML entities, then swap double quotes for single quotes |
817 |
//Clean querystring, first we remove CCL entities, then decode HTML entities, then swap double quotes for single quotes |
818 |
//as the overdrive API treats double quotes as a search term and returns extra results |
818 |
//as the overdrive API treats double quotes as a search term and returns extra results |
Lines 833-839
Link Here
|
833 |
} ); |
833 |
} ); |
834 |
[% END # /IF OverDriveEnabled %] |
834 |
[% END # /IF OverDriveEnabled %] |
835 |
[% IF ( RecordedBooksEnabled ) %] |
835 |
[% IF ( RecordedBooksEnabled ) %] |
836 |
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>' ); |
836 |
var $recordedbooks_results = $( '<div id="recordedbooks-results">' + MSG_SEARCHING.format('RecordedBooks') + ' <img class="throbber" src="[% interface | html %]/[% theme | html %]/images/spinner-small.gif" /></div>' ); |
837 |
$( '#numresults' ) .after( $recordedbooks_results ); |
837 |
$( '#numresults' ) .after( $recordedbooks_results ); |
838 |
KOHA.RecordedBooks.search( querystring, [% OPACnumSearchResults || "null" | html %], null, function( data ) { |
838 |
KOHA.RecordedBooks.search( querystring, [% OPACnumSearchResults || "null" | html %], null, function( data ) { |
839 |
if ( data.error ) { |
839 |
if ( data.error ) { |
Lines 850-856
Link Here
|
850 |
} ); |
850 |
} ); |
851 |
[% END # /IF RecordedBooksEnabled %] |
851 |
[% END # /IF RecordedBooksEnabled %] |
852 |
[% IF ( OpenLibrarySearch ) %] |
852 |
[% IF ( OpenLibrarySearch ) %] |
853 |
var $openlibrary_results = $( '<div id="openlibrary-results">' + MSG_SEARCHING.format('OpenLibrary' ) + ' <img class="throbber" src="[% interface | html %]/lib/jquery/plugins/themes/classic/throbber.gif" /></div>' ); |
853 |
var $openlibrary_results = $( '<div id="openlibrary-results">' + MSG_SEARCHING.format('OpenLibrary' ) + ' <img class="throbber" src="[% interface | html %]/[% theme | html %]/images/spinner-small.gif" /></div>' ); |
854 |
$( '#numresults' ) .after( $openlibrary_results ); |
854 |
$( '#numresults' ) .after( $openlibrary_results ); |
855 |
KOHA.OpenLibrary.search( querystring, null, function( data ) { |
855 |
KOHA.OpenLibrary.search( querystring, null, function( data ) { |
856 |
if ( data.error ) { |
856 |
if ( data.error ) { |