Revert "Removed auto-populate of column options in Item Bucket, individually outlined...
authorChris Sharp <csharp@georgialibraries.org>
Mon, 22 Jul 2019 12:26:25 +0000 (08:26 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 22 Jul 2019 12:26:25 +0000 (08:26 -0400)
This reverts commit 8cd9d7c7da58a139d89c17613fbb2bccfa52e2e8.

Open-ILS/src/templates/staff/cat/bucket/copy/t_view.tt2

index 8ef3f65..8039e00 100644 (file)
@@ -3,6 +3,7 @@
   features="allowAll,-display"
   id-field="id"
   idl-class="acp"
+  auto-fields="true"
   grid-controls="gridControls"
   menu-label="[% l('Buckets') %]"
   persist-key="cat.bucket.copy.view">
   <eg-grid-action label="[% l('Apply Tags') %]" 
     handler="applyTags"></eg-grid-action>
 
-
-    <eg-grid-field label="[% l('Acquisition Cost') %]" path="cost"></eg-grid-field>
-       <eg-grid-field path="age_protect.name" label="[% l('Age Hold Protection') %]"></eg-grid-field>
-  <eg-grid-field path="call_number.record.simple_record.author" label="[% l('Author') %]"></eg-grid-field>
+  <eg-grid-field path="id" required hidden></eg-grid-field>
+  <eg-grid-field path="call_number.record.id" required hidden></eg-grid-field>
   <eg-grid-field label="[% l('Barcode') %]"     path='barcode' visible>
     <a target="_self" href="[% ctx.base_path %]/staff/cat/item/{{item['id']}}">
       {{item['barcode']}}
     </a>
   </eg-grid-field>
   <eg-grid-field label="[% l('Call Number') %]" path="call_number.label" 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('CN Suffix') %]" path="call_number.suffix.label" hidden></eg-grid-field>
-  <eg-grid-field label="[% l('Circ as Type') %]" path="circ_as_type.value" hidden></eg-grid-field>
-  <eg-grid-field label="[% l('Circulate?') %]" path="circulate" hidden></eg-grid-field>
-  <eg-grid-field label="[% l('Circulation Library') %]" path="circ_lib.shortname" hidden></eg-grid-field>
-  <eg-grid-field label="[% l('Circulation Modifier') %]" path="circ_modifier.name" hidden></eg-grid-field>
-  <eg-grid-field label="[% l('Classification') %]" path="call_number.label_class.name" hidden></eg-grid-field>
-  <eg-grid-field label="[% l('Copy ID') %]" path="id" required hidden></eg-grid-field>
-  <eg-grid-field label="[% l('Copy Number') %]" path="copy_number" hidden></eg-grid-field>
-  <eg-grid-field label="[% l('Created By') %]"    path="creator.usrname" hidden></eg-grid-field>
-  <eg-grid-field label="[% l('Date Active') %]" path="active_date" hidden></eg-grid-field>
-  <eg-grid-field label="[% l('Date Created') %]" path="create_date" hidden></eg-grid-field>
-  <eg-grid-field label="[% l('Date Last Edited') %]" path="edit_date" hidden></eg-grid-field>
-  <eg-grid-field label="[% l('Date Record Created') %]" path="call_number.record.create_date" hidden></eg-grid-field>
-  <eg-grid-field label="[% l('Date Record Last Edited') %]" path="call_number.record.edit_date" hidden></eg-grid-field>
-  <eg-grid-field label="[% l('Deleted?') %]" path="deleted" hidden></eg-grid-field>
-  <eg-grid-field label="[% l('Deposit?') %]" path="deposit" hidden></eg-grid-field>
-  <eg-grid-field label="[% l('Deposit Amount') %]" path="deposit_amount" hidden></eg-grid-field>
-<eg-grid-field label="[% l('Edited By') %]" path="editor.card.barcode" hidden></eg-grid-field>
-  <eg-grid-field label="[% l('Fine Level') %]" path="fine_level" hidden></eg-grid-field>
-  <eg-grid-field label="[% l('Holdable?') %]" path="holdable" hidden></eg-grid-field>
-  <eg-grid-field path="latest_inventory.inventory_date" datatype="timestamp" label="[% l('Inventory Date') %]"></eg-grid-field>
-  <eg-grid-field path="latest_inventory.inventory_workstation.name" label="[% l('Inventory Workstation') %]"></eg-grid-field>
-  <eg-grid-field label="[% l('ISBN') %]" path="call_number.record.simple_record.isbn" hidden></eg-grid-field>
-  <eg-grid-field label="[% l('Loan Duration') %]" path="loan_duration" hidden></eg-grid-field>
+  <eg-grid-field label="[% l('CN Prefix') %]" path="call_number.prefix.label"></eg-grid-field>
+  <eg-grid-field label="[% l('CN Suffix') %]" path="call_number.suffix.label"></eg-grid-field>
   <eg-grid-field label="[% l('Location') %]"    path="location.name" visible></eg-grid-field>
-  <eg-grid-field label="[% l('OPAC Visible?') %]" path="opac_visible" hidden></eg-grid-field>
-  <eg-grid-field label="[% l('Owning Library') %]" path="call_number.owning_lib.shortname" hidden></eg-grid-field>
-  <eg-grid-field label="[% l('Price') %]" path="price" hidden></eg-grid-field>
-<eg-grid-field label="[% l('Publication Date') %]" path="call_number.record.simple_record.pubdate" hidden></eg-grid-field>
-<eg-grid-field label="[% l('Publisher') %]" path="call_number.record.simple_record.publisher" hidden></eg-grid-field>
-  <eg-grid-field label="[% l('Quality') %]" path="call_number.record.quality" hidden></eg-grid-field>
-  <eg-grid-field label="[% l('Record ID') %]" path="call_number.record.id" required hidden></eg-grid-field>
-  <eg-grid-field label="[% l('Reference?') %]" path="ref" hidden></eg-grid-field>
-  <eg-grid-field label="[% l('Status') %]" path="status.name" hidden></eg-grid-field>
-  <eg-grid-field label="[% l('Status Changed Time') %]" path="status_changed_time" hidden></eg-grid-field>
-  <eg-grid-field path="call_number.record.simple_record.tcn_value" label="[% l('TCN') %]" hidden></eg-grid-field>
-  <eg-grid-field path="call_number.record.simple_record.tcn_source" label="[% l('TCN Source') %]" hidden></eg-grid-field>
-    <eg-grid-field label="[% l('Title') %]"
+
+  <eg-grid-field label="[% l('Title') %]"
     path="call_number.record.simple_record.title" visible>
     <a target="_self" href="[% ctx.base_path %]/staff/cat/catalog/record/{{item['call_number.record.id']}}">
       {{item['call_number.record.simple_record.title']}}
     </a>
   </eg-grid-field>
-
+  <eg-grid-field path="latest_inventory.inventory_date" datatype="timestamp" label="[% l('Inventory Date') %]"></eg-grid-field>
+  <eg-grid-field path="latest_inventory.inventory_workstation.name" label="[% l('Inventory Workstation') %]"></eg-grid-field>
 
 </eg-grid>