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

(-)a/installer/data/mysql/sysprefs.sql (+2 lines)
Lines 355-357 INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ( Link Here
355
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OAI-PMH:AutoUpdateSets','0','Automatically update OAI sets when a bibliographic record is created or updated','','YesNo');
355
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OAI-PMH:AutoUpdateSets','0','Automatically update OAI sets when a bibliographic record is created or updated','','YesNo');
356
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacAllowPublicListCreation',1,'If set, allows opac users to create public lists',NULL,'YesNo');
356
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacAllowPublicListCreation',1,'If set, allows opac users to create public lists',NULL,'YesNo');
357
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacAllowSharingPrivateLists',0,'If set, allows opac users to share private lists with other patrons',NULL,'YesNo');
357
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacAllowSharingPrivateLists',0,'If set, allows opac users to share private lists with other patrons',NULL,'YesNo');
358
INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES('SubscriptionDuplicateDroppedInput','','','List of fields which must not be rewritten when a subscription is duplicated (Separated by pipe |)','Free');
359
(-)a/installer/data/mysql/updatedatabase.pl (-1 / +1 lines)
Lines 5040-5046 if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { Link Here
5040
5040
5041
$DBversion = "3.07.00.XXX";
5041
$DBversion = "3.07.00.XXX";
5042
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
5042
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
5043
    $dbh->do("INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES('SubscriptionDuplicateDroppedInput','','','List of fields which must not be rewritten when a subscription is duplicated (Separated by semicolon)','Free')");
5043
    $dbh->do("INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES('SubscriptionDuplicateDroppedInput','','','List of fields which must not be rewritten when a subscription is duplicated (Separated by pipe |)','Free')");
5044
    print "Upgrade to $DBversion done (Add System Preferences SubscriptionDuplicateDroppedInput)\n";
5044
    print "Upgrade to $DBversion done (Add System Preferences SubscriptionDuplicateDroppedInput)\n";
5045
    SetVersion($DBversion);
5045
    SetVersion($DBversion);
5046
}
5046
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/serials.pref (-1 / +1 lines)
Lines 48-52 Serials: Link Here
48
              full: a full list
48
              full: a full list
49
        - of the serial issues.
49
        - of the serial issues.
50
    -
50
    -
51
        - List of fields which must not be rewritten when a subscription is duplicated (Separated by semicolon)
51
        - List of fields which must not be rewritten when a subscription is duplicated (Separated by pipe |)
52
        - pref: SubscriptionDuplicateDroppedInput
52
        - pref: SubscriptionDuplicateDroppedInput
(-)a/serials/subscription-add.pl (-2 / +1 lines)
Lines 116-122 if ($op eq 'modify' || $op eq 'dup' || $op eq 'modsubscription') { Link Here
116
116
117
    if ( $op eq 'dup' ) {
117
    if ( $op eq 'dup' ) {
118
        my $dont_copy_fields = C4::Context->preference('SubscriptionDuplicateDroppedInput');
118
        my $dont_copy_fields = C4::Context->preference('SubscriptionDuplicateDroppedInput');
119
        my @fields_id = map { fieldid => $_ }, split ';', $dont_copy_fields;
119
        my @fields_id = map { fieldid => $_ }, split '|', $dont_copy_fields;
120
        $template->param( dont_export_field_loop => \@fields_id );
120
        $template->param( dont_export_field_loop => \@fields_id );
121
    }
121
    }
122
}
122
}
123
- 

Return to bug 5354