LP#1743801: item status list display issues user/abellenir/lp1743801-copy-status-columns
authora. bellenir <ab@grpl.org>
Mon, 4 Jun 2018 18:25:00 +0000 (14:25 -0400)
committera. bellenir <ab@grpl.org>
Mon, 4 Jun 2018 18:25:00 +0000 (14:25 -0400)
update fm_IDL.xml establishing copy_as_status as a link to config::item_type_map
flesh this field to display desired value on clientside.

Signed-off-by: a. bellenir <ab@grpl.org>
Open-ILS/examples/fm_IDL.xml
Open-ILS/src/templates/staff/cat/item/t_list.tt2
Open-ILS/web/js/ui/default/staff/circ/services/item.js

index b272b9f..c9f1867 100644 (file)
@@ -7201,7 +7201,7 @@ SELECT  usr,
                        <field reporter:label="Alert Message" name="alert_message" reporter:datatype="text"/>
                        <field reporter:label="Barcode" name="barcode" reporter:datatype="text"/>
                        <field reporter:label="Call Number/Volume" name="call_number" reporter:datatype="link"/>
-                       <field reporter:label="Circulation Type (MARC)" name="circ_as_type" reporter:datatype="text"/>
+                       <field reporter:label="Circulation Type (MARC)" name="circ_as_type" reporter:datatype="link"/>
                        <field reporter:label="Circulating Library" name="circ_lib"  reporter:datatype="org_unit"/>
                        <field reporter:label="Circulation Modifier" name="circ_modifier" reporter:datatype="link"/>
                        <field reporter:label="Can Circulate" name="circulate" reporter:datatype="bool"/>
@@ -7273,6 +7273,7 @@ SELECT  usr,
                        <link field="holds_count" reltype="might_have" key="id" map="" class="hasholdscount"/>
                        <link field="tags" reltype="has_many" key="copy" map="" class="acptcm"/>
                        <link field="copy_alerts" reltype="has_many" key="copy" map="" class="aca"/>
+                       <link field="circ_as_type" reltype="has_a" key="code" map="" class="citm"/>
                </links>
         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
             <actions>
index c003b5b..9d6adf6 100644 (file)
@@ -94,7 +94,7 @@
   <eg-grid-field label="[% l('Classification') %]"        path="call_number.label_class.name" hidden></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('Circulate as Type') %]"     path="circ_as_type" hidden></eg-grid-field>
+  <eg-grid-field label="[% l('Circulate 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.name" hidden></eg-grid-field>
   <eg-grid-field label="[% l('Circulation Modifier') %]"  path="circ_modifier.name" hidden></eg-grid-field>
index 4fb7e0d..8c00f94 100644 (file)
@@ -16,7 +16,7 @@ function(egCore , egCirc , $uibModal , $q , $timeout , $window , egConfirmDialog
         flesh : 3, 
         flesh_fields : {
             acp : ['call_number','location','status','location','floating','circ_modifier',
-                'age_protect','circ_lib','copy_alerts'],
+                'age_protect','circ_lib','copy_alerts', 'circ_as_type'],
             acn : ['record','prefix','suffix','label_class'],
             bre : ['simple_record','creator','editor']
         },