]> git.koha-community.org Git - koha.git/commit
Bug 31262: Curbside pickup - Remove day without slots
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 4 Nov 2022 14:00:54 +0000 (15:00 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 10 Nov 2022 13:04:16 +0000 (10:04 -0300)
commitc164194f41ead0d3a9058d8a6951d0b98d1d97ef
tree62b0c848c0bf090108b27191ac2033446d9122d9
parent789984177242755b0bd0c6f460c333937dba65dd
Bug 31262: Curbside pickup - Remove day without slots

We disable dates from the date picker that do not have slots defined in
the configuration.

Note that dates that have slots configured but none are available will
still be displayed. To implement that we would need to calculate the
availability for all the dates displayed on the widget (1 month) and
that will (certainly) slow down considerabily the UI.

Test plan:
Configure curbside pickup for a given library. Define slots for several
days of the week (not all).
Schedule a pickup and confirm that only the days with slots defined are
available in the date picker widget

Sponsored-by: Association KohaLa - https://koha-fr.org/
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-curbside-pickups.tt