diff --git a/src/calibre/gui2/preferences/search.py b/src/calibre/gui2/preferences/search.py index 9ee4eec543..e0ef773698 100644 --- a/src/calibre/gui2/preferences/search.py +++ b/src/calibre/gui2/preferences/search.py @@ -55,26 +55,28 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form): "grouped search term in the drop-down box, enter the list of columns " "to search in the value box, then push the Save button. " "
Note: Search terms are forced to lower case; MySearch
"
- "and mysearch
are the same term."
- "
You can have your grouped search term show up as User categories in " - " the Tag browser. Just add the grouped search term names to the Make User " - "categories from box. You can add multiple terms separated by commas. " - "The new User category will be automatically " - "populated with all the items in the categories included in the grouped " - "search term.
Automatic User categories permit you to see easily "
- "all the category items that "
+ "and mysearch
are the same term. Search terms cannot be "
+ "hierarchical. Periods are not allowed in the term name."
+ "
Grouped search terms can show as User categories in the Tag browser " + "by adding the grouped search term names to the 'Make User " + "categories from' box. Multiple terms are separated by commas. " + "These 'automatic user categories' will be populated with items " + "from the categories included in the grouped search term. " + "
Automatic user categories permit you to see all the category items that "
"are in the columns contained in the grouped search term. Using the above "
- "allseries
example, the automatically-generated User category "
- "will contain all the series mentioned in series
, "
+ "allseries
example, the automatic user category "
+ "will contain all the series names in series
, "
"#myseries
, and #myseries2
. This "
"can be useful to check for duplicates, to find which column contains "
"a particular item, or to have hierarchical categories (categories "
- "that contain categories)."))
+ "that contain categories). "
+ "
Note: values from non-category columns such as comments won't appear " + "in automatic user categories. ")) self.gst = db.prefs.get('grouped_search_terms', {}).copy() self.orig_gst_keys = list(self.gst.keys()) fm = db.new_api.field_metadata - categories = [x[0] for x in find_categories(fm) if fm[x[0]]['search_terms']] + categories = [x for x in fm.keys() if not x.startswith('@') and fm[x]['search_terms']] self.gst_value.update_items_cache(categories) QTimer.singleShot(0, self.fill_gst_box)