diff --git a/koha-tmpl/intranet-tmpl/default/en/acqui.simple/addbiblio.tmpl b/koha-tmpl/intranet-tmpl/default/en/acqui.simple/addbiblio.tmpl index c708e10b23..3a16dc85d9 100644 --- a/koha-tmpl/intranet-tmpl/default/en/acqui.simple/addbiblio.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/acqui.simple/addbiblio.tmpl @@ -67,7 +67,7 @@ "> "> - "> - + "> - "> @@ -125,7 +125,7 @@ "> "> - "> - + "> - "> @@ -183,7 +183,7 @@ "> "> - "> - + "> - "> @@ -241,7 +241,7 @@ "> "> - "> - + "> - "> @@ -300,7 +300,7 @@ "> "> - "> - + "> - "> @@ -359,7 +359,7 @@ "> "> - "> - + "> - "> @@ -418,7 +418,7 @@ "> "> - "> - + "> - "> @@ -477,7 +477,7 @@ "> "> - "> - + "> - "> @@ -536,7 +536,7 @@ "> "> - "> - + "> - "> @@ -595,7 +595,7 @@ "> "> - "> - + "> - "> @@ -673,7 +673,6 @@ function _(s) { return s } // dummy function for gettext function openAuth(tagid,authtype,subfieldid) { -alert("SI"+subfieldid); defaultid=document.getElementById(subfieldid); newin=window.open("../authorities/auth_finder.pl?authtypecode="+ authtype+ "&index="+ subfieldid+ "&tagid="+tagid+"&result=", "value builder",'width=550,height=550,toolbar=false,scrollbars=yes'); } @@ -717,21 +716,23 @@ function Check(f) { // mandatory, or if something else in the tag is entered if (f.tag_mandatory[i].value == 1 || field_is_nonempty_p[f.tag[i].value]) { - document.getElementById("error"+i).style.backgroundColor="#FF0000"; +// document.getElementById("error"+i).style.backgroundColor="#FF0000"; + f.field_value[i].style.backgroundColor="#FF0000"; total_missing_mandatory_subfields++; - if (document.getElementById("error"+i).parentNode.tagName == "B") + if (f.field_value[i].parentNode.tagName == "B") { - missing_mandatory_subfields.push(document.getElementById("error"+i).innerHTML + " (tab " + document.getElementById("error"+i).parentNode.parentNode.parentNode.parentNode.id.substr(0,1) + ")"); + missing_mandatory_subfields.push(f.field_value[i].innerHTML + " (tab " + f.field_value[i].parentNode.parentNode.parentNode.parentNode.id.substr(0,1) + ")"); } else { - missing_mandatory_subfields.push(document.getElementById("error"+i).innerHTML + " (tab " + document.getElementById("error"+i).parentNode.parentNode.parentNode.id.substr(0,1) + ")"); + missing_mandatory_subfields.push(f.field_value[i].innerHTML + " (tab " + f.field_value[i].parentNode.parentNode.parentNode.id.substr(0,1) + ")"); } } } else { // alert("I = "+i); - document.getElementById("error"+i).style.backgroundColor="#FFFFFF"; +// document.getElementById("error"+i).style.backgroundColor="#FFFFFF"; + f.field_value[i].style.backgroundColor="#FFFFFF"; } } @@ -745,16 +746,17 @@ function Check(f) { if (seen_mandatory_tag_p[j] != 1) { seen_mandatory_tag_p[j] = 1; total_missing_mandatory_tags++; - if (document.getElementById("error"+i).parentNode.tagName == "B") + if (f.field_value[i].parentNode.tagName == "B") { - missing_mandatory_tags.push(document.getElementById("error"+i).innerHTML + " (tab " + document.getElementById("error"+i).parentNode.parentNode.parentNode.parentNode.id.substr(0,1) + ")"); + missing_mandatory_tags.push(f.field_value[i].innerHTML + " (tab " + f.field_value[i].parentNode.parentNode.parentNode.parentNode.id.substr(0,1) + ")"); } else { - missing_mandatory_tags.push(document.getElementById("error"+i).innerHTML + " (tab " + document.getElementById("error"+i).parentNode.parentNode.parentNode.id.substr(0,1) + ")"); + missing_mandatory_tags.push(f.field_value[i].innerHTML + " (tab " + f.field_value[i].parentNode.parentNode.parentNode.id.substr(0,1) + ")"); } } - document.getElementById("error"+i).style.backgroundColor="#ffff00"; + //document.getElementById("error"+i).style.backgroundColor="#ffff00"; + f.field_value[i].style.backgroundColor="#FFFF00"; } }