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

(-)a/koha-tmpl/intranet-tmpl/prog/en/js/xmlControlfield.js (-2 / +4 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)
171
    xmlControlField = function(tagfield, form_id, select, table, h4_result, tr_result, idMaterial, themelang)
172
    {
172
    {
173
        this.tagfield = tagfield;
173
        this.tagfield = tagfield;
174
        this.idMaterial = idMaterial;
174
        this.idMaterial = idMaterial;
Lines 178-183 function changeH4Result(form, h4_result, tr_result, pos, value) Link Here
178
        this.table = table;
178
        this.table = table;
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
    };//xmlControlField
182
    };//xmlControlField
182
183
183
184
Lines 192-197 function changeH4Result(form, h4_result, tr_result, pos, value) Link Here
192
        table: null,
193
        table: null,
193
        h4_result: "",
194
        h4_result: "",
194
        tr_result: "",
195
        tr_result: "",
196
        themelang: "",
195
197
196
198
197
        setIdMaterial: function(idMaterial)
199
        setIdMaterial: function(idMaterial)
Lines 203-209 function changeH4Result(form, h4_result, tr_result, pos, value) Link Here
203
        {
205
        {
204
            this.xmlDoc = $.ajax({
206
            this.xmlDoc = $.ajax({
205
                type: "GET",
207
                type: "GET",
206
                url: "/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_" + this.tagfield + ".xml",
208
                url: this.themelang + "/modules/cataloguing/value_builder/marc21_field_" + this.tagfield + ".xml",
207
                dataType: "xml",
209
                dataType: "xml",
208
                async: false
210
                async: false
209
            }).responseXML;
211
            }).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', '');
19
        objXmlControlField = new xmlControlField('[% tagfield %]', 'f_pop', document.getElementById('material_type'), document.getElementById('table_material_types'), 'h4_result', 'tr_result', '', '[% themelang %]');
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', '');
19
        objXmlControlField = new xmlControlField('[% tagfield %]', 'f_pop', document.getElementById('material_type'), document.getElementById('table_material_types'), 'h4_result', 'tr_result', '', '[% themelang %]');
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 6715