[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 14:16:38 CET 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13635

Bernardo Gonzalez Kriegel <bgkriegel at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bgkriegel at gmail.com
             Status|Needs Signoff               |Failed QA

--- Comment #3 from Bernardo Gonzalez Kriegel <bgkriegel at gmail.com> ---
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.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list