Daniel Lamb
9 years ago
3 changed files with 26 additions and 8 deletions
@ -0,0 +1,6 @@
|
||||
name = Islandora Apache Solr Integration |
||||
description = A module which allows the Solr indexing and searching of Islandora resources. |
||||
core = 7.x |
||||
package = Islandora |
||||
dependencies[] = apachesolr |
||||
dependencies[] = uuid |
@ -0,0 +1,14 @@
|
||||
<?php |
||||
/** |
||||
* @file |
||||
* Islandora Apache Solr integration. |
||||
*/ |
||||
|
||||
/** |
||||
* Implements hook_apachesolr_index_documents_alter(). |
||||
*/ |
||||
function islandora_apachesolr_apachesolr_index_documents_alter(array &$documents, $entity, $entity_type, $env_id) { |
||||
if ($entity_type == 'node' && count($documents) > 0 && isset($entity->uuid)) { |
||||
$documents[0]->ss_uuid = $entity->uuid; |
||||
} |
||||
} |
Loading…
Reference in new issue