]> git.koha-community.org Git - koha.git/commit
Bug 13437: Preliminary changes for marc21 plugins field 008
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Tue, 12 May 2015 15:49:04 +0000 (17:49 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 10 Jun 2015 15:51:26 +0000 (12:51 -0300)
commitefe52666259d533d2c0a375cb7c764dbff3a58d3
tree80cdf45a949a3034ba0f47fa1d7a31106b7bff0a
parentdb4dcb2c72398cd894e582ddd77bb330e242a09e
Bug 13437: Preliminary changes for marc21 plugins field 008

Preliminary work on marc21_field_008.pl and 008_authorities.pl.
Moving $dateentered en $defaultval to lower scope level.
date_entered is a new sub (in a module); sub Field008 has been reduced to
one line.
Added a trivial unit test for date_entered.
Note: the format used in date_entered could be added in DateUtils, moving
this logic to a better place.

Test plan:
Use both plugins in the marc21 editor (biblios/authorities).
Run the adjusted unit test.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Both plugins works, no errors

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Koha/Util/FrameworkPlugin.pm
cataloguing/value_builder/marc21_field_008.pl
cataloguing/value_builder/marc21_field_008_authorities.pl
t/Koha_Util_FrameworkPlugin.t