From 60ccd7892d47b41894a79f6fc9a3ab2c4622c45d Mon Sep 17 00:00:00 2001 From: Dominic Kempf Date: Mon, 7 Oct 2024 17:46:51 +0200 Subject: [PATCH] Implement a bunch of new custom data types --- .../fields/CustomDataTypeGND.svelte | 19 ++++++++++++++++++ .../fields/CustomDataTypeGeoref.svelte | 7 +++++++ .../fields/CustomDataTypeGetty.svelte | 20 +++++++++++++++++++ .../fields/CustomDataTypeLocation.svelte | 16 +++++++++++++++ src/components/logic/FieldDispatch.svelte | 8 ++++++++ 5 files changed, 70 insertions(+) create mode 100644 src/components/fields/CustomDataTypeGND.svelte create mode 100644 src/components/fields/CustomDataTypeGeoref.svelte create mode 100644 src/components/fields/CustomDataTypeGetty.svelte create mode 100644 src/components/fields/CustomDataTypeLocation.svelte diff --git a/src/components/fields/CustomDataTypeGND.svelte b/src/components/fields/CustomDataTypeGND.svelte new file mode 100644 index 0000000..e88b4d6 --- /dev/null +++ b/src/components/fields/CustomDataTypeGND.svelte @@ -0,0 +1,19 @@ + + + + {fdata.conceptName} + + + + diff --git a/src/components/fields/CustomDataTypeGeoref.svelte b/src/components/fields/CustomDataTypeGeoref.svelte new file mode 100644 index 0000000..b25d3c8 --- /dev/null +++ b/src/components/fields/CustomDataTypeGeoref.svelte @@ -0,0 +1,7 @@ + + +MapBox visualization is not implemented in this viewer. Look at it in the EasyDB instance instead. diff --git a/src/components/fields/CustomDataTypeGetty.svelte b/src/components/fields/CustomDataTypeGetty.svelte new file mode 100644 index 0000000..cd5ce0f --- /dev/null +++ b/src/components/fields/CustomDataTypeGetty.svelte @@ -0,0 +1,20 @@ + + + + {fdata.conceptName} + + + + + \ No newline at end of file diff --git a/src/components/fields/CustomDataTypeLocation.svelte b/src/components/fields/CustomDataTypeLocation.svelte new file mode 100644 index 0000000..434734a --- /dev/null +++ b/src/components/fields/CustomDataTypeLocation.svelte @@ -0,0 +1,16 @@ + + +
+ + {fdata.mapPosition.position.lat}, {fdata.mapPosition.position.lng} +
diff --git a/src/components/logic/FieldDispatch.svelte b/src/components/logic/FieldDispatch.svelte index e635b9a..1379e06 100644 --- a/src/components/logic/FieldDispatch.svelte +++ b/src/components/logic/FieldDispatch.svelte @@ -6,7 +6,11 @@ import Boolean from "../fields/Boolean.svelte"; import CustomDataTypeGazetteer from "../fields/CustomDataTypeGazetteer.svelte"; import CustomDataTypeGeonames from "../fields/CustomDataTypeGeonames.svelte"; + import CustomDataTypeGeoref from "../fields/CustomDataTypeGeoref.svelte"; + import CustomDataTypeGetty from "../fields/CustomDataTypeGetty.svelte"; + import CustomDataTypeGND from "../fields/CustomDataTypeGND.svelte"; import CustomDataTypeLink from "../fields/CustomDataTypeLink.svelte"; + import CustomDataTypeLocation from "../fields/CustomDataTypeLocation.svelte"; import CustomDataTypeUbhdgnd from "../fields/CustomDataTypeUBHDGND.svelte"; import Date from "../fields/Date.svelte"; import Daterange from "../fields/Daterange.svelte"; @@ -32,7 +36,11 @@ "boolean": Boolean, "custom:base.custom-data-type-gazetteer.gazetteer": CustomDataTypeGazetteer, "custom:base.custom-data-type-geonames.geonames": CustomDataTypeGeonames, + "custom:base.custom-data-type-georef.georef": CustomDataTypeGeoref, + "custom:base.custom-data-type-getty.getty": CustomDataTypeGetty, + "custom:base.custom-data-type-gnd.gnd": CustomDataTypeGND, "custom:base.custom-data-type-link.link": CustomDataTypeLink, + "custom:base.custom-data-type-location.location": CustomDataTypeLocation, "custom:base.custom-data-type-ubhdgnd.ubhdgnd": CustomDataTypeUbhdgnd, "date": Date, "daterange": Daterange,