Hiding the Clear All Mechanism (Classic UI)
Out of the box, the Clear All mechanism appears for the various searches. You can disable them individually by changing your localized CSS file.
The following figure shows the Clear All mechanism on the Simple Search page:
Clear All on Simple Search Page
The following figure shows the Clear All mechanism on the Advanced Search page:
Clear All on Advanced Search Page
To hide the Clear All mechanism:
-
Log on to the Back Office server as the primo user.Instead of accessing the server directly (as shown in steps 1 and 2), it is recommended to use the File Uploader utility (see The File Uploader Tool) to manage and publish CSS changes to the Primo Front End UI.
-
Enter the following commands to access and open the CSS file that is used to customize your view:fe_webcd cssvi <custom_css>.cssIt is not recommended to modify the default Primo CSS, which can be overwritten during updates. For more information regarding the customization of Primo views, see the Primo Technical Guide.
-
Add the following lines to your localized CSS file to hide the Clear All mechanism for various types of searches:
-
Browse search:.EXLBrowseSearchFieldRibbonFormSearchClear {display:none;}
-
A to Z list:.EXLSearchEJorunals .EXLSearchFieldRibbonFormSearchClear {display:none;}
-
Simple search:#exlidSearchTile .EXLSearchFieldRibbonFormSearchClear {display:none;}#exlidSearchTile.EXLSearchEJournals.EXLSearchFieldRibbonFormSearchClear {display:block;}
-
Advanced search:#exlidClearSelectedFieldsAdvancedSearch {display:none !important;}
-
-
Save the changes to the CSS file.
-
On the Primo Home > Deploy All page, select all options and click Deploy.