Commit e0a19935 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

small bugfixes

* reduce a result of 'num of duplicates' by 1
* use a different selection_name in GlossaryModule_viewDuplicateGlossaryTermList/listbox
* add a missing item in more columns in GlossaryModule_viewGlossaryTermList/listbox
* add more information of text output of getting terms from workflow

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26244 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6b0622c1
...@@ -61,7 +61,7 @@ if export_tsv:\n ...@@ -61,7 +61,7 @@ if export_tsv:\n
for i in result:\n for i in result:\n
print \'\\t\'.join(map(lambda x:\'"%s"\'%x, (i[\'reference\'], i[\'language\'],\n print \'\\t\'.join(map(lambda x:\'"%s"\'%x, (i[\'reference\'], i[\'language\'],\n
i[\'business_field\'],\n i[\'business_field\'],\n
i[\'title\'], i[\'description\'],)))\n i[\'title\'], i[\'description\'], i[\'workflow_id\'])))\n
return printed\n return printed\n
else:\n else:\n
portal_catalog = context.portal_catalog\n portal_catalog = context.portal_catalog\n
......
...@@ -201,7 +201,7 @@ ...@@ -201,7 +201,7 @@
</item> </item>
<item> <item>
<key> <string>selection_name</string> </key> <key> <string>selection_name</string> </key>
<value> <string>glossary_module_selection</string> </value> <value> <string>glossary_module_duplicate_term_selection</string> </value>
</item> </item>
<item> <item>
<key> <string>target</string> </key> <key> <string>target</string> </key>
......
...@@ -111,6 +111,10 @@ ...@@ -111,6 +111,10 @@
<string>translated_validation_state_title</string> <string>translated_validation_state_title</string>
<string>State</string> <string>State</string>
</tuple> </tuple>
<tuple>
<string>GlossaryTerm_getDuplicateGlossaryTermCount</string>
<string>Num of duplicates</string>
</tuple>
<tuple> <tuple>
<string>causality_title</string> <string>causality_title</string>
<string>Original English Term</string> <string>Original English Term</string>
......
...@@ -160,7 +160,7 @@ ...@@ -160,7 +160,7 @@
<dtml-let query="portal_catalog.buildSQLQuery(query=portal_catalog.getSecurityQuery(**selection_params), **selection_params)">\n <dtml-let query="portal_catalog.buildSQLQuery(query=portal_catalog.getSecurityQuery(**selection_params), **selection_params)">\n
\n \n
select distinct\n select distinct\n
catalog.path, catalog.uid, count(*) as num_of_duplicates\n catalog.path, catalog.uid, count(*)-1 as num_of_duplicates\n
from\n from\n
<dtml-in prefix="table" expr="query[\'from_table_list\']">\n <dtml-in prefix="table" expr="query[\'from_table_list\']">\n
<dtml-if "table_key not in (\'catalog\',)">\n <dtml-if "table_key not in (\'catalog\',)">\n
...@@ -226,7 +226,7 @@ having\n ...@@ -226,7 +226,7 @@ having\n
<dtml-let query="portal_catalog.buildSQLQuery(query=portal_catalog.getSecurityQuery(**selection_params), **selection_params)">\n <dtml-let query="portal_catalog.buildSQLQuery(query=portal_catalog.getSecurityQuery(**selection_params), **selection_params)">\n
\n \n
select distinct\n select distinct\n
catalog.path, catalog.uid, count(*) as num_of_duplicates\n catalog.path, catalog.uid, count(*)-1 as num_of_duplicates\n
from\n from\n
<dtml-in prefix="table" expr="query[\'from_table_list\']">\n <dtml-in prefix="table" expr="query[\'from_table_list\']">\n
<dtml-if "table_key not in (\'catalog\',)">\n <dtml-if "table_key not in (\'catalog\',)">\n
......
453 454
\ No newline at end of file \ 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