From f2eef8e72b14e96a90388bfd29716db928b3bd6a Mon Sep 17 00:00:00 2001 From: kjonosm <51236777+kjonosm@users.noreply.github.com> Date: Sat, 10 Dec 2022 12:00:43 +0100 Subject: [PATCH] Replace field "site_type" with "archaeological_site", closes #677 also closes #680, closes #681, closes #682 --- data/deprecated.json | 4 ++++ data/fields/archaeological_site.json | 5 +++++ data/fields/site_type.json | 5 ----- data/presets/historic/archaeological_site.json | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 data/fields/archaeological_site.json delete mode 100644 data/fields/site_type.json diff --git a/data/deprecated.json b/data/deprecated.json index 9bcb1f17..75fa32c2 100644 --- a/data/deprecated.json +++ b/data/deprecated.json @@ -746,6 +746,10 @@ "old": {"highway": "unsurfaced"}, "replace": {"highway": "road", "surface": "unpaved"} }, + { + "old": {"historical": "archaeological_site", "site_type": "*"}, + "replace": {"historical": "archaeological_site", "archaeological_site": "$1"} + }, { "old": {"information": "citymap"}, "replace": {"tourism": "information", "information": "map", "map_type": "street", "map_size": "city"} diff --git a/data/fields/archaeological_site.json b/data/fields/archaeological_site.json new file mode 100644 index 00000000..22b12999 --- /dev/null +++ b/data/fields/archaeological_site.json @@ -0,0 +1,5 @@ +{ + "key": "archaeological_site", + "type": "combo", + "label": "Type" +} diff --git a/data/fields/site_type.json b/data/fields/site_type.json deleted file mode 100644 index 4735f495..00000000 --- a/data/fields/site_type.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "key": "site_type", - "type": "combo", - "label": "Site Type" -} diff --git a/data/presets/historic/archaeological_site.json b/data/presets/historic/archaeological_site.json index b352b641..ae28d539 100644 --- a/data/presets/historic/archaeological_site.json +++ b/data/presets/historic/archaeological_site.json @@ -2,7 +2,7 @@ "icon": "temaki-ruins", "fields": [ "name", - "site_type", + "archaeological_site", "historic/civilization", "inscription", "access_simple"