webstaff: go to lead record after merge from bucket
authorGalen Charlton <gmc@esilibrary.com>
Mon, 5 Oct 2015 19:01:30 +0000 (19:01 +0000)
committerKathy Lussier <klussier@masslnc.org>
Tue, 2 Feb 2016 19:58:48 +0000 (14:58 -0500)
After a successful record merge initiated from a record
bucket, go to the lead record rather than refreshing
the bucket display.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/web/js/ui/default/staff/cat/bucket/record/app.js

index 0b9075e..de620f0 100644 (file)
@@ -603,7 +603,8 @@ function($scope,  $q , $routeParams,  bucketSvc,  egCore,  $window,
                 args.lead_id,
                 args.records.map(function(val) { return val.id; })
             ).then(function() {
-                drawBucket();
+                $window.location.href =
+                    egCore.env.basePath + 'cat/catalog/record/' + args.lead_id;
             });
         });
     }