diff --git a/CHANGELOG.md b/CHANGELOG.md index 15cb5b6..9ec5ca1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Development +- Add a template for dataset metadata quality metrics, using the [Piveau Metrics API](https://doc.piveau.io/metrics/). + ## [0.1.10](https://github.com/berlinonline/ckanext-datasetsnippets/releases/tag/0.1.10) _(2024-09-02)_ diff --git a/ckanext/datasetsnippets/templates/datasetsnippets/dataset.html b/ckanext/datasetsnippets/templates/datasetsnippets/dataset.html index f0cc758..7b6a351 100644 --- a/ckanext/datasetsnippets/templates/datasetsnippets/dataset.html +++ b/ckanext/datasetsnippets/templates/datasetsnippets/dataset.html @@ -58,5 +58,7 @@

{{ _('Externer Datensatz')}}

{% snippet "datasetsnippets/snippets/additional_info.html", package=package %} {% snippet "datasetsnippets/snippets/resources_list.html", package=package, resources=package.resources %} + + {% snippet "datasetsnippets/snippets/dataset_metrics.html", package=package %} diff --git a/ckanext/datasetsnippets/templates/datasetsnippets/snippets/dataset_metrics.html b/ckanext/datasetsnippets/templates/datasetsnippets/snippets/dataset_metrics.html new file mode 100644 index 0000000..a7ac2d7 --- /dev/null +++ b/ckanext/datasetsnippets/templates/datasetsnippets/snippets/dataset_metrics.html @@ -0,0 +1,136 @@ +{# + +Renders a dataset metadata quality metrics as a series of cards with table lists. + +package - The package object for the metrics. + +Example: + + {% snippet "datasetsnippets/snippets/dataset_metrics.html", package=package %} + +#} + + +
+
+

Metadatenqualität

+ +
+
+

Accessibility

+
+
    +
  • +
    Download URL Availibility:
    +
    Yes: 0% | No: 100%
    +
  • +
  • +
    Most Frequent Access URL Status Code:
    +
    200: 100%
    +
  • +
  • +
    Most Frequent Access URL Status Code:
    +
    n/a
    +
  • +
+
+ +
+
+

Reusability

+
+
    +
  • +
    Access Rights Availability:
    +
    False
    +
  • +
  • +
    License Information Availability:
    +
    Yes: 100% | No: 0%
    +
  • +
  • +
    Contact Point Availability:
    +
    True
    +
  • +
  • +
    Publisher Availability:
    +
    True
    +
  • +
+
+ +
+
+

Contextuality

+
+
    +
  • +
    File Size Availability:
    +
    Yes: 0% | No: 100%
    +
  • +
  • +
    Rights Availability:
    +
    Yes: 0% | No: 100%
    +
  • +
  • +
    Modification Date Availability:
    +
    True
    +
  • +
  • +
    Date Issued Availability:
    +
    True
    +
  • +
+ +
+ +
+
+

Findability

+
+
    +
  • +
    Keyword Availability:
    +
    True
    +
  • +
  • +
    Category Availability:
    +
    Yes: 100% | No: 0%
    +
  • +
  • +
    Spatial Metadata Availability:
    +
    True
    +
  • +
  • +
    Temporal Metadata Availability:
    +
    True
    +
  • +
+
+ +
+
+

Interoperability

+
+
    +
  • +
    DCAT-AP Compliance:
    +
    False
    +
  • +
  • +
    Format Information Availability:
    +
    Yes: 80% | No: 20%
    +
  • +
  • +
    Media Type Information Availability:
    +
    Yes: 0% | No: 100%
    +
  • +
  • +
    Format Media Type from Vocabulary:
    +
    Yes: 0% | No: 100%
    +
  • +
+
+ +
+