LP#1789256 Monograph Part Column in Check Out
authorKyle Huckins <khuckins@catalyte.io>
Fri, 24 May 2019 19:55:44 +0000 (19:55 +0000)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 31 May 2019 14:41:07 +0000 (10:41 -0400)
Retrieve and display the label of all monograph parts for
copy listed in the Check Out table

Signed-off-by: Kyle Huckins <khuckins@catalyte.io>
Signed-off-by: Garry Collum <gcollum@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/templates/staff/circ/patron/t_checkout.tt2
Open-ILS/web/js/ui/default/staff/circ/services/circ.js

index fdfaefe..008f515 100644 (file)
   <eg-grid-field path="circ.*" parent-idl-class="circ" hidden></eg-grid-field>
   <eg-grid-field path="acp.*" parent-idl-class="acp" hidden></eg-grid-field>
   <eg-grid-field path="acn.*" parent-idl-class="acn" hidden></eg-grid-field>
+  <eg-grid-field path="_monograph_part" label="[% l('Monograph Part') %]" parent-idl-class="bmp" hidden></eg-grid-field>
   <eg-grid-field path="acn.prefix.label" label="[% l('CN Prefix') %]" parent-idl-class="acn" hidden></eg-grid-field>
   <eg-grid-field path="acn.suffix.label" label="[% l('CN Suffix') %]" parent-idl-class="acn" hidden></eg-grid-field>
   <eg-grid-field path="record.*" parent-idl-class="mvr" hidden></eg-grid-field>
index bd88fec..f49ea92 100644 (file)
@@ -352,6 +352,12 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog,  egAddCopyAl
                 data.route_to = data.acp.location().name();
             }
         }
+        // allow us to get at the monograph parts associated with a copy
+        if (payload.copy && payload.copy.parts()) {
+            data._monograph_part = payload.copy.parts().map(function(part) {
+                return part.label();
+            }).join(',');
+        }
 
         egWorkLog.record(
             (worklog_action == 'checkout' || worklog_action == 'noncat_checkout')