From 77d171a5472347e6e22715be2e4350c8cb6b85bd Mon Sep 17 00:00:00 2001
From: Benjamin Becker <benjamin.becker@dataport.de>
Date: Wed, 1 Jul 2020 09:26:09 +0000
Subject: [PATCH] fixes 2.4.5a (title for links in breadcrumbs)

---
 ckanext/odsh/templates/package/read.html | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/ckanext/odsh/templates/package/read.html b/ckanext/odsh/templates/package/read.html
index 34da5ee1..d0bfd4be 100644
--- a/ckanext/odsh/templates/package/read.html
+++ b/ckanext/odsh/templates/package/read.html
@@ -14,12 +14,19 @@
 {% set dataset = h.dataset_display_name(pkg) %}
 {% if pkg.organization %}
 {% set organization = h.get_translated(pkg.organization, 'title') or pkg.organization.name %}
-<li>{% link_for organization|truncate(30), controller='organization', action='read', id=pkg.organization.name %}</li>
+<li>
+    <a href={% url_for controller='organization', action='read', id=pkg.organization.name %} title={{ organization }}>
+        {{ organization|truncate(30) }}
+    </a>
+</li>
 {% else %}
 <li>{% link_for _('Documents'), controller='package', action='search' %}</li>
 {% endif %}
-<li {{ self.breadcrumb_content_selected() }}>{% link_for dataset|truncate(30), controller='package', action='read',
-  id=pkg.name %}</li>
+<li>
+    <a href={% url_for controller='package', action='read', id=pkg.name %} title={{ dataset }}>
+        {{ dataset|truncate(30) }}
+    </a>
+</li>
 {% else %}
 <li>{% link_for _('Documents'), controller='package', action='search' %}</li>
 <li class="active"><a href="">{{ _('Create Dataset') }}</a></li>
-- 
GitLab