Pages

Monday, September 21, 2020

Connect Vufind with Koha ILS

Assuming that you have already installed Vufind in your machine if don't follow this link


Go to your Vufind Auto Config directory located at >>


http://localhost/vufind/Install/Home


  • First fix the Basic Configuration by clicking on the 'Fix' button,

  • Then create a Database and assign a User and Password along with MySQL root password 

  • Then before setup, the ILS fix the Security

  • The final step is to choose the ILS driver. Here, our focus is on Koha ILS. As of now, there are three different drivers from three different generations available on Koha. Steps to configure 1st and 2nd Gen are similar and 3rd is quite different. That's why First, we will work on the 2nd generation. So, as a driver, you can select anyone. You can change it later.

**Note: Because the configuration parts are not over yet, you may find  an error message. So, just ignore it.


Now open the terminal and go to the local vufind directory and configure the config file,


sudo nano /usr/local/vufind/local/config/vufind/config.ini



Now set the following things for 2nd Generation Koha ILS driver then Save and Exit


    [Catalog]    
        
        Driver    = “KohaILSDI”

    [Authentication]
            
        Method = ILS



Enabling local Marc properties



Copy the marc_local.properties

cp /usr/local/vufind/import/marc_local.properties /usr/local/vufind/local/import


Open the marc_local.properties file

nano /usr/local/vufind/local/import/marc_local.properties


And add the following line at the end

id = 999c, first     
  

*Here you can also configure your institute & building name
    
Now you further visit the Auto Configuration directory you could see some like 👇


Auto Configuration



Install Vufind in Ubuntu

All steps are copied from the official documentation of Vufind website.

Update & upgrade Ubuntu

sudo apt update
sudo apt upgrade

Install Apache

sudo apt-get -y install apache2

sudo a2enmod rewrite

sudo /etc/init.d/apache2 force-reload


Install PHP

sudo apt-get –y install libapache2-mod-php php-mbstring php-pear php php-dev php-gd php-intl php-json php-ldap php-mysql php-xml php-soap php-curl


Install Java

sudo apt-get –y install default-jdk


Download vufind [Check the version number from the official website]

cd /tmp
tar -xzvf vufind-7.0.1.tar.gz
sudo mv vufind-7.0.1 /usr/local/vufind

 

Change directory and run PHP

cd /usr/local/vufind
php install.php

 

Configure permission as well as local variables

sudo chown -R www-data:www-data /usr/local/vufind/local/cache

sudo chown -R www-data:www-data /usr/local/vufind/local/config

sudo mkdir /usr/local/vufind/local/cache/cli

sudo chmod 777 /usr/local/vufind/local/cache/cli


Link Vufind to apache

sudo ln -s /usr/local/vufind/local/httpd-vufind.conf /etc/apache2/conf-enabled/vufind.conf


Restart apache

sudo /etc/init.d/apache2 reload

 

Set environment variables

sudo sh -c 'echo export JAVA_HOME=\"/usr/lib/jvm/default-java\" > /etc/profile.d/vufind.sh'

sudo sh -c 'echo export VUFIND_HOME=\"/usr/local/vufind\" >> /etc/profile.d/vufind.sh'
   
sudo sh -c 'echo export VUFIND_LOCAL_DIR=\"/usr/local/vufind/local\" >> /etc/profile.d/vufind.sh'

 

Load vufind

source /etc/profile.d/vufind.sh

 

Change directory and start solr

cd /usr/local/vufind/
./solr.sh start


Configure database and Secure Server

Let’s configure database

sudo mysql –uroot –p
UPDATE mysql.user SET plugin=”WHERE User=‘root’;
FLUSH PRIVILEDGES;
quit;

Secure the database

sudo /usr/bin/mysql_secure_installation

· First option select ‘N

· Rest are ‘Y

Now you could find Vufind home page here >>

http://localhost/vufind


Reference


  • vufind.org