From 67067a34f520f8f0c850df84f014a94359ae197b Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 20 Jun 2024 15:55:58 +0200 Subject: ✨ display inline help for searches - 💄 new syle for help MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/templates/widgets/search_input.html | 35 ++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) (limited to 'ishtar_common/templates/widgets') diff --git a/ishtar_common/templates/widgets/search_input.html b/ishtar_common/templates/widgets/search_input.html index b26cd07f0..9cbae011e 100644 --- a/ishtar_common/templates/widgets/search_input.html +++ b/ishtar_common/templates/widgets/search_input.html @@ -40,6 +40,12 @@ + + {% comment %} - + {% endcomment %} +
+
+

{% trans "Free search" %}

+

{% trans "Each item in the database is indexed to ensure consistent results for free-entry searches." %}

+

{% blocktrans %}Example: "071234" in an operation search will return the operation with the corresponding operation code in the Operation search field, and finds linked to the same operation in the Find search field.{% endblocktrans %}

+ +

{% trans "Criteria search" %}

+

{% blocktrans %}Clicking on the icon takes you to a form that allows you to simply construct your search by criteria. Once this search query has been built up, the query can be adjusted.{% endblocktrans %}

+ +

{% trans "Open search" %}

+

{% blocktrans %}In the criterion search, the engine searches exactly for the value entered. If you want an open search such as "contains the value", add an asterisk * to the value.{% endblocktrans %}

+ +

{% blocktrans %}Example: "denomination='éclat'" will return only those elements whose denomination is exactly "éclat", while "denomination='éclat*'" will return all elements whose denomination contains the word "éclat", e.g. batches of "éclats", "éclat retouché", etc.{% endblocktrans %}}

+ +

{% trans "Exclude" %}

+

{% blocktrans %}To exclude items from the search, add the criterion from the form, then prefix the criterion with "-".{% endblocktrans %}

+

{% blocktrans %}Example: the search "-material='metal'" will exclude all metal finds from the search.{% endblocktrans %}

+ +

{% trans "Greater than, lower than, before, after" %}

+

{% 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 %}

+

{% blocktrans %}Example: the search 'year=>"2019"' will return all items from 2019 and onwards.{% endblocktrans %}

+ +

{% trans "Full documentation for searches." %}

+ +
+
+