]> git.koha-community.org Git - koha.git/commit
Bug 10879: OverDrive should check for OverDriveLibraryID before performing search
authorOwen Leonard <oleonard@myacpl.org>
Tue, 19 Nov 2019 17:02:02 +0000 (17:02 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 4 Feb 2020 10:21:07 +0000 (10:21 +0000)
commit1bddf5f3bab01ce2151ccefa8982134509e3fac3
tree82140bdd547210cabd74d9463c8d6842f102a6ba
parentdb148eeff5b6e6fcfa5f7d0f47a3e43d0df5ea4e
Bug 10879: OverDrive should check for OverDriveLibraryID before performing search

This patch modifies the OPAC search results template to check for three
populated system preferences before performing an OverDrive search:
OverDriveLibraryID, OverDriveClientKey, and OverDriveClientSecret.
Previously OverDriveLibraryID was not checked, but without it the
interface reports an error performing the search.

To test you must have credentials for the OverDrive API as defined
in OverDriveClientKey, OverDriveClientSecret, and OverDriveLibraryID
system preferences.

 - With OverDriveLibraryID defined, the catalog search results page in
   the OPAC should show a link to results in the library's OverDrive
   collection.

 - With no value in the OverDriveLibraryID preference the catalog
   search page should not show any message about an OverDrive
   collection.

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
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/en/modules/opac-results.tt