Koha-clms/cataloguing/value_builder
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
..
EXAMPLE.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
barcode.pl Bug 22721: Remove frameworkcode parameter in GetMarcFromKohaField calls 2019-07-15 11:28:08 +01:00
barcode_manual.pl Bug 24503: fix missing use in value builder barcode_manual.pl 2020-01-24 15:18:41 +00:00
callnumber-KU.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
callnumber.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
cn_browser.pl Bug 26605: Correctly URI-encode query string in call number browse plugin 2020-11-16 18:43:41 +00:00
dateaccessioned.pl Bug 7806: [20.05] Fix remaining occurrences of 0000-00-00 2021-03-08 14:26:22 +00:00
macles.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
marc21_field_005.pl Bug 13437: Replace javascript function parameter in builder 2015-06-10 12:51:28 -03:00
marc21_field_006.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
marc21_field_007.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
marc21_field_008.pl Bug 27738: Set fallback for unset DefaultCountryField008 to |||, "no attempt to code" 2021-04-25 13:07:39 +00:00
marc21_field_008_authorities.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
marc21_field_008_classifications.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
marc21_field_245h.pl Bug 13437: Replace javascript function parameter in builder 2015-06-10 12:51:28 -03:00
marc21_field_260b.pl Bug 15933: Add +x to the script 2020-10-16 14:52:21 +00:00
marc21_leader.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
marc21_leader_authorities.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
marc21_linking_section.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
marc21_orgcode.pl Bug 10132: Add ability to set MARC Organization Code at library level 2017-09-19 09:47:27 -03:00
normarc_field_007.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
normarc_field_008.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
normarc_leader.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
stocknumber.pl Bug 16203: Convert item plugins to new style (see bug 10480) 2016-12-16 11:55:27 +00:00
stocknumberAV.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
stocknumberam123.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_4XX.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_010.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_100.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_100_authorities.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_105.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_106.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_110.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_115a.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_115b.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_116.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_117.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_120.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_121a.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_121b.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_122.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_123a.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_123d.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_123e.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_123f.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_123g.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_123i.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_123j.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_124.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_124a.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_124b.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_124c.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_124d.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_124e.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_124f.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_124g.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_125.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_125a.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_125b.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_126.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_126a.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_126b.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_127.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_128a.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_128b.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_128c.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_130.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_135a.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_140.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_141.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_210c.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_210c_bis.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_225a.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_225a_bis.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_686a.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_field_700-4.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
unimarc_leader.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
upload.pl Bug 16314: Show upload link for upload plugin in basic MARC editor 2020-09-14 22:09:49 +00:00