1) Multiple sort orderings can be separated by a comma, ie: sort=<field name>+<direction>[,<field name>+<direction>]...
// Add sorting.
if (isset($this->orderby)) {
module_load_include('inc', 'islandora_solr', 'includes/utilities');
// Populate sorting parameters.
foreach ($this->orderby as $field => $order) {
- $params['sort'][] = islandora_solr_lesser_escape($field) . ' ' . $order;
+ $sortFields[] = islandora_solr_lesser_escape($field) . ' ' . $order;
}
+ $params['sort'][] = implode(",",$sortFields);
}
Can someone check and confirm this? If confirmed I can open a PR. Giancarlo |
Sorry if the steps were not in the right order:
- I created Jira ticket https://jira.duraspace.org/browse/ISLANDORA-2054
- I forked into my github then made change then PR to islandora github.
I hope this can help for next release of Islandora.
Giancarlo
--
For more information about using this group, please read our Listserv Guidelines: http://islandora.ca/content/welcome-islandora-listserv
---
You received this message because you are subscribed to the Google Groups "islandora" group.
To unsubscribe from this group and stop receiving emails from it, send an email to islandora+...@googlegroups.com.
Visit this group at https://groups.google.com/group/islandora.
To view this discussion on the web visit https://groups.google.com/d/msgid/islandora/170f7e52-6bb2-48e9-82d3-cefa46819d8a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to islandora+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/islandora.
To view this discussion on the web visit https://groups.google.com/d/msgid/islandora/a3ccae9a-9725-4173-81f3-df427b7805ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/islandora/a3ccae9a-9725-4173-81f3-df427b7805ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.