]> git.koha-community.org Git - koha.git/commit
Bug 27461: Right pad with default elements for too short 008s
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 19 Aug 2021 13:43:48 +0000 (13:43 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Sat, 9 Oct 2021 02:30:39 +0000 (16:30 -1000)
commit6dfb1864c7da744b1a6eb9986a5eaf6d6fe19bd7
tree13bca7350bb9bf3734147cde48bcfc26b02949ac
parent000b90ebb96bbfb9183f40392adfb82fbc834f17
Bug 27461: Right pad with default elements for too short 008s

Note that we treat the elements 18-34 as one block of elements,
since its subdivision may vary.
E.g. if you pass 24 characters to the form, it will use the first
18 chars (until the last complete element) and pad with default
elements from position 18-39.

Test plan:
[1] Go to addbiblio. Make sure that 008 is connected to the plugin.
[2] Backspace field 008 a bit, click on the plugin button.
[3] Verify that the last elements come from the default.
[4] Repeat for a few different lengths.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Phil Ringnalda <phil@chetcolibrary.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 1803e69b2f59b29fc1ea153054944cfecbcec909)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
cataloguing/value_builder/marc21_field_008.pl
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_008.tt