]> git.koha-community.org Git - koha.git/commit
Bug 29686: Adapt Koha to use new fulfillment API for OverDrive
authorNick Clemens <nick@bywatersolutions.com>
Mon, 13 Dec 2021 13:08:28 +0000 (13:08 +0000)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Mon, 21 Feb 2022 15:00:52 +0000 (15:00 +0000)
commit554d6ff354435037b189e1e4c2c614166fa99ffd
tree6b0f85fd1e233b76b7136b139c2af615069afaa1
parent7b8a548a8bcaa609ff7641b0b3e72e1ba18df63c
Bug 29686: Adapt Koha to use new fulfillment API for OverDrive

This patch modifies the checkout_download_url routine in
WebSerivce::ILS::OverDrive::Patron

We now directly hit the fulfillment endpoint with redirects disabled
and fetch the URL

The overdrive.js is modified to use a single 'Get item' button for all
checked out items and to refer to the fulfillment page

To test:
1 - Enable all OverDrive system preferences
2 - Search on opac and confirm OD results returned
3 - Checkout an item
4 - Confirm you have the new 'Get item' button on 'OverDrive account'
    tab on opac-user.pl
5 - Confirm the 'Get item' button works

NOTE:
Most items will also show the 'Get item' button in results, however,
magazines may not as each checkout has a unique 'reserve id' and the
'parent' id is not checked in our current code

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
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>
(cherry picked from commit 09a51041cdd241a78abf88321daac14e54af6f01)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Koha/ExternalContent/OverDrive.pm
koha-tmpl/opac-tmpl/bootstrap/js/overdrive.js
opac/svc/overdrive