[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
Tue Aug 31 17:38:22 CEST 2021


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

--- Comment #30 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
I have another question regards the output representation.. I've come round to
the lookup table approach.. but shouldn't there be another level in there?

{
  "_authorised_values": {
    "location": {
      "authorised_value": "GEN",
      "category": "LOC",
      "id": 27,
      "imageurl": null,
      "lib": "General Stacks",
      "lib_opac": null
    }
  },
  "location": "GEN"
}


What about for searches.. it's unlikely all items will be in the 'GEN'
location.. so wouldn't we actually need:

{
  "_authorised_values": {
    "location": {
      "GEN": "General Stacks",
      "SHELVES": "Shelves"
    },
  },
  "location": "GEN"
}

Where the key is the AV code and the value is the appropriate description
(based on public vs staff.

Not sure we need any of the rest of the AV object detail honestly.. perhaps the
imageurl later...

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


More information about the Koha-bugs mailing list