LP1838580: Holds Shelf detail view record summary doesn't populate
authorGarry Collum <gcollum@gmail.com>
Tue, 16 Nov 2021 18:43:17 +0000 (13:43 -0500)
committerBill Erickson <berickxx@gmail.com>
Wed, 16 Mar 2022 18:59:36 +0000 (14:59 -0400)
Fixes the record summary of the detail view from the holds shelf. After
the patch is applied the bibliographic data displays in the detail view.

To test:

1. Go to Holds Shelf
2. Select a line
3. Click on the Detail View button, and notice that the bibliographic
information doesn't populate.
4. Click on the MARC link, to see to that the link does not take you to the
MARC view.
5. Apply patch.
6. Repeat 1-4.  The bibliographic information now displays, and the MARC link
takes you to the correct page.

Signed-off-by: Garry Collum <gcollum@gmail.com>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Bill Erickson <berickxx@gmail.com>

Open-ILS/web/js/ui/default/staff/circ/holds/app.js

index cc13f30..6fbb10c 100644 (file)
@@ -198,7 +198,7 @@ function($scope , $q , $routeParams , $window , $location , egCore , egHolds , e
     // when the detail hold is fetched (and updated), update the bib
     // record summary display record id.
     $scope.set_hold = function(hold_data) {
-        $scope.detail_hold_record_id = hold_data.hold.record_id;
+        $scope.detail_hold_record_id = hold_data.bre_id;
     }
 
     // manage active vs. clearable holds display