Koha-clms/cataloguing
Phil Ringnalda 45f423885a Bug 27738: Set fallback for unset DefaultCountryField008 to |||, "no attempt to code"
Current code intended to set a fallback of xxu, an unknown state in the US,
but because the preference is always defined, just sometimes unset, it
actually falls back to three spaces, an invalid value. This patch instead
uses the fallback value ||| which means no attempt to code.

Test plan:
1. Without the patch, verify that the value of the system preference
DefaultCountryField008 is empty.
2. Cataloging - New record - Default framework (if you have the Advanced
editor enabled, Settings - Switch to basic editor, this only applies to the
basic editor)
3. On tab 0, click in the text input for field 008 which fills in default
values, then click the Tag editor button at the end of the field
4. In the popup window, verify that the value for 15-17 is shown as ###
indicating three spaces
5. Apply patch, repeat the steps above, verify that the value is now |||

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit d5e7d37d8a)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit f1837739bb)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
2021-04-25 13:07:39 +00:00
..
value_builder Bug 27738: Set fallback for unset DefaultCountryField008 to |||, "no attempt to code" 2021-04-25 13:07:39 +00:00
addbiblio.pl Bug 27578: Initialize searchid as blank when not populated 2021-03-05 21:17:52 +00:00
addbooks.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
additem.pl Bug 25265: [20.05.x] Prevent double reindex of the same item in batchmod 2020-10-16 14:15:22 +00:00
editor.pl Bug 17515: Order Z3950 server by rank and preserve ordering 2020-11-16 18:31:26 +00:00
linkitem.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
merge.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
merge_ajax.pl Bug 14588: Simplify merge_ajax.pl 2015-08-21 10:21:39 -03:00
moveitem.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
plugin_launcher.pl Bug 16154: CGI->multi_param - Force scalar context 2016-04-26 23:16:43 +00:00
ysearch.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
z3950_auth_search.pl Bug 23997: Escape z3950servers.rank as it's a new MySQL 8 kw 2019-11-08 11:22:31 +00:00
z3950_search.pl Bug 21921: Add date publication year to biblio Z39.50 search form 2020-02-17 13:44:23 +00:00