mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
* First implementation of the new multi-criteria search. It replaces the old search.php form. * Displays live search criteria above search results. Each change reloads the list of results (displayed as thumbnails). * New API method pwg.images.filteredSearch.update called in AJAX to live change the filters. * New kind of filter: added_by
This commit is contained in:
48
ws.php
48
ws.php
@@ -1365,6 +1365,54 @@ enabled_high, registration_date, registration_date_string, registration_date_sin
|
||||
<br> <strong>display_thumbnail</strong> can be : \'no_display_thumbnail\', \'display_thumbnail_classic\', \'display_thumbnail_hoverbox\'',
|
||||
$ws_functions_root . 'pwg.php'
|
||||
);
|
||||
|
||||
$service->addMethod(
|
||||
'pwg.images.filteredSearch.update',
|
||||
'ws_images_filteredSearch_update',
|
||||
array(
|
||||
'search_id' => array(
|
||||
'type' => WS_TYPE_ID,
|
||||
),
|
||||
'allwords' => array(
|
||||
'flags' => WS_PARAM_OPTIONAL,
|
||||
'info' => 'query to search by words',
|
||||
),
|
||||
'allwords_mode' => array(
|
||||
'flags' => WS_PARAM_OPTIONAL,
|
||||
'info' => 'AND (by default) | OR',
|
||||
),
|
||||
'allwords_fields' => array(
|
||||
'flags' => WS_PARAM_OPTIONAL|WS_PARAM_FORCE_ARRAY,
|
||||
'info' => 'values among [name, comment, tags, file, cat-title, cat-desc]',
|
||||
),
|
||||
'tags' => array(
|
||||
'flags' => WS_PARAM_OPTIONAL|WS_PARAM_FORCE_ARRAY,
|
||||
'type' => WS_TYPE_ID,
|
||||
),
|
||||
'tags_mode' => array(
|
||||
'flags' => WS_PARAM_OPTIONAL,
|
||||
'info' => 'AND (by default) | OR',
|
||||
),
|
||||
'categories' => array(
|
||||
'flags' => WS_PARAM_OPTIONAL|WS_PARAM_FORCE_ARRAY,
|
||||
'type' => WS_TYPE_ID,
|
||||
),
|
||||
'categories_withsubs' => array(
|
||||
'flags' => WS_PARAM_OPTIONAL,
|
||||
'type' => WS_TYPE_BOOL,
|
||||
'info' => 'false, by default',
|
||||
),
|
||||
'authors' => array(
|
||||
'flags' => WS_PARAM_OPTIONAL|WS_PARAM_FORCE_ARRAY,
|
||||
),
|
||||
'added_by' => array(
|
||||
'flags' => WS_PARAM_OPTIONAL|WS_PARAM_FORCE_ARRAY,
|
||||
'type' => WS_TYPE_ID,
|
||||
),
|
||||
),
|
||||
'',
|
||||
$ws_functions_root . 'pwg.images.php'
|
||||
);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user