Commit 3bdb3952 authored by Bartek Górny's avatar Bartek Górny

Support for advanced search; a dialog and output form for advanced search;...

Support for advanced search; a dialog and output form for advanced search; fixes in display of found text.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9059 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c44b4df1
......@@ -68,18 +68,21 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>tags=(\'[[\',\']]\')\n
<value> <string encoding="cdata"><![CDATA[
tags=(\'<div style="font-weight:bold;display:inline;">\',\'</div>\')\n
trail=5\n
maxlines=5\n
txt=brain.SearchableText()\n
txt=brain.getObject().SearchableText()\n
sw=context.REQUEST.get(\'SearchableText\',None)\n
context.log(script.getId(),sw)\n
if sw is None:\n
return \'\'\n
sw=sw.split()\n
res=context.cutFound(context,txt,sw,tags,trail,maxlines)\n
return \' \'.join(map(str,res))\n
</string> </value>
]]></string> </value>
</item>
<item>
<key> <string>_code</string> </key>
......@@ -131,7 +134,6 @@ return \' \'.join(map(str,res))\n
<string>context</string>
<string>None</string>
<string>sw</string>
<string>script</string>
<string>res</string>
<string>map</string>
<string>str</string>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.ERP5Form.Form</string>
<string>ERP5Form</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>action</string> </key>
<value> <string>DMS_viewAdvancedSearchResults</string> </value>
</item>
<item>
<key> <string>encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>enctype</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>group_list</string> </key>
<value>
<list>
<string>left</string>
</list>
</value>
</item>
<item>
<key> <string>groups</string> </key>
<value>
<dictionary>
<item>
<key> <string>left</string> </key>
<value>
<list>
<string>SearchableText</string>
<string>search_mode</string>
</list>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>DMS_searchDialog</string> </value>
</item>
<item>
<key> <string>method</string> </key>
<value> <string>POST</string> </value>
</item>
<item>
<key> <string>name</string> </key>
<value> <string>DMS_searchDialog</string> </value>
</item>
<item>
<key> <string>pt</string> </key>
<value> <string>form_dialog</string> </value>
</item>
<item>
<key> <string>row_length</string> </key>
<value> <int>4</int> </value>
</item>
<item>
<key> <string>stored_encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Advanced Search</string> </value>
</item>
<item>
<key> <string>unicode_mode</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>update_action</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -74,6 +74,7 @@
<value>
<list>
<string>listbox</string>
<string>listbox_Base_showFoundText</string>
</list>
</value>
</item>
......@@ -82,7 +83,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Base_viewSearchResultList</string> </value>
<value> <string>DMS_viewAdvancedSearchResults</string> </value>
</item>
<item>
<key> <string>method</string> </key>
......
......@@ -395,7 +395,12 @@
<item>
<key> <string>editable_columns</string> </key>
<value>
<list/>
<list>
<tuple>
<string>Base_showFoundText</string>
<string>Base_showFoundText</string>
</tuple>
</list>
</value>
</item>
<item>
......@@ -479,7 +484,12 @@
<item>
<key> <string>search_columns</string> </key>
<value>
<list/>
<list>
<tuple>
<string>None</string>
<string>None</string>
</tuple>
</list>
</value>
</item>
<item>
......@@ -488,7 +498,7 @@
</item>
<item>
<key> <string>selection_name</string> </key>
<value> <string>search_selection</string> </value>
<value> <string>search_advanced_selection</string> </value>
</item>
<item>
<key> <string>sort</string> </key>
......@@ -499,7 +509,12 @@
<item>
<key> <string>sort_columns</string> </key>
<value>
<list/>
<list>
<tuple>
<string>None</string>
<string>None</string>
</tuple>
</list>
</value>
</item>
<item>
......
2006-08-04 BG
Support for advanced search; a dialog and output form for advanced search; fixes in display of found text.
2006-08-03 BG
Nice display of search results (with highlights from SearchableText); searchable text for Spreadsheet.
......
11
\ No newline at end of file
19
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment