Koha/cataloguing/value_builder
Alex Buckley bd197c6456 Bug 29815: Pre-populate 'Date acquired' field when adding/editing items
This patch pre-fills the 952$d (Date acquired) item subfield on page
load. Users can still click on the field to fill this subfield.

Test plan:
1. Visit a biblio. Add an item, observe on page load the 'Date acquired' subfield is
empty
2. Visit a subscription. Receive a serial, observe after setting the serial status to 'Arrived' the item form loads with an empty 'Date acquired' subfield
3. Apply patch and restart services
4. Repeat step 1 and confirm now on page load the 'Date acquired'
subfield populates with today's date
5. Delete the populated 'Date acquired' subfield value. Click in the
field and confirm the field is populated and the calendar input displays
6. Delete the 'Date acquired' subfield value again. Confirm that tabbing
from a different field into the date acquired field behaves the same as
click
7. Repeat step 2. This time confirm on page load the 'Date acquired' subfield
contains the current date
8. Delete the populated 'Date acquired' subfield value. Click in the
field and confirm it is populated
9. Delete the populated 'Date acquired' subfield value. Tab to the field
from another field and confirm it behaves the same as click
10. Visit a biblio. Edit an item with a date acquired value in
the past. Confirm the date acquired value is unchanged after saving.

Sponsored-By: Brimbank Library, Australia

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2022-04-20 20:43:14 -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 29815: Pre-populate 'Date acquired' field when adding/editing items 2022-04-20 20:43:14 -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
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_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