Koha/koha-tmpl/opac-tmpl/bootstrap/en/modules
Agustin Moyano b29e015f7d Bug 18532: set auto_renewals as patron messaging preference
This patch adds the "Auto renewals" messaging preference on intranet and OPAC, and adds digest feature to misc/cronjobs/automatic_renewals.pl script.

(Deprecated test plan. Please check the last patch)
To test:
1. apply patches
2. perl installer/data/mysql/updatedatabase.pl
3. make sure automatic renewals are allowed in circ rules, have a positive number of allowed renewals and a positive number for renewal period
4. go to patron categories in administration of staff interface and choose a category.
CHECK => in "Default messaging preferences for this patron category" has a "Auto renewals" row and has email and digest options checked
5. grab a patron and go to details page
CHECK => patron's messaging preferences has a "Auto renewals" row with email and digest options checked
6. some settings and save
7. go to opac with that same patron to "your messaging" option
CHECK => patron's messaging preferences has a "Auto renewals" row, and displays changes made in staff interface.
8. uncheck email and digest from "Auto renewals" row and save
9. check out an item for that patron, and set it as automatic renewal and set due date as your current yesterday
10. perl misc/cronjobs/automatic_renewals.pl -c --send-notices -v
SUCCESS => item was renewed, and in message_queue table there is no new message for the patron
11. update patrons messaging preferences and set email option of "Auto renewals" row as checked
12. repeat steps 9 and 10
SUCCESS => item was renewed, but in message_queue table there is a new message of type AUTO_RENEWALS
13. update patrons messaging preferences and set email and digest options of "Auto renewals" row as checked
14. repeat steps 9 and 10
CHECK => item was not renewed
15. run step 10 again, but add -d flag, like this:
    perl misc/cronjobs/automatic_renewals.pl -c --send-notices -v -d
SUCCESS => item was renewed, and in message_queue table there is a new message of type AUTO_RENEWALS_DGST
16. Sign off

Signed-off-by: tgoat <tgoatley@gmail.com>
Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com>
Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com>
Signed-off-by: Marti Fuerst <mfuerst@hmcpl.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-03-16 16:08:31 +01:00
..
clubs
errors
sci
sco Bug 24083: (follow-up) Make requested changes 2020-11-11 16:09:58 +01:00
svc
text
ilsdi.tt
maintenance.tt
opac-account-pay-error.tt
opac-account.tt
opac-addbybiblionumber.tt
opac-advsearch.tt Bug 7607: (follow-up) Address OPAC and limits 2020-11-20 14:23:48 +01:00
opac-alert-subscribe.tt
opac-auth-detail.tt
opac-auth-MARCdetail.tt
opac-auth.tt Bug 18506: (QA follow-up) Indentation and more conditionals 2021-02-09 09:48:35 +01:00
opac-authorities-home.tt
opac-authoritiessearchresultlist.tt
opac-basket.tt Bug 27440: Improve structure and style of result toolbars in the OPAC 2021-01-28 17:32:53 +01:00
opac-blocked.tt
opac-browse.tt Bug 27200: (follow-up) Browse search interface update 2020-12-26 17:58:43 +01:00
opac-browser.tt
opac-course-details.tt Bug 25775: Add DataTables controls to user's checkouts table in OPAC 2021-01-14 10:11:37 +01:00
opac-course-reserves.tt Bug 25775: Add DataTables controls to user's checkouts table in OPAC 2021-01-14 10:11:37 +01:00
opac-detail.tt Bug 27628: Fix minor HTML markup errors in OPAC search results templates 2021-02-08 14:56:00 +01:00
opac-discharge.tt
opac-downloadcart.tt
opac-downloadshelf.tt
opac-full-serial-issues.tt
opac-holdshistory.tt Bug 20936: (QA follow-up) Use Branches template plugin 2020-11-11 15:55:48 +01:00
opac-ics.tt
opac-idref.tt
opac-illrequests.tt Bug 27478: Improved link text when viewing ILL reqested item 2021-01-22 14:59:27 +01:00
opac-imageviewer.tt Bug 26145: Refactoring - Move C4::Images to Koha::CoverImages 2020-10-12 11:28:41 +02:00
opac-ISBDdetail.tt
opac-issue-note.tt
opac-library.tt
opac-main.tt Bug 18506: (QA follow-up) Indentation and more conditionals 2021-02-09 09:48:35 +01:00
opac-MARCdetail.tt
opac-memberentry-update-submitted.tt
opac-memberentry.tt Bug 27681: Style OPAC self-registration CAPTCHA as uppercase 2021-03-09 15:05:23 +01:00
opac-messaging.tt Bug 18532: set auto_renewals as patron messaging preference 2021-03-16 16:08:31 +01:00
opac-mymessages.tt
opac-news-rss.tt
opac-opensearch.tt Bug 26921: Don't generate an invalid custom cover image if the url cannot be generated 2020-12-21 10:07:48 +01:00
opac-overdrive-search.tt Bug 26747: Show 'Always available' if title always available in overdrive 2020-10-26 00:14:41 +01:00
opac-passwd.tt Bug 26828: Set focus for cursor to current password field when updating in the OPAC 2020-11-03 10:57:35 +01:00
opac-password-recovery.tt Bug 27479: Improve link text to be more helpful (opac-password-recovery.tt) 2021-01-22 14:59:27 +01:00
opac-patron-consent.tt
opac-privacy.tt Bug 26718: Rename "reading history" to "checkout history" 2020-11-04 12:59:33 +01:00
opac-readingrecord.tt Bug 27005: (follow-up) Exclude links column from sort and export 2021-02-08 17:09:32 +01:00
opac-recordedbooks-search.tt
opac-registration-confirmation.tt
opac-registration-email-sent.tt
opac-registration-invalid.tt
opac-reportproblem.tt
opac-request-article.tt
opac-reserve.tt Bug 26763: Use standard information style for multi-hold message 2020-11-04 12:59:33 +01:00
opac-restrictedpage.tt
opac-results.tt Bug 27628: Fix minor HTML markup errors in OPAC search results templates 2021-02-08 14:56:00 +01:00
opac-retrieve-file.tt
opac-review.tt
opac-routing-lists.tt
opac-search-history.tt Bug 27728: Add a search box on OPAC Search history 2021-03-09 10:31:47 +01:00
opac-sendbasket.tt
opac-sendbasketform.tt
opac-sendshelf.tt
opac-sendshelfform.tt
opac-serial-issues.tt
opac-shareshelf.tt Bug 13701: Remove hardcoded "two weeks" text from list share confirmation 2020-11-02 11:03:09 +01:00
opac-shelves-rss.tt
opac-shelves.tt Bug 27440: Improve structure and style of result toolbars in the OPAC 2021-01-28 17:32:53 +01:00
opac-showmarc.tt
opac-showreviews-rss.tt Bug 26921: Don't generate an invalid custom cover image if the url cannot be generated 2020-12-21 10:07:48 +01:00
opac-showreviews.tt Bug 26921: Don't generate an invalid custom cover image if the url cannot be generated 2020-12-21 10:07:48 +01:00
opac-suggestions.tt Bug 26406: Fix suggestions filter at the OPAC 2021-02-15 11:18:25 +01:00
opac-tags.tt Bug 27493: (follow-up) Remove redundant class 2021-01-28 17:32:52 +01:00
opac-tags_subject.tt
opac-topissues.tt Bug 27168: Sort most popular by number of issues desc 2021-01-04 13:30:01 +01:00
opac-user.tt Bug 27098: Renames Relatives fines to Relative charges 2021-01-22 14:59:27 +01:00