vivo/themes/wilma/templates/page-home.ftl

114 lines
4.9 KiB
Text
Raw Normal View History

2013-04-30 14:46:22 -04:00
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<@widget name="login" include="assets" />
2013-04-30 14:46:22 -04:00
<#--
With release 1.6, the home page no longer uses the "browse by" class group/classes display.
If you prefer to use the "browse by" display, replace the import statement below with the
following include statement:
<#include "browse-classgroups.ftl">
Also ensure that the homePage.geoFocusMaps flag in the runtime.properties file is commented
out.
-->
<#import "lib-home-page.ftl" as lh>
<!DOCTYPE html>
<html lang="en">
<head>
<#include "head.ftl">
2013-04-30 14:46:22 -04:00
<#if geoFocusMapsEnabled >
<#include "geoFocusMapScripts.ftl">
</#if>
<script type="text/javascript" src="${urls.base}/js/homePageUtils.js?version=x"></script>
</head>
<body class="${bodyClasses!}" onload="${bodyOnload!}">
<#-- supplies the faculty count to the js function that generates a random row number for the search query -->
2013-04-30 14:46:22 -04:00
<@lh.facultyMemberCount vClassGroups! />
<#include "identity.ftl">
<#include "menu.ftl">
<section id="intro" role="region">
<h2>${i18n().intro_title}</h2>
<p>${i18n().intro_para1}</p>
2013-05-31 11:56:18 -04:00
<p>${i18n().intro_para2}</p>
<section id="search-home" role="region">
<h3>${i18n().intro_searchvivo} <span class="search-filter-selected">filteredSearch</span></h3>
<fieldset>
2013-05-31 11:56:18 -04:00
<legend>${i18n().search_form}</legend>
<form id="search-homepage" action="${urls.search}" name="search-home" role="search" method="post" >
<div id="search-home-field">
2013-04-30 14:46:22 -04:00
<input type="text" name="querytext" class="search-homepage" value="" autocapitalize="off" />
2013-05-31 11:56:18 -04:00
<input type="submit" value="${i18n().search_button}" class="search" />
<input type="hidden" name="classgroup" value="" autocapitalize="off" />
</div>
<a class="filter-search filter-default" href="#" title="${i18n().intro_filtersearch}">
<span class="displace">${i18n().intro_filtersearch}</span>
2013-05-02 12:34:18 -04:00
</a>
<ul id="filter-search-nav">
2013-05-31 11:56:18 -04:00
<li><a class="active" href="">${i18n().all_capitalized}</a></li>
2013-04-30 14:46:22 -04:00
<@lh.allClassGroupNames vClassGroups! />
</ul>
</form>
</fieldset>
</section> <!-- #search-home -->
</section> <!-- #intro -->
<@widget name="login" />
2013-05-02 12:34:18 -04:00
<!-- List of research classes: e.g., articles, books, collections, conference papers -->
<@lh.researchClasses />
2013-04-30 14:46:22 -04:00
2013-05-02 12:34:18 -04:00
<!-- List of four randomly selected faculty members -->
<@lh.facultyMbrHtml />
2013-04-30 14:46:22 -04:00
2013-05-02 12:34:18 -04:00
<!-- List of randomly selected academic departments -->
<@lh.academicDeptsHtml />
2013-04-30 14:46:22 -04:00
<#if geoFocusMapsEnabled >
2013-05-02 12:34:18 -04:00
<!-- Map display of researchers' areas of geographic focus. Must be enabled in runtime.properties -->
<@lh.geographicFocusHtml />
2013-04-30 14:46:22 -04:00
</#if>
2013-05-02 12:34:18 -04:00
<!-- Statistical information relating to property groups and their classes; displayed horizontally, not vertically-->
<@lh.allClassGroups vClassGroups! />
<#include "footer.ftl">
2013-04-30 14:46:22 -04:00
<#-- builds a json object that is used by js to render the academic departments section -->
2013-05-02 12:34:18 -04:00
<@lh.listAcademicDepartments />
<script>
var i18nStrings = {
researcherString: '${i18n().researcher}',
researchersString: '${i18n().researchers}',
currentlyNoResearchers: '${i18n().currently_no_researchers}',
countriesAndRegions: '${i18n().countries_and_regions}',
countriesString: '${i18n().countries}',
regionsString: '${i18n().regions}',
statesString: '${i18n().map_states_string}',
stateString: '${i18n().map_state_string}',
statewideLocations: '${i18n().statewide_locations}',
researchersInString: '${i18n().researchers_in}',
inString: '${i18n().in}',
noFacultyFound: '${i18n().no_faculty_found}',
placeholderImage: '${i18n().placeholder_image}',
viewAllFaculty: '${i18n().view_all_faculty}',
viewAllString: '${i18n().view_all}',
viewAllDepartments: '${i18n().view_all_departments}',
noDepartmentsFound: '${i18n().no_departments_found}'
};
// set the 'limmit search' text and alignment
if ( $('input.search-homepage').css('text-align') == "right" ) {
$('input.search-homepage').attr("value","${i18n().limit_search} \u2192");
}
</script>
</body>
</html>