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

(-)a/installer/data/mysql/atomicupdate/bug_26368_add_OCLC_encoding_syspref.perl (+15 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number => "26368",
5
    description => "Add OCLC Encoding Levels system preference",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
        $dbh->do(q{
10
            INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type)
11
            VALUES ('UseOCLCEncodingLevels','0',NULL,'If enabled, include OCLC encoding levels in leader value builder dropdown for position 17.','YesNo')
12
        });
13
        say $out "Added UseOCLCEncodingLevels system preference";
14
    },
15
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 760-765 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
760
('UseEmailReceipts','0','','Send email receipts for payments and write-offs','YesNo'),
760
('UseEmailReceipts','0','','Send email receipts for payments and write-offs','YesNo'),
761
('UseICUStyleQuotes','0','1','Tell Koha whether to use ICU style quotes ({) or default (") when tracing subjects .','YesNo'),
761
('UseICUStyleQuotes','0','1','Tell Koha whether to use ICU style quotes ({) or default (") when tracing subjects .','YesNo'),
762
('UseLocationAsAQInSIP', '0', '', 'Use permanent_location instead of homebranch for AQ in SIP response', 'YesNo'),
762
('UseLocationAsAQInSIP', '0', '', 'Use permanent_location instead of homebranch for AQ in SIP response', 'YesNo'),
763
('UseOCLCEncodingLevels','0',NULL,'If enabled, include OCLC encoding levels in leader value builder dropdown for position 17.','YesNo'),
763
('UseRecalls','0',NULL,'Enable or disable recalls','YesNo'),
764
('UseRecalls','0',NULL,'Enable or disable recalls','YesNo'),
764
('UseTransportCostMatrix','0','','Use Transport Cost Matrix when filling holds','YesNo'),
765
('UseTransportCostMatrix','0','','Use Transport Cost Matrix when filling holds','YesNo'),
765
('UseWYSIWYGinSystemPreferences','0','','Show WYSIWYG editor when editing certain HTML system preferences.','YesNo'),
766
('UseWYSIWYGinSystemPreferences','0','','Show WYSIWYG editor when editing certain HTML system preferences.','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-widgets-marc21.inc (+6 lines)
Lines 49-54 Link Here
49
            <option value="5">5 - Partial (preliminary) level</option>
49
            <option value="5">5 - Partial (preliminary) level</option>
50
            <option value="7">7 - Minimal level</option>
50
            <option value="7">7 - Minimal level</option>
51
            <option value="8">8 - Prepublication level</option>
51
            <option value="8">8 - Prepublication level</option>
52
            [% IF Koha.Preference('UseOCLCEncodingLevels') %]
53
                <option value="I">I- Full-level input by OCLC participants</option>
54
                <option value="J">J- Deleted record</option>
55
                <option value="K">K- Less-than-full input by OCLC participants</option>
56
                <option value="M">M- Added from a batch process</option>
57
            [% END %]
52
            <option value="u">u - Unknown</option>
58
            <option value="u">u - Unknown</option>
53
            <option value="z">z - Not applicable</option>
59
            <option value="z">z - Not applicable</option>
54
        </select>
60
        </select>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref (+6 lines)
Lines 171-176 Cataloging: Link Here
171
              choices:
171
              choices:
172
                  biblionumber: generated as biblionumber.
172
                  biblionumber: generated as biblionumber.
173
                  "OFF": not generated automatically.
173
                  "OFF": not generated automatically.
174
        -
175
            - Display OCLC defined values for MARC encoding level in leader value builder?
176
            - pref: UseOCLCEncodingLevels
177
              choices:
178
                  1: Yes.
179
                  0: No.
174
    Display:
180
    Display:
175
        -
181
        -
176
            - 'Separate main entry and subdivisions with '
182
            - 'Separate main entry and subdivisions with '
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_leader.tt (-1 / +23 lines)
Lines 1-4 Link Here
1
[% SET footerjs = 1 %]
1
[% SET footerjs = 1 %]
2
[% USE Koha %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
3
<title>000 - Leader builder &rsaquo; Cataloging &rsaquo; Koha</title>
4
<title>000 - Leader builder &rsaquo; Cataloging &rsaquo; Koha</title>
4
[% INCLUDE 'doc-head-close.inc' %]
5
[% INCLUDE 'doc-head-close.inc' %]
Lines 236-241 Link Here
236
				[% ELSE %]
237
				[% ELSE %]
237
					<option value="8">8- Prepublication level</option>
238
					<option value="8">8- Prepublication level</option>
238
				[% END %]
239
				[% END %]
240
                [% IF Koha.Preference('UseOCLCEncodingLevels') %]
241
                    [% IF ( f17I ) %]
242
                            <option value="I" selected="selected">I- Full-level input by OCLC participants</option>
243
                    [% ELSE %]
244
                            <option value="I">I- Full-level input by OCLC participants</option>
245
                    [% END %]
246
                    [% IF ( f17J ) %]
247
                            <option value="J" selected="selected">J- Deleted record</option>
248
                    [% ELSE %]
249
                            <option value="J">J- Deleted record</option>
250
                    [% END %]
251
                    [% IF ( f17K ) %]
252
                            <option value="K" selected="selected">K- Less-than-full input by OCLC participants</option>
253
                    [% ELSE %]
254
                            <option value="K">K- Less-than-full input by OCLC participants</option>
255
                    [% END %]
256
                    [% IF ( f17K ) %]
257
                            <option value="M" selected="selected">M- Added from a batch process</option>
258
                    [% ELSE %]
259
                            <option value="M">M- Added from a batch process</option>
260
                    [% END %]
261
                [% END %]
239
				[% IF ( f17u ) %]
262
				[% IF ( f17u ) %]
240
					<option value="u" selected="selected">u - Unknown</option>
263
					<option value="u" selected="selected">u - Unknown</option>
241
				[% ELSE %]
264
				[% ELSE %]
242
- 

Return to bug 26368