Bug 40285 - Add template plugin to get patron attribute by code
Summary: Add template plugin to get patron attribute by code
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Templates (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-01 14:45 UTC by Owen Leonard
Modified: 2025-07-01 14:50 UTC (History)
1 user (show)

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Owen Leonard 2025-07-01 14:45:11 UTC
We have template plugins for getting descriptions of things like item types, collection codes, and patron categories:

[% AuthorisedValues.GetByCode('Bsort1', loopfilte.filter ) | html %]

It would be useful to have the same thing for getting a patron attribute's description by the code. Something like:

[% ExtendedAttributeTypes.GetName( attribute_code ) %]

This could be used on a page like moremember.pl:

**Additional attributes and identifiers**
- [Attribute description]: [Attribute value]