Skip to content

Commit

Permalink
add sample_record metadata field
Browse files Browse the repository at this point in the history
  • Loading branch information
knudmoeller committed Apr 11, 2024
1 parent efb5250 commit e98c966
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Development

- 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).

## [0.1.4](https://github.com/berlinonline/ckanext-datasetsnippets/releases/tag/0.1.4)

_(2024-03-22)_
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@ <h2>{{ _('Informationen zum Datensatz') }}</h2>
{% endif %}
{{ h.snippet('datasetsnippets/snippets/metadata_item.html', name='geographical_coverage', title='Geographischer Bezug', value=package.geographical_coverage, create_link=True) }}
{{ h.snippet('datasetsnippets/snippets/metadata_item.html', name='geographical_granularity', title='Geographische Granularität', value=package.geographical_granularity, create_link=True) }}
{# Musterdatensatz #}
{% if package.sample_record %}
<li>
<div class="cell">
<div class="text--strong">{{ _('Musterdatensatz') }}:</div>
</div>
<div class="cell">
{{ h.berlin_render_sample_record(package.sample_record, class='extern') }}
</div>
</li>
{% endif %}

{% if package.temporal_coverage_from %}
<li>
<div class="cell">
Expand Down

0 comments on commit e98c966

Please sign in to comment.