diff --git a/data/fields/population.json b/data/fields/population.json index 74a231f8..1eca1140 100644 --- a/data/fields/population.json +++ b/data/fields/population.json @@ -2,5 +2,8 @@ "key": "population", "type": "number", "minValue": 0, - "label": "Population" + "label": "Population", + "terms": [ + "census" + ] } diff --git a/data/fields/population/date.json b/data/fields/population/date.json new file mode 100644 index 00000000..4c3a624b --- /dev/null +++ b/data/fields/population/date.json @@ -0,0 +1,12 @@ +{ + "key": "population:date", + "type": "text", + "label": "Population Date", + "placeholder": "YYYY-MM-DD", + "prerequisiteTag": { + "key": "population" + }, + "terms": [ + "census date" + ] +} diff --git a/data/fields/source/population.json b/data/fields/source/population.json new file mode 100644 index 00000000..4c1f42ea --- /dev/null +++ b/data/fields/source/population.json @@ -0,0 +1,14 @@ +{ + "key": "source:population", + "type": "combo", + "label": "Population Source", + "prerequisiteTag": { + "key": "population" + }, + "snake_case": false, + "caseSensitive": true, + "terms": [ + "census", + "population reference" + ] +} diff --git a/data/presets/amenity/refugee_site.json b/data/presets/amenity/refugee_site.json index 959d8d2e..72e21d63 100644 --- a/data/presets/amenity/refugee_site.json +++ b/data/presets/amenity/refugee_site.json @@ -7,7 +7,9 @@ "informal", "start_date", "capacity", - "population" + "population", + "population/date", + "source/population" ], "moreFields": [ "internet_access", diff --git a/data/presets/place/city.json b/data/presets/place/city.json index da8fcd75..78c6c577 100644 --- a/data/presets/place/city.json +++ b/data/presets/place/city.json @@ -2,7 +2,9 @@ "icon": "maki-city", "fields": [ "name", - "population" + "population", + "population/date", + "source/population" ], "geometry": [ "point", diff --git a/data/presets/place/hamlet.json b/data/presets/place/hamlet.json index fb33b6f2..36b9e7be 100644 --- a/data/presets/place/hamlet.json +++ b/data/presets/place/hamlet.json @@ -2,7 +2,9 @@ "icon": "maki-triangle-stroked", "fields": [ "name", - "population" + "population", + "population/date", + "source/population" ], "geometry": [ "point", diff --git a/data/presets/place/neighbourhood.json b/data/presets/place/neighbourhood.json index 96b872ce..9145c7a0 100644 --- a/data/presets/place/neighbourhood.json +++ b/data/presets/place/neighbourhood.json @@ -2,7 +2,9 @@ "icon": "maki-triangle-stroked", "fields": [ "name", - "population" + "population", + "population/date", + "source/population" ], "moreFields": [ "gnis/feature_id-US" diff --git a/data/presets/place/quarter.json b/data/presets/place/quarter.json index 1291d5bd..194ba0ea 100644 --- a/data/presets/place/quarter.json +++ b/data/presets/place/quarter.json @@ -2,7 +2,9 @@ "icon": "maki-triangle-stroked", "fields": [ "name", - "population" + "population", + "population/date", + "source/population" ], "geometry": [ "point", diff --git a/data/presets/place/suburb.json b/data/presets/place/suburb.json index 03c23532..7752a520 100644 --- a/data/presets/place/suburb.json +++ b/data/presets/place/suburb.json @@ -2,7 +2,9 @@ "icon": "maki-triangle-stroked", "fields": [ "name", - "population" + "population", + "population/date", + "source/population" ], "geometry": [ "point", diff --git a/data/presets/place/town.json b/data/presets/place/town.json index 911abfcb..c97bb7f9 100644 --- a/data/presets/place/town.json +++ b/data/presets/place/town.json @@ -2,7 +2,9 @@ "icon": "maki-town", "fields": [ "name", - "population" + "population", + "population/date", + "source/population" ], "geometry": [ "point", diff --git a/data/presets/place/village.json b/data/presets/place/village.json index d08042fa..0a6af854 100644 --- a/data/presets/place/village.json +++ b/data/presets/place/village.json @@ -2,7 +2,9 @@ "icon": "maki-village", "fields": [ "name", - "population" + "population", + "population/date", + "source/population" ], "geometry": [ "point", diff --git a/interim/source_strings.yaml b/interim/source_strings.yaml index 5f4b38a0..833f3372 100644 --- a/interim/source_strings.yaml +++ b/interim/source_strings.yaml @@ -2509,6 +2509,11 @@ en: population: # population=* label: Population + population/date: + # 'population:date=*' + label: Population Date + # population/date field placeholder + placeholder: YYYY-MM-DD portable: # portable=* label: Portable @@ -3094,6 +3099,9 @@ en: survey: Survey # 'terms: reference' terms: '[translate with synonyms or related terms for ''Sources'', separated by commas]' + source/population: + # 'source:population=*' + label: Population Source species: # species=* label: Species