C4::Members::Attribute - manage extend patron attributes


my $attributes = C4::Members::Attributes::GetBorrowerAttributes($borrowernumber);



my $attributes = C4::Members::Attributes::GetBorrowerAttributes($borrowernumber[, $opac_only]);

Retrieve an arrayref of extended attributes associated with the patron specified by $borrowernumber. Each entry in the arrayref is a hashref containing the following keys:

code (attribute type code) description (attribute type description) value (attribute value) value_description (attribute value description (if associated with an authorised value)) password (password, if any, associated with attribute

If the $opac_only parameter is present and has a true value, only the attributes marked for OPAC display are returned.


my $ok = CheckUniqueness($code, $value[, $borrowernumber]);

Given an attribute type and value, verify if would violate a unique_id restriction if added to the patron. The optional $borrowernumber is the patron that the attribute value would be added to, if known.

Returns false if the $code is not valid or the value would violate the uniqueness constraint.


SetBorrowerAttributes($borrowernumber, [ { code => 'CODE', value => 'value', password => 'password' }, ... ] );

Set patron attributes for the patron identified by $borrowernumber, replacing any that existed previously.


Koha Development Team <info@koha.org>

Galen Charlton <galen.charlton@liblime.com>