Munging ind2 in insert_856_9
authorBen Ostrowsky <ben@esilibrary.com>
Fri, 10 Jun 2011 17:07:40 +0000 (17:07 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 16 Jul 2012 15:32:08 +0000 (11:32 -0400)
sql/base/base.sql

index d197d9a..b4c06ac 100644 (file)
@@ -1053,6 +1053,7 @@ CREATE OR REPLACE FUNCTION migration_tools.insert_856_9 (TEXT, TEXT) RETURNS TEX
       if ( scalar(grep( /(netlibrary|overdrive)\.com/i, $field->subfield('u'))) > 0 &&
            scalar(grep( $shortname, $field->subfield('9'))) == 0 ) {
         $field->add_subfields( '9' => $shortname );
+                               $field->update( ind2 => '0');
       }
     }