Configuring the start page of the search
Opening the Configuration Tool of the search
- Log on as system administrator
- Open the administration area
- Select the menu item "Start page".
Basic settings of the start page
In the upper part of the configuration tool you can select:
- Which mode is used for the selection of home page objects.
By default, edu-sharing offers the following options:- Best rated objects
- most frequently accessed objects
- most frequently downloaded objects
- to which time period the selection mode should be limited
- how many objects should be selected based on the selection mode and the selected time period
- how many of the selected objects should be displayed on the start page
If the number of selected objects is smaller than the number of objects to be displayed, a random selection in the selected number is displayed each time the search is opened.
Save to set the item selection for the start page of your search. The preview of the start page will be updated.
Note: The preview shown has the following limitations:
- Adjustments just made must be saved first
- All materials are displayed, regardless of the access rights of a user
- The elements of the start page are updated depending on a cache (usually at night)
Adding Conditions / Queries
It is possible to add custom queries for objects displayed on the start page. In order to do so:
- Press the button "Add condition / query" below the general start page settings. A new fieldset will open.
- Select the desired tool permission which will be the precondition for your query.
- Select whether the target condition value is supposed to be true or false.
- In the corresponding field it is possible to add custom Elasticsearch queries.
- Save.
Example of a query that (if the tool permission is present) only displays elements with the name "Test":
{
"term": {
"properties.cm:name.keyword": {
"value": "Test"
}
}
}