| 
      
            Lines 126-135
          function addRecord(val, selection,NoMsgAlert) {
      
      
        Link Here
      
     | 
  
        
          | 126 | 
              if (write) { | 
          126 | 
              if (write) { | 
        
        
          | 127 | 
                  writeCookie(nameCookie, valCookie);  | 
          127 | 
                  writeCookie(nameCookie, valCookie);  | 
        
        
          | 128 | 
                  if (selection) { // when adding a selection of records | 
          128 | 
                  if (selection) { // when adding a selection of records | 
        
            
               | 
               | 
              129 | 
                          updateLink(val,"add");  | 
            
        
          | 129 | 
                      return 1;  | 
          130 | 
                      return 1;  | 
        
        
          | 130 | 
                  }  | 
          131 | 
                  }  | 
        
        
          | 131 | 
                  if (! NoMsgAlert ) { | 
          132 | 
                  if (! NoMsgAlert ) { | 
        
        
          | 132 | 
                      showCartUpdate(MSG_RECORD_ADDED);  | 
          133 | 
                      showCartUpdate(MSG_RECORD_ADDED);  | 
        
            
               | 
               | 
              134 | 
                          updateLink(val,"add");  | 
            
        
          | 133 | 
                  }  | 
          135 | 
                  }  | 
        
        
          | 134 | 
              }  | 
          136 | 
              }  | 
        
        
          | 135 | 
          }  | 
          137 | 
          }  | 
        
  
    | 
      
            Lines 227-232
          function selRecord(num, status) {
      
      
        Link Here
      
     | 
  
        
          | 227 | 
              document.myform.records.value = str;  | 
          229 | 
              document.myform.records.value = str;  | 
        
        
          | 228 | 
          }  | 
          230 | 
          }  | 
        
        
          | 229 | 
           | 
          231 | 
           | 
        
            
               | 
               | 
              232 | 
              function delSingleRecord(biblionumber){ | 
            
            
              | 233 | 
                  var valCookie = readCookie(nameCookie);  | 
            
            
              | 234 | 
                  var arrayRecords = valCookie.split("/"); | 
            
            
              | 235 | 
                  var pos = jQuery.inArray(biblionumber,arrayRecords);  | 
            
            
              | 236 | 
                  arrayRecords.splice(pos,1);  | 
            
            
              | 237 | 
                  valCookie = arrayRecords.join("/"); | 
            
            
              | 238 | 
                  writeCookie( nameCookie, valCookie );  | 
            
            
              | 239 | 
                  updateBasket( arrayRecords.length-1 );  | 
            
            
              | 240 | 
                  updateLink(biblionumber,"del");  | 
            
            
              | 241 | 
                  showCartUpdate(MSG_RECORD_REMOVED);  | 
            
            
              | 242 | 
              }  | 
            
            
              | 243 | 
               | 
            
        
          | 230 | 
          function delSelRecords() { | 
          244 | 
          function delSelRecords() { | 
        
        
          | 231 | 
              var recordsSel = 0;  | 
          245 | 
              var recordsSel = 0;  | 
        
        
          | 232 | 
              var end = 0;  | 
          246 | 
              var end = 0;  | 
        
  
    | 
      
            Lines 243-248
          function delSelRecords() {
      
      
        Link Here
      
     | 
  
        
          | 243 | 
                              num = str.substring(0, s);  | 
          257 | 
                              num = str.substring(0, s);  | 
        
        
          | 244 | 
                              str = delRecord(num,str);  | 
          258 | 
                              str = delRecord(num,str);  | 
        
        
          | 245 | 
                              str2 = delRecord(num,str2);  | 
          259 | 
                              str2 = delRecord(num,str2);  | 
        
            
               | 
               | 
              260 | 
                                  updateLink(num,"del",top.opener);  | 
            
        
          | 246 | 
                          } else { | 
          261 | 
                          } else { | 
        
        
          | 247 | 
                              end = 1;  | 
          262 | 
                              end = 1;  | 
        
        
          | 248 | 
                          }  | 
          263 | 
                          }  | 
        
  
    | 
      
            Lines 308-313
          function delBasket(context,rep) {
      
      
        Link Here
      
     | 
  
        
          | 308 | 
              if (rep) { | 
          323 | 
              if (rep) { | 
        
        
          | 309 | 
                  if(context == "popup"){ | 
          324 | 
                  if(context == "popup"){ | 
        
        
          | 310 | 
                      delCookie(nameCookie);  | 
          325 | 
                      delCookie(nameCookie);  | 
        
            
               | 
               | 
              326 | 
                          updateAllLinks(top.opener);  | 
            
        
          | 311 | 
                      document.location = "about:blank";  | 
          327 | 
                      document.location = "about:blank";  | 
        
        
          | 312 | 
                      updateBasket(0,top.opener);  | 
          328 | 
                      updateBasket(0,top.opener);  | 
        
        
          | 313 | 
                      window.close();  | 
          329 | 
                      window.close();  | 
        
  
    | 
      
            Lines 438-443
          function hideCart(){
      
      
        Link Here
      
     | 
  
        
          | 438 | 
              $("#cartDetails").fadeOut("fast"); | 
          454 | 
              $("#cartDetails").fadeOut("fast"); | 
        
        
          | 439 | 
          }  | 
          455 | 
          }  | 
        
        
          | 440 | 
           | 
          456 | 
           | 
        
            
               | 
               | 
              457 | 
              function updateLink(val,op,target){ | 
            
            
              | 458 | 
                  if(target){ | 
            
            
              | 459 | 
                      if(op == "add"){ | 
            
            
              | 460 | 
                          target.$("#cart"+val).html(MSG_ITEM_IN_CART).addClass("incart"); | 
            
            
              | 461 | 
                          target.$("#cartR"+val).show(); | 
            
            
              | 462 | 
                      } else { | 
            
            
              | 463 | 
                          target.$("#cart"+val).html(MSG_ITEM_NOT_IN_CART).removeClass("incart").addClass("addtocart"); | 
            
            
              | 464 | 
                          target.$("#cartR"+val).hide(); | 
            
            
              | 465 | 
                      }  | 
            
            
              | 466 | 
                  } else { | 
            
            
              | 467 | 
                      if(op == "add"){ | 
            
            
              | 468 | 
                          $("#cart"+val).html(MSG_ITEM_IN_CART).addClass("incart"); | 
            
            
              | 469 | 
                          $("#cartR"+val).show(); | 
            
            
              | 470 | 
                      } else { | 
            
            
              | 471 | 
                          $("#cart"+val).html(MSG_ITEM_NOT_IN_CART).removeClass("incart").addClass("addtocart"); | 
            
            
              | 472 | 
                          $("#cartR"+val).hide(); | 
            
            
              | 473 | 
                      }  | 
            
            
              | 474 | 
                  }  | 
            
            
              | 475 | 
              }  | 
            
            
              | 476 | 
               | 
            
            
              | 477 | 
              function updateAllLinks(target){ | 
            
            
              | 478 | 
                  if(target){ | 
            
            
              | 479 | 
                      target.$("a.incart").html(MSG_ITEM_NOT_IN_CART).removeClass("incart").addClass("addtocart"); | 
            
            
              | 480 | 
                      target.$(".cartRemove").hide(); | 
            
            
              | 481 | 
                  } else { | 
            
            
              | 482 | 
                      $("a.incart").html(MSG_ITEM_NOT_IN_CART).removeClass("incart").addClass("addtocart"); | 
            
            
              | 483 | 
                      $(".cartRemove").hide(); | 
            
            
              | 484 | 
                  }  | 
            
            
              | 485 | 
              }  | 
            
            
              | 486 | 
               | 
            
        
          | 441 | 
          $(document).ready(function(){ | 
          487 | 
          $(document).ready(function(){ | 
        
        
          | 442 | 
          	$("#cartmenulink").click(function(){ openBasket(); return false; }); | 
          488 | 
          	$("#cartmenulink").click(function(){ openBasket(); return false; }); | 
        
        
          | 443 | 
          	if(basketcount){ updateBasket(basketcount); } | 
          489 | 
          	if(basketcount){ updateBasket(basketcount); } | 
        
            
              | 444 | 
              -   | 
               | 
               |