diff --git a/ckanext/canada/templates/internal/package/read_base.html b/ckanext/canada/templates/internal/package/read_base.html
index df4543e1b..605cd598d 100644
--- a/ckanext/canada/templates/internal/package/read_base.html
+++ b/ckanext/canada/templates/internal/package/read_base.html
@@ -7,6 +7,10 @@
{% endblock %}
{% block content_primary_nav %}
- {{ h.build_nav_icon(pkg.type + '.read', _('Dataset'), id=pkg.name) }}
- {{ h.build_nav_icon('dataset.activity', _('Activity Stream'), id=pkg.name) }}
+ {% set dataset_label = _('Dataset') %}
+ {% if pkg.type in h.recombinant_get_types() %}
+ {% set dataset_label = _(pkg.title) %}
+ {% endif %}
+ {{ h.build_nav_icon(pkg.type + '.read', dataset_label, id=pkg.name) }}
+ {{ h.build_nav_icon(pkg.type + '.activity', _('Activity Stream'), id=pkg.name) }}
{% endblock %}
diff --git a/ckanext/canada/templates/public/package/base.html b/ckanext/canada/templates/public/package/base.html
index fff1b12eb..182b4c970 100644
--- a/ckanext/canada/templates/public/package/base.html
+++ b/ckanext/canada/templates/public/package/base.html
@@ -3,10 +3,10 @@
{% set client_lang = h.lang() %}
{% block breadcrumb_content %}
- {% set pkg_url = h.url_for(pkg.type ~ '.read', id=pkg.id if is_activity_archive else pkg.name) %}
+ {% set pkg_url = h.url_for(pkg.type ~ '.read', id=pkg.id if is_activity_archive else pkg.name, **({'activity_id': request.args['activity_id']} if 'activity_id' in request.args else {})) %}
{% if c.action != 'new' and pkg %}
{% set dataset = h.get_translated(pkg, 'title') %}
-
{% link_for dataset|truncate(30), named_route=pkg.type ~ '.read', id=pkg.id if is_activity_archive else pkg.name %}
+ {{ dataset|truncate(30) }}
{% endif %}
{% endblock %}
diff --git a/ckanext/canada/templates/public/package/read.html b/ckanext/canada/templates/public/package/read.html
index 881fcc9d7..09278b0c3 100755
--- a/ckanext/canada/templates/public/package/read.html
+++ b/ckanext/canada/templates/public/package/read.html
@@ -15,24 +15,23 @@ {{ title or pkg.name }}
{% endif %}
+ {% if is_activity_archive %}
+
+
+ {% trans url = h.url_for(pkg.type + '.read', id=pkg.id) %}You're currently viewing an old version of this dataset. Some resources may no longer exist or the dataset may not display correctly. To see the current version, click here.{% endtrans %}
+
+
+ {% endif %}
{% endblock %}
{% block primary_content_inner %}
- {% if not c.is_activity_archive %}
+ {% if not is_activity_archive %}
{%- snippet 'package/snippets/schemaorg.html', data=pkg -%}
{% endif %}
{% block internal_actions %}{% endblock %}
- {% block package_archive_notice %}
- {% if c.is_activity_archive %}
-
-
- {% trans url = h.url_for(pkg.type + '.read', id=pkg.id) %}You're currently viewing an old version of this dataset. Some resources may no longer exist or the dataset may not display correctly. To see the current version, click here.{% endtrans %}
-
-
- {% endif %}
- {% endblock %}
+ {% block package_archive_notice %}{% endblock %}
{% block package_item_title %}
diff --git a/ckanext/canada/templates/public/package/read_base.html b/ckanext/canada/templates/public/package/read_base.html
index 0d4a11642..f987faaea 100644
--- a/ckanext/canada/templates/public/package/read_base.html
+++ b/ckanext/canada/templates/public/package/read_base.html
@@ -130,14 +130,14 @@
{{ _('Link to JSON format') }}
- {% if h.plugin_loaded('dcat_json_interface') %}
+ {% if h.plugin_loaded('dcat_json_interface') and pkg.type not in h.recombinant_get_types() %}
{{ _('DCAT (JSON-LD)') }}
{% endif %}
- {% if h.plugin_loaded('dcat') %}
+ {% if h.plugin_loaded('dcat') and pkg.type not in h.recombinant_get_types() %}
{{ _('DCAT (XML)') }}
diff --git a/ckanext/canada/templates/public/package/resource_read.html b/ckanext/canada/templates/public/package/resource_read.html
index 3bdb255f8..4f80b05be 100644
--- a/ckanext/canada/templates/public/package/resource_read.html
+++ b/ckanext/canada/templates/public/package/resource_read.html
@@ -2,6 +2,13 @@
{% block page_title %}
{{ super() }}
+ {% if is_activity_archive %}
+
+
+ {% trans url = h.url_for(pkg.type + '.read', id=pkg.id) %}You're currently viewing an old version of this dataset. Some resources may no longer exist or the dataset may not display correctly. To see the current version, click here.{% endtrans %}
+
+
+ {% endif %}
{% if h.is_registry() %}
{{ h.get_validation_badge(res)|safe }}
{% endif %}
@@ -11,6 +18,10 @@
{{ super() }}
{% endblock %}
+{% block action_manage %}
+ {% if not is_activity_archive %}{{ super() }}{% endif %}
+{% endblock %}
+
{% block resource_content %}
{% block resource_read_title %}{{ super() }}{% endblock %}
{% block resource_read_url %}
diff --git a/ckanext/canada/templates/public/package/snippets/resource_item.html b/ckanext/canada/templates/public/package/snippets/resource_item.html
index f01ab4b78..4d7ce4f54 100644
--- a/ckanext/canada/templates/public/package/snippets/resource_item.html
+++ b/ckanext/canada/templates/public/package/snippets/resource_item.html
@@ -11,7 +11,9 @@
{%- if machine_translated -%}
{%- endif -%}
- {{ h.popular('views', res.tracking_summary.total, min=10) }}
+ {% if 'tracking_summary' in res %}
+ {{ h.popular('views', res.tracking_summary.total, min=10) }}
+ {% endif %}
{% set language_options = h.scheming_get_preset('canada_resource_language').choices %}
@@ -74,7 +76,7 @@
{% endif %}
- {% if can_edit %}
+ {% if can_edit and not is_activity_archive %}
{% link_for _('Edit resource'), named_route=pkg.type ~ '_resource.edit', id=pkg.name, resource_id=res.id, class_='dropdown-item', icon='pencil' %}
{% block resource_item_explore_inner scoped %}{% endblock %}
{% link_for _('Views'), named_route=pkg.type ~ '_resource.views', id=pkg.name, resource_id=res.id, class_='dropdown-item', icon='chart-bar' %}