Design
How it works
Advanced Search is included in the starter kit.
Users can access the advanced search by clicking on the advance search icon on the left hand side of the search page.
Advanced search includes the following filters in a tab called “Default” :
Name (Contains, Excepted, Start with, End with, Empty, Not Empty)
Description (Contains, Excepted, Start with, End with, Empty, Not Empty)
Creation Date ( From, To)
Keywords (Contains, Excepted, Start with, End with, Empty, Not Empty)
Collection (One of, None of, Empty, Not empty)
Folder (One of, None of, Empty, Not empty)
Organization (One of, None of, Empty, Not empty)
Photograph (One of, None of, Empty, Not empty)
Languages (Contains, Excepted, Start with, End with, Empty, Not Empty)
Authorized channel (Contains, Excepted, Start with, End with, Empty, Not Empty)
Shooting date (From, To)
As for the top filter bar, advanced search filters can be configured at project level for each cursors. It is possible to multiple tabs with multiple criteria in each tab.
Default configuration is placed in dam/explore/advanced-filters/default-cursor-config/default-ressource-config.json
Basic Configuration
Advanced filters are generally set up with multiple operators, depending on the nature of the field (text, tree, date …). You can read more informations about setting up and creating filters, in the dedicated section of the page Filter bar.
Advanced Configuration
Setup one optional advanced search configuration per cursor
To set up a particular advanced search panel for a specific cursor you must create a folder with the name of the cursor containing a default-ressource-config.json
file under dam/explore/advanced-filters
.
For example to custom the advanced search panel of the cursor “all-videos” you create the file dam/explore/advanced-filters/default-ressource-config.json
.
Setup multiple tabs with multiple criteria in each tab
To setup a tab for an advanced search panel, you must add a property category
to a filter. This will create a tab with the name of the category, containing the dedicated filter.
To add multiple filters to a tab, you’ll have to repeat the category
property with similar values in all filters configuration that you want to display under the tab.
You can add a categoryI18n
property to translate the tab’s name.
Example :
// Will create an "audio" tab { "category": "audio", "categoryi18n": "audio", "field": "duration", "operators": [ "gte", "lte" ] }