Lines 1626-1631
Note that permanent location is a code, and location may be an authval.
Link Here
|
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 |
} |
|
|
1629 |
} else if ( data.status === 404 ) { |
1630 |
$('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Item '%s' not found").format(barcode)+'</div>'); |
1629 |
} else { |
1631 |
} else { |
1630 |
$('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Check the logs for details")+'</div>'); |
1632 |
$('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Check the logs for details")+'</div>'); |
1631 |
} |
1633 |
} |
Lines 1693-1698
Note that permanent location is a code, and location may be an authval.
Link Here
|
1693 |
} else { |
1695 |
} else { |
1694 |
$('#removeResult').replaceWith('<div id="removeResult" class="alert alert-danger">'+_("Failure: Item '%s' belongs to another bundle").format(barcode)+'</div>'); |
1696 |
$('#removeResult').replaceWith('<div id="removeResult" class="alert alert-danger">'+_("Failure: Item '%s' belongs to another bundle").format(barcode)+'</div>'); |
1695 |
} |
1697 |
} |
|
|
1698 |
} else if ( data.status === 404 ) { |
1699 |
$('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Item '%s' not found").format(barcode)+'</div>'); |
1696 |
} else { |
1700 |
} else { |
1697 |
$('#removeResult').replaceWith('<div id="removeResult" class="alert alert-danger">'+_("Failure: Check the logs for details")+'</div>'); |
1701 |
$('#removeResult').replaceWith('<div id="removeResult" class="alert alert-danger">'+_("Failure: Check the logs for details")+'</div>'); |
1698 |
} |
1702 |
} |
1699 |
- |
|
|