From 680c78e7519235590da1db637e85d57b144b738a 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. Signed-off-by: Paul Derscheid --- .../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 56c5302dd3..cc16fc0bed 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 %]