]> git.koha-community.org Git - koha.git/commit
Bug 14783: Change pickup location from opac.
authorBjörn Nylén <bjorn.nylen@ub.lu.se>
Fri, 7 Oct 2022 11:22:19 +0000 (11:22 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 17 Oct 2022 18:26:59 +0000 (15:26 -0300)
commit4ef87fe837dfb00cf952450ec366955aa70a1eaa
tree4976107eb9d931813d710ddca02c94c9c555506b
parentace48e891118e862d1cf0a2fcc8b406267bce5f4
Bug 14783: Change pickup location from opac.

This patch allows users to change the  pickup location for their holds
from the opac. A syspref (OPACAllowUserToChangeBranch) controls at what
stage a hold can be changed.

To test:
1. Set up holds with diffrent statuses for a patron (pending, waiting,
   in transit, suspended)
2. No pickup locations for any hold should be able to be changed.
3. Turn on and off the different options under
   OPACAllowUserToChangeBranch. Make sure that only the corresponding
   holds can be changed from the opac. Check eg in the staff client that
   pickup location has changed.
4. The available pickup locations should respect any transfer
   restrictions. (Same as the
   holds list for a biblio in staff client)
5. For an in-transit hold: Check in the item at the original pickup
   location.
6. Note that it will be redirected to the new location.

Sponsored-by: Lunds Universitetsbibliotek
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Hold.pm
installer/data/mysql/atomicupdate/bug_14783-add_OpacAllowPickupLocationChange_syspref.perl [new file with mode: 0644]
installer/data/mysql/mandatory/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref
koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc
opac/opac-modrequest.pl