]> 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)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 27 Jul 2020 16:40:08 +0000 (16:40 +0000)
commitd0d6b45178e9161e54a537322388bfe29a848833
treeabbe8758bc1230f1046066fbb7fb6ac5e7e2eafc
parent3d627c382319ecd2be731407964c4d98277ea2d0
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>
(cherry picked from commit 8ed09ff7de47e7752d2fcb0a5aff183e07f4e5f3)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
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