Skip to content

Commit

Permalink
ui: change the forced and ignored for index lots
Browse files Browse the repository at this point in the history
They were just a copy of the specimens one, but there are not enough shared fields for that to make sense. This changes that to make more sense for the index lots.
  • Loading branch information
jrdh committed Oct 30, 2024
1 parent 52bb39b commit 00677d5
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions ckanext/nhm/views/indexlot.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,26 @@ def modify_field_groups(field_groups):
# forces
field_groups.force("scientificName")
field_groups.force("family")
field_groups.force("typeStatus")
field_groups.force("locality")
field_groups.force("country")
field_groups.force("recordedBy")
field_groups.force("catalogNumber")
field_groups.force("type")
field_groups.force("taxonRank")
field_groups.force("associatedMediaCount")
field_groups.force("preservative")
field_groups.force("collectionCode")
field_groups.force("year")
field_groups.force("month")
field_groups.force("day")
field_groups.force("kindOfMaterial")
field_groups.force("kingdom")
field_groups.force("phylum")
field_groups.force("class")
field_groups.force("order")
field_groups.force("family")
field_groups.force("genus")
field_groups.force("specificEpithet")
field_groups.force("infraspecificEpithet")
# ignores
field_groups.ignore("created")
field_groups.ignore("modified")
field_groups.ignore("basisOfRecord")
field_groups.ignore("institutionCode")
field_groups.ignore("associatedMedia.*")
field_groups.ignore("barcode")
field_groups.ignore("suborder")
field_groups.ignore("superfamily")
field_groups.ignore("subfamily")
field_groups.ignore("subgenus")


class IndexLotView(DefaultView):
Expand Down

0 comments on commit 00677d5

Please sign in to comment.