Showing posts with label borrowers-force-messaging-defaults. Show all posts
Showing posts with label borrowers-force-messaging-defaults. Show all posts

Use of borrowers-force-messaging-defaults script

This script create messaging preferences for all existing borrowers and sets them to default values defined for the category they belong to. Otherwise staff user has to modify the messaging preferences of each patron one by one. Follow the instructions to run the borrowers-force-messaging-defaults script.

Load environment variables

sudo su
export PERL5LIB="/usr/share/koha/lib"
export KOHA_CONF="/etc/koha/sites/library/koha-conf.xml"

Run borrowers-force-messaging-defaults script.

cd /usr/share/koha/bin/maintenance
perl borrowers-force-messaging-defaults.pl --doit