Bug 15572: Follow-up to fix error on authority creation
authorFrédéric Demians <f.demians@tamil.fr>
Tue, 12 Jan 2016 10:53:11 +0000 (11:53 +0100)
committerJesse Weaver <jweaver@bywatersolutions.com>
Mon, 25 Jan 2016 14:09:50 +0000 (07:09 -0700)
commitee56318a26589103a787c47a35d71d5f8fbecc9f
treee4bb2d3120787ebc9b0a7f2a802bc90079c5b8ae
parentea47e6cdc3a515f76b6933afe4a0edf3d6bb0f02
Bug 15572: Follow-up to fix error on authority creation

Bug 6657 modified the way C4::Biblio::TransformHtmlToMarc operates in order to
solve an issue occuring during biblio record cataloguing. But this function is
also used by authorities cataloguing, and the code in this case is irrelevante.
This followup allows to distinguish for which kind of record
TransformHtmlToMarc is called: biblio/authority.

A bug appears in authority creation without this patch in some circunstances:
when authid is linked to 001 field.

Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com>
Tested with a new authority record

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Jesse Weaver <jweaver@bywatersolutions.com>
C4/Biblio.pm
authorities/authorities.pl
authorities/merge.pl
cataloguing/addbiblio.pl
cataloguing/merge.pl