From 5c36476c8b9aadb3832963314cdc0cb27c03db8d 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 aebfb25165..6bbb09f289 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. + var edition = item['biblio_record.wide_display_entry.edition']; + item['biblio_record.wide_display_entry.edition'] = + edition ? JSON.parse(edition) : ''; } }; -- 2.11.0