nl-sync-from-koha.pl - Sync patrons from Koha to the Norwegian national patron database (NL).


 perl nl-sync-from-koha.pl -v --run


Find local patrons that have been changed and need to be sent upstream to NL. These patrons will be distinguished by two borrower attributes:


This script performs the following steps:

Check sysprefs

Check that the necessary sysprefs are set before proceeding.

Find patrons that need to be synced

Patrons with either of these statuses:

Do the actual sync

Data is synced to NL with NLSync.

Summarize if verbose mode is enabled

Specify -v on the command line to get a summary of the syncing operations.


-r, --run

Actually carry out syncing operations. Without this option, the script will only report what it would have done, but not change any data, locally or remotely.

-v --verbose

Report on the progress of the script.

-d --debug

Even more output.

-h, -?, --help

Prints this help message and exits.


Magnus Enger <digitalutvikling@gmail.com>


Copyright 2014 Oslo Public Library


This file is part of Koha.

Koha is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

You should have received a copy of the GNU General Public License along with Koha; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.