Lines 1622-1628
Note that permanent location is a code, and location may be an authval.
Link Here
|
1622 |
if ( data.status === 409 ) { |
1622 |
if ( data.status === 409 ) { |
1623 |
var response = data.responseJSON; |
1623 |
var response = data.responseJSON; |
1624 |
if ( response.key === "PRIMARY" ) { |
1624 |
if ( response.key === "PRIMARY" ) { |
1625 |
$('#addResult').replaceWith('<div id="addResult" class="alert alert-warning">'+_("Warning: Item '%s' aready attached").format(barcode)+'</div>'); |
1625 |
$('#addResult').replaceWith('<div id="addResult" class="alert alert-warning">'+_("Warning: Item '%s' already attached").format(barcode)+'</div>'); |
1626 |
} else { |
1626 |
} else { |
1627 |
$('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Item '%s' belongs to another bundle").format(barcode)+'</div>'); |
1627 |
$('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Item '%s' belongs to another bundle").format(barcode)+'</div>'); |
1628 |
} |
1628 |
} |