Bugzilla – Attachment 90160 Details for
Bug 14242
Use ISBN-field to fill out purchase suggestions using Google Books API
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14242: (follow-up) Strip hyphen from ISBN for search purposes
Bug-14242-follow-up-Strip-hyphen-from-ISBN-for-sea.patch (text/plain), 1.12 KB, created by
Owen Leonard
on 2019-05-28 15:09:54 UTC
(
hide
)
Description:
Bug 14242: (follow-up) Strip hyphen from ISBN for search purposes
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2019-05-28 15:09:54 UTC
Size:
1.12 KB
patch
obsolete
>From 85c4799a72b3690d4151a98a7fd49b07b2ede0e4 Mon Sep 17 00:00:00 2001 >From: Chris Cormack <chrisc@catalyst.net.nz> >Date: Thu, 6 Oct 2016 21:48:10 +1300 >Subject: [PATCH] Bug 14242: (follow-up) Strip hyphen from ISBN for search > purposes > >To test, enter a valid ISBN complete with - >eg >978-1-78416-110-1 > >The search should still work > >Signed-off-by: Marc <veron@veron.ch> >--- > koha-tmpl/opac-tmpl/bootstrap/js/autofill.js | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/autofill.js b/koha-tmpl/opac-tmpl/bootstrap/js/autofill.js >index 171cc93..23ef57a 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/js/autofill.js >+++ b/koha-tmpl/opac-tmpl/bootstrap/js/autofill.js >@@ -67,7 +67,7 @@ > var gAPI = 'https://www.googleapis.com/books/v1/volumes?q='; > if(self.type) > gAPI += self.type + ':'; >- gAPI += self.$elm.val(); >+ gAPI += self.$elm.val().replace(/\-/g, ''); > gAPI += '&maxResults=1'; > $.getJSON(gAPI, function (response) { > if(response.totalItems == 0) { >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 14242
:
42002
|
55949
|
56061
|
56062
|
56070
|
56071
|
56072
|
56073
|
56074
|
56075
|
84760
|
84761
|
84762
|
84763
|
84764
|
84840
|
85031
|
85032
|
85033
|
85034
|
85035
|
89643
|
89662
|
90157
|
90158
|
90159
|
90160
|
90161
|
90162
|
90250
|
90251
|
90252
|
90253
|
90254
|
90255
|
103527
|
103528
|
103529
|
103530
|
103531
|
103532
|
103533
|
108695
|
108696
|
108697
|
108698
|
108699
|
108700
|
108701
|
110141
|
110142
|
110143
|
110144
|
110145
|
110146
|
110147
|
110148
|
110493
|
110494
|
110495
|
110496
|
110497
|
110498
|
110499
|
110500
|
110501
|
110990
|
112597
|
112598
|
112599
|
112600
|
112601
|
112602
|
112603
|
112604
|
112605
|
112606
|
112607
|
113162
|
113163
|
113164
|
113165
|
113166
|
113167
|
116620
|
116712
|
116968
|
116989
|
125380
|
125381
|
125382
|
131219
|
131220
|
131221
|
131222
|
133985
|
133986
|
133987
|
133988
|
134273
|
134274
|
134275
|
134276
|
134277
|
134278