use the correct table and field, holy moly
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 20 Jul 2010 15:50:24 +0000 (15:50 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 20 Jul 2010 15:50:24 +0000 (15:50 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6@16982 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/sql/Pg/999.functions.global.sql

index c26d00f..1fe4bed 100644 (file)
@@ -236,9 +236,9 @@ BEGIN
           FROM  xpath_table(
                     'id',
                     'marc',
-                    'acq.lineitem',
+                    'biblio.record_entry',
                     '//*[@tag="856"]',
-                    'id=' || lineitem
+                    'id=' || source_record
                 ) as t(i int,c text);
     
         FOR i IN 1 .. counter LOOP