Created
March 10, 2014 22:54
-
-
Save nhart/9476154 to your computer and use it in GitHub Desktop.
drupal and islandora docs in solr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function <theme name>_preprocess_islandora_solr(&$vars) { | |
foreach($vars['results'] as &$doc) { | |
if(isset($doc['some key that only nodes have'])) { | |
$doc['thumbnail'] = 'static or node image'; | |
$doc['object_url'] = 'url for node'; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment