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

(-)a/installer/data/mysql/atomicupdate/bug_11674-config_for_marc_field_doc_urls.sql (+3 lines)
Line 0 Link Here
1
2
INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`)
3
VALUES ('MarcFieldDocURL', NULL, NULL, 'URL used for MARC field documentation. Following substitutions are available: {MARC} = marc flavour, eg. \"MARC21\" or \"UNIMARC\". {FIELD} = field number, eg. \"000\" or \"048\". {LANG} = user language, eg. \"en\" or \"fi-FI\"', 'free');
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 257-262 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
257
('makePreviousSerialAvailable','0','','make previous serial automatically available when collecting a new serial. Please note that the item-level_itypes syspref must be set to specific item.','YesNo'),
257
('makePreviousSerialAvailable','0','','make previous serial automatically available when collecting a new serial. Please note that the item-level_itypes syspref must be set to specific item.','YesNo'),
258
('ManInvInNoissuesCharge','1',NULL,'MANUAL_INV charges block checkouts (added to noissuescharge).','YesNo'),
258
('ManInvInNoissuesCharge','1',NULL,'MANUAL_INV charges block checkouts (added to noissuescharge).','YesNo'),
259
('MARCAuthorityControlField008','|| aca||aabn           | a|a     d',NULL,'Define the contents of MARC21 authority control field 008 position 06-39','Textarea'),
259
('MARCAuthorityControlField008','|| aca||aabn           | a|a     d',NULL,'Define the contents of MARC21 authority control field 008 position 06-39','Textarea'),
260
('MarcFieldDocURL', NULL, NULL, 'URL used for MARC field documentation. Following substitutions are available: {MARC} = marc flavour, eg. "MARC21" or "UNIMARC". {FIELD} = field number, eg. "000" or "048". {LANG} = user language, eg. "en" or "fi-FI"', 'free'),
260
('MarcFieldsToOrder','',NULL,'Set the mapping values for a new order line created from a MARC record in a staged file. In a YAML format.','textarea'),
261
('MarcFieldsToOrder','',NULL,'Set the mapping values for a new order line created from a MARC record in a staged file. In a YAML format.','textarea'),
261
('MarcItemFieldsToOrder','',NULL,'Set the mapping values for new item records created from a MARC record in a staged file. In a YAML format.','textarea'),
262
('MarcItemFieldsToOrder','',NULL,'Set the mapping values for new item records created from a MARC record in a staged file. In a YAML format.','textarea'),
262
('MarkLostItemsAsReturned','1','','Mark items as returned when flagged as lost','YesNo'),
263
('MarkLostItemsAsReturned','1','','Mark items as returned when flagged as lost','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref (+8 lines)
Lines 146-151 Cataloging: Link Here
146
                  no: "Don't use"
146
                  no: "Don't use"
147
            - record control number ($w subfields) and control number (001) for linking of bibliographic records.
147
            - record control number ($w subfields) and control number (001) for linking of bibliographic records.
148
        -
148
        -
149
            - Use
150
            - pref: MarcFieldDocURL
151
              class: url
152
            - as the URL for MARC field documentation.
153
            - Possible substitutions are <tt>{MARC}</tt> (marc flavour, eg. "MARC21" or "UNIMARC"), <tt>{FIELD}</tt> (field number, eg. "000" or "048"), <tt>{LANG}</tt> (user language, eg. "en" or "fi-FI").
154
            - If left empty, the format documentation on http://loc.gov (MARC21) or http://archive.ifla.org (UNIMARC) is used.
155
            - For example <tt>http://fielddoc.example.com/?marc={MARC}&field={FIELD}&language={LANG}</tt>
156
        -
149
            - pref: hide_marc
157
            - pref: hide_marc
150
              choices:
158
              choices:
151
                  yes: "Don't display"
159
                  yes: "Don't display"
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt (-2 / +7 lines)
Lines 162-168 function PopupZ3950() { Link Here
162
}
162
}
163
163
164
function PopupMARCFieldDoc(field) {
164
function PopupMARCFieldDoc(field) {
165
    [% IF ( marcflavour == 'MARC21' ) %]
165
    [% IF Koha.Preference('marcfielddocurl') %]
166
        var docurl = "[% Koha.Preference('marcfielddocurl').replace('"','&quot;') %]";
167
        docurl = docurl.replace("{MARC}", "[% marcflavour %]");
168
        docurl = docurl.replace("{FIELD}", ""+field);
169
        docurl = docurl.replace("{LANG}", "[% lang %]");
170
        window.open(docurl);
171
    [% ELSIF ( marcflavour == 'MARC21' ) %]
166
        _MARC21FieldDoc(field);
172
        _MARC21FieldDoc(field);
167
    [% ELSIF ( marcflavour == 'UNIMARC' ) %]
173
    [% ELSIF ( marcflavour == 'UNIMARC' ) %]
168
        _UNIMARCFieldDoc(field);
174
        _UNIMARCFieldDoc(field);
169
- 

Return to bug 11674