Koha::Patron;;Category - Koha Patron;;Category Object class
my $actionBlocked = $category->effective_BlockExpiredPatronOpacActions_contains('hold');
Return if the provided action is blocked by BlockExpiredPatronOpacActions, accounting for the syspref.
Action, can be one of: ['hold', 'renew', 'ill_request']
my $actionBlocked = $self->BlockExpiredPatronOpacActions_contains('hold');
Return if the provided action is blocked by this category's BlockExpiredPatronOpacActions value.
Action, can be one of: ['hold', 'renew', 'ill_request']
my $messaging = $category->default_messaging();
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();
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.
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.
$category->effective_min_password_length()
Retrieve category's password length if set, or minPasswordLength otherwise
$category->effective_require_strong_password()
Retrieve category's password strength if set, or RequireStrongPassword otherwise
$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.
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
if ( $patron->category->can_make_suggestions ) { ... }
Returns if the OPAC logged-in user is allowed to make OPAC purchase suggestions.
This method returns the mapping for representing a Koha::Patron:Category object on the API.
configure library limits