How do I control how my collections are sorted?

You can use Solr fields to determine how your collections' objects are sorted.

  1. Make sure that your Collection Solution Pack is configured to use Solr for display generation (admin/islandora/solution_pack_config/basic_collection)
  2. Under “Sort field for collection query”, enter your chosen field followed by “asc” or “desc”. For dates, use the _dt version of the field. For other field types, use _ss.
    • Use "mods_titleInfo_title_ss asc” to sort by title A-Z.
    • Use “mods_originInfo_dateIssued_dt desc” to sort by date, newest to oldest.
  3. If you want to be able to configure different sort strings for individual collections, check “Allow individual sort strings per collection”
    1. Manage the collection that you want to sort differently
    2. On the Collection tab, choose Set Solr Sort String
    3. Enter a sortable string (ends with _ss) followed by "asc" or "desc" to use for sorting this collection.
  4. If you want to use the Islandora Sort block to allow multiple sort fields, enable it at Structure -> Blocks. Choose the sort fields under "Sort Settings" in the Solr configuration screen (admin/islandora/search/islandora_solr/settings).

Category: