[Koha-bugs] [Bug 6113] enhancement to keep previous ids

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jan 9 14:45:27 CET 2014


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

Olli-Antti Kivilahti <olli-antti.kivilahti at jns.fi> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #21703|0                           |1
        is obsolete|                            |

--- Comment #26 from Olli-Antti Kivilahti <olli-antti.kivilahti at jns.fi> ---
Created attachment 24073
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=24073&action=edit
Bug 6113 [ENH] - enhancement to keep previous ids

Modified the C4::Biblio::_koha_add_biblioitem() && _koha_add_biblio() to
support INSERTing biblionumbers and biblioitemnumbers to
the Koha DB. Created validators to make sure the primary keys are positive
integers and well below the Perl's LONG_MAX threshold
to keep Koha from getting crazy. Duplicate id's are the users responsibility
and in normal use conditions they are non-existing,
unless the "Koha to MARC mapping" to biblionumber is a user-modifiable MARC
field, which is TROUBLE!
MySQL takes care of the primary key sequence refreshing.

Updated the bulkmarcimport.pl -script to copy the desired legacy id MARC field
to the biblionumber- and biblioitemnumber-fields
designated in "Koha to MARC mapping", eg. copy field 001 to 999c and 999d.
This is handy if you have the legacy id in just 001 and need to populate 999c
and 999d to push them to DB.
No need to make an extension to the existing migration scripts.

Documented the new functionality in bulkmarcimport.pl

Created test cases for C4::Biblio.pm modifications.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list