Skip to content

imCodePartnerAB/KOHASS12000

Repository files navigation

KOHASS12000

imCode

This is a plugin for Koha by imCode

It exports user data from the API in SS12000 format to your Koha database

Plugin and cron jobs for importing SS12000 v 1.51

2024-11-14:

1.51 version of koha-plugin-export-users_ss12000

KohaSS12000 › Installation and CRON

  1. Add the latest version of the plugin to Koha

to_Koha

  1. Run this command on a server running Koha:
sudo service memcached restart ; sudo service koha-common restart
  1. Put perl script Koha/Plugin/imCode/KohaSS12000/ExportUsers/cron/imcode_ss12000.pl to
/usr/share/koha/bin/cronjobs

imcode_ss12000.pl

  1. Shell script run_ss12000.sh

Examples of use in cron:

4 */12 * * * root /bin/timeout 8h /var/lib/koha/defaultlibraryname/plugins/Koha/Plugin/imCode/KohaSS12000/ExportUsers/cron/run_ss12000.sh 

imcode_ss12000.pl

run_ss12000.sh - the script has protection against re-running. It also has a runtime limit, which is 8 hours by default.

  1. After you've added a script call to cron, you need to restart cron on the server running Koha:
sudo /etc/init.d/cron restart

KohaSS12000 › Configuration

Configuration

Configuration

If you need to start parsing data right now and don't want to wait for the script to be called through the cron, run this command on the server:

/var/lib/koha/defaultlibraryname/plugins/Koha/Plugin/imCode/KohaSS12000/ExportUsers/cron/run_ss12000.sh 

defaultlibraryname - this should be the name you gave when installing Koha

Make your GitHub documentation look good, use writing-on-github