[open-ils-commits] [GIT] Evergreen ILS branch rel_3_2 updated. cef22a1f8eabedf248317e266280ed7ff4f14bfa

Evergreen Git git at git.evergreen-ils.org
Thu May 16 11:37:46 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_2 has been updated
       via  cef22a1f8eabedf248317e266280ed7ff4f14bfa (commit)
      from  31bf87b3c9a0ef57ead452d42a7f84a23c315f74 (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 cef22a1f8eabedf248317e266280ed7ff4f14bfa
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