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

(-)a/admin/preferences.pl (+4 lines)
Lines 28-33 use C4::ClassSource qw( GetClassSources GetClassSource ); Link Here
28
use C4::Output qw( output_html_with_http_headers );
28
use C4::Output qw( output_html_with_http_headers );
29
use C4::Templates;
29
use C4::Templates;
30
use Koha::Acquisition::Currencies;
30
use Koha::Acquisition::Currencies;
31
use Koha::MarcModificationTemplates;
31
use IO::File;
32
use IO::File;
32
use YAML::XS;
33
use YAML::XS;
33
use Encode;
34
use Encode;
Lines 103-108 sub _get_chunk { Link Here
103
            } elsif ( $options{choices} eq 'patron-categories' ) {
104
            } elsif ( $options{choices} eq 'patron-categories' ) {
104
                $options{choices} = { map { $_->categorycode => $_->description } Koha::Patron::Categories->search };
105
                $options{choices} = { map { $_->categorycode => $_->description } Koha::Patron::Categories->search };
105
                $add_blank = 1;
106
                $add_blank = 1;
107
            } elsif ( $options{choices} eq 'modification-templates' ) {
108
                $options{choices} = { map { $_->template_id => $_->name } Koha::MarcModificationTemplates->search };
109
                $add_blank = 1;
106
            } else {
110
            } else {
107
                die 'Unrecognized source of preference values: ' . $options{'choices'};
111
                die 'Unrecognized source of preference values: ' . $options{'choices'};
108
            }
112
            }
(-)a/installer/data/mysql/atomicupdate/bug_18138-edit-biblio-marc-modification-template-syspref.sql (-1 / +1 lines)
Line 1 Link Here
1
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type`) VALUES ('SaveBiblioMarcModificationTemplate', '', NULL, 'MARC modification template applied when saving bibliographic record in staff client or HTTP API', 'Free');
1
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type`) VALUES ('SaveBiblioMarcModificationTemplate', '', NULL, 'MARC modification template applied when saving bibliographic record in staff client or HTTP API', 'modification-templates');
(-)a/installer/data/mysql/mandatory/sysprefs.sql (-1 / +1 lines)
Lines 585-591 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
585
('RoutingListAddReserves','0','','If ON the patrons on routing lists are automatically added to holds on the issue.','YesNo'),
585
('RoutingListAddReserves','0','','If ON the patrons on routing lists are automatically added to holds on the issue.','YesNo'),
586
('RoutingListNote','To change this note edit <a href=\"/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=RoutingListNote#jumped\">RoutingListNote</a> system preference.','70|10','Define a note to be shown on all routing lists','Textarea'),
586
('RoutingListNote','To change this note edit <a href=\"/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=RoutingListNote#jumped\">RoutingListNote</a> system preference.','70|10','Define a note to be shown on all routing lists','Textarea'),
587
('RoutingSerials','1',NULL,'If ON, serials routing is enabled','YesNo'),
587
('RoutingSerials','1',NULL,'If ON, serials routing is enabled','YesNo'),
588
('SaveBiblioMarcModificationTemplate', '', NULL, 'MARC modification template applied when saving bibliographic record in staff client or HTTP API', 'Free'),
588
('SaveBiblioMarcModificationTemplate', '', NULL, 'MARC modification template applied when saving bibliographic record in staff client or HTTP API', 'modification-templates'),
589
('SCOAllowCheckin','0','','If enabled, patrons may return items through the Web-based Self Checkout','YesNo'),
589
('SCOAllowCheckin','0','','If enabled, patrons may return items through the Web-based Self Checkout','YesNo'),
590
('SCOMainUserBlock','','70|10','Add a block of HTML that will display on the self checkout screen','Textarea'),
590
('SCOMainUserBlock','','70|10','Add a block of HTML that will display on the self checkout screen','Textarea'),
591
('SCOUserCSS','',NULL,'Add CSS to be included in the SCO module in an embedded <style> tag.','free'),
591
('SCOUserCSS','',NULL,'Add CSS to be included in the SCO module in an embedded <style> tag.','free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref (-2 / +1 lines)
Lines 161-167 Cataloging: Link Here
161
        -
161
        -
162
            - Apply the MARC modification template with name
162
            - Apply the MARC modification template with name
163
            - pref: SaveBiblioMarcModificationTemplate
163
            - pref: SaveBiblioMarcModificationTemplate
164
              class: short
164
              class: modification-templates
165
            - on records saved using the staff client simple MARC editor, advanced editor or HTTP API.
165
            - on records saved using the staff client simple MARC editor, advanced editor or HTTP API.
166
    Display:
166
    Display:
167
        -
167
        -
168
- 

Return to bug 18138