Bug 4839: Adjust default values for MARC21 authority Fixed-Length Data Elements
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Mon, 29 Nov 2010 13:29:34 +0000 (14:29 +0100)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 3 Aug 2011 21:58:42 +0000 (09:58 +1200)
commit6de831da03df679c770829277bb2ad20c5e4a7c4
tree6f8668d197047a3eb661a85f872ffe6eb1f427d2
parent32b8ff74fdbcec7ae3dcaff852f48ba5b5bc2bb7
Bug 4839: Adjust default values for MARC21 authority Fixed-Length Data Elements

Currently, the default for this MARC control field is hardcoded in the plugin code of marc21_field_008_authorities.pl (two occurrences).
This patch moves it into a new syspref. If this pref should not exist, the old hardcoded value is used. Authorities preference file is updated too.
A warning is generated if the length of the field is not correct.

Furthermore, the default for position 14 (heading use: main or added entry)
should be dependent on the authority type. For CHRON_TERM, GENRE/FORM and
TOPIC_TERM, it should be b (not appropriate) instead of a (appropriate).

Rebased on March 17. Follow-up patch added for installation pref.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
cataloguing/value_builder/marc21_field_008_authorities.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/authorities.pref