We just upgraded to version 4.1.1. and noticed new advanced search options like Search by class, Search by media presence, etc. We’d like to hide these on the public side. I was looking at GitHub - kolydart/omeka-hideAdvancedSearchElements: Remove elements from Items Advanced Search, using jQuery. and it notes that version 4+ core has functionality to hide these elements but I am not finding it. Where does that reside?
I’m not exactly clear what you can hide with this particular module, but the settings for adjusting the advanced search elements for the public are within the site settings for search: Site Admin - Omeka S User Manual
You can restrict the options to the vocabulary elements that are used, and select templates and then restrict the properties to those associated with those templates.
Thanks! That has helped element some extraneous properties not used on the site. Unfortunately, it still doesn’t provide a way to eliminate elements like Search by ID, etc. We can live with advanced search as is but were hoping for a lightweight way to make it more user-friendly.
You can use the CSS Editor module to point to individual form rows and hide them with display:none
. Right now that’s a bit unwieldy, but it can be done. For “Search by ID”, try
.advanced-search-content>div:nth-of-type(7) {
display:none;
}
In a future upgrade, we’ll offer IDs you can enter individually to do the same thing, rather than counting out the 7th row.
It’s not a very common request so we’re probably not going to offer a way to customize advanced search in the admin interface.
But, we can make this CSS solution work better if you have any requests once you start working with it - let us know!
@AllanaMayer - Cool. We’ve been digging into the CSS Editor functionality and are loving it. I’ll give that a shot. And yes, adding IDs would help tremendously. Thanks!