Tuesday, 1 October 2019

Language Searching

 Inorder to enable regional language searching the following file need to be modofied.
 

sudo gedit /etc/koha/zebradb/etc/default.idx

comment the line "charmap word-phrase-utf.chr" ( Put # mark at the beginning of the line) 

add the following line after the commented line

"icuchain words-icu.xml "

Rebuild the Zebra index

sudo koha-rebuild-zebra -v -f library 

Saturday, 27 July 2019

photo-Bulk import


1. Arrange your photos in a folder. Ensure that photo name must be card number of patrons.
2. Goto the following link and click on Download button.
https://docs.google.com/file/d/0B6E3iEzJp74uWWI4V3BwdUppdk0/edit?usp=sharing


3. Put idlink.py script in photo folder.

4. Open a terminal and enter inside photo folder and apply following commands,

chmod +x idlink.py
./idlink.py

5. After the process, you can see zip file, where all your photos compressed.

Goto Koha > Tools > Upload Patron Images

Upload the zip file.
 
Note:
 
1. In ubuntu 20.04 LTS an error will show
     i.e usr/bin/env pyhton3 
 
      to eliminate the error, use the following command in terminal

        sudo ln -s /usr/bin/python3 /usr/bin/python
 2. There is an error message in idlink.py script will show

an error in line 10 did you mean print (s)
Solution: open the idlink.py using text editor and change the line 10 as print (s) instead of print s
 
 

 

Friday, 22 February 2019

e-mail facility in koha

Apply following commands one-by-one in the terminal
1. sudo su
2. apt-get update

3. apt-get install postfix
    ( press 'OK' when asks in package configuration and for general type of mail configuration "no configuration" then OK)
  
4.cp /usr/share/postfix/main.cf.debian /etc/postfix/main.cf

5.apt-get install libsasl2-2

6. apt-get install libsasl2-modules

7. apt-get install ca-certificates

8. gedit /etc/postfix/main.cf

pleasse add the following lines at the bottom of the file.

relayhost = [smtp.gmail.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = /etc/postfix/cacert.pem
smtp_use_tls = yes
 
 
 9. gedit /etc/postfix/sasl_passwd

[smtp.gmail.com]:587    urgmailid@gmail.com:yourpassword #replace with your gmail id and password

10.chmod 400 /etc/postfix/sasl_passwd

11. postmap /etc/postfix/sasl_passwd

12. postalias hash:/etc/aliases

13 cat /etc/ssl/certs/thawte_Primary_Root_CA.pem >> /etc/postfix/cacert.pem

14 /etc/init.d/postfix restart

15 koha-email-enable library