[Koha-bugs] [Bug 9274] Software error in bibtex export

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Feb 21 21:38:12 CET 2013


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #15527|0                           |1
        is obsolete|                            |

--- Comment #14 from Bernardo Gonzalez Kriegel <bgkriegel at gmail.com> ---
Created attachment 15600
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=15600&action=edit
[SIGNED-OFF] Bug 9274: Software error in bibtex export

Exporting to Bibtex from OPAC returns a software error.
This is because call to C4::Biblio::GetMarcAuthors does not return only authors
but also authority link.
This patch replaces this call by a direct read of MARC::Record, like for other
Bibtex datas.
C4::Biblio::GetMarcAuthors is really destinated to a direct use in a template.
Also, actually all author subfields are joined with 'and'. According to Bibtext
format, authors should be "firstname surname and ..." or "surname, firstname
and ...". I have choosen second one because in non-UNIMARC it corresponds to $a
content.

For example UNIMARC :
700 $aDoe $bJohn
700 $aDoe $bJanne
Gives : Doe, John and Doe, Janne
For example MARC21 :
700 $aDoe, John
700 $aDoe, Janne
Gives : Doe, John and Doe, Janne

Test plan :
Without patch :
Exporting to Bibtex from OPAC returns a software error.
With patch :
Exporting to Bibtex from OPAC succeeds.
Authors are composed using : $a, $b and ... for UNIMARC, $a ... for other marc
flavours.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel at gmail.com>

Comment: Works as decribed. All record export that produces
error pre-patch, now export without error.
No koha-qa errors

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


More information about the Koha-bugs mailing list