|
Lines 190-196
sub report {
Link Here
|
| 190 |
|
190 |
|
| 191 |
my $summary = <<_SUMMARY_; |
191 |
my $summary = <<_SUMMARY_; |
| 192 |
|
192 |
|
| 193 |
Update total issues count script report |
193 |
Update total checkouts count script report |
| 194 |
======================================================= |
194 |
======================================================= |
| 195 |
Run started at: $starttime |
195 |
Run started at: $starttime |
| 196 |
Run ended at: $endtime |
196 |
Run ended at: $endtime |
|
Lines 222-229
update_totalissues.pl
Link Here
|
| 222 |
|
222 |
|
| 223 |
=head1 DESCRIPTION |
223 |
=head1 DESCRIPTION |
| 224 |
|
224 |
|
| 225 |
This batch job populates bibliographic records' total issues count based |
225 |
This batch job populates bibliographic records' total checkouts count |
| 226 |
on historical issue statistics. |
226 |
(DB: biblioitems.totalissues) based on historical checkout statistics. |
| 227 |
|
227 |
|
| 228 |
=over 8 |
228 |
=over 8 |
| 229 |
|
229 |
|
|
Lines 237-247
Provide verbose log information (list every bib modified).
Link Here
|
| 237 |
|
237 |
|
| 238 |
=item B<--use-stats> |
238 |
=item B<--use-stats> |
| 239 |
|
239 |
|
| 240 |
Use the data in the statistics table for populating total issues. |
240 |
Use the data in the statistics table for populating total checkouts. |
| 241 |
|
241 |
|
| 242 |
=item B<--use-items> |
242 |
=item B<--use-items> |
| 243 |
|
243 |
|
| 244 |
Use items.issues data for populating total issues. Note that issues |
244 |
Use items.issues data for populating total checkouts. Note that checkouts |
| 245 |
data from the items table does not respect the --since or --interval |
245 |
data from the items table does not respect the --since or --interval |
| 246 |
options, by definition. Also note that if both --use-stats and |
246 |
options, by definition. Also note that if both --use-stats and |
| 247 |
--use-items are specified, the count of biblios processed will be |
247 |
--use-items are specified, the count of biblios processed will be |
|
Lines 250-272
misleading.
Link Here
|
| 250 |
=item B<--use-deleted-items> |
250 |
=item B<--use-deleted-items> |
| 251 |
|
251 |
|
| 252 |
Only applies when using items as above, will include deleted items in the total |
252 |
Only applies when using items as above, will include deleted items in the total |
| 253 |
count of issues for the bibliographic records. |
253 |
count of checkouts for the bibliographic records. |
| 254 |
|
254 |
|
| 255 |
=item B<-s|--since=DATE> |
255 |
=item B<-s|--since=DATE> |
| 256 |
|
256 |
|
| 257 |
Only process issues recorded in the statistics table since DATE. |
257 |
Only process checkouts recorded in the statistics table since DATE. |
| 258 |
|
258 |
|
| 259 |
=item B<-i|--interval=S> |
259 |
=item B<-i|--interval=S> |
| 260 |
|
260 |
|
| 261 |
Only process issues recorded in the statistics table in the last N |
261 |
Only process checkouts recorded in the statistics table in the last N |
| 262 |
units of time. The interval should consist of a number with a one-letter |
262 |
units of time. The interval should consist of a number with a one-letter |
| 263 |
unit suffix. The valid suffixes are h (hours), d (days), w (weeks), |
263 |
unit suffix. The valid suffixes are h (hours), d (days), w (weeks), |
| 264 |
m (months), and y (years). The default unit is days. |
264 |
m (months), and y (years). The default unit is days. |
| 265 |
|
265 |
|
| 266 |
=item B<--incremental> |
266 |
=item B<--incremental> |
| 267 |
|
267 |
|
| 268 |
Add the number of issues found in the statistics table to the existing |
268 |
Add the number of checkouts found in the statistics table to the existing |
| 269 |
total issues count. Intended so that this script can be used as a cron |
269 |
total checkouts count. Intended so that this script can be used as a cron |
| 270 |
job to update popularity information during low-usage periods. If neither |
270 |
job to update popularity information during low-usage periods. If neither |
| 271 |
--since or --interval are specified, incremental mode will default to |
271 |
--since or --interval are specified, incremental mode will default to |
| 272 |
processing the last twenty-four hours. |
272 |
processing the last twenty-four hours. |
| 273 |
- |
|
|