From edd94a43773cd981e352a46dcfc9128b393e2b03 Mon Sep 17 00:00:00 2001 From: Rogan Hamby Date: Mon, 13 May 2019 14:19:58 -0400 Subject: [PATCH] fixed bug for mig-stagebibs when the output is already all in a single line --- mig-bin/mig-stagebibs | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/mig-bin/mig-stagebibs b/mig-bin/mig-stagebibs index fb76b0c..0c9bdfd 100755 --- a/mig-bin/mig-stagebibs +++ b/mig-bin/mig-stagebibs @@ -95,7 +95,7 @@ while(my $line = <$xml>) { if ($line =~ /^<\/?collection/) { next; } chomp $line; $record = $record . $line; - if ($line =~ /^<\/record/) { + if ($line =~ /<\/record>$/) { stage_record($dbh,$record,$source); $record = ''; $i++; -- 1.7.2.5