]> git.koha-community.org Git - koha.git/commit
Bug 19049: [QA Follow-up] Mock config, default format
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 11 Aug 2017 06:34:45 +0000 (08:34 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 6 Sep 2017 13:27:05 +0000 (15:27 +0200)
commitf067450d8011fb0a27a28524bec359ffad4f2278
treef046f81f07d8cb44fe9bfaeef03c2477a1c16aaf
parent5699df9deed09edbaa3db1087f3e453c28ac1091
Bug 19049: [QA Follow-up] Mock config, default format

As requested by QA:
[1] Mock_config enable_plugins in the test.
[2] Fallback to MARC when format is empty. Remove die statement.
Added:
[3] Remove $marc. This variable got obsolete during development.
[4] Add test on $input_file and $plugin_class. Test $text before calling
    Handler or processing $text. No need to split undef if somehow Handler
    returned undef, etc. If the routine returns an empty arrayref,
    stage-marc-import will do fine.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit a423fcff42da05e9ebf9f2b4a2f192023346e93e)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/ImportBatch.pm
t/db_dependent/ImportBatch.t
tools/stage-marc-import.pl