GithubHelp home page GithubHelp logo

koha-plugin-patron-import's Introduction

Patron-import Koha plugin

Patron-import is a plugin for Koha allowing configurable, customizable and automated patrons import.

Current versions

  • 18.05-1.x => Koha 18.05.xx, 18.11.xx and 19.05.xx
  • 19.11-1.x => Koha 19.11.xx
  • 20.05-1.x => Koha 20.05.xx
  • 20.11-1.x => Koha >= 20.11.xx
  • 21.05-1.x => Koha >= 21.05.xx
  • 21.11-1.x => Koha >= 21.11.xx
  • 22.11-2.x => Koha >= 22.11.xx
  • master => Koha latest version

This documentation is for master version

Downloading

From the release page, download the relevant .kpz file

Getting started

Before (project management)

Start importing patrons in a Koha system needs advance preparation. All the things you need to draft is explain is the before starting page.

Setup

Once the plugin is installed, you can access the plugin's configuration in the Koha's plugins home page.

  • find the Patron import plugin in the table
  • click on Action -> configure

Here you can add one or more imports and see existing ones. Click on New import and fill the form as you need

  • The Import name can be what you want
  • There is 2 options in Flow type but only CSV file is currently usable
  • All other form element are described

Configuration

Plugins (add-ons)

Cronjob

Cronjob should be executed daily, preferably at night to prevent interfere with Koha's normal use.

Example:

PERL5LIB=/path/to/koha
KOHA_CONF=/path/to/koha-conf.xml
PATH_TO_PLUGIN=/path/to/plugin

0 23 * * * perl $PATH_TO_PLUGIN/Koha/Plugin/Com/Biblibre/PatronImport/cron/run-import.pl -i 1 -f /path/to/patrons.csv

koha-plugin-patron-import's People

Contributors

alexarn avatar fridobox avatar thibaudglt avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

fridobox

koha-plugin-patron-import's Issues

remaining marks of a git conflict in launcher.sh

Hey,
Marks of a git conflict are left in launcher.sh script :

if (( ARCHIVES_DAYS > 0 )); then
<<<<<<< HEAD
    find "$ARCHIVES_DIR" -maxdepth 1 -mtime "+$ARCHIVES_DAYS" -name '*.csv' -delete
=======
    find $ARCHIVES_DIR -maxdepth 1 -mtime +$ARCHIVES_DAYS -name '*.csv' -delete
>>>>>>> add-asterisk-quote-char
fi

Find a way to prevent branchcode and categorycode check which cause an import error

If in the import source there is not explicitly an indication of the 'branchcode' and the 'categorycode' and the mapping do not mention it either, an error will be thrown because of 'branchcode' and / or 'categorycode' are undef.

To get around the problem you have to add a default value on these fields, and possibly protect them.

The logic would have to be reviewed.

Launcher modifications

  • Add specific directory for import dir : IMPORT_DIR=/home/koha/webdatas/private/patrons
  • Move log dir with all other logs : LOD_DIR=/home/koha/var/log/patrons/
  • If $LOG_DIR does not exist, create it : if [ ! -d $LOG_DIR]; then mkdir $LOG_DIR; fi
  • Default archive delay should not be 0 : ARCHIVES_DAYS = 7
  • Cleanup logs : find $LOG_DIR -maxdepth 1 -mtime +$((++ARCHIVES_DAYS)) -name '*.log' -delete

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.