Koha/cataloguing/value_builder
David Cook e897e11c65 Bug 9093 - 008 forgetting what material type was chosen
This patch adds material type checking to the MARC21 008 tag editor,
based on value from the leader. That is, the 008 tag editor
will choose an initial material type based on the leader 06
(and if necessary the leader 07 position)

_TEST PLAN_
1) Create a new record or open an existing bib record
2) Change position 6 from its current value (probably "a") to
"c" or "e" or "g" or "m" or "p". (See the end of this message
for a comprehensive list of 06 values to try.)
3) Open the 008 tag editor
4) Note that it still says BKS even though it should say "MU"
or "MP" or "VM" or "CF" or "MX".

5) Apply the patch

6) Repeat steps 2 and 3.
7) Note that the 008 tag editor now shows the correct material
type based on the leader.

8) For more comprehensive checking, try switching position 6
back to "a" and changing position 7 to "b" instead of "m".
9) Note that it will switch from "BKS" to "CR".
10) Fin

Comprehensive mapping:

Field 008/18-34 Configuration
If Leader/06 = a and Leader/07 = a, c, d, or m: Books
If Leader/06 = a and Leader/07 = b, i, or s: Continuing Resources
If Leader/06 = t: Books
If Leader/06 = c, d, i, or j: Music
If Leader/06 = e, or f: Maps
If Leader/06 = g, k, o, or r: Visual Materials
If Leader/06 = m: Computer Files
If Leader/06 = p: Mixed Materials
http://www.loc.gov/marc/bibliographic/bdleader.html

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Work as described, nice job.
koha-qa complains for a tab char, removed on followup.
Mode change on TT file (+x), removed.
No other errors

NOTE: It would be desirable to update LEADER values
to reflect changes on 008.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Awesome work David.
2014-06-21 10:50:32 -03:00
..
barcode.pl Bug 8524: Followup FIX an undeclared variable $query 2012-08-31 17:42:46 +02:00
barcode_manual.pl Bug 8524 follow-up: fix Javascript syntax error 2012-08-31 17:42:48 +02:00
callnumber-KU.pl Bug 9773 - Replace YUI AJAX calls in cataloging plugins with jQuery 2013-05-29 08:30:32 -07:00
callnumber.pl Bug 9773 - Replace YUI AJAX calls in cataloging plugins with jQuery 2013-05-29 08:30:32 -07:00
dateaccessioned.pl Bug 6125: repairs dateaccessioned plugin 2012-03-22 16:18:38 +01:00
labs_theses.pl Fix for Bug 2947, value_builder scripts using authnotrequired 2010-10-06 08:20:23 -04:00
macles.pl Bug 6679 : Tidying changed parts of file 2011-11-06 18:19:19 +01:00
marc21_field_003.pl Bug 5385: POD Cleanups (part 1) 2010-11-12 10:06:55 +13:00
marc21_field_005.pl Bug 5374 (update transaction date when saving biblio) RESENT with small fix 2011-01-05 08:42:47 +13:00
marc21_field_006.pl Bug 10592: fix MARC21 006/008 cataloging plugins 2013-07-22 14:00:23 +00:00
marc21_field_007.pl Bug 10715 - MARC21 007 Plugin Editor doesn't load position 01 2013-08-16 14:13:59 +00:00
marc21_field_008.pl Bug 9093 - 008 forgetting what material type was chosen 2014-06-21 10:50:32 -03:00
marc21_field_008_authorities.pl 8627 Followup for removing tabs 2012-09-18 12:29:37 +02:00
marc21_field_040c.pl Bug 2505 - Add commented use warnings where missing in the cataloguing/ directory 2010-04-21 20:27:05 +12:00
marc21_field_040d.pl Bug 5385: POD Cleanups (part 2) 2010-11-12 10:06:56 +13:00
marc21_field_245h.pl Bug 5385: POD Cleanups (part 2) 2010-11-12 10:06:56 +13:00
marc21_leader.pl Bug 5385: POD Cleanups (part 1) 2010-11-12 10:06:55 +13:00
marc21_leader_authorities.pl Bug 5385: POD Cleanups (part 1) 2010-11-12 10:06:55 +13:00
marc21_leader_book.pl Bug 5385: POD Cleanups (part 1) 2010-11-12 10:06:55 +13:00
marc21_leader_computerfile.pl Bug 5385: POD Cleanups (part 1) 2010-11-12 10:06:55 +13:00
marc21_leader_video.pl Bug 5385: POD Cleanups (part 1) 2010-11-12 10:06:55 +13:00
marc21_linking_section.pl Bug 11096: support the retrieval of large MARCXML records 2014-02-28 19:50:09 +00:00
normarc_field_007.pl Bug 3644 Add support for NORMARC 2011-03-30 10:13:37 +02:00
normarc_field_008.pl Bug 7055 - NORMARC: Fix 008 position 15-17 and 35-37 2013-05-01 07:45:21 -04:00
normarc_leader.pl Bug 7054 - NORMARC: Fix default for 000 position 17 2013-05-01 07:47:52 -04:00
stocknumber.pl Bug 6679: fix missing use strict 2011-12-09 09:49:22 +01:00
stocknumberam123.pl Bug 9773 - Replace YUI AJAX calls in cataloging plugins with jQuery 2013-05-29 08:30:32 -07:00
stocknumberAV.pl Bug 7992: New plugin stocknumberAV 2012-10-02 17:19:55 +02:00
unimarc_field_4XX.pl Bug 11096: support the retrieval of large MARCXML records 2014-02-28 19:50:09 +00:00
unimarc_field_010.pl Bug 9773 - Replace YUI AJAX calls in cataloging plugins with jQuery 2013-05-29 08:30:32 -07:00
unimarc_field_100.pl Bug 8347 - Koha forces UNIMARC 100 field code language to 'fre' 2013-02-20 09:06:09 -05:00
unimarc_field_100_authorities.pl Bug 8334 - Authority UNIMARC 100 field plugin 2013-12-13 16:31:16 +00:00
unimarc_field_105.pl Bug 6465 - Errors in UNIMARC plugins for fixed length fields (for | and space) (T::T issue) 2011-09-26 14:32:32 +13:00
unimarc_field_106.pl Bug 5385: POD Cleanups (part 2) 2010-11-12 10:06:56 +13:00
unimarc_field_110.pl Bug 6465 - Errors in UNIMARC plugins for fixed length fields (for | and space) (T::T issue) 2011-09-26 14:32:32 +13:00
unimarc_field_115a.pl Bug 6465 - Errors in UNIMARC plugins for fixed length fields (for | and space) (T::T issue) 2011-09-26 14:32:32 +13:00
unimarc_field_115b.pl Bug 6465 - Errors in UNIMARC plugins for fixed length fields (for | and space) (T::T issue) 2011-09-26 14:32:32 +13:00
unimarc_field_116.pl Bug 6465 - Errors in UNIMARC plugins for fixed length fields (for | and space) (T::T issue) 2011-09-26 14:32:32 +13:00
unimarc_field_117.pl Bug 6465 - Errors in UNIMARC plugins for fixed length fields (for | and space) (T::T issue) 2011-09-26 14:32:32 +13:00
unimarc_field_120.pl Bug 6465 - Errors in UNIMARC plugins for fixed length fields (for | and space) (T::T issue) 2011-09-26 14:32:32 +13:00
unimarc_field_121a.pl Bug 6465 - Errors in UNIMARC plugins for fixed length fields (for | and space) (T::T issue) 2011-09-26 14:32:32 +13:00
unimarc_field_121b.pl Bug 5385: POD Cleanups (part 2) 2010-11-12 10:06:56 +13:00
unimarc_field_122.pl Bug 5385: POD Cleanups (part 2) 2010-11-12 10:06:56 +13:00
unimarc_field_123a.pl Bug 5385: POD Cleanups (part 2) 2010-11-12 10:06:56 +13:00
unimarc_field_123d.pl Bug 5385: POD Cleanups (part 2) 2010-11-12 10:06:56 +13:00
unimarc_field_123e.pl Bug 5385: POD Cleanups (part 2) 2010-11-12 10:06:56 +13:00
unimarc_field_123f.pl Bug 5385: POD Cleanups (part 2) 2010-11-12 10:06:56 +13:00
unimarc_field_123g.pl Bug 5385: POD Cleanups (part 2) 2010-11-12 10:06:56 +13:00
unimarc_field_123i.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_123j.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_124.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_124a.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_124b.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_124c.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_124d.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_124e.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_124f.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_124g.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_125.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_125a.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_125b.pl Bug 6465 - Errors in UNIMARC plugins for fixed length fields (for | and space) (T::T issue) 2011-09-26 14:32:32 +13:00
unimarc_field_126.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_126a.pl Bug 6465 - Errors in UNIMARC plugins for fixed length fields (for | and space) (T::T issue) 2011-09-26 14:32:32 +13:00
unimarc_field_126b.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_127.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_128a.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_128b.pl Bug 6465 - Errors in UNIMARC plugins for fixed length fields (for | and space) (T::T issue) 2011-09-26 14:32:32 +13:00
unimarc_field_128c.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_130.pl Bug 6465 - Errors in UNIMARC plugins for fixed length fields (for | and space) (T::T issue) 2011-09-26 14:32:32 +13:00
unimarc_field_135a.pl Bug 6465 - Errors in UNIMARC plugins for fixed length fields (for | and space) (T::T issue) 2011-09-26 14:32:32 +13:00
unimarc_field_140.pl Bug 6465 - Errors in UNIMARC plugins for fixed length fields (for | and space) (T::T issue) 2011-09-26 14:32:32 +13:00
unimarc_field_141.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_210c.pl Bug 6679: fix missing use strict 2011-12-09 09:49:22 +01:00
unimarc_field_210c_bis.pl Bug 10330 - Rename system preference authoritysep to AuthoritySeperator 2014-05-23 13:26:48 +00:00
unimarc_field_225a.pl Bug 10330 - Rename system preference authoritysep to AuthoritySeperator 2014-05-23 13:26:48 +00:00
unimarc_field_686a.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_700-4.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_leader.pl Bug 6465 - Errors in UNIMARC plugins for fixed length fields (for | and space) (T::T issue) 2011-09-26 14:32:32 +13:00