[Koha-bugs] [Bug 33074] New: ReservesControlBranch not taken into account in opac-reserve.pl
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Feb 27 10:04:08 CET 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33074
Bug ID: 33074
Summary: ReservesControlBranch not taken into account in
opac-reserve.pl
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: ASSIGNED
Severity: normal
Priority: P5 - low
Component: Hold requests
Assignee: julian.maurice at biblibre.com
Reporter: julian.maurice at biblibre.com
QA Contact: testopia at bugs.koha-community.org
CC: gmcharlt at gmail.com
In opac-reserve.pl there is this line:
my $rule = GetBranchItemRule( $patron->branchcode, $type );
$patron->branchcode should be replaced by the result of
GetReservesControlBranch
Test plan:
1. Set system preferences:
- Disable OPACAllowUserToChooseBranch
- Set ReservesControlBranch to "item's home library"
- Enable UseBranchTransferLimits
- Set BranchTransferLimitsType to "item type"
- Enable canreservefromotherbranches
- Disable IndependantBranches
2. Create two libraries: ITEM_LIB and PATRON_LIB
3. Set circulation rules:
- Remove all circulation rules (DELETE FROM circulation_rules)
- Set a default rule that allow some holds and with "OPAC item level holds"
= "force". Allow "on shelf" holds for easier testing.
- In the rules for ITEM_LIB, under "Default checkout, hold and return
policy",
- set "Hold policy" to "From any library"
- set "Hold pickup library match" to "item's home library"
- In the rules for PATRON_LIB, under "Default checkout, hold and return
policy",
- set "Hold policy" to "From any library",
- set "Hold pickup library match" to "any library"
4. In "Library transfer limits" disable all transfers from ITEM_LIB to
PATRON_LIB for an item type (let's say "BOOK")
5. Create a biblio with an item:
- item type must be the same as in previous step ("BOOK")
- home branch and holding branch must be ITEM_LIB
6. Create a patron at PATRON_LIB, give it a password so it can log in.
7. Go to OPAC, and login with this patron
8. Try to place a hold for the new item. You should be allowed to place a hold,
but when doing it, no holds will be created.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list