Now with address line2!
authorBen Ostrowsky <ben@esilibrary.com>
Wed, 13 Oct 2010 15:44:28 +0000 (15:44 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 16 Jul 2012 16:09:33 +0000 (12:09 -0400)
git-svn-id: svn://nox.esilibrary.com/migration-tools@711 eee7cc8d-164e-4af6-8e1b-092a69004917

unicorn/unicorn_patrons_to_tsv.pl

index d97b55f..640bed2 100755 (executable)
@@ -124,6 +124,7 @@ for (my $u = 0; $u < @records; $u++) {
                        $records[$u]{'l_' . $a . '_' . $f} = $records[$u]{uc('USER_' . $a . '.' . $f)};
                }
                $records[$u]{'l_' . $a . '_std_line1'} = $records[$u]{'USER_' . uc($a) . '.STREET'};
+               $records[$u]{'l_' . $a . '_std_line2'} = $records[$u]{'USER_' . uc($a) . '.LINE2'};
                if ((defined $records[$u]{'USER_' . uc($a) . '.CITY/STATE'}) && ($records[$u]{'USER_' . uc($a) . '.CITY/STATE'} =~ m/^(.*),(\s*)(.*)$/)) {
                        $records[$u]{'l_' . $a . '_std_city'} = $1;
                        $records[$u]{'l_' . $a . '_std_state'} = $3;