Koha/koha-tmpl/opac-tmpl/bootstrap/en/modules
Jonathan Druart 5c7ff786d5 Bug 19855: Move getalert, addalert and delalert to Koha::Subscription
This patch removes 3 subroutines from C4::Letters:
- getalert
- addalert
- delalert

And add 3 methods to Koha::Subscription:
- subscribers
- add_subscriber
- remove_subscriber

It makes the code cleaner for future cleanup.
TODO - we should remove alert.alertid and alert.type, and rename
alert.externalid with alert.subscriptionid
That way alert will be renamed borrowers_subscriptions (or similar) and
will become a simple join table between borrowers and subscriptions.
We will need to deal with FK that could not be satisfied.
Let's do that after this patch is pushed.

Test plan:
Subscribe and unsubscribe to email notifications sent when a new issues
is available.
Make sure everything works as before and you receive the emails.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2018-04-23 14:22:15 -03:00
..
clubs
errors
sci Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
sco Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
svc
text
ilsdi.tt Bug 13990: ILS-DI LookupPatron requires ID Type 2018-01-30 14:18:21 -03:00
maintenance.tt Bug 20054: Remove attribute "text/css" for <style> element in OPAC 2018-02-12 17:38:57 -03:00
opac-account-pay-error.tt
opac-account.tt Bug 18786: Add ability to create custom payment types 2018-04-19 12:32:21 -03:00
opac-addbybiblionumber.tt
opac-advsearch.tt Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
opac-alert-subscribe.tt Bug 19855: Move getalert, addalert and delalert to Koha::Subscription 2018-04-23 14:22:15 -03:00
opac-auth-detail.tt Bug 20538: Fix 2 JS paths 2018-04-13 11:49:44 -03:00
opac-auth-MARCdetail.tt Bug 20538: Fix 2 JS paths 2018-04-13 11:49:44 -03:00
opac-auth.tt Bug 20291: (follow-up) Rename NoLoginInstructions to OpacLoginInstructions 2018-04-02 18:08:07 -03:00
opac-authorities-home.tt
opac-authoritiessearchresultlist.tt
opac-basket.tt Bug 19708: Improve code for printing the cart in OPAC 2018-03-26 17:31:16 -03:00
opac-blocked.tt
opac-browser.tt
opac-course-details.tt Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
opac-course-reserves.tt Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
opac-detail.tt Bug 19855: Move getalert, addalert and delalert to Koha::Subscription 2018-04-23 14:22:15 -03:00
opac-discharge.tt
opac-downloadcart.tt
opac-downloadshelf.tt
opac-full-serial-issues.tt Bug 20054: Remove attribute "text/css" for <style> element in OPAC 2018-02-12 17:38:57 -03:00
opac-ics.tt
opac-idref.tt Bug 20054: Remove attribute "text/css" for <style> element in OPAC 2018-02-12 17:38:57 -03:00
opac-illrequests.tt
opac-imageviewer.tt Bug 20054: Remove attribute "text/css" for <style> element in OPAC 2018-02-12 17:38:57 -03:00
opac-ISBDdetail.tt
opac-issue-note.tt
opac-main.tt Bug 18820: Main block size now adjust to OpacNavRight like it would for opacuserlogin 2018-04-02 18:12:30 -03:00
opac-MARCdetail.tt
opac-memberentry-update-submitted.tt
opac-memberentry.tt Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
opac-messaging.tt
opac-mymessages.tt
opac-news-rss.tt
opac-opensearch.tt Bug 20286: Fix filter for BakerTaylor* prefs 2018-03-14 08:59:29 +00:00
opac-overdrive-search.tt Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
opac-passwd.tt Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
opac-password-recovery.tt
opac-privacy.tt
opac-readingrecord.tt Bug 20054: Remove attribute "text/css" for <style> element in OPAC 2018-02-12 17:38:57 -03:00
opac-registration-confirmation.tt Bug 19911: Escape password value during self-registration confirmation 2018-01-15 12:14:00 -03:00
opac-registration-email-sent.tt
opac-registration-invalid.tt
opac-request-article.tt
opac-reserve.tt
opac-restrictedpage.tt
opac-results-grouped.tt Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
opac-results.tt Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
opac-retrieve-file.tt
opac-review.tt Bug 20054: Remove attribute "text/css" for <style> element in OPAC 2018-02-12 17:38:57 -03:00
opac-routing-lists.tt Bug 20400: (follow-up) Several fixes from RM review 2018-04-20 17:59:06 -03:00
opac-search-history.tt Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
opac-sendbasket.tt
opac-sendbasketform.tt
opac-sendshelf.tt
opac-sendshelfform.tt
opac-serial-issues.tt Bug 19855: Move getalert, addalert and delalert to Koha::Subscription 2018-04-23 14:22:15 -03:00
opac-shareshelf.tt
opac-shelves-rss.tt
opac-shelves.tt Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
opac-showmarc.tt
opac-showreviews-rss.tt
opac-showreviews.tt
opac-suggestions.tt Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
opac-tags.tt Bug 20054: Remove attribute "text/css" for <style> element in OPAC 2018-02-12 17:38:57 -03:00
opac-tags_subject.tt
opac-topissues.tt Bug 20054: Remove attribute "text/css" for <style> element in OPAC 2018-02-12 17:38:57 -03:00
opac-user.tt Bug 20489: Remove warnings from the interface 2018-04-20 12:24:00 -03:00