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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc (-2 / +8 lines)
Lines 1-4 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Koha %]
2
[% Asset.js("lib/codemirror/codemirror-compressed.js") | $raw %]
3
[% Asset.js("lib/codemirror/codemirror-compressed.js") | $raw %]
3
[% Asset.js("lib/filesaver.js") | $raw %]
4
[% Asset.js("lib/filesaver.js") | $raw %]
4
[% Asset.js("lib/koha/cateditor/marc-mode.js") | $raw %]
5
[% Asset.js("lib/koha/cateditor/marc-mode.js") | $raw %]
Lines 178-184 require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr Link Here
178
    }
179
    }
179
180
180
    function getFieldHelpURL( tag ) {
181
    function getFieldHelpURL( tag ) {
181
        [% IF ( marcflavour == 'MARC21' ) %]
182
        [% IF Koha.Preference('marcfielddocurl') %]
183
            var docurl = "[% Koha.Preference('marcfielddocurl').replace('"','"') | html %]";
184
            docurl = docurl.replace("{MARC}", "[% marcflavour | html %]");
185
            docurl = docurl.replace("{FIELD}", ""+tag);
186
            docurl = docurl.replace("{LANG}", "[% lang | html %]");
187
            return docurl;
188
        [% ELSIF ( marcflavour == 'MARC21' ) %]
182
            if ( tag == '000' ) {
189
            if ( tag == '000' ) {
183
                return "http://www.loc.gov/marc/bibliographic/bdleader.html";
190
                return "http://www.loc.gov/marc/bibliographic/bdleader.html";
184
            } else if ( tag >= '090' && tag < '100' ) {
191
            } else if ( tag >= '090' && tag < '100' ) {
185
- 

Return to bug 20785