--- /dev/null
+use Modern::Perl;
+
+return {
+ bug_number => "26368",
+ description => "Add OCLC Encoding Levels system preference",
+ up => sub {
+ my ($args) = @_;
+ my ($dbh, $out) = @$args{qw(dbh out)};
+ $dbh->do(q{
+ INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type)
+ VALUES ('UseOCLCEncodingLevels','0',NULL,'If enabled, include OCLC encoding levels in leader value builder dropdown for position 17.','YesNo')
+ });
+ say $out "Added UseOCLCEncodingLevels system preference";
+ },
+};
('UseEmailReceipts','0','','Send email receipts for payments and write-offs','YesNo'),
('UseICUStyleQuotes','0','1','Tell Koha whether to use ICU style quotes ({) or default (") when tracing subjects .','YesNo'),
('UseLocationAsAQInSIP', '0', '', 'Use permanent_location instead of homebranch for AQ in SIP response', 'YesNo'),
+('UseOCLCEncodingLevels','0',NULL,'If enabled, include OCLC encoding levels in leader value builder dropdown for position 17.','YesNo'),
('UseRecalls','0',NULL,'Enable or disable recalls','YesNo'),
('UseTransportCostMatrix','0','','Use Transport Cost Matrix when filling holds','YesNo'),
('UseWYSIWYGinSystemPreferences','0','','Show WYSIWYG editor when editing certain HTML system preferences.','YesNo'),
<option value="5">5 - Partial (preliminary) level</option>
<option value="7">7 - Minimal level</option>
<option value="8">8 - Prepublication level</option>
+ [% IF Koha.Preference('UseOCLCEncodingLevels') %]
+ <option value="I">I- Full-level input by OCLC participants</option>
+ <option value="J">J- Deleted record</option>
+ <option value="K">K- Less-than-full input by OCLC participants</option>
+ <option value="M">M- Added from a batch process</option>
+ [% END %]
<option value="u">u - Unknown</option>
<option value="z">z - Not applicable</option>
</select>
choices:
biblionumber: generated as biblionumber.
"OFF": not generated automatically.
+ -
+ - Display OCLC defined values for MARC encoding level in leader value builder?
+ - pref: UseOCLCEncodingLevels
+ choices:
+ 1: Yes.
+ 0: No.
Display:
-
- 'Separate main entry and subdivisions with '
[% SET footerjs = 1 %]
+[% USE Koha %]
[% INCLUDE 'doc-head-open.inc' %]
<title>000 - Leader builder › Cataloging › Koha</title>
[% INCLUDE 'doc-head-close.inc' %]
[% ELSE %]
<option value="8">8- Prepublication level</option>
[% END %]
+ [% IF Koha.Preference('UseOCLCEncodingLevels') %]
+ [% IF ( f17I ) %]
+ <option value="I" selected="selected">I- Full-level input by OCLC participants</option>
+ [% ELSE %]
+ <option value="I">I- Full-level input by OCLC participants</option>
+ [% END %]
+ [% IF ( f17J ) %]
+ <option value="J" selected="selected">J- Deleted record</option>
+ [% ELSE %]
+ <option value="J">J- Deleted record</option>
+ [% END %]
+ [% IF ( f17K ) %]
+ <option value="K" selected="selected">K- Less-than-full input by OCLC participants</option>
+ [% ELSE %]
+ <option value="K">K- Less-than-full input by OCLC participants</option>
+ [% END %]
+ [% IF ( f17K ) %]
+ <option value="M" selected="selected">M- Added from a batch process</option>
+ [% ELSE %]
+ <option value="M">M- Added from a batch process</option>
+ [% END %]
+ [% END %]
[% IF ( f17u ) %]
<option value="u" selected="selected">u - Unknown</option>
[% ELSE %]