| 
      
            Lines 1789-1794
          Note that permanent location is a code, and location may be an authval.
      
      
        Link Here
      
     | 
  
        
          | 1789 | 
                                    } else { | 
          1789 | 
                                    } else { | 
        
        
          | 1790 | 
                                        $('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Item '%s' belongs to another bundle").format(barcode)+'</div>'); | 
          1790 | 
                                        $('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Item '%s' belongs to another bundle").format(barcode)+'</div>'); | 
        
        
          | 1791 | 
                                    }  | 
          1791 | 
                                    }  | 
        
            
               | 
               | 
              1792 | 
                                    } else if ( data.status === 404 ) { | 
            
            
              | 1793 | 
                                        $('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Item '%s' not found").format(barcode)+'</div>'); | 
            
        
          | 1792 | 
                                } else { | 
          1794 | 
                                } else { | 
        
        
          | 1793 | 
                                    $('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Check the logs for details")+'</div>'); | 
          1795 | 
                                    $('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Check the logs for details")+'</div>'); | 
        
        
          | 1794 | 
                                }  | 
          1796 | 
                                }  | 
        
  
    | 
      
            Lines 1856-1861
          Note that permanent location is a code, and location may be an authval.
      
      
        Link Here
      
     | 
  
        
          | 1856 | 
                                          } else { | 
          1858 | 
                                          } else { | 
        
        
          | 1857 | 
                                              $('#removeResult').replaceWith('<div id="removeResult" class="alert alert-danger">'+_("Failure: Item '%s' belongs to another bundle").format(barcode)+'</div>'); | 
          1859 | 
                                              $('#removeResult').replaceWith('<div id="removeResult" class="alert alert-danger">'+_("Failure: Item '%s' belongs to another bundle").format(barcode)+'</div>'); | 
        
        
          | 1858 | 
                                          }  | 
          1860 | 
                                          }  | 
        
            
               | 
               | 
              1861 | 
                                          } else if ( data.status === 404 ) { | 
            
            
              | 1862 | 
                                              $('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Item '%s' not found").format(barcode)+'</div>'); | 
            
        
          | 1859 | 
                                      } else { | 
          1863 | 
                                      } else { | 
        
        
          | 1860 | 
                                          $('#removeResult').replaceWith('<div id="removeResult" class="alert alert-danger">'+_("Failure: Check the logs for details")+'</div>'); | 
          1864 | 
                                          $('#removeResult').replaceWith('<div id="removeResult" class="alert alert-danger">'+_("Failure: Check the logs for details")+'</div>'); | 
        
        
          | 1861 | 
                                      }  | 
          1865 | 
                                      }  | 
        
            
              | 1862 | 
              -   | 
               | 
               |