Easy steps to import bulk bibliographic records into the koha server through the terminal commands.
1. Put your .mrc file in the home folder and move it to the ''migration tools'' directory of your koha server where ''bulkmarcimport.pl'' is located
mv book.mrc /usr/share/koha/bin/migration_tools
2. Activate environmental variables
export PERL5LIB="/usr/share/koha/lib"
export KOHA_CONF="/etc/koha/sites/library/koha-conf.xml"
3. Now Enter in the ''migration_tools'' directory
cd /usr/share/koha/bin/migration_tools
4 (a). Apply the following command to import in the particular MARC framework
perl bulkmarcimport.pl -framework BK -file book.mrc
4 (b). Apply the following command to import in the default MARC framework
perl bulkmarcimport.pl -file book.mrc
4 (c). The following command will delete all existing records and import the new bulk MARC records
perl bulkmarcimport.pl -d -file book.mrc
5. Rebuild Zebra
sudo koha-rebuild-zebra -v -f library
Note:- In the above commands BK is the code of the bibliographic framework and book.mrc is the marc records file
See also:- How to Convert Data from Excel to MARC format in Koha and import through staff interface
Reference:
http://kohageek.blogspot.in/2016/05/bulk-marc-import-using-command-line.html#more
0 Comments