Lines 1618-1624
Note that permanent location is a code, and location may be an authval.
Link Here
|
1618 |
if ( data.status === 409 ) { |
1618 |
if ( data.status === 409 ) { |
1619 |
var response = data.responseJSON; |
1619 |
var response = data.responseJSON; |
1620 |
if ( response.key === "PRIMARY" ) { |
1620 |
if ( response.key === "PRIMARY" ) { |
1621 |
$('#addResult').replaceWith('<div id="addResult" class="alert alert-warning">'+_("Warning: Item '%s' aready attached").format(barcode)+'</div>'); |
1621 |
$('#addResult').replaceWith('<div id="addResult" class="alert alert-warning">'+_("Warning: Item '%s' already attached").format(barcode)+'</div>'); |
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 |
} |