From f9bf5832861f213864907438d100fe7719ee7bd2 Mon Sep 17 00:00:00 2001 From: djfiander Date: Wed, 17 May 2006 02:50:02 +0000 Subject: [PATCH] Finish first pass at ILS::Patron documentation --- ILS/Patron.pod | 48 +++++++++++++++++++++++++++++------------------- 1 file changed, 29 insertions(+), 19 deletions(-) diff --git a/ILS/Patron.pod b/ILS/Patron.pod index 72ea5c4..9bc750a 100644 --- a/ILS/Patron.pod +++ b/ILS/Patron.pod @@ -134,7 +134,7 @@ Returns C if C<$patron>'s password is C<$password>. Returns the three character ISO 4217 currency code for the patron's preferred currency. -=head1 CHECK PATRON PERMISSIONS +=head1 CHECKING PATRON PERMISSIONS Most of the methods associated with Patrons are related to checking if they're authorized to perform various actions: @@ -144,6 +144,7 @@ checking if they're authorized to perform various actions: $bool = $patron-Erecall_ok; $bool = $patron-Ehold_ok; $bool = $patron-Ecard_lost; + $bool = $patron-Erecall_overdue; $bool = $patron-Etoo_many_charged; $bool = $patron-Etoo_many_overdue; $bool = $patron-Etoo_many_renewal; @@ -153,34 +154,39 @@ checking if they're authorized to perform various actions: $bool = $patron-Eexcessive_fees; $bool = $patron-Etoo_many_billed; -=head1 PATRON BORROWING ACTIVITY - - -=head2 C<$num = $patron-Erecall_overdue;> - +=head1 LISTS OF ITEMS ASSOCIATED WITH THE USER -=head2 C<$num = $patron-Efee_amount;> - - -=head2 C<$bool = $patron-Edrop_hold($item_id);> +The C<$patron> object provides a set of methods to find out +information about various sets that are associated with the +user. All these methods take two optional parameters: C<$start> +and C<$end>, which define a subset of the list of items to be +returned (C<1> is the first item in the list). The following +methods all return a reference to a list of C<$item_id>s: + $items = $patron-Ehold_items($start, $end); + $items = $patron-Eoverdue_items($start, $end); + $items = $patron-Echarged_items($start, $end); + $items = $patron-Erecall_items($start, $end); + $items = $patron-Eunavail_holds($start, $end); -=head2 C<@holds = $patron-Ehold_items($start, $end);> +It is also possible to retrieve an itemized list of the fines +outstanding. This method returns a reference to an itemized list +of fines: + $fines = $patron-Efine_items($start, $end); -=head2 C<@items = $patron-Eoverdue_items($start, $end);> - - -=head2 C<@items = $patron-Echarged_items($start, $end);> - +=head1 PATRON BORROWING ACTIVITY -=head2 C<@items = $patron-Efine_items($start, $end);> +=head2 C<$num = $patron-Efee_amount;> +The total amount of fees and fines owed by the patron. -=head2 C<@items = $patron-Erecall_items($start, $end);> +=head2 C<$bool = $patron-Edrop_hold($item_id);> +Drops the hold that C<$patron> has placed on the item +C<$item_id>. Returns C if the patron did not have a hold +on the item, C otherwise. -=head2 C<@items = $patron-Eunavail_holds($start, $end);> =head1 CHANGING A PATRON'S STATUS @@ -198,3 +204,7 @@ updated to indicate that the patron's privileges have been blocked, or C if the patron ID is not valid. =head2 C<$patron-Eenable;> + +Reenable the patron after she's been blocked. This is a test +function and will not normally be called by self-service +terminals in production. -- 2.11.0