Bug 42000

Summary: Add info about bookings on result page
Product: Koha Reporter: Thibaud Guillot (thibaud_g) <thibaud.guillot>
Component: CatalogingAssignee: Thibaud Guillot (thibaud_g) <thibaud.guillot>
Status: Needs Signoff --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: m.de.rooy
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 42000: Add bookings count info on result page

Description Thibaud Guillot (thibaud_g) 2026-03-05 13:59:12 UTC
Hello @ll,

I could be helpful to add info about bookings count related to biblio items on result page, like "Holds".
Comment 1 Thibaud Guillot (thibaud_g) 2026-03-05 14:09:09 UTC
Created attachment 194510 [details] [review]
Bug 42000: Add bookings count info on result page

Display number of bookings if:
- items are bookable and syspref booking enabled of course
- at least on item is available for booking
- exclude past bookings and completed bookings (checked out normally)

Test plan:

1) Apply this patch and restart_all
2) Perform a search and see new bookings count info

Display number of bookings if:
- items are bookable
- at least on item is available for booking
- exclude past bookings and completed bookings (checkouts normally)

Sponsored by: Association de Gestion des Ĺ’uvres Sociales d'Inria (AGOS)