From 9bdf28b55560775f5ca624030f5ac4d161594f7a 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 Signed-off-by: Jonathan Druart Amended patch: update comment Signed-off-by: Jared Camins-Esakov --- cataloguing/addbiblio.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cataloguing/addbiblio.pl b/cataloguing/addbiblio.pl index 51b3c7a7ec..3314f1a02a 100755 --- a/cataloguing/addbiblio.pl +++ b/cataloguing/addbiblio.pl @@ -94,9 +94,10 @@ sub MARCfindbreeding { return -1; } else { - # normalize author : probably UNIMARC specific... + # normalize author : 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", ''); -- 2.39.5