| 
      
            Lines 128-137
          function addRecord(val, selection,NoMsgAlert) {
      
      
        Link Here
      
     | 
  
        
          | 128 | 
              if (write) { | 
          128 | 
              if (write) { | 
        
        
          | 129 | 
                  writeCookie(nameCookie, valCookie);  | 
          129 | 
                  writeCookie(nameCookie, valCookie);  | 
        
        
          | 130 | 
                  if (selection) { // when adding a selection of records | 
          130 | 
                  if (selection) { // when adding a selection of records | 
        
            
               | 
               | 
              131 | 
                          updateLink(val,"add");  | 
            
        
          | 131 | 
                      return 1;  | 
          132 | 
                      return 1;  | 
        
        
          | 132 | 
                  }  | 
          133 | 
                  }  | 
        
        
          | 133 | 
                  if (! NoMsgAlert ) { | 
          134 | 
                  if (! NoMsgAlert ) { | 
        
        
          | 134 | 
                      showCartUpdate(MSG_RECORD_ADDED);  | 
          135 | 
                      showCartUpdate(MSG_RECORD_ADDED);  | 
        
            
               | 
               | 
              136 | 
                          updateLink(val,"add");  | 
            
        
          | 135 | 
                  }  | 
          137 | 
                  }  | 
        
        
          | 136 | 
              }  | 
          138 | 
              }  | 
        
        
          | 137 | 
          }  | 
          139 | 
          }  | 
        
  
    | 
      
            Lines 229-240
          function selRecord(num, status) {
      
      
        Link Here
      
     | 
  
        
          | 229 | 
              document.myform.records.value = str;  | 
          231 | 
              document.myform.records.value = str;  | 
        
        
          | 230 | 
          }  | 
          232 | 
          }  | 
        
        
          | 231 | 
           | 
          233 | 
           | 
        
            
               | 
               | 
              234 | 
              function delSingleRecord(biblionumber){ | 
            
            
              | 235 | 
                  var nameCookie = "bib_list";  | 
            
            
              | 236 | 
                  var valCookie = readCookie(nameCookie);  | 
            
            
              | 237 | 
                  var arrayRecords = valCookie.split("/"); | 
            
            
              | 238 | 
                  var pos = jQuery.inArray(biblionumber,arrayRecords);  | 
            
            
              | 239 | 
                  arrayRecords.splice(pos,1);  | 
            
            
              | 240 | 
                  valCookie = arrayRecords.join("/"); | 
            
            
              | 241 | 
                  writeCookie( nameCookie, valCookie );  | 
            
            
              | 242 | 
                  updateBasket( arrayRecords.length-1 );  | 
            
            
              | 243 | 
                  updateLink(biblionumber,"del");  | 
            
            
              | 244 | 
                  showCartUpdate(MSG_RECORD_REMOVED);  | 
            
            
              | 245 | 
              }  | 
            
            
              | 246 | 
               | 
            
        
          | 232 | 
          function delSelRecords() { | 
          247 | 
          function delSelRecords() { | 
        
        
          | 233 | 
              var recordsSel = 0;  | 
          248 | 
              var recordsSel = 0;  | 
        
        
          | 234 | 
              var end = 0;  | 
          249 | 
              var end = 0;  | 
        
        
          | 235 | 
              var nameCookie = "bib_list";  | 
          250 | 
              var nameCookie = "bib_list";  | 
        
        
          | 236 | 
              var valCookie = readCookie(nameCookie, 1);  | 
          251 | 
              var valCookie = readCookie(nameCookie, 1);  | 
        
            
              | 237 | 
               | 
               | 
               | 
            
        
          | 238 | 
              if (valCookie) { | 
          252 | 
              if (valCookie) { | 
        
        
          | 239 | 
                  var str = document.myform.records.value;  | 
          253 | 
                  var str = document.myform.records.value;  | 
        
        
          | 240 | 
                  if (str.length > 0){ | 
          254 | 
                  if (str.length > 0){ | 
        
  
    | 
      
            Lines 243-251
          function delSelRecords() {
      
      
        Link Here
      
     | 
  
        
          | 243 | 
                      while (!end){ | 
          257 | 
                      while (!end){ | 
        
        
          | 244 | 
                          s = str.indexOf("/"); | 
          258 | 
                          s = str.indexOf("/"); | 
        
        
          | 245 | 
                          if (s>0){ | 
          259 | 
                          if (s>0){ | 
        
          
            
              | 246 | 
                                  num = str.substring(0, s)  | 
              260 | 
                                  num = str.substring(0, s);  | 
            
        
          | 247 | 
                              str = delRecord(num,str);  | 
          261 | 
                              str = delRecord(num,str);  | 
        
        
          | 248 | 
                              str2 = delRecord(num,str2);  | 
          262 | 
                              str2 = delRecord(num,str2);  | 
        
            
               | 
               | 
              263 | 
                                  updateLink(num,"del",top.opener);  | 
            
        
          | 249 | 
                          } else { | 
          264 | 
                          } else { | 
        
        
          | 250 | 
                              end = 1;  | 
          265 | 
                              end = 1;  | 
        
        
          | 251 | 
                          }  | 
          266 | 
                          }  | 
        
  
    | 
      
            Lines 312-317
          function delBasket() {
      
      
        Link Here
      
     | 
  
        
          | 312 | 
              rep = confirm(MSG_CONFIRM_DEL_BASKET);  | 
          327 | 
              rep = confirm(MSG_CONFIRM_DEL_BASKET);  | 
        
        
          | 313 | 
              if (rep) { | 
          328 | 
              if (rep) { | 
        
        
          | 314 | 
                  delCookie(nameCookie);  | 
          329 | 
                  delCookie(nameCookie);  | 
        
            
               | 
               | 
              330 | 
                      updateAllLinks(top.opener);  | 
            
        
          | 315 | 
                  document.location = "about:blank";  | 
          331 | 
                  document.location = "about:blank";  | 
        
        
          | 316 | 
                  updateBasket(0,top.opener);  | 
          332 | 
                  updateBasket(0,top.opener);  | 
        
        
          | 317 | 
                  window.close();  | 
          333 | 
                  window.close();  | 
        
  
    | 
      
            Lines 462-467
          function hideLists(){
      
      
        Link Here
      
     | 
  
        
          | 462 | 
              $("#listsDetails").fadeOut("fast"); | 
          478 | 
              $("#listsDetails").fadeOut("fast"); | 
        
        
          | 463 | 
          }  | 
          479 | 
          }  | 
        
        
          | 464 | 
           | 
          480 | 
           | 
        
            
               | 
               | 
              481 | 
              function updateLink(val,op,target){ | 
            
            
              | 482 | 
                  if(target){ | 
            
            
              | 483 | 
                      if(op == "add"){ | 
            
            
              | 484 | 
                          target.$("a.cart"+val).html(MSG_ITEM_IN_CART).addClass("incart"); | 
            
            
              | 485 | 
                          target.$("a.cartR"+val).show(); | 
            
            
              | 486 | 
                      } else { | 
            
            
              | 487 | 
                          target.$("a.cart"+val).html(MSG_ITEM_NOT_IN_CART).removeClass("incart").addClass("addtocart cart"+val); | 
            
            
              | 488 | 
                          target.$("a.cartR"+val).hide(); | 
            
            
              | 489 | 
                      }  | 
            
            
              | 490 | 
                  } else { | 
            
            
              | 491 | 
                      if(op == "add"){ | 
            
            
              | 492 | 
                          $("a.cart"+val).html(MSG_ITEM_IN_CART).addClass("incart"); | 
            
            
              | 493 | 
                          $("a.cartR"+val).show(); | 
            
            
              | 494 | 
                      } else { | 
            
            
              | 495 | 
                          $("a.cart"+val).html(MSG_ITEM_NOT_IN_CART).removeClass("incart").addClass("addtocart cart"+val); | 
            
            
              | 496 | 
                          $("a.cartR"+val).hide(); | 
            
            
              | 497 | 
                      }  | 
            
            
              | 498 | 
                  }  | 
            
            
              | 499 | 
              }  | 
            
            
              | 500 | 
               | 
            
            
              | 501 | 
              function updateAllLinks(target){ | 
            
            
              | 502 | 
                  if(target){ | 
            
            
              | 503 | 
                      target.$("a.incart").html(MSG_ITEM_NOT_IN_CART).removeClass("incart").addClass("addtocart"); | 
            
            
              | 504 | 
                      target.$("a.cartRemove").hide(); | 
            
            
              | 505 | 
                  } else { | 
            
            
              | 506 | 
                      $("a.incart").html(MSG_ITEM_NOT_IN_CART).removeClass("incart").addClass("addtocart"); | 
            
            
              | 507 | 
                      $("a.cartRemove").hide(); | 
            
            
              | 508 | 
                  }  | 
            
            
              | 509 | 
              }  | 
            
            
              | 510 | 
               | 
            
        
          | 465 | 
          $("#cartDetails").ready(function(){ | 
          511 | 
          $("#cartDetails").ready(function(){ | 
        
        
          | 466 | 
          	$("#cartDetails,#cartmenulink").click(function(){ hideCart(); }); | 
          512 | 
          	$("#cartDetails,#cartmenulink").click(function(){ hideCart(); }); | 
        
        
          | 467 | 
          	$("#cartmenulink").click(function(){ openBasket(); return false; }); | 
          513 | 
          	$("#cartmenulink").click(function(){ openBasket(); return false; }); |