From 36c137428bc7dacb6972a34699c52a7c94a4da3c Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 27 Feb 2013 10:47:13 -0300 Subject: [PATCH] Bug 5333 - z3950 normalization should apply only on UNIMARC It's been a while since this bug is around. This normalization is only used for UNIMARC and yields a fatal error when those variables are set on (at least) MARC21 setups. Regards To+ Signed-off-by: Chris Cormack --- cataloguing/addbiblio.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cataloguing/addbiblio.pl b/cataloguing/addbiblio.pl index 51b3c7a..89620ac 100755 --- a/cataloguing/addbiblio.pl +++ b/cataloguing/addbiblio.pl @@ -96,7 +96,8 @@ sub MARCfindbreeding { else { # normalize author : probably UNIMARC specific... if ( C4::Context->preference("z3950NormalizeAuthor") - and C4::Context->preference("z3950AuthorAuthFields") ) + and C4::Context->preference("z3950AuthorAuthFields") + and C4::Context->preference("marcflavour") eq 'UNIMARC' ) { my ( $tag, $subfield ) = GetMarcFromKohaField("biblio.author", ''); -- 1.7.10.4