Koha/koha-tmpl/opac-tmpl/bootstrap/en/includes
Owen Leonard 5bad8da970 Bug 26037: openlibrary.org is hit on every Koha requests
This patch moves the inclusion of Open Library JavaScript from
opac-bottom.inc to the three templates where it might be used.

In addition, the Open Library JS has been modified to check for the
existence of the relevant markup on the page before executing a query.

Unrelated: The Open Library label is now hidden when the status returned
is "Not found." Previously this information was displayed.

To test, apply the patch and enable the OpenLibrarySearch system
preference.

 - Perform a search in the OPAC which will return results from Open
   Library. Some ISBNs: 0140423826, 0395082552, 0679436405.
   - On the search result page there should be an Open Library "Read
     now" button for each result that can be opened for reading in Open
     Library.
 - Add these titles to a list and view the list.
   - The "Read now" button should appear on the list page.
 - View the details for one of these titles.
   - The "Read now" button should appear on the page below the holdings.
 - Watch the browser's developer tools on these and other pages in the
   OPAC. There should be no errors in the console and no 404 errors in
   the network tab.

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-08-06 11:37:07 +02:00
..
account-table.inc
authorities-search-results.inc
av-build-dropbox.inc
biblio-title-head.inc
biblio-title.inc
bodytag.inc Bug 25765: Replace LoginBranchname and LoginBranchcode with use of Branches template plugin 2020-07-23 11:17:27 +02:00
calendar.inc
columns_settings.inc Bug 24156: move ColumnsSettings to TablesSettings 2020-06-25 10:51:59 +02:00
datatables.inc Bug 25909: Recent change to datatables JS in the OPAC causes errors 2020-07-16 15:33:29 +01:00
date-format.inc
doc-head-close.inc Bug 25351: Move cart-related strings out of opac-bottom.inc and into basket.js 2020-07-30 17:44:27 +02:00
doc-head-open.inc
greybox.inc
holds-table.inc Bug 22672: Change <i> to <em> and <b> to <strong> in templates, includes, xslt 2020-06-29 12:37:02 +02:00
html_helpers.inc
i18n.inc
ill-availability-table.inc
item-status-schema-org.inc
item-status.inc
js-date-format.inc
masthead-langmenu.inc
masthead-sco.inc
masthead.inc Bug 23797: (follow-up) Enable OpacLoginInstructions in header 2020-07-23 11:33:34 +02:00
navigation.inc
opac-authorities.inc
opac-bottom.inc Bug 26037: openlibrary.org is hit on every Koha requests 2020-08-06 11:37:07 +02:00
opac-detail-sidebar.inc Bug 26094: Add class to the "Suggest for purchase" button 2020-08-03 11:30:43 +02:00
opac-facets.inc
opac-note.inc Bug 22672: Change <i> to <em> and <b> to <strong> in templates, includes, xslt 2020-06-29 12:37:02 +02:00
opac-topissues.inc Bug 25236: Fix semantic heading for opac-topissues.inc 2020-06-24 15:05:02 +02:00
openlibrary-readapi.inc
overdrive-checkout.inc
overdrive-login.inc
page-numbers.inc
password_check.inc
patron-title.inc
recordedbooks-checkout.inc
resort_form.inc
shelfbrowser.inc Bug 25984: Add minimum height and width to shelf browser covers 2020-07-20 17:45:31 +02:00
slip-print.inc
subtypes_unimarc.inc
title-actions-menu.inc
user-star-ratings.inc
usermenu.inc
xslt-handler.inc