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

(-)a/installer/data/mysql/atomicupdate/bug_9988a.perl (+19 lines)
Line 0 Link Here
1
$DBversion = 'XXX';  # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
    my $oldval = C4::Context->preference('dontmerge');
4
    my $newval = $oldval ? 0 : 50;
5
6
    # Remove dontmerge, add AuthorityMergeLimit
7
    $dbh->do(q/
8
DELETE FROM systempreferences WHERE variable = 'dontmerge';
9
    /);
10
    $dbh->do(qq/
11
INSERT IGNORE INTO systempreferences ( variable, value, options, explanation, type ) VALUES ('AuthorityMergeLimit','$newval',NULL,'Maximum number of biblio records updated immediately when an authority record has been modified.','integer');
12
    /);
13
14
    SetVersion( $DBversion );
15
    if( $newval == 0 ) {
16
        print "NOTE: Since dontmerge was enabled, we have initialized AuthorityMergeLimit to 0 records. Please consider raising this value. This will allow for performing smaller merges directly and only postponing larger merges.\n";
17
    }
18
    print "Upgrade to $DBversion done (Bug 9988 - Add AuthorityMergeLimit)\n";
19
}
(-)a/installer/data/mysql/sysprefs.sql (-1 / +1 lines)
Lines 52-57 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
52
('AudioAlerts','0','','Enable circulation sounds during checkin and checkout in the staff interface.  Not supported by all web browsers yet.','YesNo'),
52
('AudioAlerts','0','','Enable circulation sounds during checkin and checkout in the staff interface.  Not supported by all web browsers yet.','YesNo'),
53
('AuthDisplayHierarchy','0','','Display authority hierarchies','YesNo'),
53
('AuthDisplayHierarchy','0','','Display authority hierarchies','YesNo'),
54
('AuthoritiesLog','1',NULL,'If ON, log edit/create/delete actions on authorities.','YesNo'),
54
('AuthoritiesLog','1',NULL,'If ON, log edit/create/delete actions on authorities.','YesNo'),
55
('AuthorityMergeLimit','50',NULL,'Maximum number of biblio records updated immediately when an authority record has been modified.','integer'),
55
('AuthorityMergeMode','loose','loose|strict','Authority merge mode','Choice'),
56
('AuthorityMergeMode','loose','loose|strict','Authority merge mode','Choice'),
56
('AuthoritySeparator','--','10','Used to separate a list of authorities in a display. Usually --','free'),
57
('AuthoritySeparator','--','10','Used to separate a list of authorities in a display. Usually --','free'),
57
('autoBarcode','OFF','incremental|annual|hbyymmincr|EAN13|OFF','Used to autogenerate a barcode: incremental will be of the form 1, 2, 3; annual of the form 2007-0001, 2007-0002; hbyymmincr of the form HB08010001 where HB=Home Branch','Choice'),
58
('autoBarcode','OFF','incremental|annual|hbyymmincr|EAN13|OFF','Used to autogenerate a barcode: incremental will be of the form 1, 2, 3; annual of the form 2007-0001, 2007-0002; hbyymmincr of the form HB08010001 where HB=Home Branch','Choice'),
Lines 139-145 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
139
('DisplayLibraryFacets',  'holding',  'home|holding|both',  'Defines which library facets to display.',  'Choice'),
140
('DisplayLibraryFacets',  'holding',  'home|holding|both',  'Defines which library facets to display.',  'Choice'),
140
('DisplayMultiPlaceHold','1','','Display the ability to place multiple holds or not','YesNo'),
141
('DisplayMultiPlaceHold','1','','Display the ability to place multiple holds or not','YesNo'),
141
('DisplayOPACiconsXSLT','1','','If ON, displays the format, audience, and material type icons in XSLT MARC21 results and detail pages in the OPAC.','YesNo'),
142
('DisplayOPACiconsXSLT','1','','If ON, displays the format, audience, and material type icons in XSLT MARC21 results and detail pages in the OPAC.','YesNo'),
142
('dontmerge','1',NULL,'If ON, modifying an authority record will not update all associated bibliographic records immediately, ask your system administrator to enable the merge_authorities.pl cron job','YesNo'),
143
('DumpTemplateVarsIntranet',  '0', NULL ,  'If enabled, dump all Template Toolkit variable to a comment in the html source for the staff intranet.',  'YesNo'),
143
('DumpTemplateVarsIntranet',  '0', NULL ,  'If enabled, dump all Template Toolkit variable to a comment in the html source for the staff intranet.',  'YesNo'),
144
('DumpTemplateVarsOpac',  '0', NULL ,  'If enabled, dump all Template Toolkit variable to a comment in the html source for the opac.',  'YesNo'),
144
('DumpTemplateVarsOpac',  '0', NULL ,  'If enabled, dump all Template Toolkit variable to a comment in the html source for the opac.',  'YesNo'),
145
('EasyAnalyticalRecords','0','','If on, display in the catalogue screens tools to easily setup analytical record relationships','YesNo'),
145
('EasyAnalyticalRecords','0','','If on, display in the catalogue screens tools to easily setup analytical record relationships','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/authorities.pref (-7 / +4 lines)
Lines 24-35 Authorities: Link Here
24
                  no: "do not generate"
24
                  no: "do not generate"
25
            - authority records that are missing (BiblioAddsAuthorities must be set to "allow" for this to have any effect).
25
            - authority records that are missing (BiblioAddsAuthorities must be set to "allow" for this to have any effect).
26
        -
26
        -
27
            - pref: dontmerge
27
            - When modifying an authority record, do not update attached biblio records if the number exceeds
28
              default: yes
28
            - pref: AuthorityMergeLimit
29
              choices:
29
              default: 50
30
                  yes: "Don't"
30
            - records. (Above this limit, the merge_authority cron job will merge them.)
31
                  no: Do
32
            - automatically update attached biblios when changing an authority record. If this is off, please ask your administrator to enable the merge_authority.pl cronjob.
33
        -
31
        -
34
            - Use the following text for the contents of MARC21 authority control field 008 position 06-39 (fixed length data elements). Do NOT include the date (position 00-05).
32
            - Use the following text for the contents of MARC21 authority control field 008 position 06-39 (fixed length data elements). Do NOT include the date (position 00-05).
35
            - pref: MARCAuthorityControlField008
33
            - pref: MARCAuthorityControlField008
36
- 

Return to bug 9988