Lines 57-63
holds_reminder.pl
Link Here
|
57 |
-v verbose |
57 |
-v verbose |
58 |
-n No email will be sent |
58 |
-n No email will be sent |
59 |
-days <days> days waiting to deal with |
59 |
-days <days> days waiting to deal with |
60 |
-lettercode <lettercode> predefined notice to use |
60 |
-lettercode <lettercode> predefined notice to use, default is HOLD_REMINDER |
61 |
-library <branchname> only deal with holds from this library (repeatable : several libraries can be given) |
61 |
-library <branchname> only deal with holds from this library (repeatable : several libraries can be given) |
62 |
-holidays use the calendar to not count holidays as waiting days |
62 |
-holidays use the calendar to not count holidays as waiting days |
63 |
-mtt <message_transport_type> type of messages to send, default is to use patrons messaging preferences for Hold filled |
63 |
-mtt <message_transport_type> type of messages to send, default is to use patrons messaging preferences for Hold filled |
Lines 92-97
Optional parameter, number of days an items has been 'waiting' on hold
Link Here
|
92 |
to send a message for. If not included a notice will be sent to all |
92 |
to send a message for. If not included a notice will be sent to all |
93 |
patrons with waiting holds. |
93 |
patrons with waiting holds. |
94 |
|
94 |
|
|
|
95 |
=item B<-lettercode> |
96 |
|
97 |
Optional parameter, choose a notice to use. Default is 'HOLD_REMINDER'. |
98 |
|
95 |
=item B<-library> |
99 |
=item B<-library> |
96 |
|
100 |
|
97 |
select notices for one specific library. Use the value in the |
101 |
select notices for one specific library. Use the value in the |
Lines 134-140
of the notices sent to patrons.
Link Here
|
134 |
|
138 |
|
135 |
C<holds_reminder.pl> - With no arguments the simple help is printed |
139 |
C<holds_reminder.pl> - With no arguments the simple help is printed |
136 |
|
140 |
|
137 |
C<holds_reminder.pl -lettercode CODE > In this most basic usage all |
141 |
C<holds_reminder.pl > In this most basic usage all |
138 |
libraries are processed individually, and notices are prepared for |
142 |
libraries are processed individually, and notices are prepared for |
139 |
all patrons with waiting holds for whom we have email addresses. |
143 |
all patrons with waiting holds for whom we have email addresses. |
140 |
Messages for those patrons for whom we have no email |
144 |
Messages for those patrons for whom we have no email |
Lines 142-157
address are sent in a single attachment to the library administrator's
Link Here
|
142 |
email address, or to the address in the KohaAdminEmailAddress system |
146 |
email address, or to the address in the KohaAdminEmailAddress system |
143 |
preference. |
147 |
preference. |
144 |
|
148 |
|
145 |
C<holds_reminder.pl -lettercode CODE -n -csv /tmp/holds_reminder.csv> - sends no email and |
149 |
C<holds_reminder.pl -n -csv /tmp/holds_reminder.csv> - sends no email and |
146 |
populates F</tmp/holds_reminder.csv> with information about all waiting holds |
150 |
populates F</tmp/holds_reminder.csv> with information about all waiting holds |
147 |
items. |
151 |
items. |
148 |
|
152 |
|
149 |
C<holds_reminder.pl -lettercode CODE -library MAIN -days 14> - prepare notices of |
153 |
C<holds_reminder.pl -library MAIN -days 14> - prepare notices of |
150 |
holds waiting for 2 weeks for the MAIN library. |
154 |
holds waiting for 2 weeks for the MAIN library. |
151 |
|
155 |
|
152 |
C<holds_reminder.pl -library MAIN -days 14 -list-all> - prepare notices |
156 |
C<holds_reminder.pl -lettercode LATE_HOLDS -library MAIN -days 14> - prepare notices of |
153 |
of holds waiting for 2 weeks for the MAIN library and include all the |
157 |
holds waiting for 2 weeks for the MAIN library. Use lettercode 'LATE_HOLDS' |
154 |
patron's waiting hold |
|
|
155 |
|
158 |
|
156 |
=cut |
159 |
=cut |
157 |
|
160 |
|
Lines 185-197
GetOptions(
Link Here
|
185 |
pod2usage(1) if $help; |
188 |
pod2usage(1) if $help; |
186 |
pod2usage( -verbose => 2 ) if $man; |
189 |
pod2usage( -verbose => 2 ) if $man; |
187 |
|
190 |
|
188 |
if ( !$lettercode ) { |
191 |
$lettercode ||= 'HOLD_REMINDER'; |
189 |
pod2usage({ |
|
|
190 |
-exitval => 1, |
191 |
-msg => qq{\nError: You must specify a lettercode to send reminders.\n}, |
192 |
}); |
193 |
} |
194 |
|
195 |
|
192 |
|
196 |
cronlogaction(); |
193 |
cronlogaction(); |
197 |
|
194 |
|
198 |
- |
|
|