Koha/cataloguing/value_builder
Jonathan Druart a3870cc25b Bug 30717: Format dates when editing items
This is a result of bug 29369 and bug 27526.
Bug 29369 removed the format of the dates, and bug 27526 assumed that it
was the correct behaviour.

Here we don't want to let the controller know which fields is a date, or
we will have to access the subfield structure to know which subfields
have the "date cataloguing plugin".

This patch suggests to use the altFormat options from flatpickr that
will "Show the user a readable date (as per altFormat), but return
something totally different to the server."

It's actually an option we want to use for all our dates, that will
reduce a lot the overhead in our controllers.

Test plan:
Edit items (additem.pl and in batch) and confirm that the subfields
using the dateaccessioned plugin are displayed according to the
dateformat syspref. Make sure the date is stored correctly.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2022-05-13 15:41:55 -10:00
..
barcode.pl Bug 29689: (bug 28445 follow-up) Fix AutoBarcode=hbyymmincr 2022-01-03 21:37:40 -10:00
barcode_manual.pl Bug 29689: (bug 28445 follow-up) Fix AutoBarcode=hbyymmincr 2022-01-03 21:37:40 -10:00
callnumber-KU.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
callnumber.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
cn_browser.pl Bug 29844: Fix ->search occurrences 2022-02-09 15:36:23 -10:00
dateaccessioned.pl Bug 30717: Format dates when editing items 2022-05-13 15:41:55 -10:00
EXAMPLE.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
marc21_field_005.pl Bug 25354: Clean up JavaScript markup in cataloging plugin scripts 2020-10-14 14:50:07 +02:00
marc21_field_006.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
marc21_field_007.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
marc21_field_008.pl Bug 27461: Right pad with default elements for too short 008s 2021-09-28 15:12:45 +02:00
marc21_field_008_authorities.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
marc21_field_008_classifications.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
marc21_field_245h.pl Bug 25354: Clean up JavaScript markup in cataloging plugin scripts 2020-10-14 14:50:07 +02:00
marc21_field_260b.pl Bug 15933: Add +x to the script 2020-09-28 11:08:03 +02:00
marc21_leader.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
marc21_leader_authorities.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
marc21_linking_section.pl Bug 29609: Centralized code to build the link to a biblio detail page 2022-04-08 15:49:16 +02:00
marc21_orgcode.pl Bug 25354: Clean up JavaScript markup in cataloging plugin scripts 2020-10-14 14:50:07 +02:00
stocknumber.pl Bug 25354: Clean up JavaScript markup in cataloging plugin scripts 2020-10-14 14:50:07 +02:00
stocknumberam123.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
stocknumberAV.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
unimarc_field_4XX.pl Bug 29609: Centralized code to build the link to a biblio detail page 2022-04-08 15:49:16 +02:00
unimarc_field_010.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_100.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_100_authorities.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_105.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_106.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_110.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_115a.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_115b.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_116.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_117.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_120.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_121a.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_121b.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_122.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_123a.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_123d.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_123e.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_123f.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_123g.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_123i.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_123j.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_124.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_124a.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_124b.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_124c.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_124d.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_124e.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_124f.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_124g.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_125.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_125a.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_125b.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_126.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_126a.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_126b.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_127.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_128a.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_128b.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_128c.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_130.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_135a.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_140.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_141.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_146a.pl Bug 30604: Add value builders for UNIMARC 146 ($a, $h and $i) 2022-05-06 10:33:10 -10:00
unimarc_field_146h.pl Bug 30604: Add value builders for UNIMARC 146 ($a, $h and $i) 2022-05-06 10:33:10 -10:00
unimarc_field_146i.pl Bug 30604: Add value builders for UNIMARC 146 ($a, $h and $i) 2022-05-06 10:33:10 -10:00
unimarc_field_210c.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_210c_bis.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_225a.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_225a_bis.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_686a.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_field_700-4.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_leader.pl Bug 28769: Remove tabloop from cataloguing plugins 2021-10-18 11:28:40 +02:00
unimarc_leader_authorities.pl Bug 28769: (QA follow-up) Fix another occurrence 2021-10-18 11:28:40 +02:00
upload.pl Bug 25354: Clean up JavaScript markup in cataloging plugin scripts 2020-10-14 14:50:07 +02:00