projects
/
koha.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'origin/new/bug_7986'
[koha.git]
/
koha-tmpl
/
intranet-tmpl
/
prog
/
en
/
js
/
xmlControlfield.js
diff --git
a/koha-tmpl/intranet-tmpl/prog/en/js/xmlControlfield.js
b/koha-tmpl/intranet-tmpl/prog/en/js/xmlControlfield.js
old mode 100755
(executable)
new mode 100644
(file)
index
dca6e75
..
608b79b
--- a/
koha-tmpl/intranet-tmpl/prog/en/js/xmlControlfield.js
+++ b/
koha-tmpl/intranet-tmpl/prog/en/js/xmlControlfield.js
@@
-168,7
+168,7
@@
function changeH4Result(form, h4_result, tr_result, pos, value)
(function()
{
(function()
{
- xmlControlField = function(tagfield, form_id, select, table, h4_result, tr_result, idMaterial)
+ xmlControlField = function(tagfield, form_id, select, table, h4_result, tr_result, idMaterial
, themelang
)
{
this.tagfield = tagfield;
this.idMaterial = idMaterial;
{
this.tagfield = tagfield;
this.idMaterial = idMaterial;
@@
-178,6
+178,7
@@
function changeH4Result(form, h4_result, tr_result, pos, value)
this.table = table;
this.h4_result = h4_result;
this.tr_result = tr_result;
this.table = table;
this.h4_result = h4_result;
this.tr_result = tr_result;
+ this.themelang = themelang;
};//xmlControlField
};//xmlControlField
@@
-192,6
+193,7
@@
function changeH4Result(form, h4_result, tr_result, pos, value)
table: null,
h4_result: "",
tr_result: "",
table: null,
h4_result: "",
tr_result: "",
+ themelang: "",
setIdMaterial: function(idMaterial)
setIdMaterial: function(idMaterial)
@@
-203,13
+205,13
@@
function changeH4Result(form, h4_result, tr_result, pos, value)
{
this.xmlDoc = $.ajax({
type: "GET",
{
this.xmlDoc = $.ajax({
type: "GET",
- url:
"/intranet-tmpl/prog/en
/modules/cataloguing/value_builder/marc21_field_" + this.tagfield + ".xml",
+ url:
this.themelang + "
/modules/cataloguing/value_builder/marc21_field_" + this.tagfield + ".xml",
dataType: "xml",
async: false
}).responseXML;
if (this.xmlDoc) this.renderTemplate();
$("*").ajaxError(function(evt, request, settings){
dataType: "xml",
async: false
}).responseXML;
if (this.xmlDoc) this.renderTemplate();
$("*").ajaxError(function(evt, request, settings){
- alert(
"AJAX error: receiving data from "
+ settings.url);
+ alert(
_("AJAX error: receiving data from ")
+ settings.url);
});
},//loadXmlValues
});
},//loadXmlValues