Bug 22284: Add "patron's hold group" as new hold_fulfillment_policy option
authorAgustin Moyano <agustinmoyano@theke.io>
Tue, 28 May 2019 02:49:05 +0000 (23:49 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 3 Jan 2020 12:58:05 +0000 (12:58 +0000)
commit3b25ea7c94b4b23632e2bb0971dd3cf3e7c4f5c7
tree9e16732d8c33c90388825457985064ef526cf14c
parentda620fdf91278d7a5d9d57ff75a2659565aa995d
Bug 22284: Add "patron's hold group" as new hold_fulfillment_policy option

This patch adds "patron's hold group" as a new option to Hold pickup library match

To test:
1. Set ReservesControlBranch preference to item.
2. Create a hold group
3. Go to circulation and fines rules
SUCCESS => in 'Hold pickup library match' there is a new option called "patron's hold group"
4. In a library not in hold group set 'Hold policy' to "any" and 'Hold pickup library match' to "patron's hold group"
5. Search for a user in the hold group
6. 'Search to hold' for items of the library of step 4
7. Select an item and 'Place hold for [user]'
SUCCESS => in 'Pickup at' you should see patron's hold group as options
8. In OPAC sign in as the same user of step 5
9. Search for the item in step 7
SUCCESS => in 'Pick up locations' you should see patron's hold group as options
10. Sign off

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
C4/Reserves.pm
Koha/Item.pm
Koha/Libraries.pm
koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt
reserve/request.pl