data.gov
data.gov copied to clipboard
Catalog-next updates for datagovtheme
User Story
In order to have an integrated CKAN for the new harvester2.0, data.gov admins want a fixed version of datagovtheme.
Acceptance Criteria
[ACs should be clearly demoable/verifiable whenever possible. Try specifying them using BDD.]
-
[ ] GIVEN a collection record is harvested via harvester2.0
WHEN I view the dataset page
THEN a link exists to search for all items within the collection
AND each collection item has a link back to the parent -
[ ] GIVEN a dataset is in catalog-next via harvester2.0
WHEN I view the dataset page
THEN a link exists to the full original metadata in the harvester2.0 API
AND the link resolves as expected with harvester2.0 API
Background
Related to catalog-next work, and final implementation of Harvester2.0
Security Considerations (required)
None
Sketch
This may also involve integrating/completing the work @FuhuXia already did to remove the harvest extension from datagovtheme.
Should be straightforward fix of various templates.
To fix the collection, you'll want to redirect to a simple search, something like parent_id = "parent_uuid"
as defined by the metadata.
The collection item pointing back to the parent will require a little client side api call, checking what the URL is for the parent and then linking to that URL.
This may also require patches to the harvester2.0 work; it should be setup such that all parents are marked as such (as that doesn't need to be defined in the metadata); but that code may need to be written. Should result in a metadata field called is_parent
, and that should be true.