[open-ils-commits] r19006 - in branches/rel_2_0/Open-ILS: examples web/templates/default/conify/global/asset (senator)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Dec 16 13:40:46 EST 2010


Author: senator
Date: 2010-12-16 13:40:42 -0500 (Thu, 16 Dec 2010)
New Revision: 19006

Modified:
   branches/rel_2_0/Open-ILS/examples/fm_IDL.xml
   branches/rel_2_0/Open-ILS/web/templates/default/conify/global/asset/copy_template.tt2
Log:
Backport r18852, r19005 from trunk

[18852] Serials: make some IDL changes and some changes to field order in an
AutoGrid to support easier creation of working copy templates with serials.

[19005] Serials: the circ_lib field on a copy template has no meaning in the
only context where these copy templates are used, which is serials.  Any
copy-like objects that are created in serials have their circ_lib determined
by distribution.holding_lib

So remove the circ_lib from the interface.



Modified: branches/rel_2_0/Open-ILS/examples/fm_IDL.xml
===================================================================
--- branches/rel_2_0/Open-ILS/examples/fm_IDL.xml	2010-12-16 18:35:40 UTC (rev 19005)
+++ branches/rel_2_0/Open-ILS/examples/fm_IDL.xml	2010-12-16 18:40:42 UTC (rev 19006)
@@ -4497,7 +4497,7 @@
 			<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"/>
@@ -4507,7 +4507,7 @@
 			<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"/>
@@ -4519,6 +4519,8 @@
 			<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>

Modified: branches/rel_2_0/Open-ILS/web/templates/default/conify/global/asset/copy_template.tt2
===================================================================
--- branches/rel_2_0/Open-ILS/web/templates/default/conify/global/asset/copy_template.tt2	2010-12-16 18:35:40 UTC (rev 19005)
+++ branches/rel_2_0/Open-ILS/web/templates/default/conify/global/asset/copy_template.tt2	2010-12-16 18:40:42 UTC (rev 19006)
@@ -22,9 +22,9 @@
     </div>
     <table jsId="actGrid"
         dojoType="openils.widget.AutoGrid"
-        fieldOrder="['name', 'owning_lib']"
-        suppressFields="['creator','editor','edit_date','create_date']"
-        suppressEditFields="['creator','editor','edit_date','create_date']"
+        fieldOrder="['name','owning_lib','circulate','holdable','opac_visible','loan_duration','fine_level','location','circ_modifier','floating','deposit','ref','mint_condition']"
+        suppressFields="['creator','editor','edit_date','create_date','circ_lib']"
+        suppressEditFields="['creator','editor','edit_date','create_date','circ_lib']"
         query="{id: '*'}"
         editStyle="pane"
         fmClass="act"



More information about the open-ils-commits mailing list