]> git.koha-community.org Git - koha.git/commit
Bug 27739: Advanced editor should use DefaultCountryField008 preference
authorPhil Ringnalda <phil@chetcolibrary.org>
Thu, 1 Apr 2021 18:36:43 +0000 (11:36 -0700)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Sun, 25 Apr 2021 16:04:42 +0000 (16:04 +0000)
commite443ea22ed64b7bf25ef3ed2e86ccb8a5ef7c128
tree142dfb597663c3ff5e18429fb9f5cf525af31763
parent5b7c5fbf97b956587c96590c2998954c17cd7a3d
Bug 27739: Advanced editor should use DefaultCountryField008 preference

Uses the system preference DefaultCountryField008, falling back to ||| (no
attempt to code) if it is not set, for 008/15-17 place of publication in
the advanced cataloging editor..

Test plan:
1) Apply patch and restart all the things, something's over-cached here
2) Administration - Toggle the preference  EnableAdvancedCatalogingEditor
   to "Enable", verify the preference DefaultCountryField008 is empty
3) Cataloging - Advanced editor
4) In field 008, verify that the three characters after the two sets of
   four blank spaces are |||
5) Administration - Set DefaultCountryField008 to fr
6) Cataloging - Advanced editor
7) In field 008, verify that the three characters after the two sets of
   four blank spaces are "fr " (including the space, so following
   characters haven't shifted left, and the last character is still d)

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 53e1002e1110896ca96624a7bcf616afa18879b7)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 5e260c39b1dafd6140d4427d8a4b9862fe361e79)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
cataloguing/editor.pl
koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-widgets-marc21.inc