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