Bug 30775: Make 952w to have datepicker plugin by default
authorPetro Vashchuk <stalkernoid@gmail.com>
Mon, 16 May 2022 14:04:18 +0000 (17:04 +0300)
committerArthur Suzuki <arthur.suzuki@biblibre.com>
Thu, 11 Aug 2022 13:04:44 +0000 (15:04 +0200)
commit9f79d77171bb72e401cd57a67de0d738e0c72d87
tree7a137fc44654e758ee056df0fce3964ed460586c
parent1db8ca9888e317fe3ab9733f646ae1a0b093977d
Bug 30775: Make 952w to have datepicker plugin by default

This field (Price effective from) is very similar to 952d,
but it doesn't have dateaccessioned.pl plugin by default,

Apart of worse usability of this it is also allows to enter wrong
date which will be converted in 0000-00-00 in DB and even lead to
crashes by code in other places.

So, adding this plugin not only improves usability (user can have
datepicker) but also adds date field validation.

Test plan:
1. Head over to MARC frameworks from your administration page,
check 952 subfield structure of your default framework structure.
2. dateaccessioned.pl is set as a plugin for 952d by default
but is missing from 952w.
3. Apply the patch and reset your koha, drop db and use reset_all alias.
4. Check frameworks structure again and ensure that datepicker plugin
is set by default for 952w.
5. Edit some item to ensure that datepicker works for that 952w.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit b25dfb50a10390e1fa4f66c40ecc6da7aeb3af79)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 588377511b082de88347f928b9784c7fb689fddf)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
installer/data/mysql/en/marcflavour/marc21/mandatory/marc21_framework_DEFAULT.yml