Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show related resources in Search results #3268

Closed
michelleif opened this issue Oct 29, 2021 · 6 comments
Closed

Show related resources in Search results #3268

michelleif opened this issue Oct 29, 2021 · 6 comments
Assignees

Comments

@michelleif
Copy link
Contributor

michelleif commented Oct 29, 2021

original feature request is in #2204.

in Search, for each result that has class bf:Work, bf:Instance, or bf:Item, show related Sinopia resources (see LD4P/sinopia_api#192), with ability to preview, edit, and copy those related resources.

For a bf:Work, the related bf:Instances will be displayed.
For a bf:Instance, the related bf:Work and bf:Items will be displayed.
For a bf:Item, the related bf:Instances will be displayed.

@michelleif michelleif changed the title Show related resources when searching for Works, Instances or Items Show related resources in Search results Oct 29, 2021
@justinlittman
Copy link
Contributor

image

@justinlittman
Copy link
Contributor

@jcoyne
Copy link
Contributor

jcoyne commented Nov 12, 2021

this mockup shows an RDA:C10001 record. We are going to show related things for RDA stuff too?

If they match a work and we show the instance records, do we want to be able to further expand the Items below it?

@jcoyne jcoyne added the question Further information is requested label Nov 12, 2021
@michelleif
Copy link
Contributor Author

  1. only applies to results with class bf:Work, bf:Instance, bf:Item
  2. the only relationships to show are the ones we are showing in the left nav of the Editor (see Display relationship of resource to work/instance/item #3227)
  • for bf:Works show >Instance if bf:Work has a bf:hasInstance
  • for bf:Instances show >Work if bf:Instance has a bf:instanceOf
  • for bf:Instances show >Item if bf:Instance has a bf:hasItem
  • for bf:Items show Instance if bf:Item has a bf:itemOf
  • bf:relatedTo is out of scope
  • bf:hasAdminMetadata is out of scope
  1. proposed implementation is to not show the related resource's label until user clicks on >Work or >Instance or >Item

@justinlittman
Copy link
Contributor

Here are the relevant API calls:

(I realized when I previously described this I say that getting the titles required one API call per resource -- I was mistaken. It can be called with multiple resource URIs.)

@justinlittman justinlittman removed the question Further information is requested label Nov 16, 2021
@justinlittman justinlittman self-assigned this Nov 23, 2021
@justinlittman
Copy link
Contributor

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants