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

(-)a/installer/data/mysql/atomicupdate/bug_26368_add_OCLC_encoding_syspref.perl (+8 lines)
Line 0 Link Here
1
$DBversion = 'XXX';
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do(q{
4
        INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type)
5
        VALUES ('UseOCLCEncodingLevels','0',NULL,'If enabled, include OCLC encoding levels in leader value builder dropdown for position 17.','YesNo')
6
    });
7
    NewVersion( $DBversion, 26368, "Add OCLC Encoding Levels system preference");
8
}
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 720-725 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
720
('useDischarge','0','','Allows librarians to discharge borrowers and borrowers to request a discharge','YesNo'),
720
('useDischarge','0','','Allows librarians to discharge borrowers and borrowers to request a discharge','YesNo'),
721
('UseEmailReceipts','0','','Send email receipts for payments and write-offs','YesNo'),
721
('UseEmailReceipts','0','','Send email receipts for payments and write-offs','YesNo'),
722
('UseICUStyleQuotes','0','1','Tell Koha whether to use ICU style quotes ({) or default (") when tracing subjects .','YesNo'),
722
('UseICUStyleQuotes','0','1','Tell Koha whether to use ICU style quotes ({) or default (") when tracing subjects .','YesNo'),
723
('UseOCLCEncodingLevels','0',NULL,'If enabled, include OCLC encoding levels in leader value builder dropdown for position 17.','YesNo'),
723
('UseTransportCostMatrix','0','','Use Transport Cost Matrix when filling holds','YesNo'),
724
('UseTransportCostMatrix','0','','Use Transport Cost Matrix when filling holds','YesNo'),
724
('UseWYSIWYGinSystemPreferences','0','','Show WYSIWYG editor when editing certain HTML system preferences.','YesNo'),
725
('UseWYSIWYGinSystemPreferences','0','','Show WYSIWYG editor when editing certain HTML system preferences.','YesNo'),
725
('viewISBD','1','','Allow display of ISBD view of bibiographic records','YesNo'),
726
('viewISBD','1','','Allow display of ISBD view of bibiographic records','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 158-163 Cataloging: Link Here
158
            - and record's last modifier name in MARC subfield
158
            - and record's last modifier name in MARC subfield
159
            - pref: MarcFieldForModifierName
159
            - pref: MarcFieldForModifierName
160
            - ". <br/><strong>NOTE:</strong> Use a dollar sign between field and subfield like 123$a."
160
            - ". <br/><strong>NOTE:</strong> Use a dollar sign between field and subfield like 123$a."
161
        -
162
            - Display OCLC defined values for MARC encoding level in leader value builder?
163
            - pref: UseOCLCEncodingLevels
164
              choices:
165
                  1: Yes.
166
                  0: No.
161
    Display:
167
    Display:
162
        -
168
        -
163
            - 'Separate main entry and subdivisions with '
169
            - '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