Bug 19687: Undefined subroutine in bulkmarcimport
authorDavid Gustafsson <david.gustafsson@ub.gu.se>
Wed, 26 Sep 2018 15:25:44 +0000 (17:25 +0200)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 16 Oct 2018 13:38:39 +0000 (14:38 +0100)
commit68cca5c430c78338bf9243e525cb8fba5b9c7e13
tree518eaf84877ffd429f55d61c043d65e03caa6320
parent42e8d66369c6b38caeab85ddd5a1021623ca4628
Bug 19687: Undefined subroutine in bulkmarcimport

Bulkmarcimport produces undefined subroutine error for
C4::Items::TransformMarcToKoha and C4::Items::GetMarcStructure
probably caused by mutually recursive modules. Put exports in
BEGIN clause before all the other imports.

To test:
1) Run bulkmarcimport.pl before applying patch and verify
that undefined subroutine error occurs
2) Apply patch
3) Run bulkmarcimport.pl again and verify that no errors are
produced

Sponsored-by: Gothenburg University Library
Signed-off-by: George Veranis <gveranis@gmail.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 3f09e1d73338c86762412546e1a0617df698f422)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
C4/Biblio.pm
C4/Items.pm