Serials: make some IDL changes and some changes to field order in an AutoGrid
authorsenator <senator@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 29 Nov 2010 16:44:04 +0000 (16:44 +0000)
committersenator <senator@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 29 Nov 2010 16:44:04 +0000 (16:44 +0000)
to support easier creation of working copy templates with serials.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@18852 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/examples/fm_IDL.xml
Open-ILS/web/templates/default/conify/global/asset/copy_template.tt2

index ffb7b03..c194cd5 100644 (file)
@@ -4520,7 +4520,7 @@ SELECT  usr,
                        <field reporter:label="Name" name="name" reporter:datatype="text"/>
                        <field reporter:label="Circ Lib" name="circ_lib" reporter:datatype="link"/>
                        <field reporter:label="Status" name="status" reporter:datatype="int"/>
-                       <field reporter:label="Location" name="location" reporter:datatype="int"/>
+                       <field reporter:label="Location" name="location" reporter:datatype="link"/>
                        <field reporter:label="Loan Duration" name="loan_duration" reporter:datatype="int"/>
                        <field reporter:label="Fine Level" name="fine_level" reporter:datatype="int"/>
                        <field reporter:label="Age Protect" name="age_protect" reporter:datatype="int"/>
@@ -4530,7 +4530,7 @@ SELECT  usr,
                        <field reporter:label="Holdable?" name="holdable" reporter:datatype="bool"/>
                        <field reporter:label="Deposit Amount" name="deposit_amount" reporter:datatype="money"/>
                        <field reporter:label="Price" name="price" reporter:datatype="money"/>
-                       <field reporter:label="Circ Modifier" name="circ_modifier" reporter:datatype="text"/>
+                       <field reporter:label="Circ Modifier" name="circ_modifier" reporter:datatype="link"/>
                        <field reporter:label="Circ As Type" name="circ_as_type" reporter:datatype="text"/>
                        <field reporter:label="Alert Message" name="alert_message" reporter:datatype="text"/>
                        <field reporter:label="OPAC Visible?" name="opac_visible" reporter:datatype="bool"/>
@@ -4542,6 +4542,8 @@ SELECT  usr,
                        <link field="creator" reltype="has_a" key="id" map="" class="au"/>
                        <link field="editor" reltype="has_a" key="id" map="" class="au"/>
                        <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
+                       <link field="circ_modifier" reltype="has_a" key="code" map="" class="ccm"/>
+                       <link field="location" reltype="has_a" key="id" map="" class="acpl"/>
                </links>
                <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
                        <actions>
index 37a360d..1a5bd26 100644 (file)
@@ -22,7 +22,7 @@
     </div>
     <table jsId="actGrid"
         dojoType="openils.widget.AutoGrid"
-        fieldOrder="['name', 'owning_lib']"
+        fieldOrder="['name','owning_lib','circulate','holdable','opac_visible','loan_duration','fine_level','location','circ_modifier','circ_lib','floating','deposit','ref','mint_condition']"
         suppressFields="['creator','editor','edit_date','create_date']"
         suppressEditFields="['creator','editor','edit_date','create_date']"
         query="{id: '*'}"