[Koha-bugs] [Bug 13635] $record->title is called even if marc flavour is UNIMARC
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Mar 4 17:16:30 CET 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13635
--- Comment #5 from Jonathan Druart <jonathan.druart at biblibre.com> ---
(In reply to Bernardo Gonzalez Kriegel from comment #3)
> Hi Jonathan,
> Seems that 'usmarc' is not a valid value for 'marcflavour' syspref,
> only MARC21, UNIMARC and NORMARC
>
> And the same error is on line 916 of addbiblio.pl
>
> Perhaps is better to write the code as:
>
> if ( $record ne "-1" ) {
> if ( C4::Context->preference('marcflavour') =~/unimarc/i ) {
> $template->param( title => $record->subfield('200',"a") );
> } else {
> $template->param( title => $record->title() );
> }
> }
>
> ... unless I'm mistaken.
Yes of course, you are right!
Now patch attached.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list