Most notices on Koha are sent by automatic processes controlled by cron jobs, however, there is a way for library staff to send notices at will using the Patron Emailer Plugin. As many notices as are needed can be sent with this tool, and the same notice can be sent to the same borrower as many times as required. The standard notice templates can be used or a custom notice can be created by staff members.
Step 1 - Download the plugin
Go to the release page for the plugin to be installed and download the most recent .kpz file.
Step 2 - Uploading Plugin to Koha
Go to Koha administration > Plugins > Manage plugins
If plugins have been enabled on your system there will be the option to upload plugins.
Once you have clicked Upload plugin you will be taken to a new page where you will be prompted to choose a file to upload.
Click the Upload Plugin button. This will bring you to a new page where you will be prompted to upload the .kpz file you just retrieved from github.
Upload the .kpz file. If the file has been uploaded successfully, it will appear in the table of plugins on your system, similar to this:
Step 3 - Configuring the notice you want to send
Once the plugin is uploaded successfully go to Actions on the right hand side and select Configure from the dropdown. You will be brought to a new page where you can write the message of the email you are going to send out and give it a subject.
It is important to note that the emailer users Template Toolkit syntax and as such, if you are inserting placeholders for information that will change depending on the specifics of who is receiving the notice, they must be formatted using a very specific convention. For example, adding the first name of the patron to receive the email should appear like this: [% firstname %]
It is important to use the correct spacing of the brackets and per cent signs and placeholder labels from the Koha database tables.
You can find information on the database tables by looking at the schema. You will also be asked to define a data delimiter. This is the punctuation used to separate one piece of information from another in the CSV file of patron information you will upload to use the plugin. Unless you have a specific reason, leave the data delimiter as a comma, the default setting.
Here is an example of a correctly formatted notice template:
Once you’re satisfied with the plugin configuration, hit Save configuration.
Step 4 - Running the Plugin
To send out the email, go to KOHA administration > Plugins > Manage plugins.
This will bring you to a page with all plugins enabled on your system in a table.
Go to the Patron Emailer row and hit Actions on the right hand side.
Pick Run Tool from the dropdown.
This will take you to a new page where you can identify the patrons the notice should be sent to.
4.1 - How to identify patrons to receive the notice
In the first section Patrons to email, a CSV file of patron information can be loaded or a report from the Reports module can be selected, the results of which the email will be sent to.
To use option of loading a CSV file of student information, the easiest way to put this kind of file together is to create a report on Koha and download the results. This way the file will automatically have the correct headings. It is possible to put together a CSV file to upload from scratch, as long as the header line uses the correct database headings. The CSV file must include the patron email address and cardnumber in all cases, as well as any other information needed to fill in the place holder information from the notice.
If you require assistance with creating a report for this plugin you can contact
Interleaf Technology with a filled out
Report Request form. Please mention when logging the query that it is in relation to the
Patron Emailer Plugin.
To use the reports option, the id number of the report the patron information should be drawn from must be added to the box beside the line Enter report id.
For information about navigating to the
Reports module and viewing reports on your site, please check our
help centre.
The report you select must not include any additional running parameters i.e when the Run button is clicked in the Reports module, the report should run without needing to add or select information like dates or patron categories.
The second section, Select a notice, allows you to specify the notice to be sent notice.
4.2 - How to select the notice to be sent out
If you've configured a notice in the Configuration page of the plugin, then you will be able to select this notice by placing a tick in the box beside the line Use notice configured in plugin.
If you wish to use a notice that has been defined in the standard notice area, under Tools > Patrons and circulation > Notices & Slips then instead of selecting the configured notice, use the three dropdown menus to identify the notice to be sent. The notice will be selected from the Choose a notice dropdown, however, the other two dropdowns can be used to limit which options will be offered.
Select a library
This allows the notices to be selected from to be narrowed down to notices linked to a specific branch.
Choose a module
This allows the notices to be selected to be narrowed down to those related to a specific area of Koha, i.e selecting circulation from the dropdown will reduce the options under the Choose a notice dropdown to notices relating to circulation issues like overdues.
Choose a notice
This dropdown will be a list of notices that can be selected, depending on the information in the two other dropdown menus above.
Step 5 - Sending the email
Once you have identified the patrons to send the notice to and the notice to be sent click, Upload.
This will take you to a new page where you will get a table of the notices and who they will be sent to. Once you are satisfied the information here is correct, hit Send emails.
This will bring you to a page with a table of information confirming that the notice have been scheduled for delivery. These will be sent out with the automatically scheduled notices on your site.