From 5cd8cae471a9fa4a352ba54c51bd4a10ca2d5741 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Knud=20M=C3=B6ller?= Date: Thu, 25 Apr 2024 09:20:21 +0200 Subject: [PATCH] mark datasets from external organizations --- CHANGELOG.md | 1 + .../templates/datasetsnippets/dataset.html | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 227bef5..86c8d97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Development +- Mark external organizations. - Add new metadata field `hvd_category` (to link to the category of high-value datasets as defined by the [EU commission implementing regulation 2023/138](https://eur-lex.europa.eu/eli/reg_impl/2023/138/oj?uri=CELEX:32023R0138)). - Add new metadata field `sample_record` (to link to the matching "Musterdatensatz", see https://www.dcat-ap.de/def/dcatde/2.0/implRules/#verwendung-des-musterdatenkatalogs-fur-kommunen). diff --git a/ckanext/datasetsnippets/templates/datasetsnippets/dataset.html b/ckanext/datasetsnippets/templates/datasetsnippets/dataset.html index 9a9b39a..fab237a 100644 --- a/ckanext/datasetsnippets/templates/datasetsnippets/dataset.html +++ b/ckanext/datasetsnippets/templates/datasetsnippets/dataset.html @@ -21,6 +21,19 @@

{{ h.dataset_display_name(package) }}

+ {% if h.berlin_org_is_external(package.owner_org) %} +
+
+

{{ _('Externer Datensatz')}}

+
+

+ Dies ist ein externer Datensatz, der nicht von einer Behörde der Berliner Verwaltung veröffentlicht wurde. +

+
+
+
+
+ {% endif %}
{% if package.preview_image %}