<<

NAME

gather_print_notices - Print waiting print notices

SYNOPSIS

gather_print_notices output_directory [-s|--split] [--html] [--csv] [--ods] [--letter_code=LETTER_CODE] [-e|--email=your_email@example.org] [-h|--help]

Will print all waiting print notices to the output_directory.

The generated filename will be notices-TODAY.[csv|html|ods] or notices-TODAY-BRANCHCODE.[csv|html|ods] if the --split parameter is given.

OPTIONS

output_directory

Define the output directory where the files will be generated.

--send|--nosend

After files have been generated, messages status is changed from 'pending' to 'sent'. This is the default action, without this parameter or with --send. Using --nosend, the message status is not changed.

-s|--split

Split messages into separate files by borrower home library to OUTPUT_DIRECTORY/notices-CURRENT_DATE-BRANCHCODE.[csv|html|ods]

--html

Generate the print notices in a html file (default is --html, if --csv and --ods are not given).

--csv

Generate the print notices in a csv file. If you use this parameter, the template should contain 2 lines. The first one the csv headers and the second one the value list.

For example: cardnumber:patron:email:item <<borrowers.cardnumber>>:<<borrowers.firstname>> <<borrowers.surname>>:<<borrowers.email>>:<<items.barcode>>

You have to combine this option with one (and only one) letter_code.

--ods

Generate the print notices in a ods file.

This is the same as the csv parameter but using csv2odf to generate an ods file instead of a csv file.

--letter_code

Filter print messages by letter_code. Several letter_code parameters can be given.

-e|--email

Repeatable. E-mail address to send generated files to.

-h|--help

Print a brief help message

AUTHOR

Jesse Weaver <pianohacker@gmail.com>

Jonathan Druart <jonathan.druart@biblibre.com>

COPYRIGHT

Copyright 2009 Jesse Weaver

Copyright 2014 BibLibre

LICENSE This file is part of Koha.

Koha is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

Koha is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Koha; if not, see <http://www.gnu.org/licenses>.

<<