From 64074d418cf79c088cf87f50e9d898049cf639bf 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. --- .../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 1840e2b791f..bf79c81e807 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 %]