From 9d52c46dda7267af1c5aee4a57d5364d451457fc Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Thu, 12 Nov 2009 16:13:22 +0100 Subject: [PATCH] Better conformance for UNIMARC Authorities Encoding encoding is on 8th character and not 9th --- C4/Charset.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Charset.pm b/C4/Charset.pm index 655d6c70da..496033f188 100644 --- a/C4/Charset.pm +++ b/C4/Charset.pm @@ -255,7 +255,7 @@ sub SetMarcUnicodeFlag { $marc_record->leader($leader); } elsif ($marc_flavour =~/UNIMARC/) { my $string; - my ($subflength,$encodingposition)=($marc_flavour=~/AUTH/?(21,8):(36,22)); + my ($subflength,$encodingposition)=($marc_flavour=~/AUTH/?(21,9):(36,22)); $string=$marc_record->subfield( 100, "a" ); if (length($string)==$subflength) { $string = substr $string, 0,$subflength if (length($string)>$subflength); -- 2.39.5