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

Bernardo Gonzalez Kriegel <[email protected]> changed:

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

--- Comment #14 from Bernardo Gonzalez Kriegel <[email protected]> ---
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 <[email protected]>

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.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to