[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
Mon Oct 17 16:20:31 CEST 2022


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

--- Comment #48 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
Make the REST API returns a "_str" key (generated only if you requested it)
which would contains the stringified values
{
  _str: { attr: "stringified_value" },
  attr: "coded_value"
}

JS code would be
  let string_to_display = json._str.attr || json.attr

Not sure why this is still stuck.

I needed it for ERM and ended with retrieving the AVs from the TT plugin,
serialized to JSON and cached them.

The main problem is that we don't even have a route for AVs.

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


More information about the Koha-bugs mailing list