@@ -, +, @@ conditions --- cataloguing/z3950_auth_search.pl | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) --- a/cataloguing/z3950_auth_search.pl +++ a/cataloguing/z3950_auth_search.pl @@ -31,6 +31,7 @@ use Koha::Authority::Types; my $input = CGI->new; my $dbh = C4::Context->dbh; +my $marcflavour = C4::Context->preference("marcflavour"); my $error = $input->param('error'); my $authid = $input->param('authid') || 0; @@ -57,31 +58,31 @@ $page = $input->param('goto_page') if $input->param('changepage_goto'); my $controlnumber = $input->param('controlnumber'); if (! $authorpersonal) { - if ($authtag == 100) { + if ($marcflavour eq 'MARC21' && $authtag == 100) { $authorpersonal = $authfields->subfield('a'); - } elsif ($authtag == 200) { + } elsif ($marcflavour eq 'UNIMARC' && $authtag == 200) { $authorpersonal = $authfields->subfield('a'); } } if (! $authormeetingcon) { - if ($authtag == 110) { + if ($marcflavour eq 'MARC21' && $authtag == 110) { $authormeetingcon = $authfields->subfield('a'); - } elsif ($authtag == 210) { + } elsif ($marcflavour eq 'UNIMARC' && $authtag == 210) { $authormeetingcon = $authfields->subfield('a'); } } if (! $uniformtitle) { - if ($authtag == 130) { + if ($marcflavour eq 'MARC21' && $authtag == 130) { $uniformtitle = $authfields->subfield('a'); - } elsif ($authtag == 230) { + } elsif ($marcflavour eq 'UNIMARC' && $authtag == 230) { $uniformtitle = $authfields->subfield('a'); } } if (! $subject) { - if ($authtag == 250) { + if ($marcflavour eq 'UNIMARC' && $authtag == 250) { $subject = $authfields->subfield('a'); } } --