@@ -, +, @@
- A Flatpickr input with a "futuredate" class will require that the
selected date be after today.
- The Flatpickr input field will be wrapped in a container to
facilitate better CSS styling.
- Generic handling of paired date fields is enabled using
".flatpickrfrom" and ".flatpickrto" field classes. This mimics the
same feature we have for jQueryUI datepickers using ".datepickerfrom"
and ".datepickerto".
- Go to Circulation and check out to a patron.
- Open the Restrictions tab and click "Add manual restriction."
- In the "Expiration" field, test that the Flatpickr widget works
correctly and limits to dates after today.
- Enable the SpecifyDueDate preference if necessary.
- Test the behavior of the SpecifyDueDate controls: Setting a date,
clearing a date, session persistence.
- Enable the SuspendHoldsIntranet system preference if necessary.
- Check out to a patron with existing holds.
- Open the Holds tab and click the "Suspend" button for one of the
holds.
- In the modal window which appears, check that the Flatpickr
widget works correctly and limits to dates after today.
- At the bottom of the table of holds, test that the "Suspend all
holds" Flatpickr works correctly and limits to dates after
today.
- Perform this same test from the patron details page.
- Enable the BatchCheckouts system preference if necessary.
- Open a patron record and click "Batch check out" in the left-hand
sidebar menu.
- Test that the "Hard due date" Flatpickr works correctly as a date
and time picker.
- Go to Circulation -> Overdues.
- Test that the date due filters in the sidebar work correctly and
are linked, e.g. the "to" field cannot be before the "from" field.
- Perform the same test here: Circulation -> Holds to pull; and
here: Circulation -> Hold ratios.
- Enable the HouseboundModule system preference if necessary.
- Check out to or view details of a patron.
- Click "Housebound" in the sidebar menu.
- Save delivery day and frequency settings for that patron.
- Click "Add a new delivery."
- Test that the "Date" Flatpickr widget works correctly.
- Go to Patrons -> A patron record -> Edit.
- Test that Flatpickr widgets work on the following fields:
- Date of birth
- Registration date & Expiration date (linked).
- Patron restrictions -> Add manual restriction -> Expiration.
- View a bibliographic record and start the process of placing a hold.
- After selecting a patron, test the "Hold starts on" and "Hold
expires on" date fields. The fields should be linked and each
should limit to future dates.
- Confirm that the dates are saved correctly when you submit the
hold.
- Locate a bibliographic record with multiple holds and view the holds.
- In the table of holds, test each date field: Date, expiration, and
suspend-until.
- Test that Flatpickr's static "formatDate" method is working
correctly:
- Locate a bibliographic record's item so that there is text in both
the "Public note" and "Non-public note" field.
- Check that item out to a patron.
- After the page reloads the public and non-public notes should be
shown under the checkout title highlighted in red.
- Check for references to a "validate1" function. There should be none.
---
.../prog/css/src/_flatpickr.scss | 4 +++
.../prog/css/src/staff-global.scss | 7 +++-
.../prog/en/includes/borrower_debarments.inc | 6 ++--
.../prog/en/includes/calendar.inc | 19 ++++++++++
.../prog/en/includes/holds_table.inc | 10 +++---
.../prog/en/modules/circ/circulation.tt | 18 +---------
.../circ/circulation_batch_checkouts.tt | 12 +++----
.../prog/en/modules/circ/offline.tt | 9 -----
.../prog/en/modules/circ/overdue.tt | 4 +--
.../prog/en/modules/circ/pendingreserves.tt | 4 +--
.../prog/en/modules/circ/reserveratios.tt | 4 +--
.../prog/en/modules/members/housebound.tt | 4 +--
.../prog/en/modules/members/memberentrygen.tt | 10 +++---
.../prog/en/modules/members/moremember.tt | 11 +-----
.../prog/en/modules/reserve/request.tt | 36 ++++++++++++++-----
koha-tmpl/intranet-tmpl/prog/js/calendar.js | 8 -----
koha-tmpl/intranet-tmpl/prog/js/checkouts.js | 10 +++---
koha-tmpl/intranet-tmpl/prog/js/holds.js | 6 ++--
.../prog/js/pages/circulation.js | 32 +++++++----------
19 files changed, 106 insertions(+), 108 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/css/src/_flatpickr.scss
+++ a/koha-tmpl/intranet-tmpl/prog/css/src/_flatpickr.scss
@@ -958,3 +958,7 @@ span.flatpickr-weekday {
.flatpickr-day {
border-radius: 0;
}
+
+.flatpickr_wrapper {
+ white-space: nowrap;
+}
--- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss
+++ a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss
@@ -58,6 +58,10 @@ a {
&.clear_date {
color: #C33;
font-size: 130%;
+
+ &:hover {
+ color: #FF9090;
+ }
}
&.close {
@@ -219,7 +223,8 @@ aside {
width: 100%;
}
- .hasDatepicker {
+ .hasDatepicker,
+ .flatpickr-input {
margin-right: 3px;
width: calc(100% - 20px);
}
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc
+++ a/koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc
@@ -60,8 +60,10 @@