Bug 20811: (QA follow-up) Prevent calling AddItemBatchFromMarc and ModBiblioMarc...
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 20 Jul 2018 09:46:58 +0000 (11:46 +0200)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 23 Jul 2018 15:08:56 +0000 (15:08 +0000)
commit15b865c6ee558ef278f911ba3693c38c024c7f11
treea2809559fe8b2c732d9a4487941990f6e662b6b8
parenta49a7f08d6dbaf992d70420dae744c75c2ad8aae
Bug 20811: (QA follow-up) Prevent calling AddItemBatchFromMarc and ModBiblioMarc without biblionumber

If you use -update but do not find matches (or did not want to match), you
should not call those routines. We should warn and skip this record.

Adding a warn at the start that the choice of options may not be smart.
Note that this needs further attention somewhere else. You could mix
-update with -insert for instance and still see some problems. (May depend
on items with unique barcode etc.)

Test plan:
Run -update without match or isbn.
Or run -update -isbn with a non-matching ISBN.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
misc/migration_tools/bulkmarcimport.pl