]> git.koha-community.org Git - koha.git/commit
Bug 14242: Use ISBN-field to automatically fill out purchase suggestions
authorMartin Stenberg <martin@xinxidi.net>
Wed, 26 Aug 2015 18:22:30 +0000 (20:22 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 3 May 2022 21:19:50 +0000 (11:19 -1000)
commitbdcf9a8a3fbc1a0dd9db8ef4213b21cea8f036dc
treec040ee00199238ac1d3c0812de569dea196b14d8
parent7e85abde99ce008f8eec79baef63020fd8a0dd38
Bug 14242: Use ISBN-field to automatically fill out purchase suggestions

Add new jQuery plugin "autofill" which transforms selected element(s)
into search fields for Google Books API and automatically fills
requested fields with search result.

Use in OPAC purchase suggestions to automatically fill out fields when
entering ISBN-number.

Test plan:
1. Run updatedatabase.pl
2. Enable system precference "OPACSuggestionAutoFill"
3. Log into OPAC and go to purchase suggestions page
4. Write a valid ISBN (such as 0-9690745-2-2 or 978-1-78416-110-1) into
   the ISBN field and click the 'search google books' button, or unfocus
   the field.
5. Title, Author, Publisher, publication year and Item Type fields should now be filled
   automatically.
6. Press "clear form" to undo - should restore all fields that the API pull
   filled to empty

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
installer/data/mysql/atomicupdate/bug_14242-autofill_syspref.perl [new file with mode: 0644]
installer/data/mysql/mandatory/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt
koha-tmpl/opac-tmpl/bootstrap/js/autofill.js [new file with mode: 0644]