Jason Macki a écrit : > Hello, > > I'm doing an import from another library system to Koha version 3 on Linux. > > I used the bulkmarcimport.pl script to import the bibliographic information, > populating the "biblio" and "biblioitems" tables. Then I ran a program to > fill in the holding information by directly inserting rows into the "items" > table. > > That worked, except that the "biblioitems" table has a field called > "marcxml", which includes the holding information for that book. > > Now, if I use the Koha management application to edit and save a holding > item, it fills in the holding information in the "marcxml" field of the > corresponding "biblioitems" record, and the Koha features which depend on the > holding information in the "marcxml" field work properly. > > My question is, is there a script in Koha 3 that will automatically put the > holding information contained in the "items" table into the "marcxml" field > of the "biblioitems" table? > My strong opinion here is that you should not do that, and should use the Perl API we provide : C4::Items::AddItem($record) That's the only way to be sure everything is correctly stored. Even me don't play with filling SQL tables directly for biblios/items !
-- Paul POULAIN http://www.biblibre.com Expert en Logiciels Libres pour l'info-doc Tel : (33) 4 91 81 35 08 _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-devel