diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-06-21 15:12:39 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-06-21 15:42:43 +0200 |
commit | 8ca8b9b52fd84384c1dd53041710c3721681c346 (patch) | |
tree | 4d9edf3083338f14673ff2053b05edca451fe399 /ishtar_common | |
parent | 8793d61e0f01090a83d745fc504066880d86da41 (diff) | |
download | Ishtar-8ca8b9b52fd84384c1dd53041710c3721681c346.tar.bz2 Ishtar-8ca8b9b52fd84384c1dd53041710c3721681c346.zip |
📝 update documentation search
Diffstat (limited to 'ishtar_common')
-rw-r--r-- | ishtar_common/templates/widgets/search_input.html | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/ishtar_common/templates/widgets/search_input.html b/ishtar_common/templates/widgets/search_input.html index 2f8cba06f..832cfc20c 100644 --- a/ishtar_common/templates/widgets/search_input.html +++ b/ishtar_common/templates/widgets/search_input.html @@ -65,17 +65,20 @@ <p><em>{% 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 %}</em></p> <h3>{% trans "Criteria search" %}</h3> - <p>{% blocktrans %}Clicking on the <i class="fa fa-cog" aria-hidden="true"></i> 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 %}</p> + <p>{% blocktrans %}Clicking on the <i class="fa fa-cog" aria-hidden="true"></i> 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 in the main search area.{% endblocktrans %}</p> <h4>{% trans "Open search" %}</h4> - <p>{% 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 %}</p> - - <p><em>{% 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 %}}</em></p> + <p>{% blocktrans %}In the search by criteria, 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 %}</p> + <p><em>{% blocktrans %}Example: "denomination='éclat'" will return only those items whose denomination is exactly "éclat", while "denomination='éclat*'" will return all items whose denomination contains the word "éclat", e.g. batches of "éclats", "éclat retouché", etc.{% endblocktrans %}</em></p> <h4>{% trans "Exclude" %}</h4> - <p>{% blocktrans %}To exclude items from the search, add the criterion from the form, then prefix the criterion with "-".{% endblocktrans %}</p> + <p>{% blocktrans %}To exclude items from the search, add the criterion from the form, then prefix the criterion with "-" in the main search area.{% endblocktrans %}</p> <p><em>{% blocktrans %}Example: the search "-material='metal'" will exclude all metal finds from the search.{% endblocktrans %}</em></p> + <h4>{% trans "Filled/empty" %}</h4> + <p>{% blocktrans %}If you want to get items with a specific criteria filled, set the value to "*". Instead if you want to get items with a specific criteria empty, set the value to "*", then prefix the criterion with "-".{% endblocktrans %}</p> + <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> |