Lines 934-940
Link Here
|
934 |
} |
934 |
} |
935 |
|
935 |
|
936 |
if ( data.totalItems ) { |
936 |
if ( data.totalItems ) { |
937 |
$overdrive_results.html( '<a href="/cgi-bin/koha/opac-overdrive-search.pl?q=' + escape( od_querystring ) + '">' + MSG_RESULTS_FOUND_IN_COLLECTION.format(data.totalItems, 'OverDrive') + '</a>' ); |
937 |
$overdrive_results.html( '<a href="/cgi-bin/koha/opac-overdrive-search.pl?q=' + encodeURIComponent( od_querystring ) + '">' + MSG_RESULTS_FOUND_IN_COLLECTION.format(data.totalItems, 'OverDrive') + '</a>' ); |
938 |
} else { |
938 |
} else { |
939 |
$overdrive_results.remove(); |
939 |
$overdrive_results.remove(); |
940 |
} |
940 |
} |
Lines 952-958
Link Here
|
952 |
|
952 |
|
953 |
// data.total can be either 42 or "60+" |
953 |
// data.total can be either 42 or "60+" |
954 |
if ( typeof(data.total) === 'string' && data.total.charAt(0) > 0 || typeof(data.total) === 'number' && data.total > 0 ) { |
954 |
if ( typeof(data.total) === 'string' && data.total.charAt(0) > 0 || typeof(data.total) === 'number' && data.total > 0 ) { |
955 |
$recordedbooks_results.html( '<a href="/cgi-bin/koha/opac-recordedbooks-search.pl?q=' + escape( querystring ) + '">' + MSG_RESULTS_FOUND_IN_COLLECTION.format(data.total, 'RecordedBooks') + '</a>' ); |
955 |
$recordedbooks_results.html( '<a href="/cgi-bin/koha/opac-recordedbooks-search.pl?q=' + encodeURIComponent( querystring ) + '">' + MSG_RESULTS_FOUND_IN_COLLECTION.format(data.total, 'RecordedBooks') + '</a>' ); |
956 |
} else { |
956 |
} else { |
957 |
$recordedbooks_results.remove(); |
957 |
$recordedbooks_results.remove(); |
958 |
} |
958 |
} |
959 |
- |
|
|