From 9d40c5865e9a192f5fc8f37a098b41f1cbf07d85 Mon Sep 17 00:00:00 2001
From: Ivan Tyagov <ivan@nexedi.com>
Date: Tue, 8 Jun 2010 12:21:33 +0000
Subject: [PATCH] Add non shortened (i.e. full title) to generated breadcrumb
 list which can be used for generating proper a.title HTML attribute.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36090 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../erp5_web/WebSection_getBreadcrumbItemList.xml             | 4 +++-
 bt5/erp5_web/bt/revision                                      | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_getBreadcrumbItemList.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_getBreadcrumbItemList.xml
index 6b95ffba42..5f31a04218 100644
--- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_getBreadcrumbItemList.xml
+++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_getBreadcrumbItemList.xml
@@ -140,13 +140,14 @@ for chain_index in xrange(0, chain_list_length):\n
     title = None\n
 \n
   if title is not None:\n
+    full_title = title\n
     # shorten it only if it exceeds maximum specified length or\n
     # not last element in breadcrumb (include default Web Page which is not show but part of chain_list)\n
     if max_breadcrumb_length is not None and \\\n
        (chain_index + last_breadcrumb_offset < chain_list_length) and \\\n
        (len(title) - 4 > max_breadcrumb_length):\n
       title = \'%s ...\' %(title[:max_breadcrumb_length])\n
-    crumb_list.append((title, crumb))\n
+    crumb_list.append((title, crumb, full_title))\n
 \n
 return crumb_list\n
 
@@ -215,6 +216,7 @@ return crumb_list\n
                             <string>_getitem_</string>
                             <string>crumb</string>
                             <string>title</string>
+                            <string>full_title</string>
                           </tuple>
                         </value>
                     </item>
diff --git a/bt5/erp5_web/bt/revision b/bt5/erp5_web/bt/revision
index a8a24cbb2f..81574ddd48 100644
--- a/bt5/erp5_web/bt/revision
+++ b/bt5/erp5_web/bt/revision
@@ -1 +1 @@
-959
\ No newline at end of file
+960
\ No newline at end of file
-- 
2.30.9