Bug 39872 - Patron club holds - autocomplete does not work as expected (like patron name autocomplete)
Summary: Patron club holds - autocomplete does not work as expected (like patron name ...
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Hold requests (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-09 19:22 UTC by David Nind
Modified: 2025-05-09 19:23 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Nind 2025-05-09 19:22:08 UTC
When placing a hold for a patron club, the autocomplete for the patron club does not work in the same way that searching for a patron does.

The text on the clubs tab says "Enter club ID or partial name". I would expect this to work the same way or similar to the patron autocomplete.

What happens instead:
1. If there is only one club that matches, the hold details page is populated with the club details and members.
2. If there is more than one matching club, or you press search without any search text, it lists the available clubs.

To replicate:
1. Create a patron club:
   1.1 Go to Tools > Patrons and circulation > Patron clubs
   1.2 Add a club template: 
       . + New club template 
       . Name: BOOK
       . Description: Template for book clubs
       . Save
   1.3 Add a club:
       . + New club > BOOK
       . Name: SCIFI
       . Description: Science fiction book club
       . Save
2. Add a patron to the club:
   2.1 Go to a patron's record, for example Mary Burton
   2.2 Go to Details > Clubs tab
   2.3 Click + Enroll for the SCIFI club
   2.4 Click Finish enrollment to complete the enrollment
3. Place a hold for a club:
   3.1 Go to any record with items, for example 'The hydrogen sonata' (biblionumber = 333)
   3.2 Place a hold: Place hold
   3.3 Click the clubs tab
   3.4 Note that the instructions say "Enter club ID or partial name"
   3.5 Start typing science or sci
   3.6 Note that no values are shown, like search for a patron name does on the patrons tab
   3.7 Click search
   3.8 Since there is only one club, it populates the hold details page and lists the club members
   3.9 Note that if you don't type anything and click search, you get a list of all clubs to choose from