<<

NAME

juv2adult.pl - convert juvenile/child patrons from juvenile patron category and category code to corresponding adult patron category and category code when they reach the upper age limit defined in the Patron Categories.

SYNOPSIS

juv2adult.pl [ -b=<branchcode> -f=<categorycode> -t=<categorycode> ]

 Options:
   --help                                       brief help message
   --man                                        full documentation
   -v                                           verbose mode
   -n                                           take no action, display only
   -b   <branchname>    only deal with patrons from this library/branch
   -f   <categorycode>  change patron category from this category
   -t   <categorycode>  change patron category to this category
=head1 OPTIONS
--help

Print a brief help message and exits.

--man

Prints the manual page and exits.

-v

Verbose. Without this flag set, only fatal errors are reported.

-n

No Action. With this flag set, script will report changes but not actually execute them on the database.

-b

changes patrons for one specific branch. Use the value in the branches.branchcode table.

-f

*required* defines the juvenile category to update. Expects the code from categories.categorycode.

-t

*required* defines the category juvenile patrons will be converted to. Expects the code from categories.categorycode.

DESCRIPTION

This script is designed to update patrons from juvenile to adult patron types, remove the guarantor, and update their category codes appropriately when they reach the upper age limit defined in the Patron Categories.

USAGE EXAMPLES

juv2adult.pl - Suggests that you read this help. :)

juv2adult.pl -b=<branchcode> -f=<categorycode> -t=<categorycode> - Processes a single branch, and updates the patron categories from fromcat to tocat.

juv2adult.pl -f=<categorycode> -t=<categorycode> -v -n - Processes all branches, shows all messages, and reports the patrons who would be affected. Takes no action on the database.

<<