Bug 41993 - Add a page to show items available for bookings
Summary: Add a page to show items available for bookings
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: Circulation (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Thibaud Guillot (thibaud_g)
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-03-05 10:18 UTC by Thibaud Guillot (thibaud_g)
Modified: 2026-03-05 17:17 UTC (History)
2 users (show)

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Patch complexity: Small patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function: Bookings


Attachments
Bug 41993: Add datatable for items available for bookings (27.46 KB, patch)
2026-03-05 10:32 UTC, Thibaud Guillot (thibaud_g)
Details | Diff | Splinter Review
Bug 41993: Add a page to show items available for bookings (27.51 KB, patch)
2026-03-05 17:17 UTC, Owen Leonard
Details | Diff | Splinter Review
Bug 41993: (follow-up) Tidy and other QA fixes (28.53 KB, patch)
2026-03-05 17:17 UTC, Owen Leonard
Details | Diff | Splinter Review
Bug 41993: (follow-up) Fix markup of sidebar menu, correct Select2 style (16.14 KB, patch)
2026-03-05 17:17 UTC, Owen Leonard
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Thibaud Guillot (thibaud_g) 2026-03-05 10:18:05 UTC
Hello @ll

Like the datatable containing pending bookings, it may be useful to add a table displaying the list of bookable items. 

This would take into account specific rules (lead and trail periods) and be joined with current checkouts to certify their availability.
Comment 1 Thibaud Guillot (thibaud_g) 2026-03-05 10:32:44 UTC
Created attachment 194490 [details] [review]
Bug 41993: Add datatable for items available for bookings

Test plan:

1) Apply this patch, rebuild sources and restart_all
2) On Circulation module you will see a new links into "Holds and
   bookings" section, click on "Items available for bookings"
3) First of all the datatable list your bookable items but not filtered
4) On the left you have many filters for the datatable, please note that
   dates are modified on server side to include lead and trail periods
if they exist.

Sponsored by: Loire Forez Agglomération
Comment 2 Owen Leonard 2026-03-05 17:17:47 UTC
Created attachment 194543 [details] [review]
Bug 41993: Add a page to show items available for bookings

Test plan:

1) Apply this patch, rebuild sources and restart_all
2) On Circulation module you will see a new links into "Holds and
   bookings" section, click on "Items available for bookings"
3) First of all the datatable list your bookable items but not filtered
4) On the left you have many filters for the datatable, please note
   that dates are modified on server side to include lead and trail
   periods if they exist.

Sponsored by: Loire Forez Agglomération

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Comment 3 Owen Leonard 2026-03-05 17:17:49 UTC
Created attachment 194544 [details] [review]
Bug 41993: (follow-up) Tidy and other QA fixes

Fixing issues raised by the QA tool
Comment 4 Owen Leonard 2026-03-05 17:17:52 UTC
Created attachment 194545 [details] [review]
Bug 41993: (follow-up) Fix markup of sidebar menu, correct Select2 style

The library selection in the sidebar works better if we use Select2. I
made a corresponding minor change to select2.css.

This patch also restructures the in-page JavaScript so that template
variables are in a separate <script> block (see Bug 41563 etc.).