Bug 11247: Fix calls of TransformHtmlToXml
authorSrdjan <srdjan@catalyst.net.nz>
Thu, 14 Nov 2013 06:10:30 +0000 (19:10 +1300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 2 Sep 2015 17:36:33 +0000 (14:36 -0300)
commit22b41063981de608402d1dd87f6aa9e2010245dd
tree34654518106bb8852d71d8c0e6dbfcaedc8b2b4e
parent813a047e236947a815c4be3c3dde38f19844b962
Bug 11247: Fix calls of TransformHtmlToXml

The ind_tag of TransformHtmlToXml is unused.
Some calls to this function incorrectly revert indicator and ind_tag (which
is not a problem when both are empty..)

Patch of Srdjan Jankovic, amended and signed off by Marcel de Rooy.

The following calls are fixed:
call in acqui/addorder.pl: switched indicator with ind_tag
call in acqui/addorderiso2709.pl replaced too
acqui/finishreceive.pl replaced too

These calls are fine:
two calls in cataloguing/additem.pl are fine
call in serials/serials-edit.pl is fine
call in tools/batchMod.pl is fine

The folllow-up patch adds a simple unit test.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
With AcqCreateItem=='placing an order', tested if adding an order still
worked (covered both addorder.pl and addorderiso2709.pl).

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Biblio.pm
acqui/addorder.pl
acqui/addorderiso2709.pl
acqui/finishreceive.pl