From 031bc9d5a13b70628bf7272274013f2c7e199d18 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 4 Feb 2019 14:36:26 -0500 Subject: [PATCH] LP1746360 Bib bucket 'Edition' display repair Parse the JSON string value when fetching the metabib.wide_display_entry data used to render the new Edition value. Signed-off-by: Bill Erickson --- Open-ILS/web/js/ui/default/staff/cat/bucket/record/app.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Open-ILS/web/js/ui/default/staff/cat/bucket/record/app.js b/Open-ILS/web/js/ui/default/staff/cat/bucket/record/app.js index a9fa25e132..110ace13e5 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/bucket/record/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/bucket/record/app.js @@ -533,6 +533,15 @@ function($scope, $q , $routeParams, bucketSvc, egCore, $window, setQuery : function(q) { if (q) query = q; return query; + }, + itemRetrieved: function(item) { + // De-JSON-ify a wide display entry field. + // We don't use egBibDisplay.mwdeJSONToJS() since this + // is not a full "mwde" object. Instead it's a single + // non-multi-field, JSON-encoded value. + item['biblio_record.wide_display_entry.edition'] = + JSON.parse(item['biblio_record.wide_display_entry.edition']) + || ''; } }; -- 2.11.0