diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-11-16 14:20:02 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-02-19 14:45:55 +0100 |
commit | cbe6429bf5feca14dda9d03e3eb0920653e82f82 (patch) | |
tree | 71cb8feae71ae621cc1b52831af19c7b4fb1cb3a /ishtar_common/templates | |
parent | 977bb2c573f8583f6b239f0499b12522be0d739a (diff) | |
download | Ishtar-cbe6429bf5feca14dda9d03e3eb0920653e82f82.tar.bz2 Ishtar-cbe6429bf5feca14dda9d03e3eb0920653e82f82.zip |
📝 update search documentation and search help with AND and OR notation
Diffstat (limited to 'ishtar_common/templates')
-rw-r--r-- | ishtar_common/templates/widgets/search_input.html | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/ishtar_common/templates/widgets/search_input.html b/ishtar_common/templates/widgets/search_input.html index 832cfc20c..e6808833e 100644 --- a/ishtar_common/templates/widgets/search_input.html +++ b/ishtar_common/templates/widgets/search_input.html @@ -80,8 +80,16 @@ <p><em>{% blocktrans %}Example: "material='*'" will return only all items with a material set, "-material='*'" return all items with material not set.{% endblocktrans %}</em></p> <h4>{% trans "Greater than, lower than, before, after" %}</h4> - <p>{% blocktrans %}For searches such as larger, smaller (for numeric fields), before, after (for date fields), add the criterion from the form, then change the "=" sign to "=>" or "=<", depending on the desired result.{% endblocktrans %}</p> - <p><em>{% blocktrans %}Example: the search 'year=>"2019"' will return all items from 2019 and onwards.{% endblocktrans %}</em></p> + <p>{% blocktrans %}For searches such as larger, smaller (for numeric fields), before, after (for date fields), add the criterion from the form, then change the "=" sign to "=>" or "=<", depending on the desired result.{% endblocktrans %}</p> + <p><em>{% blocktrans %}Example: the search "year=>'2019'" will return all items from 2019 and onwards.{% endblocktrans %}</em></p> + + <h4>{% trans "OR operator" %}</h4> + <p>{% blocktrans %}An OR operator is available for searches that include, for example, different criteria. This operator uses the notation " || ".{% endblocktrans %}</p> + <p><em>{% blocktrans %}Example: the search "material='Metal' || object-type='ingot'" will include in the search all metallic finds as well as all finds whose object type is ingot.{% endblocktrans %}</em></p> + + <h4>{% trans "AND operator" %}</h4> + <p>{% blocktrans %}An AND operator is available to search on the same criterion with several values. This operator uses the notation " && ".{% endblocktrans %}</p> + <p><em>{% blocktrans %}Example: the search "material='Metal' && material='wood'" will only include finds made of metal <strong>and</strong> wood.{% endblocktrans %}</em></p> <p class="text-center"><em><a href="https://ishtar.readthedocs.io/fr/{{widget.ISHTAR_DOCUMENT_VERSION}}/interface-utilisateur.html#barre-de-recherche" target="_blank">{% trans "Full documentation for searches." %}</a></em></p> |