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

(-)a/C4/Biblio.pm (-2 / +2 lines)
Lines 682-688 sub LinkBibHeadingsToAuthorities { Link Here
682
                        $marcrecordauth->insert_fields_ordered(
682
                        $marcrecordauth->insert_fields_ordered(
683
                            MARC::Field->new(
683
                            MARC::Field->new(
684
                                '667', '', '',
684
                                '667', '', '',
685
                                'a' => "Machine generated authority record."
685
                                'a' => C4::Context->preference('GenerateAuthorityField667')
686
                            )
686
                            )
687
                        );
687
                        );
688
                        my $cite =
688
                        my $cite =
Lines 692-698 sub LinkBibHeadingsToAuthorities { Link Here
692
                        $cite =~ s/^[\s\,]*//;
692
                        $cite =~ s/^[\s\,]*//;
693
                        $cite =~ s/[\s\,]*$//;
693
                        $cite =~ s/[\s\,]*$//;
694
                        $cite =
694
                        $cite =
695
                            "Work cat.: ("
695
                            C4::Context->preference('GenerateAuthorityField670') . ": ("
696
                          . ( $library ? $library->get_effective_marcorgcode : C4::Context->preference('MARCOrgCode') ) . ")"
696
                          . ( $library ? $library->get_effective_marcorgcode : C4::Context->preference('MARCOrgCode') ) . ")"
697
                          . $bib->subfield( '999', 'c' ) . ": "
697
                          . $bib->subfield( '999', 'c' ) . ": "
698
                          . $cite;
698
                          . $cite;
(-)a/installer/data/mysql/atomicupdate/bug_13412-add_GenerateAuthorityField_syspref.sql (+3 lines)
Line 0 Link Here
1
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
2
( 'GenerateAuthorityField667', 'Machine generated authority record', NULL, 'When BiblioAddsAuthorities and AutoCreateAuthorities are enabled, use this as a default value for the 667$a field of MARC21 records', 'free' ),
3
( 'GenerateAuthorityField670', 'Work cat.', NULL, 'When BiblioAddsAuthorities and AutoCreateAuthorities are enabled, use this as a default value for the 670$a field of MARC21 records', 'free' )
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+2 lines)
Lines 230-235 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
230
('FRBRizeEditions','0','','If ON, Koha will query one or more ISBN web services for associated ISBNs and display an Editions tab on the details pages','YesNo'),
230
('FRBRizeEditions','0','','If ON, Koha will query one or more ISBN web services for associated ISBNs and display an Editions tab on the details pages','YesNo'),
231
('GDPR_Policy','','Enforced|Permissive|Disabled','General Data Protection Regulation - policy', 'Choice'),
231
('GDPR_Policy','','Enforced|Permissive|Disabled','General Data Protection Regulation - policy', 'Choice'),
232
('TaxRates','0','','Default Goods and Services tax rate NOT in %, but in numeric form (0.12 for 12%), set to 0 to disable GST','Integer'),
232
('TaxRates','0','','Default Goods and Services tax rate NOT in %, but in numeric form (0.12 for 12%), set to 0 to disable GST','Integer'),
233
('GenerateAuthorityField667', 'Machine generated authority record', NULL, 'When BiblioAddsAuthorities and AutoCreateAuthorities are enabled, use this as a default value for the 667$a field of MARC21 records', 'free'),
234
('GenerateAuthorityField670', 'Work cat.', NULL, 'When BiblioAddsAuthorities and AutoCreateAuthorities are enabled, use this as a default value for the 670$a field of MARC21 records', 'free'),
233
('GoogleJackets','0',NULL,'if ON, displays jacket covers from Google Books API','YesNo'),
235
('GoogleJackets','0',NULL,'if ON, displays jacket covers from Google Books API','YesNo'),
234
('GoogleOpenIDConnect', '0', NULL, 'if ON, allows the use of Google OpenID Connect for login', 'YesNo'),
236
('GoogleOpenIDConnect', '0', NULL, 'if ON, allows the use of Google OpenID Connect for login', 'YesNo'),
235
('GoogleOAuth2ClientID', '', NULL, 'Client ID for the web app registered with Google', 'Free'),
237
('GoogleOAuth2ClientID', '', NULL, 'Client ID for the web app registered with Google', 'Free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/authorities.pref (-1 / +12 lines)
Lines 63-68 Authorities: Link Here
63
                  "loose": loose
63
                  "loose": loose
64
                  "strict": strict
64
                  "strict": strict
65
            - mode. In strict mode subfields that are not found in the authority record, are deleted. Loose mode will keep them. Loose mode is the historical behavior and still the default.
65
            - mode. In strict mode subfields that are not found in the authority record, are deleted. Loose mode will keep them. Loose mode is the historical behavior and still the default.
66
        -
67
            - When BiblioAddsAuthorities and AutoCreateAuthorities are enabled, use this as a default value for the 667$a field of MARC21 records
68
            - pref: GenerateAuthorityField667
69
              default: "Machine generated authority record"
70
              type: textarea
71
              class: code
72
        -
73
            - When BiblioAddsAuthorities and AutoCreateAuthorities are enabled, use this as a default value for the 670$a field of MARC21 records
74
            - pref: GenerateAuthorityField670
75
              default: "Work cat."
76
              type: textarea
77
              class: code
66
78
67
    Linker:
79
    Linker:
68
        -
80
        -
69
- 

Return to bug 13412