https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37020

Thomas Klausner <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|In Discussion               |Needs Signoff

--- Comment #44 from Thomas Klausner <[email protected]> ---
Here'a test plan:

1: Start KTD with ES, eg ktd --es7 start
2: Connect to DB: ktd --dbshell
3: Get the count of current auth: `SELECT count(*) FROM auth_header;`
   I get 1706. Remember that number
4: Apply the patch, copy the file "MARCXML file with 75 authorities from GND" /
75_authorities_gnd.xml into your koha dir
5: enter a koha shell: ktd --shell
6: import the 75_authorities_gnd.xml file:

kohadev-koha@kohadevbox:koha$  misc/migration_tools/bulkmarcimport.pl -m
MARCXML -c utf8 -a --insert --file 75_authorities_gnd.xml -l testlog

You will see two DBIx errors, but at the end:

75 MARC records done in 0.464853048324585 seconds

7: Again in the DB-Shell, run the count: SELECT count(*) FROM auth_header;

You should now get 75 more auths (eg 1781 in my ktd)

you can verify that in the DB with: select 1781 - 1706;

8: Take a look at the testlog file, which will have 73 OKs and two errors :
eg:
1713;insert;ok
000152145;insert;ERROR
1715;insert;ok

Notice that 1714 is skipped (because it had an error).

But it still exists in the DB (in a useless form):

select * from auth_header where authid = 1714;

I'm not exactly sure why the two not importable auths show up in the db. But as
this is the same behavior as on main (without this patch) I consider it out of
scope for this bug.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to