<<

NAME

Koha::Patron - Koha Patron Object class

API

Class Methods

search_housebound_choosers

Returns all Patrons which are Housebound choosers.

search_housebound_deliverers

Returns all Patrons which are Housebound deliverers.

search_upcoming_membership_expires

my $patrons = Koha::Patrons->search_upcoming_membership_expires();

The 'before' and 'after' represent the number of days before/after the date that is set by the preference MembershipExpiryDaysNotice. If the pref is 14, before 2 and after 3 then you will get all expires from 12 to 17 days.

guarantor

Returns a Koha::Patron object for this borrower's guarantor

search_patrons_to_anonymise

    my $patrons = Koha::Patrons->search_patrons_to_anonymise( { before => $older_than_date, [ library => $library ] } );

This method returns all patrons who has an issue history older than a given date.

anonymise_issue_history

    Koha::Patrons->search->anonymise_issue_history( { [ before => $older_than_date ] } );

Anonymise issue history (old_issues) for all patrons older than the given date (optional). To make sure all the conditions are met, the caller has the responsibility to call search_patrons_to_anonymise to filter the Koha::Patrons set

type

AUTHOR

Kyle M Hall <kyle@bywatersolutions.com>

<<