uclibs / scholar_uc_legacy

Source code for Scholar@UC up to version 3.x. Replaced by ucrate
Other
5 stars 1 forks source link

Add catalog view sort by title #989

Closed crowesn closed 7 years ago

crowesn commented 7 years ago

Descriptive summary

Add control to sort collections by title in catalog view.

Related work

Trello card

crowesn commented 7 years ago
scherztc commented 7 years ago

Size : 2

scherztc commented 7 years ago

BLOCKER: This is handled by the catalog_controller.rb : https://github.com/projecthydra/sufia/blob/d3e52e8bcbf5b5700c5e61057b236969306ef66e/lib/generators/sufia/templates/catalog_controller.rb

Although it is easy to configure the catalog_controller to use title for sorting, there is a solr architecture problem with multi-valued fields. See error:

RSolr::Error::Http - 400 Bad Request Error: 'can not sort on multivalued field: title_tesim','code'=>400}}

This is different from curate, where title was a single valued field. Sufia allows for multiple titles for a work.

haitzlm commented 7 years ago

Can I work with you on this?

scherztc commented 7 years ago

We can follow University of Alberta's issue: https://github.com/ualbertalib/HydraNorth/commits/1263_sufia_migrate

scherztc commented 7 years ago

See this PR for Sufia 6: https://github.com/ualbertalib/HydraNorth/pull/1229/files

scherztc commented 7 years ago

rake solr:reindex is also broken in sufia 7.2 : https://github.com/projecthydra/sufia/issues/2774

scherztc commented 7 years ago

Adding to the agenda for our Metadata meeting

scherztc commented 7 years ago

We will keep the title as multi-valued in the model. We will hide the extra title fields on the input form. We will add an alternate title to the model and form.