perl does not appreciate the use of, um, "use" .. changing to "use_restriction"
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 3 Mar 2009 01:16:06 +0000 (01:16 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 3 Mar 2009 01:16:06 +0000 (01:16 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@12364 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/examples/fm_IDL.xml
Open-ILS/src/perlmods/OpenILS/Application/Ingest.pm
Open-ILS/src/sql/Pg/040.schema.asset.sql

index 8383d8e..351188c 100644 (file)
@@ -1494,7 +1494,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <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/>
index 5a0562e..7a1957f 100644 (file)
@@ -1129,7 +1129,7 @@ sub _extract_856_uris {
 
         # 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 @@ sub _extract_856_uris {
             $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
index cea70c8..b8749a5 100644 (file)
@@ -137,7 +137,7 @@ CREATE TABLE asset.uri (
     id  SERIAL  PRIMARY KEY,
     href    TEXT    NOT NULL,
     label   TEXT,
-    use TEXT,
+    use_restriction TEXT,
     active  BOOL    NOT NULL DEFAULT TRUE
 );