[open-ils-commits] r12364 - in trunk/Open-ILS: examples src/perlmods/OpenILS/Application src/sql/Pg (miker)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Mar 2 20:16:07 EST 2009


Author: miker
Date: 2009-03-02 20:16:06 -0500 (Mon, 02 Mar 2009)
New Revision: 12364

Modified:
   trunk/Open-ILS/examples/fm_IDL.xml
   trunk/Open-ILS/src/perlmods/OpenILS/Application/Ingest.pm
   trunk/Open-ILS/src/sql/Pg/040.schema.asset.sql
Log:
perl does not appreciate the use of, um, "use" .. changing to "use_restriction"

Modified: trunk/Open-ILS/examples/fm_IDL.xml
===================================================================
--- trunk/Open-ILS/examples/fm_IDL.xml	2009-03-03 00:58:27 UTC (rev 12363)
+++ trunk/Open-ILS/examples/fm_IDL.xml	2009-03-03 01:16:06 UTC (rev 12364)
@@ -1494,7 +1494,7 @@
 			<field reporter:label="URI ID" name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id"/>
 			<field reporter:label="URI" name="href" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="text"/>
 			<field reporter:label="Label" name="label" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="text"/>
-			<field reporter:label="Use Information" name="use" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text"/>
+			<field reporter:label="Use Information" name="use_restriction" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text"/>
 			<field reporter:label="Active" name="active" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="bool"/>
 		</fields>
 		<links/>

Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Ingest.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Ingest.pm	2009-03-03 00:58:27 UTC (rev 12363)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Ingest.pm	2009-03-03 01:16:06 UTC (rev 12364)
@@ -1129,7 +1129,7 @@
 
         # now we can construct the uri object
     	my $uri = $cstore
-            ->request( 'open-ils.cstore.direct.asset.uri.search' => { label => $label, href => $href, use => $use, active => 't' } )
+            ->request( 'open-ils.cstore.direct.asset.uri.search' => { label => $label, href => $href, use_restriction => $use, active => 't' } )
 			->gather(1);
 
         if (!$uri) {
@@ -1137,7 +1137,7 @@
             $uri->isnew( 1 );
             $uri->label($label);
             $uri->href($href);
-            $uri->use($use);
+            $uri->use_restriction($use);
         }
 
         # see if we need to create a call number

Modified: trunk/Open-ILS/src/sql/Pg/040.schema.asset.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/040.schema.asset.sql	2009-03-03 00:58:27 UTC (rev 12363)
+++ trunk/Open-ILS/src/sql/Pg/040.schema.asset.sql	2009-03-03 01:16:06 UTC (rev 12364)
@@ -137,7 +137,7 @@
     id  SERIAL  PRIMARY KEY,
     href    TEXT    NOT NULL,
     label   TEXT,
-    use TEXT,
+    use_restriction TEXT,
     active  BOOL    NOT NULL DEFAULT TRUE
 );
 



More information about the open-ils-commits mailing list