From: Galen Charlton Date: Thu, 28 Jan 2016 23:06:19 +0000 (-0500) Subject: webstaff: add prefix, suffix, and parts columns to holdings table X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=dcde4a9367d35a1e29fc55c156ca42c058202413;p=evergreen%2Fpines.git webstaff: add prefix, suffix, and parts columns to holdings table Signed-off-by: Galen Charlton Signed-off-by: Kathy Lussier --- diff --git a/Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2 b/Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2 index 9764b9dd15..a875631a82 100644 --- a/Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2 +++ b/Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2 @@ -99,6 +99,9 @@ + + + diff --git a/Open-ILS/web/js/ui/default/staff/cat/services/holdings.js b/Open-ILS/web/js/ui/default/staff/cat/services/holdings.js index bde91e216e..f33fa6573a 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/services/holdings.js +++ b/Open-ILS/web/js/ui/default/staff/cat/services/holdings.js @@ -15,7 +15,7 @@ function(egCore , $q) { service.prototype.flesh = { flesh : 2, flesh_fields : { - acp : ['status','location','circ_lib'], + acp : ['status','location','circ_lib','parts'], acn : ['prefix','suffix','copies'] } } @@ -106,6 +106,14 @@ function(egCore , $q) { } ); + // create virtual field for displaying active parts + angular.forEach(svc.copies, function (cp) { + cp.monograph_parts = ''; + if (cp.parts && cp.parts.length > 0) { + cp.monograph_parts = cp.parts.map(function(obj) { return obj.label; }).join(); + } + }); + // create a label using just the unique part of the owner list var index = 0; var prev_owner_list;