Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
reloaded:views_reqs [2017/06/23 16:18]
giancarlo
reloaded:views_reqs [2018/04/09 21:44]
giancarlo
Line 1: Line 1:
 ====== Views common requirements ====== ====== Views common requirements ======
 +
 \\ \\
   * **Libraries and Views modules**   * **Libraries and Views modules**
Line 20: Line 21:
 git clone git://github.com/Islandora/islandora_solr_views git clone git://github.com/Islandora/islandora_solr_views
 drush -u 1 en islandora_solr_views drush -u 1 en islandora_solr_views
 +</code>
 +</WRAP>
 +Due to bug for SORT CRITERIA on multiple fields:
 +<WRAP prewrap center>
 +<code>
 +nano -w islandora_solr_views_query.inc
 +</code>
 +</WRAP>
 +<WRAP prewrap center>
 +<code php>
 +      // 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);
 +      }
 </code> </code>
 </WRAP> </WRAP>
 
 
reloaded/views_reqs.txt ยท Last modified: 2018/04/09 21:44 by giancarlo

Developers: CNR IRCrES IT Office and Library
Giancarlo Birello (giancarlo.birello _@_ ircres.cnr.it) and Anna Perin (anna.perin _@_ ircres.cnr.it)
DigiBess is licensed under: Creative Commons License
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Drupal Garland Theme for Dokuwiki