Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xueyun Qian
erp5
Commits
1e2fd051
Commit
1e2fd051
authored
Sep 26, 2014
by
Tristan Cavelier
Committed by
Kazuhiko Shiozaki
Oct 23, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Jerome's hack fulltext title & description relation
parent
3d19c61b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
product/ERP5Catalog/CatalogTool.py
product/ERP5Catalog/CatalogTool.py
+15
-2
No files found.
product/ERP5Catalog/CatalogTool.py
View file @
1e2fd051
...
@@ -881,7 +881,7 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
...
@@ -881,7 +881,7 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
by looking at the category tree.
by looking at the category tree.
For exemple it will generate:
For exemple it will generate:
destination_title | category,catalog
/
title/z_related_destination
destination_title | category,catalog
_full_text/fulltext_
title/z_related_destination
default_destination_title | category,catalog/title/z_related_destination
default_destination_title | category,catalog/title/z_related_destination
strict_destination_title | category,catalog/title/z_related_strict_destination
strict_destination_title | category,catalog/title/z_related_strict_destination
...
@@ -923,6 +923,19 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
...
@@ -923,6 +923,19 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
is_uid
=
end_key
==
'uid'
is_uid
=
end_key
==
'uid'
if
is_uid
:
if
is_uid
:
end_key
=
'uid'
if
related
else
'category_uid'
end_key
=
'uid'
if
related
else
'category_uid'
if
end_key
in
(
'title'
,
'description'
):
assert
not
is_uid
related_key_list
.
append
(
prefix
+
key
+
' | category'
+
(
''
if
is_uid
else
',catalog_full_text'
)
+
'/fulltext_'
+
end_key
+
'/z_related_'
+
(
'strict_'
if
strict
else
''
)
+
expected_base_cat_id
+
(
'_related'
if
related
else
''
)
)
else
:
related_key_list
.
append
(
related_key_list
.
append
(
prefix
+
key
+
' | category'
+
prefix
+
key
+
' | category'
+
(
''
if
is_uid
else
',catalog'
)
+
(
''
if
is_uid
else
',catalog'
)
+
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment