View | Details | Raw Unified | Return to bug 14815
Collapse All | Expand All

(-)a/cataloguing/value_builder/marc21_leader.pl (+1 lines)
Lines 35-40 my $builder = sub { Link Here
35
35
36
function Focus$function_name(event) {
36
function Focus$function_name(event) {
37
    if(!document.getElementById(event.data.id).value){
37
    if(!document.getElementById(event.data.id).value){
38
        // TODO: Remove this code when all frameworks have a default
38
        document.getElementById(event.data.id).value = '     nam a22     7a 4500';
39
        document.getElementById(event.data.id).value = '     nam a22     7a 4500';
39
    }
40
    }
40
}
41
}
(-)a/installer/data/mysql/atomicupdate/14815_leader.sql (+7 lines)
Line 0 Link Here
1
-- Update leader defaultvalue for MARC21 installs
2
-- General update on all frameworks
3
UPDATE marc_subfield_structure SET defaultvalue = '     nam a22     7a 4500' WHERE tagfield = '000' AND tagsubfield = '@';
4
-- Specific exceptions
5
UPDATE marc_subfield_structure SET defaultvalue = '     nmm a22     7a 4500' WHERE tagfield = '000' AND tagsubfield = '@' AND frameworkcode = 'CF';
6
UPDATE marc_subfield_structure SET defaultvalue = '     nas a22     7a 4500' WHERE tagfield = '000' AND tagsubfield = '@' AND frameworkcode = 'SER';
7
-- Still check: ('AR','IR','KT','SR','VR');
(-)a/installer/data/mysql/en/marcflavour/marc21/mandatory/marc21_framework_DEFAULT.sql (-1 / +1 lines)
Lines 509-515 INSERT IGNORE INTO `marc_tag_structure` (`tagfield`, `liblibrarian`, `libopac`, Link Here
509
509
510
510
511
INSERT IGNORE INTO `marc_subfield_structure` (`tagfield`, `tagsubfield`, `liblibrarian`, `libopac`, `repeatable`, `mandatory`, `kohafield`, `tab`, `authorised_value`, `authtypecode`, `value_builder`, `isurl`, `hidden`, `frameworkcode`, `seealso`, `link`, `defaultvalue`) VALUES
511
INSERT IGNORE INTO `marc_subfield_structure` (`tagfield`, `tagsubfield`, `liblibrarian`, `libopac`, `repeatable`, `mandatory`, `kohafield`, `tab`, `authorised_value`, `authtypecode`, `value_builder`, `isurl`, `hidden`, `frameworkcode`, `seealso`, `link`, `defaultvalue`) VALUES
512
		('000', '@', 'fixed length control field', 'fixed length control field', 0, 1, '', 0, '', '', 'marc21_leader.pl', 0, 0, '', '', '', NULL),
512
		('000', '@', 'fixed length control field', 'fixed length control field', 0, 1, '', 0, '', '', 'marc21_leader.pl', 0, 0, '', '', '', '     nam a22     7a 4500'),
513
		('001', '@', 'control field', 'control field', 0, 0, '', 0, '', '', '', 0, 0, '', '', '', NULL),
513
		('001', '@', 'control field', 'control field', 0, 0, '', 0, '', '', '', 0, 0, '', '', '', NULL),
514
		('003', '@', 'control field', 'control field', 0, 1, '', 0, '', '', 'marc21_field_003.pl', 0, 0, '', '', '', NULL),
514
		('003', '@', 'control field', 'control field', 0, 1, '', 0, '', '', 'marc21_field_003.pl', 0, 0, '', '', '', NULL),
515
		('005', '@', 'control field', 'control field', 0, 1, '', 0, '', '', 'marc21_field_005.pl', 0, 0, '', '', '', NULL),
515
		('005', '@', 'control field', 'control field', 0, 1, '', 0, '', '', 'marc21_field_005.pl', 0, 0, '', '', '', NULL),
(-)a/installer/data/mysql/en/marcflavour/marc21/optional/marc21_simple_bib_frameworks.sql (-1 / +6 lines)
Lines 484-486 UPDATE marc_subfield_structure SET hidden = -6 WHERE tagfield = '887' AND tagsub Link Here
484
UPDATE marc_subfield_structure SET hidden = -6 WHERE tagfield = '887' AND tagsubfield = 'a' AND frameworkcode IN ('AR','BKS','CF','IR','KT','SER','SR','VR');
484
UPDATE marc_subfield_structure SET hidden = -6 WHERE tagfield = '887' AND tagsubfield = 'a' AND frameworkcode IN ('AR','BKS','CF','IR','KT','SER','SR','VR');
485
UPDATE marc_subfield_structure SET hidden = 9 WHERE tagfield = '942' AND tagsubfield = 'i' AND frameworkcode IN ('AR','BKS','CF','IR','KT','SER','SR','VR');
485
UPDATE marc_subfield_structure SET hidden = 9 WHERE tagfield = '942' AND tagsubfield = 'i' AND frameworkcode IN ('AR','BKS','CF','IR','KT','SER','SR','VR');
486
UPDATE marc_subfield_structure SET hidden = 0 WHERE tagfield = '952' AND tagsubfield = '1' AND frameworkcode IN ('AR','BKS','CF','IR','KT','SER','SR','VR');
486
UPDATE marc_subfield_structure SET hidden = 0 WHERE tagfield = '952' AND tagsubfield = '1' AND frameworkcode IN ('AR','BKS','CF','IR','KT','SER','SR','VR');
487
- 
487
488
-- **************************************
489
-- UPDATE SOME DEFAULT VALUES
490
-- **************************************
491
UPDATE marc_subfield_structure SET defaultvalue = '     nmm a22     7a 4500' WHERE tagfield = '000' AND tagsubfield = '@' AND frameworkcode = 'CF';
492
-- Still check: ('AR','BKS','IR','KT','SER','SR','VR');

Return to bug 14815