Open sandbergja opened 5 years ago
cc: @samvera/hyrax-repo-managers
Is there interest in re-considering which fields are be sortable by default?
As concerns cases where we need to show/use exactly one of a field which may have multiple values (and especially title), i think we've zero'd in on using the first alphabetically.
How do we get first title when title can't be ordered?
I am very interested in having Hyrax sort by Publication date field...i don't care if it's opinionated
I'll run this by SMIG at the next meeting. Since it relates to metadata, it's of interest to those of us who are metadata creators.
As SMIG facilitator, I would add a metadata label to this issue. In addition to Ohio State University, there is another institution interested in it. The current sort options are problematic for accessing content by creation/publication date and sorting by title. For those of us using Hyrax for digitized and born-digital special collections and archival materials, the current sort options are rather poor. We've had complaints about the default search options. I don't have the capability to add labels so I hope someone who does can add the metadata label. Thank you!
I am looking into writing a custom sort plugin (function) for SOLR that converts the multi-valued date field for pub_date into a single valued text field, and then sorting them. I will let you know how it goes.
Has there been any update in whether this is planned to be included in a future update of Hyrax?
No updates, although we'd love to see a contribution from the community for this.
Descriptive summary
On hyrax 2.2.4: Hyrax out of the box includes a nice dropdown of sort options in its search results and collections pages (and maybe other places as well). However, the default options (date_modified and date_uploaded) aren't the sorts that most end-users are interested in.
It would be helpful if hyrax shipped with a title and publication date sort here as well.
Rationale
Adding title and publication date sort seem like really common customizations. However, it is a non-trivial process, since these are multi-valued fields, and solr does not support sorting multi-valued fields. To accomplish this, an institution would have to start indexing a new single-value version of each of these fields, re-index their collection, and then add some
config.add_sort_field
lines to the catalog controller.It seems like it might be difficult to get consensus on how the hyrax indexer should handle documents with multiple titles or publication dates. In my opinion, it would be okay if hyrax were super opinionated or even arbitrary about which title or publication date got the honor of being the sorting one.