we're interested in hiding the Dataverses accordion on the advanced search page. at this point, we're only planning to have only one dataverse within our instance. does anyone have any recommendations about how we might approach this?
Hi there and welcome to the community! I'm not sure what you are referring to. Could you create some screenshots, maybe hidding things you don't want using CSS in your browser's dev tools?
@María A. Matienzo hi! You might be able to add a custom footer ( https://guides.dataverse.org/en/6.3/installation/config.html#custom-footer ) and include some JavaScript you write to collapse that part of the Advanced Search page.
@Oliver Bertuch the accordion in question is the collection ("Dataverses") one at the top: https://github.com/IQSS/dataverse/blob/v6.3/src/main/webapp/search/advanced.xhtml#L39
@Philip Durbin thank you! i was able to this in the custom footer:
$(document).ready(function() {
('#panelCollapseDataversesFieldList').collapse();
});
That was fast! Great! :tada:
there are some fiddly parts about the element rendering before the collapse event fires, but some of that can be mitigated with additional CSS.
María A. Matienzo has marked this topic as resolved.
by comparison, if one wanted to hide that part of the form fully, you could do something like this in CSS as @Oliver Bertuch suggested:
div.panel:has(> #panelCollapseDataversesFieldList) {
display: none;
}
Last updated: Oct 30 2025 at 06:21 UTC