]> git.koha-community.org Git - koha.git/commit
Bug 23820: Add checkout to default to patron's home branch on club hold
authorAgustin Moyano <agustinmoyano@theke.io>
Mon, 30 Mar 2020 18:56:18 +0000 (18:56 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 20 Jul 2020 15:45:30 +0000 (17:45 +0200)
commit8ed09ff7de47e7752d2fcb0a5aff183e07f4e5f3
tree5f83c35485f571c4c650b5a751c030a00f21bdc6
parentf623494598550a1cec734b6f0f0dd3d72a5b9da8
Bug 23820: Add checkout to default to patron's home branch on club hold

This patch adds a checkbox to make holds created by club hold to default to patron's home branch if possible.

To test:
1. Apply this patch
2. Create a club, and add two patrons (from now on called patron A and patron B) to it, each one form a different library..
3. Create a hold for the club, and in the details set pickup location different from any of the patrons.
4. Check "Pickup at patron's home library when possible" checkbox
SUCCESS => when submitted, pickup location of holds defaults to patron's home branch
5. Modify patron A's library and set pickup location to no.
6. Repeat steps 3 and 4.
SUCCESS => when submitted, patron A's hold now points to pickup location setted on step 3, and patron B's hold still points to his home branch.
7. Sign off

Sponsored-by: Southeast Kansas Library - SEKLS
Signed-off-by: Jason Robb <jrobb@sekls.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Club/Hold.pm
Koha/REST/V1/Clubs/Holds.pm
api/v1/swagger/paths/clubs.json
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt