AdvancedSearch and CleanURL Research & Development

A question for @Daniel_KM,

I work as part of a team working on many digital humanities websites at the Center for Digital Research in the Humanities in UNL Libraries along with @KarinD, @ckoch, and @echambers4. We’re interesting in trying to make your AdvancedSearch (powered by the Solr adapter) module and CleanURL module functionalities integrate more tightly such that the nav links for AdvancedSearch pages are CleanURL friendly and search results for items in AdvancedSearch link to the CleanURL paths for the items, for example without the site-prefix when configured to remove them. We’re also interested in getting search highlighting displaying and have noticed that you already have that on your list of TODOs for the AdvancedSearch module.

I see that you have merged some merge requests on GitLab for your modules. If we move forward with trying to modify the modules with these capabilities, I assume GitLab is the best place to submit merge requests? Do you have any contributor guidelines or tips you’d like us to follow? Do you use any linters or auto-formatters that we should as well?

And lastly, if we have questions on how to best achieve the results we’re looking for if we find multiple strategies are possible, what would be the preferred means to communicate and converse about these things? Would an issue or draft merge request on GitLab be preferable?

Thanks!

I’ve made some progress on this and have the AdvancedSearch module modified such that the URLs for search pages now properly reflect all the settings combinations for main site and custom site slugs from CleanURL. Getting the main site skip to work by passing site-slug with a value of false so an error wasn’t raised when it wasn’t actually used in the URL stumped me for a bit. And then I had to figure out how to get the code to only operate when the CleanURL module was actually activated. I didn’t realize its settings remained accessible even when deactivated at first. That part mostly took me a while because I didn’t realize I had the case wrong on the module name for the method to check whether it was active. I had been trying CleanURL and think the isModuleActive function was broken somehow, but it has to be CleanUrl and works great now. Now on to search result URLs and Solr search highlights.