Skip to content

Commit

Permalink
fix:rename dataset_type value to data
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Souhei committed Oct 11, 2024
1 parent 4a6274f commit 319ab5d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ckanext/zarr/schemas/dcat_dublin.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
scheming_version: 2
dataset_type: dataset
dataset_type: data
about: Dublin Core Metadata Element v1.1 schema
about_url: https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#section-3

Expand Down
2 changes: 1 addition & 1 deletion ckanext/zarr/templates/package/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h1 class="headline">{% link_for pkg.title, named_route=pkg.type ~ '.read', id=p
{{ _('Private') }}
</span>
{% endif %}
{% set resource_types = h.get_dataset_resource_type_groups(pkg.id) %}
{% set resource_types = h.get_dataset_resource_type_groups(pkg.id, dataset_type='data') %}
{% for type in resource_types %}
<span class="badge resource-type-{{ type['value'] }}">{{ _(type['label']) }}</span>
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion ckanext/zarr/templates/snippets/package_item.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h2 class="dataset-heading">
<a href="{{ dataset_url }}" title="{{ title }}">
{{title|truncate(80)}}
</a>
{% set resource_types = h.get_dataset_resource_type_groups(package.id) %}
{% set resource_types = h.get_dataset_resource_type_groups(package.id, dataset_type='data') %}
{% for type in resource_types %}
<span class="badge resource-type-{{ type['value'] }}">{{ _(type['label']) }}</span>
{% endfor %}
Expand Down

0 comments on commit 319ab5d

Please sign in to comment.