Bug 29369: Use Flatpickr in dateaccessioned cataloging plugin
authorOwen Leonard <oleonard@myacpl.org>
Fri, 29 Oct 2021 10:47:03 +0000 (10:47 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 3 Nov 2021 14:40:53 +0000 (15:40 +0100)
commitc2054efff2b7c068031afe0afca337cb884e06f9
tree9bde2c7d3b04236be23033058765325ebe3ad784
parent3bc141ae7d1af623b2501dd39ce10a508b7b230f
Bug 29369: Use Flatpickr in dateaccessioned cataloging plugin

This patch udpates the dateaccessioned cataloging plugin to use the
Flatpickr date picker instead of jQueryUI.

To test, apply the patch and open an item for editing in Cataloging.

- The date acquired field (952$d) should have flatpickr styling.
- Clicking in the field should populate the field with today's date and
  trigger the calendar popup.
- Clicking the "..." next to the field should populate the field (when
  empty) with today's date.
- Verify that tabbing from a different field into the date acquired
  field behaves the same as a click.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
cataloguing/value_builder/dateaccessioned.pl