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 <chrisc@catalyst.net.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Amended patch: update comment
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
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", '');