[Koha-bugs] [Bug 6199] Allow bulkmarcimport to blank duplicate barcodes rather than skipping items

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon May 30 09:35:25 CEST 2011


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6199

--- Comment #5 from Robin Sheat <robin at catalyst.net.nz> 2011-05-30 07:35:25 UTC ---
$ KOHA_CONF=~/koha-dev/etc/koha-conf.xml misc/migration_tools/bulkmarcimport.pl
-file duplicates2.mrc -v
.Item not added (bib 65, item tag #2, barcode duplicate): duplicate barcode
duplicate
..Item not added (bib 67, item tag #1, barcode duplicate2): duplicate barcode
duplicate2
.
4 MARC records done in 0.205533981323242 seconds

> select count(*) from items;
+----------+
| count(*) |
+----------+
|        3 |
+----------+

This is as expected.

(after deleting all the stuff added: )

$ KOHA_CONF=~/koha-dev/etc/koha-conf.xml misc/migration_tools/bulkmarcimport.pl
-file duplicates2.mrc -v -dedupbarcode
....
4 MARC records done in 0.162705183029175 seconds

> select count(*) from items;
+----------+
| count(*) |
+----------+
|        5 |
+----------+

This is also as I'd expect.

Running it again without deleting anything gives a whole lot of SQL error
messages due to the item numbers being embedded in the records.

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.


More information about the Koha-bugs mailing list