Differences
This shows you the differences between two versions of the page.
Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
frontend:searchres [2012/05/17 09:17] giancarlo |
frontend:searchres [2013/09/05 11:38] giancarlo |
====== Custom search result ====== | ====== Custom search result ====== |
| |
* **Limit ''dc.description'' to 200 chars** | * **Speed up search (from 30s to 1s !!) and Limit ''dc.description'' to 200 chars** |
| |
Edit ''sites/all/modules/islandora_solr_custom/theme/islandora_solr_custom.theme.inc'' | Edit ''sites/all/modules/islandora_solr_custom/theme/islandora_solr_custom.theme.inc'' |
<code php> | <code php> |
function islandora_solr_custom_preprocess_islandora_solr_custom(&$variables) { | function islandora_solr_custom_preprocess_islandora_solr_custom(&$variables) { |
| ... |
| </code> |
| <wrap tip>Tip</wrap> |
| <WRAP prewrap center caution> |
| <code php> |
| // $variables['field_order'] = _islandora_solr_custom_solrconfig(); // not sure if this is really needed, but I'll keep it in for now. |
| </code> |
| </WRAP> |
| <code php> |
... | ... |
if ($field=="PID") { | if ($field=="PID") { |