Bug 31105: Holds to pull counts items from other branches when independentbranches...
authorShi Yao Wang <shi-yao.wang@inlibro.com>
Tue, 5 Jul 2022 16:03:52 +0000 (12:03 -0400)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 23 Sep 2022 12:44:18 +0000 (09:44 -0300)
commit87e589d79f134f77a12b6422fa6b4942a65bb283
treee80ac5e3dce5020dad9e68ba908acac254617968
parentda6426ad8b740b2dd445c69beeff62e1b208c3b8
Bug 31105: Holds to pull counts items from other branches when independentbranches is active

Holds to pull should not show items from other branches that shares a
record when IndependentBranches is active. Except for superlibrarians.

Test plan:
1- Have IndependentBranches set to Yes
2- Have a record with an item from the current branch and another item from a different branch. We will call them branch A and branch B respectively
3- Have a patron from branch A place a hold on that record
4- Have a staff account on branch A and B with the following permissions:
    - circulate (all)
    - catalogue
5- Go to circulation > holds to pull
6- Notice under "Libraries" it displays branch A and B. Also, it shows 2 under "Items available"
7- Checkout the item from branch A to another patron
8- Go back to circulation > holds to pull
9- Notice under "Libraries" it displays branch B even though we are in branch A
10- Apply the patch
11- Return the checked out item from step 7
12- Redo step 5 to 9 with superlibrarian privileges and notice nothing changed
13- Redo step 11-12 but using accounts from step 4 and notice Holds to
pull only shows information relevant to their branch

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Items.pm
circ/pendingreserves.pl