From da1bc239fdefd358173e82b2c13d76a5aa6fd701 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 26 Oct 2017 15:55:46 -0400 Subject: [PATCH] LP#1727487 Webstaff record summary uses display fields Signed-off-by: Bill Erickson Signed-off-by: Kathy Lussier Signed-off-by: Dan Wells --- .../src/templates/staff/cat/share/t_record_summary.tt2 | 14 +++++++------- Open-ILS/web/js/ui/default/staff/cat/services/record.js | 15 +++++---------- 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/Open-ILS/src/templates/staff/cat/share/t_record_summary.tt2 b/Open-ILS/src/templates/staff/cat/share/t_record_summary.tt2 index e11eead0eb..c98b087034 100644 --- a/Open-ILS/src/templates/staff/cat/share/t_record_summary.tt2 +++ b/Open-ILS/src/templates/staff/cat/share/t_record_summary.tt2 @@ -43,16 +43,16 @@
[% l('Author:') %]
-
{{mvr.author()}}
+
{{rec_display.author}}
[% l('Pub Date:') %]
- {{mvr.pubdate()}} + {{rec_display.pubdate}}
[% l('Database ID:') %]
@@ -66,12 +66,12 @@
[% l('Edition:') %]
-
{{mvr.edition()}}
+
{{rec_display.edition}}
[% l('TCN:') %]
{{record.tcn_value()}}
@@ -82,11 +82,11 @@
[% l('Author:') %]
-
{{mvr.author()}}
+
{{rec_display.author}}
[% l('Pub Date:') %]
- {{mvr.pubdate()}} + {{rec_display.pubdate}}
[% l('Database ID:') %]
diff --git a/Open-ILS/web/js/ui/default/staff/cat/services/record.js b/Open-ILS/web/js/ui/default/staff/cat/services/record.js index ba66c0047e..22df857d6b 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/services/record.js +++ b/Open-ILS/web/js/ui/default/staff/cat/services/record.js @@ -143,25 +143,20 @@ angular.module('egCoreMod') }, templateUrl : './cat/share/t_record_summary', controller : - ['$scope','egCore','$sce', - function($scope , egCore , $sce) { + ['$scope','egCore','$sce','egBibDisplay', + function($scope , egCore , $sce , egBibDisplay) { function loadRecord() { egCore.pcrud.retrieve('bre', $scope.recordId, { flesh : 1, flesh_fields : { - bre : ['creator','editor'] + bre : ['creator','editor','flat_display_entries'] } }).then(function(rec) { rec.owner(egCore.org.get(rec.owner())); $scope.record = rec; - }); - egCore.net.request( - 'open-ils.search', - 'open-ils.search.biblio.record.mods_slim.retrieve.authoritative', - $scope.recordId - ).then(function(mvr) { - $scope.mvr = mvr; + $scope.rec_display = + egBibDisplay.mfdeToHash(rec.flat_display_entries()); }); $scope.bib_cn = null; $scope.bib_cn_tooltip = ''; -- 2.11.0