X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=blobdiff_plain;f=marc_cleanup;h=f0c3753a16cd036f65bfd666ed0933a4bad211af;hp=89f8ab01d4912d167feb0ff1ec9ee6d36f808fe9;hb=ecd9a840150d8aac37606594e9abaf0ce4838dfb;hpb=8f084d08c2c29c3a98eb1688e67ce7d3a5b57ad1 diff --git a/marc_cleanup b/marc_cleanup index 89f8ab0..f0c3753 100755 --- a/marc_cleanup +++ b/marc_cleanup @@ -186,13 +186,13 @@ sub do_automated_cleanups { sub stow_record_data { # get tag data if we're looking at it my $tag = 0; - if ($record[$ptr] =~ m/<(control|data)field tag="(?.{3})"/) { - $recmeta{tag} = $+{TAG}; + if ($record[$ptr] =~ m/<(control|data)field tag="(.{3})"/) { + $recmeta{tag} = $1; $tag = $recmeta{tag}; - $record[$ptr] =~ m/ind1="(?.)"/; - $recmeta{ind1} = $+{IND1} || ''; - $record[$ptr] =~ m/ind2="(?.)"/; - $recmeta{ind2} = $+{IND2} || ''; + $record[$ptr] =~ m/ind1="(.)"/; + $recmeta{ind1} = $1 || ''; + $record[$ptr] =~ m/ind2="(.)"/; + $recmeta{ind2} = $1 || ''; unless ($tag) { message("Autokill record: no detectable tag");