View | Details | Raw Unified | Return to bug 18595
Collapse All | Expand All

(-)a/C4/Auth_with_ldap.pm (-1 lines)
Lines 22-28 use Carp; Link Here
22
22
23
use C4::Debug;
23
use C4::Debug;
24
use C4::Context;
24
use C4::Context;
25
use C4::Members::Messaging;
26
use C4::Auth qw(checkpw_internal);
25
use C4::Auth qw(checkpw_internal);
27
use Koha::Patrons;
26
use Koha::Patrons;
28
use Koha::AuthUtils qw(hash_password);
27
use Koha::AuthUtils qw(hash_password);
(-)a/C4/Auth_with_shibboleth.pm (-1 lines)
Lines 24-30 use C4::Context; Link Here
24
use Koha::AuthUtils qw(get_script_name);
24
use Koha::AuthUtils qw(get_script_name);
25
use Koha::Database;
25
use Koha::Database;
26
use Koha::Patrons;
26
use Koha::Patrons;
27
use C4::Members::Messaging;
28
use Carp;
27
use Carp;
29
use CGI;
28
use CGI;
30
use List::MoreUtils qw(any);
29
use List::MoreUtils qw(any);
(-)a/C4/Form/MessagingPreferences.pm (-2 / +1 lines)
Lines 22-28 use warnings; Link Here
22
22
23
use CGI qw ( -utf8 );
23
use CGI qw ( -utf8 );
24
use C4::Context;
24
use C4::Context;
25
use C4::Members::Messaging;
26
use C4::Debug;
25
use C4::Debug;
27
use Koha::Patron::Message::Preferences;
26
use Koha::Patron::Message::Preferences;
28
use Koha::Patrons;
27
use Koha::Patrons;
Lines 178-184 sub set_form_values { Link Here
178
177
179
=head1 SEE ALSO
178
=head1 SEE ALSO
180
179
181
L<C4::Members::Messaging>, F<admin/categories.pl>, F<opac/opac-messaging.pl>, F<members/messaging.pl>
180
L<Koha::Patron::Message::Preference>, F<admin/categories.pl>, F<opac/opac-messaging.pl>, F<members/messaging.pl>
182
181
183
=head1 AUTHOR
182
=head1 AUTHOR
184
183
(-)a/C4/Members/Messaging.pm (-95 lines)
Lines 1-95 Link Here
1
package C4::Members::Messaging;
2
3
# Copyright (C) 2008 LibLime
4
#
5
# This file is part of Koha.
6
#
7
# Koha is free software; you can redistribute it and/or modify it
8
# under the terms of the GNU General Public License as published by
9
# the Free Software Foundation; either version 3 of the License, or
10
# (at your option) any later version.
11
#
12
# Koha is distributed in the hope that it will be useful, but
13
# WITHOUT ANY WARRANTY; without even the implied warranty of
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
# GNU General Public License for more details.
16
#
17
# You should have received a copy of the GNU General Public License
18
# along with Koha; if not, see <http://www.gnu.org/licenses>.
19
20
use strict;
21
use warnings;
22
use C4::Context;
23
24
=head1 NAME
25
26
C4::Members::Messaging - manage patron messaging preferences
27
28
=head1 SYNOPSIS
29
30
  use C4::Members::Messaging
31
32
=head1 DESCRIPTION
33
34
This module lets you modify a patron's messaging preferences.
35
36
=head1 TABLES
37
38
=head2 message_queue
39
40
The actual messages which will be sent via a cron job running
41
F<misc/cronjobs/process_message_queue.pl>.
42
43
=head2 message_attributes
44
45
What kinds of messages can be sent?
46
47
=head2 message_transport_types
48
49
What transports can messages be sent vith?  (email, sms, etc.)
50
51
=head2 message_transports
52
53
How are message_attributes and message_transport_types correlated?
54
55
=head2 borrower_message_preferences
56
57
What messages do the borrowers want to receive?
58
59
=head2 borrower_message_transport_preferences
60
61
What transport should a message be sent with?
62
63
=head1 CONFIG
64
65
=head2 Adding a New Kind of Message to the System
66
67
=over 4
68
69
=item 1.
70
71
Add a new template to the `letter` table.
72
73
=item 2.
74
75
Insert a row into the `message_attributes` table.
76
77
=item 3.
78
79
Insert rows into `message_transports` for each message_transport_type.
80
81
=back
82
83
=head1 SEE ALSO
84
85
L<C4::Letters>
86
87
=head1 AUTHOR
88
89
Koha Development Team <http://koha-community.org/>
90
91
Andrew Moore <andrew.moore@liblime.com>
92
93
=cut
94
95
1;
(-)a/C4/Message.pm (-1 / +1 lines)
Lines 406-412 sub DESTROY { } Link Here
406
406
407
=head1 SEE ALSO
407
=head1 SEE ALSO
408
408
409
L<C4::Circulation>, L<C4::Letters>, L<C4::Members::Messaging>
409
L<C4::Circulation>, L<C4::Letters>, L<Koha::Patron::Message::Preference>
410
410
411
=head1 AUTHOR
411
=head1 AUTHOR
412
412
(-)a/C4/Reserves.pm (-1 lines)
Lines 30-36 use C4::Context; Link Here
30
use C4::Items;
30
use C4::Items;
31
use C4::Letters;
31
use C4::Letters;
32
use C4::Log;
32
use C4::Log;
33
use C4::Members::Messaging;
34
use C4::Members;
33
use C4::Members;
35
use Koha::Account::Lines;
34
use Koha::Account::Lines;
36
use Koha::Biblios;
35
use Koha::Biblios;
(-)a/Koha/Patron/Category.pm (-2 lines)
Lines 20-27 use Modern::Perl; Link Here
20
use Carp;
20
use Carp;
21
use List::MoreUtils qw(any);
21
use List::MoreUtils qw(any);
22
22
23
use C4::Members::Messaging;
24
25
use Koha::Database;
23
use Koha::Database;
26
use Koha::DateUtils;
24
use Koha::DateUtils;
27
use Koha::Patron::Message::Preferences;
25
use Koha::Patron::Message::Preferences;
(-)a/circ/returns.pl (-1 lines)
Lines 43-49 use C4::Circulation; Link Here
43
use C4::Context;
43
use C4::Context;
44
use C4::Items;
44
use C4::Items;
45
use C4::Koha;   # FIXME : is it still useful ?
45
use C4::Koha;   # FIXME : is it still useful ?
46
use C4::Members::Messaging;
47
use C4::Members;
46
use C4::Members;
48
use C4::Output;
47
use C4::Output;
49
use C4::Reserves;
48
use C4::Reserves;
(-)a/misc/cronjobs/advance_notices.pl (-1 lines)
Lines 54-60 use C4::Biblio; Link Here
54
use C4::Context;
54
use C4::Context;
55
use C4::Letters;
55
use C4::Letters;
56
use C4::Members;
56
use C4::Members;
57
use C4::Members::Messaging;
58
use C4::Overdues;
57
use C4::Overdues;
59
use Koha::DateUtils;
58
use Koha::DateUtils;
60
use C4::Log;
59
use C4::Log;
(-)a/misc/maintenance/borrowers-force-messaging-defaults.pl (-1 lines)
Lines 28-34 BEGIN { Link Here
28
28
29
use Koha::Script;
29
use Koha::Script;
30
use C4::Context;
30
use C4::Context;
31
use C4::Members::Messaging;
32
use Koha::Patrons;
31
use Koha::Patrons;
33
use Getopt::Long;
32
use Getopt::Long;
34
use Pod::Usage;
33
use Pod::Usage;
(-)a/opac/opac-messaging.pl (-1 lines)
Lines 27-33 use C4::Koha; Link Here
27
use C4::Circulation;
27
use C4::Circulation;
28
use C4::Output;
28
use C4::Output;
29
use C4::Members;
29
use C4::Members;
30
use C4::Members::Messaging;
31
use C4::Form::MessagingPreferences;
30
use C4::Form::MessagingPreferences;
32
use Koha::Patrons;
31
use Koha::Patrons;
33
use Koha::SMS::Providers;
32
use Koha::SMS::Providers;
(-)a/t/Members_Messaging.t (-15 lines)
Lines 1-14 Link Here
1
#!/usr/bin/perl
2
#
3
# This Koha test module is a stub!  
4
# Add more tests here!!!
5
6
use strict;
7
use warnings;
8
9
use Test::More tests => 1;
10
11
BEGIN {
12
        use_ok('C4::Members::Messaging');
13
}
14
15
- 

Return to bug 18595