[Koha-bugs] [Bug 26635] Expand coded values in REST API call
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Oct 31 08:28:13 CET 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26635
--- Comment #70 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
Then we could use the following structure
{
_str: {
location: { str: "General Stacks", type: "authorised_values" },
itemtype: { str: "Books", type: "itemtypes" }
},
location: "GEN",
itemtype: "BK",
}
>From a dev pov it will be easier to
const location = r._str.location.str || r.location
const itemtype = r._str.itemtype.str || r.itemtype
than to *know* that location is in _authorised_values and itemtype in
_itemtypes!
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list