https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30657
Brendan Lawlor <blaw...@clamsnet.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #169050|0 |1 is obsolete| | --- Comment #16 from Brendan Lawlor <blaw...@clamsnet.org> --- Created attachment 169057 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=169057&action=edit Bug 30657: Dynamically add attribute accessors This patch adds dynamic creation of accessors for extended patron attributes based on attribute code. It should work for Koha::Patron objects resulting from calls to Koha::Patron->new(), Koha::Patrons->search, Koha::Patrons->find and any relations that return a Koha::Patron object. We return a single value for non-repeatable attributes and an arrayref of values for repeatable ones. This should make it simple to access such attributes in Koha Notice Templates. Simply use the 'code' in your variables.. example: You've added a 'smartcard' extended attribute to your system, you would refer to it in your notice as [% patron.smartcard | html %] Signed-off-by: Brendan Lawlor <blaw...@clamsnet.org> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/