| 
      
            Lines 1622-1627
          Note that permanent location is a code, and location may be an authval.
      
      
        Link Here
      
     | 
  
        
          | 1622 | 
                                    } else { | 
          1622 | 
                                    } else { | 
        
        
          | 1623 | 
                                        $('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Item '%s' belongs to another bundle").format(barcode)+'</div>'); | 
          1623 | 
                                        $('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Item '%s' belongs to another bundle").format(barcode)+'</div>'); | 
        
        
          | 1624 | 
                                    }  | 
          1624 | 
                                    }  | 
        
            
               | 
               | 
              1625 | 
                                    } else if ( data.status === 404 ) { | 
            
            
              | 1626 | 
                                        $('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Item '%s' not found").format(barcode)+'</div>'); | 
            
        
          | 1625 | 
                                } else { | 
          1627 | 
                                } else { | 
        
        
          | 1626 | 
                                    $('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Check the logs for details")+'</div>'); | 
          1628 | 
                                    $('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Check the logs for details")+'</div>'); | 
        
        
          | 1627 | 
                                }  | 
          1629 | 
                                }  | 
        
  
    | 
      
            Lines 1689-1694
          Note that permanent location is a code, and location may be an authval.
      
      
        Link Here
      
     | 
  
        
          | 1689 | 
                                          } else { | 
          1691 | 
                                          } else { | 
        
        
          | 1690 | 
                                              $('#removeResult').replaceWith('<div id="removeResult" class="alert alert-danger">'+_("Failure: Item '%s' belongs to another bundle").format(barcode)+'</div>'); | 
          1692 | 
                                              $('#removeResult').replaceWith('<div id="removeResult" class="alert alert-danger">'+_("Failure: Item '%s' belongs to another bundle").format(barcode)+'</div>'); | 
        
        
          | 1691 | 
                                          }  | 
          1693 | 
                                          }  | 
        
            
               | 
               | 
              1694 | 
                                          } else if ( data.status === 404 ) { | 
            
            
              | 1695 | 
                                              $('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Item '%s' not found").format(barcode)+'</div>'); | 
            
        
          | 1692 | 
                                      } else { | 
          1696 | 
                                      } else { | 
        
        
          | 1693 | 
                                          $('#removeResult').replaceWith('<div id="removeResult" class="alert alert-danger">'+_("Failure: Check the logs for details")+'</div>'); | 
          1697 | 
                                          $('#removeResult').replaceWith('<div id="removeResult" class="alert alert-danger">'+_("Failure: Check the logs for details")+'</div>'); | 
        
        
          | 1694 | 
                                      }  | 
          1698 | 
                                      }  | 
        
            
              | 1695 | 
              -   | 
               | 
               |