Koha-clms/serials
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
..
acqui-search-result.pl Bug 20015: use Modern::Perl in Serials perl script 2018-02-05 09:46:45 -03:00
acqui-search.pl Bug 20015: use Modern::Perl in Serials perl script 2018-02-05 09:46:45 -03:00
add_fields.pl Bug 15803: Koha::AuthorisedValues - Remove C4::Koha::GetAuthorisedValueCategories 2016-10-28 16:35:52 +00:00
add_user_search.pl Bug 15758: Koha::Libraries - Remove GetBranches 2016-09-08 14:36:03 +00:00
checkexpiration.pl Bug 20015: use Modern::Perl in Serials perl script 2018-02-05 09:46:45 -03:00
claims.pl Bug 8612: [Follow-up] Make usage and type different columns in table 2017-06-05 12:02:08 -03:00
create-numberpattern.pl Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
lateissues-export.pl Bug 18536: [QA Follow-up] Tiny regex simplification 2017-05-19 10:41:39 -04:00
reorder_members.pl Bug 20015: use Modern::Perl in Serials perl script 2018-02-05 09:46:45 -03:00
routing-preview.pl Bug 18255: Koha::Biblio - Replace GetBiblioItemByBiblioNumber with Koha::Biblio->biblioitem 2018-03-23 11:45:38 -03:00
routing.pl Bug 20015: use Modern::Perl in Serials perl script 2018-02-05 09:46:45 -03:00
serials-collection.pl Bug 18327: Add the ability to set the received date to today on multi receiving serials 2018-04-19 16:37:21 -03:00
serials-edit.pl Bug 18327: Same change for serials-edit 2018-04-19 16:37:21 -03:00
serials-home.pl Bug 15758: Koha::Libraries - Ultimate duel for C4::Branch 2016-09-08 14:36:04 +00:00
serials-search.pl Bug 15758: Koha::Libraries - Remove GetBranches 2016-09-08 14:36:03 +00:00
showpredictionpattern.pl Bug 16154: CGI->multi_param - Force scalar context 2016-04-26 23:16:43 +00:00
subscription-add.pl Bug 20461: Serials: fix ignored params in subscription creation form 2018-03-26 17:31:07 -03:00
subscription-batchedit.pl Bug 18426: Make sure the logged in user can edit the subscriptions 2018-04-23 14:22:14 -03:00
subscription-bib-search.pl Bug 20015: use Modern::Perl in Serials perl script 2018-02-05 09:46:45 -03:00
subscription-detail.pl Bug 13726: Make Koha::Acq::Bookseller using Koha::Object 2016-12-30 11:54:32 +00:00
subscription-frequencies.pl Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
subscription-frequency.pl Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
subscription-history.pl Bug 18260: Koha::Biblio - Remove GetBiblio 2017-07-10 13:03:38 -03:00
subscription-numberpattern.pl Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
subscription-numberpatterns.pl Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
subscription-renew.pl Bug 20015: use Modern::Perl in Serials perl script 2018-02-05 09:46:45 -03:00
viewalerts.pl Bug 19855: Move getalert, addalert and delalert to Koha::Subscription 2018-04-23 14:22:15 -03:00