Bug 30032 - Can't reserve from local holds group from OPAC
Summary: Can't reserve from local holds group from OPAC
Status: CLOSED WORKSFORME
Alias: None
Product: Koha
Classification: Unclassified
Component: Hold requests (show other bugs)
Version: master
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-04 20:35 UTC by Caroline Cyr La Rose
Modified: 2022-12-12 21:25 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Caroline Cyr La Rose 2022-02-04 20:35:25 UTC
This is my understanding of local hold groups: you can limit holds to users from a group of libraries to items from the same group of libraries. Maybe I misunderstand the local holds group functionality, but it doesn't seem to work with OPAC holds.

Here's what I did:
(note: OPACAllowUserToChooseBranch is set to don't allow)
(note bis: CircControl is set to library where the item is from)

1) Create a local hold group
   1- Go to Administration > Library groups
   2- Click "Add group"
   3- Fill out form
      - Name: RES
      - Description: For holds tests
      - Features: Is local hold group
   4- Click "Save"
   5- In the RES group, click "Add library" and choose "Centreville"
   6- In the RES group, click "Add library" and choose "Franklin"

2) Adjust circulation rules
   1- Go to Administration > Circulation and fines rules
   2- In "Select a library", choose "Franklin"
   3- In "Default checkout, hold and return policy for Franklin" (the second table), fill out like so 
      - Total current checkouts allowed: leave empty
      - Total current on-site checkouts allowed: leave empty
      - Maximum total holds allowed: leave empty
      - Hold policy: from local hold group
      - Hold pickup library match: item's hold group
      - Return policy: item returns home
   4- Click "Save"

(also make sure patrons can place holds from the opac, ideally on available items (on shelf holds), otherwise you will have to borrow the items before placing holds)

3) Create a Franklin patron
   1- Go to Patrons
   2- Click "New patron"
   3- Choose a category (that can place holds)
   4- Fill out mandatory fields, making sure the patron is attached to Franklin library (and note userid and password)
   5- Click "Save"

4) Create a Centreville patron
   1- Go to Patrons
   2- Click "New patron"
   3- Choose a category (that can place holds)
   4- Fill out mandatory fields, making sure the patron is attached to Centreville library (and note userid and password)
   5- Click "Save"

5) If none exist, catalog a record and add an item belonging to Franklin library
   1- Go to Cataloging
   2- Click "New record"
   3- Fill out mandatory fields (usually 000, 003, 005, 008, 040, 245, 942)
   4- Click "Save"
   5- In the item fields, change a and b to Franklin
   6- Click "Add item"
   7- Click "Normal"
   8- Click "OPAC view: Open in new window"
 
6) Try to place hold with Franklin patron
   1- Click "Place hold"
   2- Log in with Franklin patron
   3- Click "Confirm hold" 
      ---> Hold is placed successfully

7) Try to place hold with Centreville patron
   1- Log out from the Franklin patron's account
   2- Go back to the record
   3- Click "Place hold"
   4- Log in as Centreville patron
      ---> There are no items that can be placed on hold.
  

Am I wrong in thinking the Centreville patron should be able to place that item on hold because they are from the same hold group as the item? If not, am I doing something wrong in the process?
Comment 1 Jonathan Druart 2022-02-21 11:39:06 UTC
It's working for me on master, on which version of Koha did you try?
Comment 2 Caroline Cyr La Rose 2022-04-15 14:20:26 UTC
Must-ve been a glitch on my part. I can't recreate, now, and my colleague either, so... *shrugs*