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

(-)a/koha-tmpl/intranet-tmpl/prog/en/js/xmlControlfield.js (-2 / +3 lines)
Lines 168-174 function changeH4Result(form, h4_result, tr_result, pos, value) Link Here
168
(function()
168
(function()
169
{
169
{
170
170
171
    xmlControlField = function(tagfield, form_id, select, table, h4_result, tr_result, idMaterial, themelang)
171
    xmlControlField = function(tagfield, form_id, select, table, h4_result, tr_result, idMaterial, themelang, marcflavour)
172
    {
172
    {
173
        this.tagfield = tagfield;
173
        this.tagfield = tagfield;
174
        this.idMaterial = idMaterial;
174
        this.idMaterial = idMaterial;
Lines 179-184 function changeH4Result(form, h4_result, tr_result, pos, value) Link Here
179
        this.h4_result = h4_result;
179
        this.h4_result = h4_result;
180
        this.tr_result = tr_result;
180
        this.tr_result = tr_result;
181
        this.themelang = themelang;
181
        this.themelang = themelang;
182
        this.marcflavour = marcflavour.toLowerCase();
182
    };//xmlControlField
183
    };//xmlControlField
183
184
184
185
Lines 205-211 function changeH4Result(form, h4_result, tr_result, pos, value) Link Here
205
        {
206
        {
206
            this.xmlDoc = $.ajax({
207
            this.xmlDoc = $.ajax({
207
                type: "GET",
208
                type: "GET",
208
                url: this.themelang + "/data/marc21_field_" + this.tagfield + ".xml",
209
                url: this.themelang + "/data/" + this.marcflavour + "_field_" + this.tagfield + ".xml",
209
                dataType: "xml",
210
                dataType: "xml",
210
                async: false
211
                async: false
211
            }).responseXML;
212
            }).responseXML;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_006.tt (-1 / +1 lines)
Lines 16-22 Link Here
16
        var form = document.f_pop;
16
        var form = document.f_pop;
17
        h4_result = document.getElementById("h4_result");
17
        h4_result = document.getElementById("h4_result");
18
        tr_result = document.getElementById("tr_result");
18
        tr_result = document.getElementById("tr_result");
19
        objXmlControlField = new xmlControlField('[% tagfield %]', 'f_pop', document.getElementById('material_type'), document.getElementById('table_material_types'), 'h4_result', 'tr_result', '', '[% themelang %]');
19
        objXmlControlField = new xmlControlField('[% tagfield %]', 'f_pop', document.getElementById('material_type'), document.getElementById('table_material_types'), 'h4_result', 'tr_result', '', '[% themelang %]', '[% marcflavour %]');
20
        objXmlControlField.loadXmlValues();
20
        objXmlControlField.loadXmlValues();
21
        renderResult(tr_result, (form.result.value != "")?form.result.value:returnValueParam("result"));
21
        renderResult(tr_result, (form.result.value != "")?form.result.value:returnValueParam("result"));
22
        [% END %]
22
        [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_008.tt (-2 / +1 lines)
Lines 16-22 Link Here
16
        var form = document.f_pop;
16
        var form = document.f_pop;
17
        h4_result = document.getElementById("h4_result");
17
        h4_result = document.getElementById("h4_result");
18
        tr_result = document.getElementById("tr_result");
18
        tr_result = document.getElementById("tr_result");
19
        objXmlControlField = new xmlControlField('[% tagfield %]', 'f_pop', document.getElementById('material_type'), document.getElementById('table_material_types'), 'h4_result', 'tr_result', '', '[% themelang %]');
19
        objXmlControlField = new xmlControlField('[% tagfield %]', 'f_pop', document.getElementById('material_type'), document.getElementById('table_material_types'), 'h4_result', 'tr_result', '', '[% themelang %]', '[% marcflavour %]');
20
        objXmlControlField.loadXmlValues();
20
        objXmlControlField.loadXmlValues();
21
        renderResult(tr_result, (form.result.value != "")?form.result.value:returnValueParam("result"));
21
        renderResult(tr_result, (form.result.value != "")?form.result.value:returnValueParam("result"));
22
        [% END %]
22
        [% END %]
23
- 

Return to bug 11004