Bug 30500: Allow patrons to change in transit holds pickup locations
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 8 Jun 2022 20:26:43 +0000 (17:26 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 5 Aug 2022 14:54:54 +0000 (11:54 -0300)
commit6215f9a0e17444d3178b85cfcc1df33fd4644e8f
treee0562676c5c6ceab71bb3c5499414de3ad2bd3c0
parent1ae7b9055ac9b1e3252f9e75813b7a8536382d64
Bug 30500: Allow patrons to change in transit holds pickup locations

This patch adds a way for patrons to change the pickup location for in
transit holds.

This is done in the OPAC on the holds table.

The feature is controlled by a new system preference:

* OPACInTransitHoldPickupLocationChange

To test:
1. Apply this patches
2. Run:
   $ updatedatabase
   $ restart_all
=> SUCCESS: system preference added
3. Have an in-transit hold for a known patron
4. Visit the holds table for the patron (OPAC)
=> SUCCESS: Hold in transit, cannot change pickup location
5. Enable the OPACInTransitHoldPickupLocationChange system preference
=> SUCCESS: Descriptive text makes sense and is idiomatic
6. Reload the OPAC page
=> SUCCESS: You can now choose a new pickup location
7. Choose one
=> SUCCESS: It works! Reloaded page pre-selects the new pickup location
8. Switch to the new pickup location library on the staff interface
9. Go to Circulation > Transfers to receive
=> SUCCESS: The hold is there!
10. Scan the hold
=> SUCCESS: Usual workflow follows
11. Sign off :-D

Sponsored-by: Montgomery County Public Libraries
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc
opac/opac-modrequest.pl