<<

NAME

Koha::Patron;;Category - Koha Patron;;Category Object class

API

Class Methods

effective_BlockExpiredPatronOpacActions_contains

my $actionBlocked = $category->effective_BlockExpiredPatronOpacActions_contains('hold');

Return if the provided action is blocked by BlockExpiredPatronOpacActions, accounting for the syspref.

action

Action, can be one of: ['hold', 'renew', 'ill_request']

BlockExpiredPatronOpacActions_contains

my $actionBlocked = $self->BlockExpiredPatronOpacActions_contains('hold');

Return if the provided action is blocked by this category's BlockExpiredPatronOpacActions value.

action

Action, can be one of: ['hold', 'renew', 'ill_request']

store

default_messaging

my $messaging = $category->default_messaging();

get_password_expiry_date

Returns date based on password expiry days set for the category. If the value is not set we return undef, password does not expire

my $expiry_date = $category->get_password_expiry_date();

effective_reset_password

Returns if patrons in this category can reset their password. If set in $self->reset_password or, if undef, falls back to the OpacResetPassword system preference.

effective_change_password

Returns if patrons in this category can change their password. If set in $self->change_password or, if undef, falls back to the OpacPasswordChange system preference.

effective_min_password_length

    $category->effective_min_password_length()

Retrieve category's password length if set, or minPasswordLength otherwise

effective_require_strong_password

    $category->effective_require_strong_password()

Retrieve category's password strength if set, or RequireStrongPassword otherwise

effective_force_password_reset_when_set_by_staff

    $category->effective_force_password_reset_when_set_by_staff()

Returns if new staff created patrons in this category are forced to reset their password. If set in $self->force_password_reset_when_set_by_staff or, if undef, falls back to the ForcePasswordResetWhenSetByStaff system preference.

override_hidden_items

    if ( $patron->category->override_hidden_items ) {
        ...
    }

Returns a boolean that if patrons of this category are exempt from the OPACHiddenItems policies

TODO: Remove on bug 22547

can_make_suggestions

    if ( $patron->category->can_make_suggestions ) {
        ...
    }

Returns if the OPAC logged-in user is allowed to make OPAC purchase suggestions.

to_api_mapping

This method returns the mapping for representing a Koha::Patron:Category object on the API.

Internal methods

_library_limits

 configure library limits

type

<<