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>
Tue, 19 Jan 2016 21:59:28 +0000 (14:59 -0700)
commit2ca9bd5dc247ae26225cbc299c1bc0883bc444e0
treeb7d95489079eec9f81436c999c9bb100dca8b6ae
parent1eab5c199d21a622abde7e47ca248d80e882ca46
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