[open-ils-commits] [GIT] Evergreen ILS branch rel_3_3 updated. 9c5182acc8860e252024f82b03cb8a09e129ccb5
Evergreen Git
git at git.evergreen-ils.org
Thu May 16 11:37:29 EDT 2019
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_3_3 has been updated
via 9c5182acc8860e252024f82b03cb8a09e129ccb5 (commit)
from e25a67e3c9c159c858abeb2e1a2855c8fd3bff27 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 9c5182acc8860e252024f82b03cb8a09e129ccb5
Author: Bill Erickson <berickxx at gmail.com>
Date: Tue May 14 13:03:35 2019 -0400
LP1813633 TCN search can find deleted records
As with the XUL client, when performing a bib record TCN search
(Cataloging -> Retrieve Record By TCN), first look for non-deleted
records with the requested TCN. When none are found, perform a
secondary search for deleted records with the requested TCN.
To test in concerto:
[1] Navigate to Cataloging -> Retrieve Record By TCN
[2] Search for TCN value "10", which is deleted by default in Concerto.
[3] Confirm the deleted record is loaded.
Signed-off-by: Bill Erickson <berickxx at gmail.com>
Signed-off-by: Garry Collum <gcollum at gmail.com>
diff --git a/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js b/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js
index 8d3ed24a78..2988d9504c 100644
--- a/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js
+++ b/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js
@@ -181,24 +181,29 @@ function($scope , $routeParams , $location , $q , egCore ) {
.then(function(resp) { // get_barcodes
- if (evt = egCore.evt.parse(resp)) {
- alert(evt); // FIXME
- return;
+ if (resp.count) {
+ return $q.when(resp);
+ } else {
+ // Search again including deleted records
+ return egCore.net.request('open-ils.search',
+ 'open-ils.search.biblio.tcn', args.record_tcn, true);
}
- if (!resp.count) {
+ }).then(function(resp2) {
+
+ if (!resp2.count) {
$scope.recordNotFound = args.record_tcn;
$scope.selectMe = true;
return;
}
- if (resp.count > 1) {
+ if (resp2.count > 1) {
$scope.moreRecordsFound = args.record_tcn;
$scope.selectMe = true;
return;
}
- var record_id = resp.ids[0];
+ var record_id = resp2.ids[0];
return loadRecord(record_id);
});
}
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/web/js/ui/default/staff/cat/catalog/app.js | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list