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.]
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.
User Story
In order to show dataset relationships, data researchers want the link to the relevant datasets represented in the
isPartOfmetadata.Acceptance Criteria
[ACs should be clearly demoable/verifiable whenever possible. Try specifying them using BDD.]
GIVEN a dataset has an
isPartOfmetadata 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
isPartOfWHEN 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 theisPartOffield to see if it's a parent, and if the dataset has that field, searchingidentifierfor 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
isPartOffield 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.