[METADATA-57] Use UUID for Refering to Material Types Created: 21/Apr/17  Updated: 26/Apr/17  Resolved: 26/Apr/17

Status: Closed
Project: Metadata
Components: None
Affects versions: None
Fix versions: 4.0.0

Type: New Feature Priority: P3
Reporter: Marc Johnson Assignee: shale99
Resolution: Done Votes: 0
Labels: sprint12, sprint13
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Issue links:
Blocks
blocks STRIPES-287 "item types" should be "material type... Closed
blocks CIRC-3 Depend upon item-storage v2.0 interface Closed
blocks FOLIO-569 Update bb with mod-metadata > 3.1.0 Closed
blocks METADATA-58 Use Material Types Referred to by UUI... Closed
Cloners
clones FOLIO-556 align PG and mattype endpoints by usi... Closed
Relates
relates to FOLIO-535 agree on the approach for joining/fil... Open
Sprint:

 Description   

As decided in FOLIO-535 Open , any kind of "controlled vocabulary" endpoint should follow a similar scheme.

CRUDing

GET|POST /cv-items/
GET|PUT|DELETE /cv-items/:uuid

Associations

In the "parent" record (like User or Item) we would include raw UUID/s directly in the associated record, using a scalar UUID field for many-to-one relations (e.g MT) or an array of UUIDs for the many-to-many relations (e.g PG):

{
  "username": "shale99",
  "patron_groups": ["123-456-789-123", "345-678-910-111"]
}

The PUT/POST on the record with proper UUID value should allow for updating associations. To get all users/items/etc with a given PG/MT/etc association we will use sarching/filtering.

Searching with CQL

Search/filter for items with a CV-item should be supported directly on the resource:

lastName="Doe" AND (patron_group == "123-456-789" OR patron_group == "112-113-114")

when constructing facet-like clickable filters on the left-hand side the UI will lookup all CV values (the assumption is that the list is short) and create name-to-uuid map for handling filtering.

The above sheme should be used for all newly constructed CV-like endpoints.



 Comments   
Comment by Cate Boerema (Inactive) [ 25/Apr/17 ]

Assigning this to sprint 13, as, apparently, it's a blocker to UIU-32 Closed which is in sprint 13.

Generated at Thu Feb 08 23:06:44 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.