Use of borrowers-force-messaging-defaults script

This script create messaging preferences for all existing borrowers and set 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 --doit

The script was useful when SMS notifications enabled.  After the installation SMS driver, new empty SMS notification option appeared in patron messaging prerences. The script can copy default messaging preferences of Patron categories to all patrons profiles.

1 comment:

  1. are script send SMS to patrons library on mobile ?

    ReplyDelete