From 155ca60289692eb7285bd64814bcac8549c5669f Mon Sep 17 00:00:00 2001 From: phil Date: Mon, 27 May 2013 14:38:58 -0300 Subject: [PATCH] commented the hook alter for islandora_solr_search_rss_item_alter --- fedora_repository.api.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/fedora_repository.api.php b/fedora_repository.api.php index 52552ab1..a309aad0 100644 --- a/fedora_repository.api.php +++ b/fedora_repository.api.php @@ -135,3 +135,28 @@ function hook_fedora_repository_can_ingest($collection_pid) { function hook_fedora_repository_check_perm($op, $pid = NULL, $as_user = NULL) { return NULL; } + + +/** + * This hook allows modules to edit an rss_item. + * Override rss Item. + * (from islandora_solr_search/islandora_solr_config + * + * Somtimes you might want to alter how an rss item is displayed. + * + * @param rssItem $item + * The rssItem object + * + * @param $doc + * The solr results document + * + */ +function hook_islandora_solr_search_rss_item_alter($item, $doc) { + + $item['title'] = $doc['PID']; + $item['description'] = 'this is the new rss item description'; +} + + + +