[Koha-bugs] [Bug 26635] Expand authorised values in REST API call

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jan 13 11:23:49 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26635

--- Comment #38 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
We name itemtype => item_type_id, branchcode => library_id, etc. We do that so
we can do things like:

x-koha-embed: item_type,library

So we already have a generic way if doing it. You just add a method that
returns the thing and add an embed definition on the API.

The problem is, frameworks define how attributes are mapped to avs, and as such
you cannot know in advance what you would need to embed. And even if you know
in advance that some attribute is married to an av, it could happen that there
isn't a match just because (of data). So maybe one item has a corresponding av,
and the other doesn't, on a resultset.

It felt (some time ago already) that it was better to return a structure in
which you could query for the descriptions.

I'm ok with whatever we decide, as long as it is practical and consistent. And
we can use so we can push bug 8179 to master, which is hurting the sponsors for
a year already.

Bug 8179 needs some more polishing for sure, but uncertainty made it get stuck.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list