List of issues after enabling grouped results
Enabling results grouping in Blacklight breaks many other features. As someone who first was attracted to Blacklight because of the grouping feature, I find this unfortunate. I am compiling a list here so that this might be addressed eventually, whether by myself or someone else.
To start, I have enabled results grouping by changing config.default_solr_params in catalog_controller.rb. If this is not the correct way to do this, let me know.
config.default_solr_params = {
group: true,
'group.field': 'format',
'group.limit': 2,
'group.ngroups': true
}
Immediately after changing this and nothing else from the quick start template the following items no longer work:
- Sorting by group field - When narrowing down your search by the category that you are using to group, it should remove the groups and show results as if groups were not enabled, but only for the specified 'group.field' in your solr parameters. This previously did not work, but I have found a fix in #1903
- Bookmarks - The count goes up by if you go to the page it will always say there are none saved. Additionally you can only remove bookmarks from the single item view. Items selected to be bookmarked do not persist among searches.
- Single Item View
- Citations - If you click citation the screen dims and a small clear bar loads at the top of the page.
- Librarian View - Only shows after two clicks and never renders properly.
- Item counter - The item counter with options for next and previous only displays if the item was selected from a search that wasn't grouped. After fixing sorting by group field, this will work when sorted in this way prior to selection.
Please let me know if anyone else has encountered and worked with these issues, or if there is something obvious I am missing. I honestly can do without citations or library view, but I thought I would mention it to get a more complete list.