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

(-)a/installer/data/mysql/updatedatabase.pl (+14 lines)
Lines 8202-8207 if ( CheckVersion($DBversion) ) { Link Here
8202
    SetVersion($DBversion);
8202
    SetVersion($DBversion);
8203
}
8203
}
8204
8204
8205
$DBversion = "3.15.00.XXX";
8206
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
8207
    $dbh->do(q{
8208
        INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('SubfieldsToAllowForRestrictedEdition','','Define a list of subfields for which edition is authorized when edit_items_restricted permission is enabled, separated by spaces. Example: 995\$f 995\$h 995\$j','','Free');
8209
    });
8210
8211
    $dbh->do(q{
8212
        INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('SubfieldsToAllowForRestrictedBatchmod','','Define a list of subfields for which edition is authorized when items_batchmod_restricted permission is enabled, separated by spaces. Example: 995\$f 995\$h 995\$j','','Free');
8213
    });
8214
8215
    print "Upgrade to $DBversion done (Bug 7673: Adds new systemp preference SubfieldsToAllowForRestrictedEdition and SubfieldsToAllowForRestrictedBatchmod)\n";
8216
    SetVersion($DBversion);
8217
}
8218
8205
=head1 FUNCTIONS
8219
=head1 FUNCTIONS
8206
8220
8207
=head2 TableExists($table)
8221
=head2 TableExists($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref (-1 / +14 lines)
Lines 109-114 Cataloging: Link Here
109
            - pref: UNIMARCField100Language
109
            - pref: UNIMARCField100Language
110
              class: short
110
              class: short
111
            - as default language in the UNIMARC field 100 when creating a new record or in the field plugin.
111
            - as default language in the UNIMARC field 100 when creating a new record or in the field plugin.
112
        -
113
            - Define a list of subfields for which edition is authorized when edit_items_restricted permission is enabled, separated by spaces.
114
            - pref: SubfieldsToAllowForRestrictedEdition
115
            - 'Examples:'
116
            - 'UNIMARC: "995$f 995$h 995$j"'
117
            - 'MARC21: "952$a 952$b 952$c"'
118
            - Note that the FA framework is excluded from the permission.
119
        -
120
            - Define a list of subfields for which edition is authorized when items_batchmod_restricted permission is enabled, separated by spaces.
121
            - pref: SubfieldsToAllowForRestrictedBatchmod
122
            - 'Examples:'
123
            - 'UNIMARC: "995$f 995$h 995$j"'
124
            - 'MARC21: "952$a 952$b 952$c"'
125
            - Note that the FA framework is excluded from the permission.
112
    Display:
126
    Display:
113
        -
127
        -
114
            - 'Separate multiple displayed authors, series or subjects with '
128
            - 'Separate multiple displayed authors, series or subjects with '
115
- 

Return to bug 7673