From a8a27a94fe5260b1b2d9ab24d4394b4201900657 Mon Sep 17 00:00:00 2001
From: Tyler Burton
Date: Fri, 30 Jun 2023 15:42:04 -0500
Subject: [PATCH 1/3] fix resource tags in dataset list
---
ckanext/usmetadata/templates/snippets/package_item.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ckanext/usmetadata/templates/snippets/package_item.html b/ckanext/usmetadata/templates/snippets/package_item.html
index 10dce91..c1f8e9a 100644
--- a/ckanext/usmetadata/templates/snippets/package_item.html
+++ b/ckanext/usmetadata/templates/snippets/package_item.html
@@ -48,10 +48,10 @@
{% endif %}
{% if package.resources and not hide_resources -%}
-
+
{% for resource in h.dict_list_reduce(package.resources, 'format') -%}
-
- {{ resource }}
{%- endfor %}
From 416214b26d0247fae4951b20c73216a677b0b1b6 Mon Sep 17 00:00:00 2001
From: Nicholas Kumia
Date: Wed, 5 Jul 2023 09:45:38 -0400
Subject: [PATCH 2/3] cleanup: try to reference upstream explore code
---
.../package/snippets/resource_item.html | 47 +------------------
1 file changed, 2 insertions(+), 45 deletions(-)
diff --git a/ckanext/usmetadata/templates/package/snippets/resource_item.html b/ckanext/usmetadata/templates/package/snippets/resource_item.html
index 6ac684a..b2ef2b2 100644
--- a/ckanext/usmetadata/templates/package/snippets/resource_item.html
+++ b/ckanext/usmetadata/templates/package/snippets/resource_item.html
@@ -1,3 +1,5 @@
+{% ckan_extends %}
+
{% set can_edit = h.check_access('package_update', {'id':pkg.id }) %}
{% set url_action = 'edit' if url_is_edit and can_edit else 'read' %}
{% set url = h.url_for(controller='resource', action=url_action, id=pkg.name, resource_id=res.id) %}
@@ -23,49 +25,4 @@
{% endif %}
- {% block resource_item_explore %}
- {% if not url_is_edit %}
-
- {% endif %}
- {% endblock %}
From 3e9ea4b2f8798464a3a262d995af3435ec41694f Mon Sep 17 00:00:00 2001
From: Nicholas Kumia
Date: Wed, 5 Jul 2023 12:46:45 -0400
Subject: [PATCH 3/3] update: setup.py version
---
setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index 3397cba..6b00c11 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@
setup(
name='ckanext-usmetadata',
- version='0.3.0',
+ version='0.3.1',
description='US Metadata Plugin for CKAN',
long_description=long_description,
long_description_content_type='text/markdown',