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

(-)a/installer/data/mysql/sysprefs.sql (+2 lines)
Lines 358-360 INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES(' Link Here
358
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('Babeltheque_url_js','','Url for Babeltheque javascript (e.g. http://www.babeltheque.com/bw_XX.js)','','Free');
358
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('Babeltheque_url_js','','Url for Babeltheque javascript (e.g. http://www.babeltheque.com/bw_XX.js)','','Free');
359
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('Babeltheque_url_update', '', 'Url for Babeltheque update (E.G. http://www.babeltheque.com/.../file.csv.bz2)', '', 'Free');
359
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('Babeltheque_url_update', '', 'Url for Babeltheque update (E.G. http://www.babeltheque.com/.../file.csv.bz2)', '', 'Free');
360
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('SocialNetworks','1','Enable/Disable social networks links in opac detail pages','','YesNo');
360
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('SocialNetworks','1','Enable/Disable social networks links in opac detail pages','','YesNo');
361
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');
362
(-)a/installer/data/mysql/updatedatabase.pl (+9 lines)
Lines 5086-5091 if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { Link Here
5086
    SetVersion($DBversion);
5086
    SetVersion($DBversion);
5087
}
5087
}
5088
5088
5089
5090
5091
$DBversion = "3.07.00.XXX";
5092
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
5093
    $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')");
5094
    print "Upgrade to $DBversion done (Add System Preferences SubscriptionDuplicateDroppedInput)\n";
5095
    SetVersion($DBversion);
5096
}
5097
5089
=head1 FUNCTIONS
5098
=head1 FUNCTIONS
5090
5099
5091
=head2 DropAllForeignKeys($table)
5100
=head2 DropAllForeignKeys($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/serials.pref (+3 lines)
Lines 47-49 Serials: Link Here
47
              simplified: a summary
47
              simplified: a summary
48
              full: a full list
48
              full: a full list
49
        - of the serial issues.
49
        - of the serial issues.
50
    -
51
        - List of fields which must not be rewritten when a subscription is duplicated (Separated by pipe |)
52
        - pref: SubscriptionDuplicateDroppedInput
(-)a/serials/subscription-add.pl (-1 / +6 lines)
Lines 113-118 if ($op eq 'modify' || $op eq 'dup' || $op eq 'modsubscription') { Link Here
113
                    firstacquiyear => substr($firstissuedate,0,4),
113
                    firstacquiyear => substr($firstissuedate,0,4),
114
                    );
114
                    );
115
    }
115
    }
116
117
    if ( $op eq 'dup' ) {
118
        my $dont_copy_fields = C4::Context->preference('SubscriptionDuplicateDroppedInput');
119
        my @fields_id = map { fieldid => $_ }, split '|', $dont_copy_fields;
120
        $template->param( dont_export_field_loop => \@fields_id );
121
    }
116
}
122
}
117
123
118
my $onlymine=C4::Context->preference('IndependantBranches') &&
124
my $onlymine=C4::Context->preference('IndependantBranches') &&
119
- 

Return to bug 5354