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

(-)a/koha-tmpl/opac-tmpl/bootstrap/js/autofill.js (-2 / +1 lines)
Lines 67-73 Link Here
67
                var gAPI = 'https://www.googleapis.com/books/v1/volumes?q=';
67
                var gAPI = 'https://www.googleapis.com/books/v1/volumes?q=';
68
                if(self.type)
68
                if(self.type)
69
                    gAPI += self.type + ':';
69
                    gAPI += self.type + ':';
70
                gAPI += self.$elm.val();
70
                gAPI += self.$elm.val().replace(/\-/g, '');
71
                gAPI += '&maxResults=1';
71
                gAPI += '&maxResults=1';
72
                $.getJSON(gAPI, function (response) {
72
                $.getJSON(gAPI, function (response) {
73
                    if(response.totalItems == 0) {
73
                    if(response.totalItems == 0) {
74
- 

Return to bug 14242