Import bulk MARC Records Using the Command Line

 Import bulk MARC Records Using the Command Line

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 -a -b library 

Note:- In the above commands BK is the code of the bibliographic framework and book.mrc is the MARC records file

Refer:

Comments

Popular posts from this blog

Install Dspace 7.2 on Ubuntu 22.04 LTS

How to delete library data in koha using the command line

Koha INSTALLATION

Total views