diff --git a/admin/include/batch_manager_filters.inc.php b/admin/include/batch_manager_filters.inc.php index 4473576bc..1481ffc81 100644 --- a/admin/include/batch_manager_filters.inc.php +++ b/admin/include/batch_manager_filters.inc.php @@ -137,3 +137,5 @@ SELECT } $template->assign('associated_categories', $associated_categories); + +load_language('help_quick_search.lang'); \ No newline at end of file diff --git a/admin/themes/default/js/batchManagerFilter.js b/admin/themes/default/js/batchManagerFilter.js index 594cf3d4f..8e2bbf6ec 100644 --- a/admin/themes/default/js/batchManagerFilter.js +++ b/admin/themes/default/js/batchManagerFilter.js @@ -129,5 +129,13 @@ $(document).ready(function () { } } }); + + $('.help-popin-search').on('click', function() { + $('#modalQuickSearch').fadeIn(); + }); + + $('#closeModalQuickSearch').on('click', function() { + $('#modalQuickSearch').fadeOut(); + }); }) diff --git a/admin/themes/default/template/batch_manager_global.tpl b/admin/themes/default/template/batch_manager_global.tpl index c24db8242..94d1bec7d 100644 --- a/admin/themes/default/template/batch_manager_global.tpl +++ b/admin/themes/default/template/batch_manager_global.tpl @@ -73,8 +73,6 @@ const str_add_alb_associate = "{"Add Album"|@translate}"; const str_select_alb_associate = "{"Select an album"|@translate}"; $(document).ready(function() { - jQuery('.help-popin-search').colorbox({ width:"600px" }); - function checkPermitAction() { var nbSelected = 0; if ($("input[name=setSelected]").is(':checked')) { diff --git a/admin/themes/default/template/include/batch_manager_filter.inc.tpl b/admin/themes/default/template/include/batch_manager_filter.inc.tpl index e9311bd50..65e3892fd 100644 --- a/admin/themes/default/template/include/batch_manager_filter.inc.tpl +++ b/admin/themes/default/template/include/batch_manager_filter.inc.tpl @@ -209,7 +209,10 @@ let errorFilters = '';
{'Search'|@translate}
[x] - {'Search tips'|translate} ++ + {'Search tips'|translate} +
{combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} {if (isset($no_search_results))}+ {"The quick search engine allows you to use boolean operators to refine your search. By default, the search applies to all keywords. Searches are not case sensitive."|translate} +
+{"Here is a list of actions you can perform:"|translate}
+{"With keywords"|translate}
+ +{"Exact search"|translate}
+"george washington"
+{"Use quotes to search for an exact keyword or phrase."|translate}
+{"OR inclusive"|translate}
+john OR bill
+{"Add an OR between words."|translate}
+{"Exclude"|translate}
+george washington NOT bush
+-george
+{"Grouping"|translate} ()
+(mother OR father) AND (daugther OR son)
+{"Others"|translate}
+{"Supported numeric operators"|translate}
+=100 {"equals 100"|translate}
+>100 {"greater than 100"|translate}
+<100 {"less than 100"|translate}
+10..100 {"between 10 and 100 (inclusive)"|translate}
+..100 {"up to 100 (inclusive)"|translate}
+100.. {"from 100 and above"|translate}
+tag:
+tags:
+tag:(john OR bill)
+photo:
+photos:
+photo:Tiger
+file:
+file:DSC_
+file:*.webp
+author:
+author:John
+created:
+taken:
+shot:
+taken:2003 {"photos taken in 2003"|translate}
+taken:20035, taken:2003-5, taken:2003-05 {"photos from may 2003"|translate}
+taken:2003..2008 {"photos from 2003 to 2008"|translate}
+taken:>2008, taken:2008*, taken:2008.. {"photos after Jan 1st 2008"|translate}
+posted:
+posted:2003 {"photos posted in 2003"|translate}
+width:
+height:
+width:>500 {"return photos wider than 500px"|translate}
+height:<700 {"return photos less than 700px high"|translate}
+size:
+size:5m {"returns photos of 5 megapixels"|translate}
+size:>12m {"returns photos of 12 megapixels or more"|translate}
+ratio:
+ratio:3/4 OR ratio:4/3 + {"finds photos from compact cameras in portrait or landscape modes"|translate}
+ratio:>16/9 {"finds panoramas"|translate}
+hits:
+hits:>1000 {"return photos with at least 1,000 views"|translate}
+{"Searches for photos by number of views."|translate}
+score:
+rating:
+score:* {"will give you all photos with at least one note."|translate}
+score: {"will give you photos without notes."|translate}
+{"Searches photos by rating."|translate}
+filesize:
+filesize:1m..10m {"finds files between 1MB and 10MB."|translate}
+id:
+id:123..126 + {"finds photo 123 to 126 (it may find between 0 and 4 photos, because photos can be deleted)"|translate}
+