Commit 1e2fd051 authored by Tristan Cavelier's avatar Tristan Cavelier Committed by Kazuhiko Shiozaki

Add Jerome's hack fulltext title & description relation

parent 3d19c61b
...@@ -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,7 +923,20 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject): ...@@ -923,7 +923,20 @@ 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'
related_key_list.append( 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(
prefix + key + ' | category' + prefix + key + ' | category' +
('' if is_uid else ',catalog') + ('' if is_uid else ',catalog') +
'/' + '/' +
......
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