Bug 24957: OpenLibrarySearch shouldnt display if nothing is returned
authorLucas Gass <lucas@bywatersolutions.com>
Tue, 21 Apr 2020 20:11:17 +0000 (20:11 +0000)
committerJoy Nelson <joy@bywatersolutions.com>
Fri, 8 May 2020 20:49:33 +0000 (20:49 +0000)
commita656ccf5376287c9a572e2db4771dae12a4c1afa
tree89db450f798747faeefc8a72d9248e70e1066995
parent77a59b5b3ab8a8870ca9bf9842d1ad30104a05d3
Bug 24957: OpenLibrarySearch shouldnt display if nothing is returned

TO TEST:
1. Turn on OpenLibrarySearch
2. Do an OPAC search that returns results that have results with Open Library results and some that do not.
3. Notice results that return nothing simpliy say "Open Library:" with nothing afterwards.
4. Some results return a png from OpenLibrary or "Not found"
5. Apply patch and look at records again.
6. The results that return nothing for OpenLibrary API should now to hidden.

Signed-off-by: Heather Hernandez <heather_hernandez@nps.gov>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/opac-tmpl/bootstrap/js/openlibrary.js