]> git.koha-community.org Git - koha.git/commit
Bug 19049: Testing RecordsFromMarcPlugin with a to_marc plugin
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Tue, 8 Aug 2017 12:51:41 +0000 (14:51 +0200)
committerKatrin Fischer <katrin.fischer.83@web.de>
Sun, 10 Sep 2017 08:59:57 +0000 (10:59 +0200)
commit9f06cd63b54d39510b230227bca52530d25fc221
tree46be983ebfb5e7ec553eca5218547962cd7be0b3
parent8ef1bf53cfa0c7ee74bd157c39adc68b5e1121c7
Bug 19049: Testing RecordsFromMarcPlugin with a to_marc plugin

This patch adds a simple to_marc plugin in t/Koha/Plugin that is used
in the added subtest in ImportBatch.t.

Test plan:
[1] Run t/db_dependent/ImportBatch.t
[2] Copy the to_marc test plugin from t to your plugin directory.
    Under Debian packages, you should do something like:
    mkdir -p /var/lib/koha/master/plugins/Koha/Plugin/
    cp [yourclone]/t/Koha/Plugin/MarcFieldValues.pm /var/lib/koha/master/plugins/Koha/Plugin/
[3] Check if you see this plugin on plugins/plugins-home.pl
[4] Create a text file with some fields like:
    (Note: The plugin needs an empty line between both "records".)
    100,a = Test Author 1
    245,a = Title One

    100,a = Author 2
    245,a = Title Two
[5] Go to stage-marc-import.pl. Upload the created file. Select the plugin
    in the format combo and proceed. Did you create two records ?

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 83f60adbab8e96f0f14ec547029582623ac3a068)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit c6e3f2ac0575849a0b48170506a4986a50ac8bf1)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
t/Koha/Plugin/MarcFieldValues.pm [new file with mode: 0644]
t/db_dependent/ImportBatch.t