@@ -, +, @@
---
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 4 ++++
1 file changed, 4 insertions(+)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
@@ -1626,6 +1626,8 @@ Note that permanent location is a code, and location may be an authval.
} else {
$('#addResult').replaceWith('
'+_("Failure: Item '%s' belongs to another bundle").format(barcode)+'
');
}
+ } else if ( data.status === 404 ) {
+ $('#addResult').replaceWith(''+_("Failure: Item '%s' not found").format(barcode)+'
');
} else {
$('#addResult').replaceWith(''+_("Failure: Check the logs for details")+'
');
}
@@ -1693,6 +1695,8 @@ Note that permanent location is a code, and location may be an authval.
} else {
$('#removeResult').replaceWith(''+_("Failure: Item '%s' belongs to another bundle").format(barcode)+'
');
}
+ } else if ( data.status === 404 ) {
+ $('#addResult').replaceWith(''+_("Failure: Item '%s' not found").format(barcode)+'
');
} else {
$('#removeResult').replaceWith(''+_("Failure: Check the logs for details")+'
');
}
--