From 2e84f743f2b9228c90bf2e678b8a66db0949ec4c Mon Sep 17 00:00:00 2001
From: Ivan Tyagov <ivan@nexedi.com>
Date: Wed, 30 Jun 2010 11:08:15 +0000
Subject: [PATCH] Delegate getting searchable text to new  script
 .Base_getSearchText.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36727 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_skins/erp5_base/Base_getSummaryAsHTML.xml  | 11 ++---------
 bt5/erp5_base/bt/revision                             |  2 +-
 2 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Base_getSummaryAsHTML.xml b/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Base_getSummaryAsHTML.xml
index a2a745be83..c7ae664bb9 100644
--- a/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Base_getSummaryAsHTML.xml
+++ b/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Base_getSummaryAsHTML.xml
@@ -90,11 +90,8 @@ title = context.getTitle() or (hasattr(context, \'getReference\') and context.ge
 portal_type = context.getTranslatedPortalType()\n
 website = context.getWebSiteValue() or context.REQUEST.get(\'current_web_site\')\n
 popup = context.Document_getPopupInfo(context.REQUEST.get(\'current_web_site\')) or \'\'\n
-selection = None\n
-selection_name = context.REQUEST.get("selection_name", None)\n
-if selection_name is not None:\n
-  selection = context.portal_selections.getSelectionFor(selection_name)\n
-found = context.Base_showFoundText(selection=selection)\n
+\n
+found = context.Base_showFoundText()\n
 owner_html = getOwnerHTML(context) or \'\'\n
 \n
 date_renderer = context.ERP5Site_viewSearchResult.listbox_modification_date.render_pdf\n
@@ -107,7 +104,6 @@ local_parameter_dict = {\n
   \'reference_html\': getReferenceHTML(context),\n
   \'portal_type\': portal_type,\n
   \'popup\': popup,\n
-  \'selection\': selection,\n
   \'found\': found,\n
   \'owner_html\': owner_html,\n
   \'modification_date\': modification_date,\n
@@ -197,9 +193,6 @@ return html\n
                             <string>title</string>
                             <string>portal_type</string>
                             <string>popup</string>
-                            <string>None</string>
-                            <string>selection</string>
-                            <string>selection_name</string>
                             <string>found</string>
                             <string>owner_html</string>
                             <string>date_renderer</string>
diff --git a/bt5/erp5_base/bt/revision b/bt5/erp5_base/bt/revision
index eb90589d8d..17863f9c51 100644
--- a/bt5/erp5_base/bt/revision
+++ b/bt5/erp5_base/bt/revision
@@ -1 +1 @@
-780
\ No newline at end of file
+782
\ No newline at end of file
-- 
2.30.9