From: Jason Etheridge Date: Thu, 30 Mar 2017 17:19:08 +0000 (-0400) Subject: --force-utf8 in leader for marc_cleanup X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=commitdiff_plain;h=5a192db46cdadef98017b1b52acfc09946561188 --force-utf8 in leader for marc_cleanup Signed-off-by: Jason Etheridge --- diff --git a/marc_cleanup b/marc_cleanup index e2a9390..e79180a 100755 --- a/marc_cleanup +++ b/marc_cleanup @@ -177,6 +177,11 @@ sub do_automated_cleanups { message("Short leader padded"); } } + if ($c->{'force-utf8'}) { + if ($record[$ptr] =~ m|(.........).(.+)|) { + $record[$ptr] = "$1a$2\n"; + } + } if ($record[$ptr] =~ m|(.+?)