[Koha-patches] [PATCH] bug_7520 Added Meta handler to API v1 for metadata lists

2016-08-01 Thread Srdjan
Useful for building drop-downs etc. Kick off with /meta/advanced-search-types --- Koha/REST/V1/Meta.pm | 52 api/v1/swagger.json | 49 ++ t/db_dependent/api/v1/meta.t | 82 3 files

[Koha-patches] [PATCH] bug_7520 Added helper "syspref" to Mojolicious handlers

2016-08-01 Thread Srdjan
--- Koha/REST/V1.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Koha/REST/V1.pm b/Koha/REST/V1.pm index b692a38..b8f2bd6 100644 --- a/Koha/REST/V1.pm +++ b/Koha/REST/V1.pm @@ -25,6 +25,8 @@ use Koha::Patrons; sub startup { my $self = shift; +$self->helper(syspref => sub {