From 3c3984529e8848dfe4031d44b83f8e97e48167fd Mon Sep 17 00:00:00 2001 From: Quincy Morgan <2046746+quincylvania@users.noreply.github.com> Date: Tue, 8 Dec 2020 11:42:18 -0500 Subject: [PATCH] Add string labels for combo fields with limited suggestions but allowed custom values --- data/fields/access_simple.json | 11 +++- data/fields/display.json | 9 +++- data/fields/service.json | 16 +++--- data/fields/source.json | 16 +++--- data/fields/sport_ice.json | 16 +++--- data/fields/sport_racing_motor.json | 12 +++-- data/fields/sport_racing_nonmotor.json | 16 +++--- interim/source_strings.yaml | 73 ++++++++++++++++++++++++++ 8 files changed, 134 insertions(+), 35 deletions(-) diff --git a/data/fields/access_simple.json b/data/fields/access_simple.json index 2b94746d..efe30e3a 100644 --- a/data/fields/access_simple.json +++ b/data/fields/access_simple.json @@ -2,7 +2,16 @@ "key": "access", "type": "combo", "label": "Allowed Access", - "options": ["yes", "permissive", "private", "customers", "permit", "no"], + "strings": { + "options": { + "yes": "Public", + "private": "Private", + "permissive": "Permissive", + "customers": "Customers Only", + "permit": "By Permit Only", + "no": "None" + } + }, "autoSuggestions" : false, "terms": [ "permitted", diff --git a/data/fields/display.json b/data/fields/display.json index 91c09ad2..6bc4386e 100644 --- a/data/fields/display.json +++ b/data/fields/display.json @@ -2,6 +2,13 @@ "key": "display", "type": "combo", "label": "Display", - "options": ["analog", "digital", "sundial", "unorthodox"], + "strings": { + "options": { + "analog": "Analog", + "digital": "Digital", + "sundial": "Sundial", + "unorthodox": "Unorthodox" + } + }, "autoSuggestions" : false } diff --git a/data/fields/service.json b/data/fields/service.json index 9d8616e8..ca7a7c64 100644 --- a/data/fields/service.json +++ b/data/fields/service.json @@ -2,12 +2,14 @@ "key": "service", "type": "combo", "label": "Type", - "options": [ - "driveway", - "parking_aisle", - "alley", - "drive-through", - "emergency_access" - ], + "strings": { + "options": { + "driveway": "Driveway", + "parking_aisle": "Parking Aisle", + "alley": "Alley", + "drive-through": "Drive-Through", + "emergency_access": "Emergency Access" + } + }, "autoSuggestions" : false } diff --git a/data/fields/source.json b/data/fields/source.json index a82e2e16..f1d0ee34 100644 --- a/data/fields/source.json +++ b/data/fields/source.json @@ -6,13 +6,15 @@ "label": "Sources", "snake_case": false, "caseSensitive": true, - "options": [ - "survey", - "local knowledge", - "gps", - "aerial imagery", - "streetlevel imagery" - ], + "strings": { + "options": { + "survey": "Survey", + "local knowledge": "Local Knowledge", + "aerial imagery": "Aerial Imagery", + "gps": "GPS", + "streetlevel imagery": "Street-Level Photos" + } + }, "autoSuggestions" : false, "terms": [ "reference" diff --git a/data/fields/sport_ice.json b/data/fields/sport_ice.json index 915c80f9..d6db347a 100644 --- a/data/fields/sport_ice.json +++ b/data/fields/sport_ice.json @@ -2,12 +2,14 @@ "key": "sport", "type": "semiCombo", "label": "Sports", - "options": [ - "ice_skating", - "ice_hockey", - "multi", - "curling", - "ice_stock" - ], + "strings": { + "options": { + "ice_skating": "Ice Skating", + "ice_hockey": "Ice Hockey", + "curling": "Curling", + "ice_stock": "Ice Stock", + "multi": "Multiple" + } + }, "autoSuggestions" : false } diff --git a/data/fields/sport_racing_motor.json b/data/fields/sport_racing_motor.json index b731e807..c7a39fdd 100644 --- a/data/fields/sport_racing_motor.json +++ b/data/fields/sport_racing_motor.json @@ -2,10 +2,12 @@ "key": "sport", "type": "semiCombo", "label": "Sports", - "options": [ - "motor", - "karting", - "motocross" - ], + "strings": { + "options": { + "motor": "Motorsport", + "karting": "Karting", + "motocross": "Motocross" + } + }, "autoSuggestions" : false } diff --git a/data/fields/sport_racing_nonmotor.json b/data/fields/sport_racing_nonmotor.json index 1718d8d3..57f892f2 100644 --- a/data/fields/sport_racing_nonmotor.json +++ b/data/fields/sport_racing_nonmotor.json @@ -2,12 +2,14 @@ "key": "sport", "type": "semiCombo", "label": "Sports", - "options": [ - "bmx", - "cycling", - "dog_racing", - "horse_racing", - "running" - ], + "strings": { + "options": { + "running": "Running", + "cycling": "Cycling", + "bmx": "BMX", + "horse_racing": "Horse Racing", + "dog_racing": "Dog Racing" + } + }, "autoSuggestions" : false } diff --git a/interim/source_strings.yaml b/interim/source_strings.yaml index f1005ec2..8db22f6f 100644 --- a/interim/source_strings.yaml +++ b/interim/source_strings.yaml @@ -93,6 +93,19 @@ en: access_simple: # access=* label: Allowed Access + options: + # access=customers + customers: Customers Only + # access=no + 'no': None + # access=permissive + permissive: Permissive + # access=permit + permit: By Permit Only + # access=private + private: Private + # access=yes + 'yes': Public # 'terms: permitted,private,public' terms: '[translate with synonyms or related terms for ''Allowed Access'', separated by commas]' addr/interpolation: @@ -765,6 +778,15 @@ en: display: # display=* label: Display + options: + # display=analog + analog: Analog + # display=digital + digital: Digital + # display=sundial + sundial: Sundial + # display=unorthodox + unorthodox: Unorthodox distance: # distance=* label: Distance @@ -2297,6 +2319,17 @@ en: service: # service=* label: Type + options: + # service=alley + alley: Alley + # service=drive-through + drive-through: Drive-Through + # service=driveway + driveway: Driveway + # service=emergency_access + emergency_access: Emergency Access + # service=parking_aisle + parking_aisle: Parking Aisle service/bicycle: # 'service:bicycle:=*' label: Services @@ -2406,6 +2439,17 @@ en: source: # source=* label: Sources + options: + aerial # source=aerial imagery + aerial imagery: Aerial Imagery + # source=gps + gps: GPS + local # source=local knowledge + local knowledge: Local Knowledge + streetlevel # source=streetlevel imagery + streetlevel imagery: Street-Level Photos + # source=survey + survey: Survey # 'terms: reference' terms: '[translate with synonyms or related terms for ''Sources'', separated by commas]' species/wikidata: @@ -2418,12 +2462,41 @@ en: sport_ice: # sport=* label: Sports + options: + # sport=curling + curling: Curling + # sport=ice_hockey + ice_hockey: Ice Hockey + # sport=ice_skating + ice_skating: Ice Skating + # sport=ice_stock + ice_stock: Ice Stock + # sport=multi + multi: Multiple sport_racing_motor: # sport=* label: Sports + options: + # sport=karting + karting: Karting + # sport=motocross + motocross: Motocross + # sport=motor + motor: Motorsport sport_racing_nonmotor: # sport=* label: Sports + options: + # sport=bmx + bmx: BMX + # sport=cycling + cycling: Cycling + # sport=dog_racing + dog_racing: Dog Racing + # sport=horse_racing + horse_racing: Horse Racing + # sport=running + running: Running stars: # stars=* label: Stars