Koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools
Andreas Jonsson e7e27a934a Bug 20478: Have the cronjob script advance_notices.pl send digest messages per branch.
Desired behavior of the script advance_notices.pl is that the sender
address on the notice message is that of the branch of the issues in
question.  Thus, the solution is to generate digest messages per
branch.

To test:
1) Inspect unit test in t/db_dependent/cronjobs/advance_notices_digest.t and note that:
   - There are three libraries
   - There is a borrower
   - The borrower is registered at library1
   - The borrower has message preference wants_digest set to 1
   - The borrower has message preference days_in_advance set to 1
   - The content of the letter PREDUEDGST is '<<count>> <<branches.branchname>>'
   - There are three items
   - There is one issue per item
   - There is one issues at library2
   - There are two issues at library3
   - The date_due of the issues are set to tomorrow
   - For the default case (no -digest-per-message)
      - It is asserted that there is one message in the message queue after running the script
      - It is asserted that there are three items in the message.
      - It is asserted that the branchname is that of the borrower's home library.
   - For the case where -digest-per-message is enabled
      - It is asserted that there are two messages in the message queue after running the script
      - It is asserted that the item count of the message corresponding to library2 is 1
      - It is asserted that the item count of the message corresponding to library3 is 2
      - It is asserted that the branchnames are correct.
2) Run unit test: prove t/db_dependent/cronjobs/advance_notices_digest.t

Sponsored-By: Bibliotek Mellansjö, which is a cooperation between
Sponsored-By: Gullspångs kommunbibliotek
Sponsored-By: Hjo stadsbibliotek
Sponsored-By: Karlsborgs bibliotek
Sponsored-By: Mariestads stadsbibliotek
Sponsored-By: Skövde stadsbibliotek
Sponsored-By: Tibro bibliotek
Sponsored-By: Tidaholms stadsbibliotek
Sponsored-By: Töreboda kommunbibliotek

Signed-off-by: Andreas Jonsson <andreas.jonsson@kreablo.se>
Signed-off-by: Magnus Enger <magnus@libriotech.no>
Adding the --digest-per-branch switch turns the digest into one digest per
library. I think it makes perfect sense to keep the default behaviour
and hide this new functionality behind a command line switch.
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2019-03-22 19:46:31 +00:00
..
access_files.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
automatic_item_modification_by_age.tt Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
batch_delete_records.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
batch_record_modification.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
batchMod-del.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
batchMod-edit.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
batchMod.tt Bug 21433: Update two-column templates with Bootstrap grid: Tools part 1 2018-11-08 02:18:46 +00:00
cleanborrowers.tt Bug 21433: Update two-column templates with Bootstrap grid: Tools part 1 2018-11-08 02:18:46 +00:00
csv-profiles.tt Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
export.tt Bug 21434: Update two-column templates with Bootstrap grid: Tools part 2 2018-10-27 14:20:58 +00:00
holidays.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
import_borrowers.tt Bug 18661: Made "Replace only included patron attributes" default on patron import 2019-01-28 14:59:06 +00:00
inventory.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
koha-news.tt Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
letter.tt Bug 20478: Have the cronjob script advance_notices.pl send digest messages per branch. 2019-03-22 19:46:31 +00:00
manage-marc-import.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
marc_modification_templates.tt Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
modborrowers.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
overduerules.tt Bug 21435: Update two-column templates with Bootstrap grid: Tools part 3 2018-10-27 14:20:59 +00:00
picture-upload.tt Bug 21993: Display a user-friendly message when the CSRF token is wrong 2019-01-25 20:38:32 +00:00
preview_letter.tt Bug 21795: Switch two-column templates to Bootstrap grid: Notices and slips 2018-12-26 20:47:03 +00:00
quotes-upload.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
quotes.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
scheduler.tt Bug 21436: Update two-column templates with Bootstrap grid: Tools part 4 2019-01-04 03:13:48 +00:00
showdiffmarc.tt Bug 21436: Update two-column templates with Bootstrap grid: Tools part 4 2019-01-04 03:13:48 +00:00
stage-marc-import.tt Bug 19417: (QA follow-up) Fix missing $raw filter 2019-03-13 05:31:34 +00:00
stockrotation.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
tools-home.tt Bug 8387: Hide headings in tools when user has no permissions for any listed below 2019-02-15 18:42:48 +00:00
upload-images.tt Bug 21436: Update two-column templates with Bootstrap grid: Tools part 4 2019-01-04 03:13:48 +00:00
upload.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
viewlog.tt Bug 20750: (QA follow-up) Fix templates 2019-03-15 19:07:08 +00:00