Bug 29320: Update OverDrive availability to V2
authorNick Clemens <nick@bywatersolutions.com>
Tue, 26 Oct 2021 11:22:04 +0000 (11:22 +0000)
committerKyle Hall <kyle@bywatersolutions.com>
Mon, 7 Feb 2022 15:41:50 +0000 (10:41 -0500)
commit3eb290c949547d3fd55c6cc4c248fa457d3ba3a7
tree660fba0f86caf632b300fbc2758eaea82e7c3fac
parent8a93db673356b70364b22572c5f893fea154040f
Bug 29320: Update OverDrive availability to V2

This patch updates the call to overdrive_proxy to allow passing a version
and updates the code to use V2 for availability

To test:
1 - Enable OverDrive integration by setting the sysprefs
2 - Log in to your overdrive account in the Koha opac
3 - Perform a search and note availability display
4 - Confirm you can checkout/hold/return books
5 - Apply patch
6 - Repeat search and test functionality
7 - Note that title with '0 out of 0 copies available' now say 'Currently unavailable'

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-overdrive-search.tt
koha-tmpl/opac-tmpl/bootstrap/js/overdrive.js
opac/svc/overdrive_proxy