Skip to content

Add isPartOf link #5653

@jbrown-xentity

Description

@jbrown-xentity

User Story

In order to show dataset relationships, data researchers want the link to the relevant datasets represented in the isPartOf metadata.

Acceptance Criteria

[ACs should be clearly demoable/verifiable whenever possible. Try specifying them using BDD.]

  • GIVEN a dataset has an isPartOf metadata filled out appropriately (or is harvested via WAF collection type)
    WHEN the dataset is viewed on catalog
    THEN a link to the "parent" record is displayed

  • GIVEN a dataset is referenced by other datasets with isPartOf
    WHEN the dataset is viewed on catalog
    THEN a link to the child records and/or a link to search all child records is shown.

Background

Came out of user testing.

Security Considerations (required)

None

Sketch

Here is an example:

I would expect this to be done as some type of dynamic API checking on page load, and if the search result for the isPartOf (searching the isPartOf field to see if it's a parent, and if the dataset has that field, searching identifier for the content of that field) has content, then a special block of HTML should be displayed.

Please note that metadata wise, there's no reason a dataset can't be a parent AND a child. We should always check if someone is a parent, and if the isPartOf field exists then check to make sure it exists via API and then link to it. If there are multiple matches, prioritize the one in the same org and harvest source.

Metadata

Metadata

Assignees

Labels

Projects

Status

👀 Needs Review

Relationships

None yet

Development

No branches or pull requests

Issue actions