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

(-)a/C4/Auth_with_ldap.pm (-1 lines)
Lines 26-32 use C4::Context; Link Here
26
use C4::Members qw(AddMember);
26
use C4::Members qw(AddMember);
27
use C4::Members::Attributes;
27
use C4::Members::Attributes;
28
use C4::Members::AttributeTypes;
28
use C4::Members::AttributeTypes;
29
use C4::Members::Messaging;
30
use C4::Auth qw(checkpw_internal);
29
use C4::Auth qw(checkpw_internal);
31
use Koha::Patrons;
30
use Koha::Patrons;
32
use Koha::AuthUtils qw(hash_password);
31
use Koha::AuthUtils qw(hash_password);
(-)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 402-408 sub DESTROY { } Link Here
402
402
403
=head1 SEE ALSO
403
=head1 SEE ALSO
404
404
405
L<C4::Circulation>, L<C4::Letters>, L<C4::Members::Messaging>
405
L<C4::Circulation>, L<C4::Letters>, L<Koha::Patron::Message::Preference>
406
406
407
=head1 AUTHOR
407
=head1 AUTHOR
408
408
(-)a/C4/Reserves.pm (-1 lines)
Lines 31-37 use C4::Circulation; Link Here
31
use C4::Accounts;
31
use C4::Accounts;
32
32
33
# for _koha_notify_reserve
33
# for _koha_notify_reserve
34
use C4::Members::Messaging;
35
use C4::Members qw();
34
use C4::Members qw();
36
use C4::Letters;
35
use C4::Letters;
37
use C4::Log;
36
use C4::Log;
(-)a/Koha/Patron/Category.pm (-2 lines)
Lines 19-26 use Modern::Perl; Link Here
19
19
20
use Carp;
20
use Carp;
21
21
22
use C4::Members::Messaging;
23
24
use Koha::Database;
22
use Koha::Database;
25
use Koha::DateUtils;
23
use Koha::DateUtils;
26
use Koha::Patron::Message::Preferences;
24
use Koha::Patron::Message::Preferences;
(-)a/circ/returns.pl (-1 lines)
Lines 46-52 use C4::Reserves; Link Here
46
use C4::Biblio;
46
use C4::Biblio;
47
use C4::Items;
47
use C4::Items;
48
use C4::Members;
48
use C4::Members;
49
use C4::Members::Messaging;
50
use C4::Koha;   # FIXME : is it still useful ?
49
use C4::Koha;   # FIXME : is it still useful ?
51
use C4::RotatingCollections;
50
use C4::RotatingCollections;
52
use Koha::AuthorisedValues;
51
use Koha::AuthorisedValues;
(-)a/misc/cronjobs/advance_notices.pl (-1 lines)
Lines 53-59 use C4::Biblio; Link Here
53
use C4::Context;
53
use C4::Context;
54
use C4::Letters;
54
use C4::Letters;
55
use C4::Members;
55
use C4::Members;
56
use C4::Members::Messaging;
57
use C4::Overdues;
56
use C4::Overdues;
58
use Koha::DateUtils;
57
use Koha::DateUtils;
59
use C4::Log;
58
use C4::Log;
(-)a/misc/maintenance/borrowers-force-messaging-defaults.pl (-1 lines)
Lines 27-33 BEGIN { Link Here
27
}
27
}
28
28
29
use C4::Context;
29
use C4::Context;
30
use C4::Members::Messaging;
31
use Koha::Patrons;
30
use Koha::Patrons;
32
use Getopt::Long;
31
use Getopt::Long;
33
use Pod::Usage;
32
use Pod::Usage;
(-)a/opac/opac-messaging.pl (-1 lines)
Lines 28-34 use C4::Koha; Link Here
28
use C4::Circulation;
28
use C4::Circulation;
29
use C4::Output;
29
use C4::Output;
30
use C4::Members;
30
use C4::Members;
31
use C4::Members::Messaging;
32
use C4::Form::MessagingPreferences;
31
use C4::Form::MessagingPreferences;
33
use Koha::SMS::Providers;
32
use Koha::SMS::Providers;
34
33
(-)a/t/Members_Messaging.t (-14 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
(-)a/tools/import_borrowers.pl (-2 lines)
Lines 43-49 use C4::Context; Link Here
43
use C4::Members;
43
use C4::Members;
44
use C4::Members::Attributes qw(:all);
44
use C4::Members::Attributes qw(:all);
45
use C4::Members::AttributeTypes;
45
use C4::Members::AttributeTypes;
46
use C4::Members::Messaging;
47
use C4::Reports::Guided;
46
use C4::Reports::Guided;
48
use C4::Templates;
47
use C4::Templates;
49
use Koha::Patron::Debarments;
48
use Koha::Patron::Debarments;
50
- 

Return to bug 18595