From c21215583eea73f6ba2c723201d5bd59781f22e8 Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Tue, 18 Dec 2012 09:34:46 -0500
Subject: [PATCH] Added support for collections on home page.

---
 themes/blueprint/templates/search/home.phtml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/themes/blueprint/templates/search/home.phtml b/themes/blueprint/templates/search/home.phtml
index eaf3e74d80a..bef28c682f9 100644
--- a/themes/blueprint/templates/search/home.phtml
+++ b/themes/blueprint/templates/search/home.phtml
@@ -49,6 +49,16 @@
             <ul class="span-5">
           <? endif; ?>
         <? endforeach; ?>
+      <? /* Special case: collections */ ?>
+      <? elseif ($field == 'hierarchy_top_title'): ?>
+        <? $i = 0; foreach ($sortedList as $url => $value): ?>
+          <? if (++$i > 12): ?>
+            <li><a href="<?=$this->url('collections-home')?>"><strong><?=$this->transEsc("More options")?>...</strong></a></li>
+            <? break; ?>
+          <? else: ?>
+            <li><a href="<?=$this->url('collections-bytitle')?>?title=<?=urlencode($value)?>"><?=$this->escapeHtml($value)?></a></li>
+          <? endif; ?>
+        <? endforeach; ?>
       <? else: ?>
         <? $i = 0; foreach ($sortedList as $url => $value): ?>
           <? if (++$i > 12): ?>
-- 
GitLab