GSA / data.gov

Main repository for the data.gov service
https://data.gov
Other
546 stars 87 forks source link

Catalog-next updates for datagovtheme #4749

Open jbrown-xentity opened 1 month ago

jbrown-xentity commented 1 month ago

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.]

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.