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; |