From 3475ef06d482657733ab57d15fa1f6e3d8b88c93 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 27 Mar 2024 22:04:07 +0000 Subject: [PATCH] Bug 34440: Add itemtype selection to bookings modal Whilst we still don't need to know the specific item we will need to know the itemtype to be able to fetch the correct circulation rules for adjusting the datepicker with lead and trail times. This patch adds such a picker option. You should be able to select the item or itemtype in either order.. selecting itemtype first will limit the items list to options available (and 'Any item').. upon selecting a specific item the itemtype selector should become disabled and reflect the itemtype of the item selected. Sponsored-by: Cuyahoga County Public Library Signed-off-by: Kristi Krueger Signed-off-by: Paul Derscheid Signed-off-by: Katrin Fischer --- .../prog/en/includes/modals/place_booking.inc | 9 ++ .../prog/js/modals/place_booking.js | 88 ++++++++++++++++++- 2 files changed, 95 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/modals/place_booking.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/modals/place_booking.inc index 873d97e68e..f9b662b5a1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/modals/place_booking.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/modals/place_booking.inc @@ -1,3 +1,4 @@ +[% USE ItemTypes %]