Koha/cataloguing/value_builder
Marcel de Rooy 9fd673f34f Bug 14199: Unify marc orgcode plugins, not overwriting existing values
This patch copies code from marc21_field_003.pl to create marc21_orgcode.pl
for more generic use. Other fields like 040c or 040d should use it too.
Note: The plugin is used for authorities too (003, 040a).

One behaviour change is added: If the corresponding field is already
filled, it will not be overwritten.

In the unit test marc21_orgcode already replaces marc21_field_003.

Test plan:
[1] Attach plugin marc21_orgcode to a field (e.g. 003) and test it in
    the MARC editor of Cataloguing or Authorities.
[2] Check if a value is not overwritten any more.
[3] Run unit test t/db_dependent/FrameworkPlugin.t; don't be distracted by
    the noisy warnings of marc21_field_007.pl. They will be addressed on
    another report.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2016-02-26 14:04:28 +00:00
..
barcode.pl Bug 13813: Remove deprecated module C4::Dates from system 2015-09-18 12:40:55 -03:00
barcode_manual.pl Bug 13813: Remove deprecated module C4::Dates from system 2015-09-18 12:40:55 -03:00
callnumber-KU.pl Bug 14660: Fix 3 other cataloguing plugins 2015-08-20 13:40:56 -03:00
callnumber.pl Bug 14660: Fix 3 other cataloguing plugins 2015-08-20 13:40:56 -03:00
cn_browser.pl Bug 14737: wrong permissions required for cn_browser.pl plugin 2015-08-28 09:38:46 -03:00
dateaccessioned.pl Bug 13813: Remove deprecated module C4::Dates from system 2015-09-18 12:40:55 -03:00
EXAMPLE.pl Bug 10480: EXAMPLE plugin with associated template 2015-04-16 14:48:38 -03:00
macles.pl Bug 15258: Fix Perl scripts declaring unused variables 2015-12-30 17:24:45 -07:00
marc21_field_003.pl Bug 13437: Replace javascript function parameter in builder 2015-06-10 12:51:28 -03: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 13437: Replace javascript function parameter in builder 2015-06-10 12:51:28 -03:00
marc21_field_007.pl Bug 13437: Replace javascript function parameter in builder 2015-06-10 12:51:28 -03:00
marc21_field_008.pl Bug 13437: Replace javascript function parameter in builder 2015-06-10 12:51:28 -03:00
marc21_field_008_authorities.pl Bug 13437: Replace javascript function parameter in builder 2015-06-10 12:51:28 -03:00
marc21_field_040c.pl Bug 13437: Replace javascript function parameter in builder 2015-06-10 12:51:28 -03:00
marc21_field_040d.pl Bug 13437: Replace javascript function parameter in builder 2015-06-10 12:51:28 -03:00
marc21_field_245h.pl Bug 13437: Replace javascript function parameter in builder 2015-06-10 12:51:28 -03:00
marc21_leader.pl Bug 14201: Plugin marc21_leader_book is useless 2015-09-28 12:19:52 -03:00
marc21_leader_authorities.pl Bug 13437: Replace javascript function parameter in builder 2015-06-10 12:51:28 -03:00
marc21_linking_section.pl Bug 14828: Use Koha::ItemType[s] everywhere C4::ItemType was used 2016-01-27 20:46:58 +00:00
marc21_orgcode.pl Bug 14199: Unify marc orgcode plugins, not overwriting existing values 2016-02-26 14:04:28 +00:00
normarc_field_007.pl Bug 9978: (followup) Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:43 -03:00
normarc_field_008.pl Bug 9978: (followup) Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:43 -03:00
normarc_leader.pl Bug 9978: (followup) Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:43 -03:00
stocknumber.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
stocknumberam123.pl Bug 14660: Fix stocknumberam123.pl cataloguing plugin 2015-08-20 13:40:56 -03:00
stocknumberAV.pl Bug 14660: Fix stocknumberAV.pl cataloguing plugin 2015-08-20 13:40:56 -03:00
unimarc_field_4XX.pl Bug 14828: Use Koha::ItemType[s] everywhere C4::ItemType was used 2016-01-27 20:46:58 +00:00
unimarc_field_010.pl Bug 14660: Fix 3 other cataloguing plugins 2015-08-20 13:40:56 -03:00
unimarc_field_100.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_100_authorities.pl Bug 15193 - Perl scripts missing exec permission 2015-12-11 16:36:08 +00:00
unimarc_field_105.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_106.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_110.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_115a.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_115b.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_116.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_117.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_120.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_121a.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_121b.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_122.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_123a.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_123d.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_123e.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_123f.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_123g.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_123i.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_123j.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_124.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_124a.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_124b.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_124c.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_124d.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_124e.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_124f.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_124g.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_125.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_125a.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_125b.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_126.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_126a.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_126b.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_127.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_128a.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_128b.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_128c.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_130.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_135a.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_140.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_141.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_210c.pl Bug 15381: Remove getauthtypes and getauthtype 2015-12-31 18:59:02 +00:00
unimarc_field_210c_bis.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_225a.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_686a.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_field_700-4.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
unimarc_leader.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
upload.pl Bug 14321: Integrate Upload.pm into Koha 2015-09-25 12:02:52 -03:00