A Koha plugin for generating and submitting Public Lending Right (PLR) reports to the British Library.
- Automated Report Generation: Generates PLR reports based on loan statistics (issues and renewals) from the previous month
- Configurable Settings: Easy configuration of authority code, authority name, email recipients, and sending schedule
- Manual or Automated Sending: Reports can be generated and sent manually through the UI, or automatically via cronjob
- Report Preview: View and download reports before sending
- PLR Standard Format: Follows the standard PLR report format required by the British Library
- Download the latest release (
.kpzfile) - In Koha, go to: Home > Tools > Plugins
- Click "Upload plugin"
- Select the downloaded
.kpzfile - Click "Upload"
After installation, configure the plugin:
- Go to: Home > Tools > Plugins
- Find "PLR Reports" and click "Configure"
- Fill in the required fields:
- Authority Code: Your library's PLR authority code
- Authority Name: Your library's full name
- Email Recipients: Comma-separated list of recipients (e.g., plrlibrary@bl.uk)
- Email From: Sender email address
- Enable Automatic Sending: Check to enable automatic monthly sending
- Send Day of Month: Day of month to automatically send (typically 1st)
- Click "Save configuration"
- Go to: Home > Tools > Plugins
- Find "PLR Reports" and click "Run tool"
- Click "Generate Report" to create a report for the previous month
- Review the report preview and statistics
- Click "Download Report" to save locally, or "Send Report via Email" to submit
When automatic sending is enabled in configuration, the plugin will:
- Run daily via the
cronjob_nightlyhook - Check if today matches the configured send day
- Automatically generate and send the report if it's the correct day
The plugin generates reports in the standard PLR format:
Header: AuthorityCode|StartDate|EndDate
Data: ISBN|IssueCount|CopyCount|AuthorCode|ItemType
...
Footer: TotalISBNs|TotalIssues
The report includes:
- All issues and renewals from the previous calendar month
- Only items with ISBNs
- ISBN (10 or 13 digit), issue count, copy count, author code (first 4 letters), and item type
- Summary statistics
- Koha 22.05 or later
- Perl modules: MIME::Lite, DateTime
For issues, questions, or feature requests, please contact OpenFifth at hosting@openfifth.co.uk
This plugin is free software; you can redistribute it and/or modify it under the same terms as Koha.
OpenFifth - https://openfifth.co.uk
- Initial release
- Automated PLR report generation
- Configurable email settings and schedule
- Manual report generation and sending via UI
- Report preview and download functionality