LP1811466 Add fields to holdings editor column pickers
authorMichele Morgan <mmorgan@noblenet.org>
Tue, 27 Aug 2019 12:55:06 +0000 (08:55 -0400)
committerJane Sandberg <sandbej@linnbenton.edu>
Fri, 7 Aug 2020 23:41:11 +0000 (16:41 -0700)
Adds item fields creator, editor and last edit date to the working and
completed grids in the holdings editor.

Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Rogan Hamby <rogan.hamby@gmail.com>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Open-ILS/src/templates/staff/cat/volcopy/t_edit.tt2
Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js

index c85ffbc..668290c 100644 (file)
 
                           <eg-grid-field label="[% l('Barcode') %]"     path='barcode' visible></eg-grid-field>
                           <eg-grid-field label="[% l('Created') %]"     path="create_date" datatype="timestamp" visible></eg-grid-field>
+                          <eg-grid-field label="[% l('Creator') %]"     path="creator.usrname" visible></eg-grid-field>
                           <eg-grid-field label="[% l('Activated') %]"   path="active_date" visible></eg-grid-field>
-                          <eg-grid-field label="[% l('CN Prefix') %]" path="call_number.prefix.label" visible></eg-grid-field>
-                          <eg-grid-field label="[% l('Call Number') %]" path="call_number.label" visible></eg-grid-field>
-                          <eg-grid-field label="[% l('CN Suffix') %]" path="call_number.suffix.label" visible></eg-grid-field>
+                          <eg-grid-field label="[% l('Edited') %]"      path="edit_date" datatype="timestamp" visible></eg-grid-field>
+                          <eg-grid-field label="[% l('Editor') %]"      path="editor.usrname" visible></eg-grid-field>
+                          <eg-grid-field label="[% l('CN Prefix') %]"   path="call_number.prefix.label" hidden></eg-grid-field>
+                          <eg-grid-field label="[% l('Call Number') %]" path="call_number.label" hidden></eg-grid-field>
+                          <eg-grid-field label="[% l('CN Suffix') %]"   path="call_number.suffix.label" hidden></eg-grid-field>
                           <eg-grid-field label="[% l('Item ID') %]"     path="id" hidden></eg-grid-field>
 
                         </eg-grid>
 
                  <eg-grid-field label="[% l('Barcode') %]"     path='barcode' visible></eg-grid-field>
                  <eg-grid-field label="[% l('Created') %]"     path="create_date" datatype="timestamp" visible></eg-grid-field>
+                 <eg-grid-field label="[% l('Creator') %]"     path="creator.usrname" visible></eg-grid-field>
                  <eg-grid-field label="[% l('Activated') %]"   path="active_date" datatype="timestamp" visible></eg-grid-field>
+                 <eg-grid-field label="[% l('Edited') %]"      path="edit_date" datatype="timestamp" visible></eg-grid-field>
+                 <eg-grid-field label="[% l('Editor') %]"      path="editor.usrname" visible></eg-grid-field>
                  <eg-grid-field label="[% l('Call Number') %]" path="call_number.label" visible></eg-grid-field>
                  <eg-grid-field label="[% l('Circ Library') %]" flesher="orgById" path="circ_lib.name" visible></eg-grid-field>
                  <eg-grid-field label="[% l('Shelving Location') %]" flesher="locationById" path="location.name" visible></eg-grid-field>
index 23a97a5..501a9c1 100644 (file)
@@ -395,7 +395,7 @@ function(egCore , $q) {
     service.flesh = {   
         flesh : 3, 
         flesh_fields : {
-            acp : ['call_number','parts','stat_cat_entries', 'notes', 'tags'],
+            acp : ['call_number','parts','stat_cat_entries', 'notes', 'tags', 'creator', 'editor'],
             acn : ['label_class','prefix','suffix'],
             acptcm : ['tag']
         }