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

(-)a/admin/preferences.pl (-1 / +1 lines)
Lines 103-109 sub _get_chunk { Link Here
103
            } elsif ( $options{choices} eq 'patron-categories' ) {
103
            } elsif ( $options{choices} eq 'patron-categories' ) {
104
                $options{choices} = { map { $_->categorycode => $_->description } Koha::Patron::Categories->search->as_list };
104
                $options{choices} = { map { $_->categorycode => $_->description } Koha::Patron::Categories->search->as_list };
105
                $add_blank = 1;
105
                $add_blank = 1;
106
            } elsif ( $options{choices} eq 'modification-templates' ) {
106
            } elsif ( $options{choices} eq 'marcModTemplates' ) {
107
                $options{choices} = { map { $_->template_id => $_->name } Koha::MarcModificationTemplates->search };
107
                $options{choices} = { map { $_->template_id => $_->name } Koha::MarcModificationTemplates->search };
108
                $add_blank = 1;
108
                $add_blank = 1;
109
            } else {
109
            } else {
(-)a/installer/data/mysql/atomicupdate/bug_18138-edit-biblio-marc-modification-template-syspref.pl (+14 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number => "18138",
5
    description => "Add system preference",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
        # Do you stuffs here
10
        $dbh->do(q{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', 'marcModTemplates')});
11
        # Print useful stuff here
12
        say $out "System preference added";
13
    },
14
}
(-)a/installer/data/mysql/atomicupdate/bug_18138-edit-biblio-marc-modification-template-syspref.sql (-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', 'modification-templates');
(-)a/installer/data/mysql/mandatory/sysprefs.sql (-2 / +1 lines)
Lines 633-639 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
633
('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'),
633
('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'),
634
('RoutingSerials','1',NULL,'If ON, serials routing is enabled','YesNo'),
634
('RoutingSerials','1',NULL,'If ON, serials routing is enabled','YesNo'),
635
('SavedSearchFilters', '0', NULL, 'Allow staff with permission to create/edit custom search filters', 'YesNo'),
635
('SavedSearchFilters', '0', NULL, 'Allow staff with permission to create/edit custom search filters', 'YesNo'),
636
('SaveBiblioMarcModificationTemplate', '', NULL, 'MARC modification template applied when saving bibliographic record in staff client or HTTP API', 'modification-templates'),
636
('SaveBiblioMarcModificationTemplate', '', NULL, 'MARC modification template applied when saving bibliographic record in staff client or HTTP API', 'marcModTemplates'),
637
('SCOAllowCheckin','0','','If enabled, patrons may return items through the Web-based Self Checkout','YesNo'),
637
('SCOAllowCheckin','0','','If enabled, patrons may return items through the Web-based Self Checkout','YesNo'),
638
('SCOMainUserBlock','','70|10','Add a block of HTML that will display on the self checkout screen','Textarea'),
638
('SCOMainUserBlock','','70|10','Add a block of HTML that will display on the self checkout screen','Textarea'),
639
('SCOUserCSS','',NULL,'Add CSS to be included in the SCO module in an embedded <style> tag.','free'),
639
('SCOUserCSS','',NULL,'Add CSS to be included in the SCO module in an embedded <style> tag.','free'),
640
- 

Return to bug 18138