koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/acqui.simple add


From: Paul POULAIN
Subject: [Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/acqui.simple addbiblio.tmpl,1.33.2.1,1.33.2.2
Date: Tue, 08 Mar 2005 05:18:15 -0800

Update of /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/acqui.simple
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30086/koha-tmpl/intranet-tmpl/default/en/acqui.simple

Modified Files:
      Tag: rel_2_2
        addbiblio.tmpl 
Log Message:
adding button to duplicate the biblio

Index: addbiblio.tmpl
===================================================================
RCS file: 
/cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/acqui.simple/addbiblio.tmpl,v
retrieving revision 1.33.2.1
retrieving revision 1.33.2.2
diff -C2 -r1.33.2.1 -r1.33.2.2
*** addbiblio.tmpl      3 Feb 2005 17:05:25 -0000       1.33.2.1
--- addbiblio.tmpl      8 Mar 2005 13:18:10 -0000       1.33.2.2
***************
*** 422,425 ****
--- 422,426 ----
        // Scan for missing mandatory subfields
        var total_missing_mandatory_subfields = 0;
+       var missing_mandatory_subfields = new Array();
        for (i=0 ; i<f.field_value.length-2 ; i++) {
                if (f.field_value[i].value.length==0 && 
f.mandatory[i].value==1) {
***************
*** 430,434 ****
                        
document.getElementById("error"+i).style.backgroundColor="#FF0000";
                        total_missing_mandatory_subfields++;
!                   }
                } else {
                        
document.getElementById("error"+i).style.backgroundColor="#FFFFFF";
--- 431,444 ----
                        
document.getElementById("error"+i).style.backgroundColor="#FF0000";
                        total_missing_mandatory_subfields++;
!                       if 
(document.getElementById("error"+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)
 + ")");
!                       }
!                       else
!                       {
!                               
missing_mandatory_subfields.push(document.getElementById("error"+i).innerHTML + 
" (tab " +  
document.getElementById("error"+i).parentNode.parentNode.parentNode.id.substr(0,1)
 + ")");
!                       }
! 
!                       }
                } else {
                        
document.getElementById("error"+i).style.backgroundColor="#FFFFFF";
***************
*** 439,442 ****
--- 449,453 ----
        var total_missing_mandatory_tags = 0;
        var seen_mandatory_tag_p = new Array();
+       var missing_mandatory_tags = new Array();
        for (i=0 ; i<f.field_value.length ; i++) {
            var j = f.tag[i].value;
***************
*** 445,448 ****
--- 456,467 ----
                    seen_mandatory_tag_p[j] = 1;
                    total_missing_mandatory_tags++;
+                   if (document.getElementById("error"+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)
 + ")");
+                   }
+                   else
+                   {
+                               
missing_mandatory_tags.push(document.getElementById("error"+i).innerHTML + " 
(tab " +  
document.getElementById("error"+i).parentNode.parentNode.parentNode.id.substr(0,1)
 + ")");
+                       }
                }
                
document.getElementById("error"+i).style.backgroundColor="#ffff00";
***************
*** 456,460 ****
                alertString2 += 
"\n------------------------------------------------------------------------------------\n";
                alertString2 += "\n- "+ total_missing_mandatory_tags +_(" 
mandatory tags empty");
!               alertString2 += "\n- "+ total_missing_mandatory_subfields +_(" 
mandatory fields empty (see bold subfields)");
                alert(alertString2);
        } else {
--- 475,487 ----
                alertString2 += 
"\n------------------------------------------------------------------------------------\n";
                alertString2 += "\n- "+ total_missing_mandatory_tags +_(" 
mandatory tags empty");
!               for (i=0; i<missing_mandatory_tags.length; i++)
!               {
!                       alertString2 += "\n--->"+ missing_mandatory_tags[i];
!               }
!               alertString2 += "\n- "+ total_missing_mandatory_subfields +_(" 
mandatory fields empty (see bold subfields)");
!               for (i=0; i<missing_mandatory_subfields.length; i++)
!               {
!                       alertString2 += "\n--->"+ 
missing_mandatory_subfields[i];
!               }
                alert(alertString2);
        } else {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]