Skip to content

Commit

Permalink
refactor(settings): remove name field references
Browse files Browse the repository at this point in the history
Remove all references to "name" field from
APIS_ENTITIES settings.
  • Loading branch information
koeaw committed Mar 7, 2024
1 parent dafbf33 commit 3476f3a
Showing 1 changed file with 1 addition and 54 deletions.
55 changes: 1 addition & 54 deletions apis_ontology/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@
APIS_ENTITIES = {
"Work": {
"search": [
"name",
"title",
"subtitle",
"siglum",
Expand All @@ -185,7 +184,6 @@
"data_source",
],
"form_order": [
"name",
"title",
"subtitle",
"siglum",
Expand All @@ -206,7 +204,6 @@
"narrative_voice",
],
"table_fields": [
"name",
"title",
"subtitle",
"siglum",
Expand All @@ -230,7 +227,6 @@
"narrative_voice",
],
"list_filters": {
"name": {"method": "name_label_filter"},
"title": {"method": "name_label_filter"},
"subtitle": {"method": "name_label_filter"},
"siglum": {"method": "name_label_filter"},
Expand All @@ -254,7 +250,6 @@
},
"Expression": {
"search": [
"name",
"title",
"subtitle",
"edition_type",
Expand All @@ -265,7 +260,6 @@
"data_source",
],
"form_order": [
"name",
"title",
"subtitle",
"progress_status",
Expand All @@ -277,7 +271,6 @@
"relevant_pages",
],
"table_fields": [
"name",
"title",
"subtitle",
"edition_type",
Expand All @@ -292,7 +285,6 @@
"page_count",
],
"list_filters": {
"name": {"method": "name_label_filter"},
"title": {"method": "name_label_filter"},
"subtitle": {"method": "name_label_filter"},
"edition_type": {},
Expand All @@ -305,22 +297,19 @@
},
"WorkType": {
"search": [
"name",
"name_plural",
"alternative_name",
"description",
"progress_status",
"data_source",
],
"form_order": [
"name",
"name_plural",
"alternative_name",
"description",
"progress_status",
],
"table_fields": [
"name",
"name_plural",
"alternative_name",
],
Expand All @@ -330,7 +319,6 @@
"data_source",
],
"list_filters": {
"name": {"method": "name_label_filter"},
"name_plural": {"method": "name_label_filter"},
"alternative_name": {"method": "name_label_filter"},
"description": {"method": "name_label_filter"},
Expand All @@ -340,33 +328,27 @@
},
"PhysicalObject": {
"search": [
"name",
"vorlass_doc_reference",
"description",
"data_source",
],
"form_order": [
"name",
"description",
],
"table_fields": [
"name",
],
"table_fields": [],
"additional_cols": [
"vorlass_doc_reference",
"data_source",
"description",
],
"list_filters": {
"name": {"method": "name_label_filter"},
"vorlass_doc_reference": {},
"description": {"method": "name_label_filter"},
"data_source": {},
},
},
"Person": {
"search": [
"name",
"first_name",
"last_name",
"alternative_name",
Expand All @@ -375,15 +357,13 @@
"data_source",
],
"form_order": [
"name",
"first_name",
"last_name",
"alternative_name",
"progress_status",
"description",
],
"table_fields": [
"name",
"last_name",
"first_name",
"alternative_name",
Expand All @@ -394,7 +374,6 @@
"description",
],
"list_filters": {
"name": {"method": "name_label_filter"},
"first_name": {"method": "name_label_filter"},
"last_name": {"method": "name_label_filter"},
"alternative_name": {"method": "name_label_filter"},
Expand All @@ -405,22 +384,19 @@
},
"Organisation": {
"search": [
"name",
"alternative_name",
"progress_status",
"description",
"website",
"data_source",
],
"form_order": [
"name",
"alternative_name",
"progress_status",
"description",
"website",
],
"table_fields": [
"name",
"alternative_name",
"progress_status",
],
Expand All @@ -430,7 +406,6 @@
"website",
],
"list_filters": {
"name": {"method": "name_label_filter"},
"alternative_name": {"method": "name_label_filter"},
"progress_status": {},
"description": {"method": "name_label_filter"},
Expand All @@ -440,7 +415,6 @@
},
"Character": {
"search": [
"name",
"first_name",
"last_name",
"alternative_name",
Expand All @@ -451,7 +425,6 @@
"data_source",
],
"form_order": [
"name",
"first_name",
"last_name",
"alternative_name",
Expand All @@ -461,7 +434,6 @@
"description",
],
"table_fields": [
"name",
"last_name",
"first_name",
"relevancy",
Expand All @@ -474,7 +446,6 @@
"description",
],
"list_filters": {
"name": {"method": "name_label_filter"},
"first_name": {"method": "name_label_filter"},
"last_name": {"method": "name_label_filter"},
"alternative_name": {"method": "name_label_filter"},
Expand All @@ -487,47 +458,40 @@
},
"MetaCharacter": {
"search": [
"name",
"description",
"progress_status",
"data_source",
],
"form_order": [
"name",
"description",
"progress_status",
],
"table_fields": [
"name",
"progress_status",
],
"additional_cols": [
"data_source",
"description",
],
"list_filters": {
"name": {"method": "name_label_filter"},
"description": {"method": "name_label_filter"},
"progress_status": {},
"data_source": {},
},
},
"ResearchPerspective": {
"search": [
"name",
"alternative_name",
"description",
"progress_status",
"data_source",
],
"form_order": [
"name",
"alternative_name",
"description",
"progress_status",
],
"table_fields": [
"name",
"alternative_name",
"progress_status",
],
Expand All @@ -536,7 +500,6 @@
"description",
],
"list_filters": {
"name": {"method": "name_label_filter"},
"alternative_name": {"method": "name_label_filter"},
"description": {"method": "name_label_filter"},
"progress_status": {},
Expand All @@ -545,20 +508,17 @@
},
"Topic": {
"search": [
"name",
"alternative_name",
"description",
"progress_status",
"data_source",
],
"form_order": [
"name",
"alternative_name",
"description",
"progress_status",
],
"table_fields": [
"name",
"alternative_name",
"progress_status",
],
Expand All @@ -567,7 +527,6 @@
"description",
],
"list_filters": {
"name": {"method": "name_label_filter"},
"alternative_name": {"method": "name_label_filter"},
"description": {"method": "name_label_filter"},
"progress_status": {},
Expand All @@ -576,7 +535,6 @@
},
"Place": {
"search": [
"name",
"alternative_name",
"progress_status",
"description",
Expand All @@ -585,15 +543,13 @@
"data_source",
],
"form_order": [
"name",
"alternative_name",
"progress_status",
"description",
"latitude",
"longitude",
],
"table_fields": [
"name",
"alternative_name",
"progress_status",
],
Expand All @@ -604,7 +560,6 @@
"longitude",
],
"list_filters": {
"name": {"method": "name_label_filter"},
"alternative_name": {"method": "name_label_filter"},
"progress_status": {},
"description": {"method": "name_label_filter"},
Expand All @@ -615,47 +570,40 @@
},
"Interpretatem": {
"search": [
"name",
"description",
"progress_status",
"data_source",
],
"form_order": [
"name",
"description",
"progress_status",
],
"table_fields": [
"name",
"progress_status",
],
"additional_cols": [
"data_source",
"description",
],
"list_filters": {
"name": {"method": "name_label_filter"},
"description": {"method": "name_label_filter"},
"progress_status": {},
"data_source": {},
},
},
"Archive": {
"search": [
"name",
"description",
"location",
"website",
"data_source",
],
"form_order": [
"name",
"description",
"location",
"website",
],
"table_fields": [
"name",
"location",
],
"additional_cols": [
Expand All @@ -664,7 +612,6 @@
"description",
],
"list_filters": {
"name": {"method": "name_label_filter"},
"description": {"method": "name_label_filter"},
"location": {"method": "name_label_filter"},
"website": {},
Expand Down

0 comments on commit 3476f3a

Please sign in to comment.