Story: Update API to support targetAudience

Description

Add support for targetAudience of work in the API. Create a new object property with name http://bibfra.me/vocab/marc/targetAudience within the Work section of the API request and response.

Properties in the object:

http://bibfra.me/vocab/marc/code (Array of strings)

http://bibfra.me/vocab/marc/term (Array of strings)

http://bibfra.me/vocab/lite/link (Array of strings)

Environment

None

Potential Workaround

None

Attachments

4
  • 18 Mar 2024, 09:39 AM
  • 18 Mar 2024, 09:39 AM
  • 18 Mar 2024, 09:39 AM
  • 15 Mar 2024, 12:46 PM

Checklist

hide

Activity

Show:

Tetiana Kovalchuk March 18, 2024 at 10:12 AM

Tested on missinglinks env.

Build version: #337

Test cases and evidences linked.

Tetiana Kovalchuk March 15, 2024 at 12:47 PM

Unable to create a resource:

Askhat Abishev March 14, 2024 at 7:35 AM

example payload

{ "resource": { "http://bibfra.me/vocab/lite/Work": { "http://bibfra.me/vocab/marc/targetAudience": [ { "http://bibfra.me/vocab/marc/code": [ "b" ], "http://bibfra.me/vocab/marc/term": [ "Primary" ], "http://bibfra.me/vocab/lite/link": [ "http://id.loc.gov/vocabulary/maudience/pri" ] } ], "_instanceReference": [ { "id": "%INSTANCE_ID%" } ] } } }

Punnoose Kutty Jacob Pullolickal March 11, 2024 at 1:23 PM

Following today's (03/11) standup discussion, the conversion from a 3-character code (e.g., "pre") to a single-character MARC code (e.g., "a") will now be handled in the frontend. This mapping task will be removed from the scope of current this ticket and moved to the corresponding UI ticket, which has not yet been created.

Askhat Abishev March 11, 2024 at 12:31 PM

do we really need special mapping here? Don’t we take the single-character code from CODE property?

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Citation

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created February 29, 2024 at 3:52 PM
Updated March 4, 2025 at 7:23 PM
Resolved March 18, 2024 at 2:29 PM
TestRail: Cases
TestRail: Runs

Flag notifications