<div class="searchHomeContent"> 
  <h2>Search the catalog</h2>
  <div class="searchHomeForm">
    {include file="Search/searchbox.tpl"}
  </div>
<div class="contentCategory">
<h2>Or search the contents by category</h2>
<div class="contentCategoryButtons">
<a href="/vufind/Search/Results?lookfor=usproj&amp;type=AllFields&amp;submit=Find"><img src="/vufind/images/us_govt_project_work.png" alt="Search for U.S. Government project work." style="border-style: none" /></a>
<a href="/vufind/Search/Results?lookfor=usres&amp;type=AllFields&amp;submit=Find"><img src="/vufind/images/us_govt_research.png" alt="Search for U.S. Government research documents." style="border-style: none" /></a> 
 <a href="/vufind/Search/Results?lookfor=akgov&amp;type=AllFields&amp;submit=Find"><img src="/vufind/images/alaska_govt.png" alt="Search for Alaska government documents." style="border-style: none" /></a>
<a href="/vufind/Search/Results?lookfor=cangov&amp;type=AllFields&amp;submit=Find"><img src="/vufind/images/canada_govt.png" alt="Search for Canadian government documents." style="border-style: none" /></a> 
<a href="/vufind/Search/Results?lookfor=LEG&amp;type=AllFields&amp;submit=Find"><img src="/vufind/images/legislation.png" alt="Search for legislative documents." style="border-style: none" /></a> 
<a href="/vufind/Search/Results?lookfor=hist&amp;type=AllFields&amp;submit=Find"><img src="/vufind/images/history.png" alt="Search for historical documents." style="border-style: none" /></a>
<a href="/vufind/Search/Results?lookfor=proj&amp;type=AllFields&amp;submit=Find"><img src="/vufind/images/project_proposals.png" alt="Search for project proposals." style="border-style: none" /></a>
<a href="/vufind/Search/Results?lookfor=envi&amp;type=AllFields&amp;submit=Find"><img src="/vufind/images/environmental_review.png" alt="Search for environmental review documents." style="border-style: none" /></a>
<a href="/vufind/Search/Results?lookfor=cons&amp;type=AllFields&amp;submit=Find"><img src="/vufind/images/construction.png" alt="Search for construction documents."style="border-style: none" /></a>
<a href="/vufind/Search/Results?lookfor=MAP&amp;type=AllFields&amp;submit=Find"><img src="/vufind/images/project_maps.png" alt="Search for project maps." style="border-style: none" /></a>
<a href="/vufind/Search/Results?lookfor=econ&amp;type=AllFields&amp;submit=Find"><img src="/vufind/images/economics.png" alt="Search for economic documents." style="border-style: none" /></a> 
</div>
</div>
<div>
</div>
{if $facetList}
<div class="searchHomeBrowse">
  {assign var=columns value=0}
  {foreach from=$facetList item=details key=field}
    {assign var=list value=$details.sortedList}
    {if $field == 'callnumber-first'}{assign var=currentSize value=10}{else}{assign var=currentSize value=5}{/if}
    {assign var=columns value=$columns+$currentSize}
    <h2 class="span-{$currentSize}">{translate text="home_browse"} {translate text=$details.label}</h2> 
  {/foreach}
  {if $columns > 0 && $columns < 24}
    <div class="span-{math equation="24 - x" x=$columns} last"><!-- pad out header row --></div>
  {/if}
  {foreach from=$facetList item=details key=field}
    {assign var=list value=$details.sortedList}
    <ul class="span-5">
      {* Special case: two columns for LC call numbers... *}
      {if $field == "callnumber-first"}
        {foreach from=$list item=url key=value name="callLoop"}
          <li><a href="{$url|escape}">{$value|escape}</a></li>
          {if $smarty.foreach.callLoop.iteration == 10}
            </ul>
            <ul class="span-5">
          {/if}
        {/foreach}
      {else}
        {assign var=break value=false}
        {foreach from=$list item=url key=value name="listLoop"}
          {if $smarty.foreach.listLoop.iteration > 12}
            {if !$break}
              <li><a href="{$path}/Search/Advanced"><strong>{translate text="More options"}...</strong></a></li>
              {assign var=break value=true}
            {/if}
          {else}
            <li><a href="{$url|escape}">{$value|escape}</a></li>
          {/if}
        {/foreach}
      {/if}

<div></div>

    </ul>
  {/foreach}
  <div class="clear"></div>
</div>
{/if}