Skip to content

Commit

Permalink
ui: force specific groups for the sample dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
jrdh committed Oct 30, 2024
1 parent e514d5f commit e1ab207
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ckanext/nhm/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,15 @@ def vds_modify_field_groups(self, resource_ids, field_groups):
):
field_groups.ignore(group)

if helpers.get_sample_resource_id() in resource_ids:
field_groups.force("scientificName")
field_groups.force("identifier")
field_groups.force("preparationType")
field_groups.force("preparationContents")
field_groups.force("preservation")
field_groups.force("project")
field_groups.force("barcode")

return field_groups

def datastore_before_convert_basic_query(self, query):
Expand Down

0 comments on commit e1ab207

Please sign in to comment.