]> git.koha-community.org Git - koha.git/commit
Bug 27855: Implement Koha::Patron::Attribute->to_api_mapping
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 3 Mar 2021 19:51:41 +0000 (16:51 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 9 Mar 2021 09:31:47 +0000 (10:31 +0100)
commitf790ca45ab97dfdb630900603d4d7bf4c822c92d
tree19c62abd10475491083010b95d226cb07464494b
parentd77a1226df936a62782b9a0ebf6349c9f02b6636
Bug 27855: Implement Koha::Patron::Attribute->to_api_mapping

This patch introduces a mapping to render extended attributes on the
API. As they have an ID, and they will generally be used on the
/patrons umbrella, I removed the borrowernumber on the mapping.

Another option would be to add the field, but make it optional. It
really feels redundant, so I take it out for now.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Patron/Attribute.pm