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 256-261 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
256
('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'),
256
('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
('ManInvInNoissuesCharge','1',NULL,'MANUAL_INV charges block checkouts (added to noissuescharge).','YesNo'),
257
('ManInvInNoissuesCharge','1',NULL,'MANUAL_INV charges block checkouts (added to noissuescharge).','YesNo'),
258
('MARCAuthorityControlField008','|| aca||aabn           | a|a     d',NULL,'Define the contents of MARC21 authority control field 008 position 06-39','Textarea'),
258
('MARCAuthorityControlField008','|| aca||aabn           | a|a     d',NULL,'Define the contents of MARC21 authority control field 008 position 06-39','Textarea'),
259
('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'),
259
('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'),
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'),
260
('MarcItemFieldsToOrder','',NULL,'Set the mapping values for new item records 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'),
261
('MarkLostItemsAsReturned','1','','Mark items as returned when flagged as lost','YesNo'),
262
('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 165-171 function PopupZ3950() { Link Here
165
}
165
}
166
166
167
function PopupMARCFieldDoc(field) {
167
function PopupMARCFieldDoc(field) {
168
    [% IF ( marcflavour == 'MARC21' ) %]
168
    [% IF Koha.Preference('marcfielddocurl') %]
169
        var docurl = "[% Koha.Preference('marcfielddocurl').replace('"','&quot;') %]";
170
        docurl = docurl.replace("{MARC}", "[% marcflavour %]");
171
        docurl = docurl.replace("{FIELD}", ""+field);
172
        docurl = docurl.replace("{LANG}", "[% lang %]");
173
        window.open(docurl);
174
    [% ELSIF ( marcflavour == 'MARC21' ) %]
169
        _MARC21FieldDoc(field);
175
        _MARC21FieldDoc(field);
170
    [% ELSIF ( marcflavour == 'UNIMARC' ) %]
176
    [% ELSIF ( marcflavour == 'UNIMARC' ) %]
171
        _UNIMARCFieldDoc(field);
177
        _UNIMARCFieldDoc(field);
172
- 

Return to bug 11674