]> git.koha-community.org Git - koha.git/commit
Bug 26635: Expand authorised values in to_api method
authorAgustin Moyano <agustinmoyano@theke.io>
Fri, 9 Oct 2020 12:59:41 +0000 (09:59 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 9 Nov 2022 17:00:35 +0000 (14:00 -0300)
commit3f0c8cfc09870f299ccf693831933f8769b501a9
treeda5bc37ed80d3fb439083dae09382ac52996ca87
parent3ce20d47b0b0e2b006bdbb0a7c1335806ce0500f
Bug 26635: Expand authorised values in to_api method

This patch adds the posibility to expand authorised values when to_api
method is called.

The classes where authorised values should expand must implememnt the
_fetch_authorised_values method, and must return a hash like the
following

{
  column_name => Koha::AuthorisedValue->unblessed
  ...
}

This patch will be used in bug 8179, so please test there.

Sponsored-by: Virginia Polytechnic Institute and State University
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Object.pm
Koha/REST/Plugin/Objects.pm