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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt (-3 / +2 lines)
Lines 931-937 Link Here
931
                        }
931
                        }
932
932
933
                        if ( data.totalItems ) {
933
                        if ( data.totalItems ) {
934
                            $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>' );
934
                            $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>' );
935
                        } else {
935
                        } else {
936
                            $overdrive_results.remove();
936
                            $overdrive_results.remove();
937
                        }
937
                        }
Lines 949-955 Link Here
949
949
950
                        // data.total can be either 42 or "60+"
950
                        // data.total can be either 42 or "60+"
951
                        if ( typeof(data.total) === 'string' && data.total.charAt(0) > 0 || typeof(data.total) === 'number' && data.total > 0 ) {
951
                        if ( typeof(data.total) === 'string' && data.total.charAt(0) > 0 || typeof(data.total) === 'number' && data.total > 0 ) {
952
                            $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>' );
952
                            $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>' );
953
                        } else {
953
                        } else {
954
                            $recordedbooks_results.remove();
954
                            $recordedbooks_results.remove();
955
                        }
955
                        }
956
- 

Return to bug 27748