]> git.koha-community.org Git - koha.git/commit
Bug 36341: Add futureinclusive to future holds
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 18 Mar 2024 11:35:13 +0000 (11:35 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Tue, 28 May 2024 16:44:20 +0000 (16:44 +0000)
commit19fdbfa51975c8df652787a6a3ad4323f1fec2d3
tree8fe07a1e995963d7a3c7c9e4e67c79aa5bee0739
parent1a1313a9e05bdc98988fec27426c511d6534c69b
Bug 36341: Add futureinclusive to future holds

This patch adds the flatpickr-futureinclusive data to the input field
for "Hold starts on date" in the OPAC.

We also add 'flatpickr-future' data to the input field for expiration
date as it also doesn't make sense to allow this to be a past data
either.

Test plan
1) Attempt to place a hold on an item from the OPAC
2) Expand the 'Show more options' dropdown
3) Note that without the patch 'Hold not needed after' allows setting to
   a date in the past.
4) Enable `AllowHoldDateInFuture` and `OPACAllowHoldDateInFuture` system
   preferences
5) The 'Hold starts on date' option should now appear if you refresh
   your hold placing page in the OPAC.
6) Note that the above input also allows setting a past date
7) Apply patch
8) Neith input should allow past dates now.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit c16ec21f4b77971b19e5c4b5140521c4133f0608)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit e3bfca4f02b72e00909272fbfb5fc24abbab49a7)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt