";
+ $('div#tempSpacing').hide();
+ $('div#research-faculty-mbrs ul#facultyThumbs').append(individualList);
+ $('div#research-faculty-mbrs ul#facultyThumbs').css("padding", "1.0em 0 0.825em 0.75em");
+ }
}
function adjustImageHeight(theImg) {
@@ -87,7 +99,7 @@ $(document).ready(function(){
var index = Math.floor((Math.random()*deptNbr)+1)-1;
if ( deptNbr == 0 ) {
- html += "
No academic departments found.
";
+ html = "
No academic departments found.
";
}
else if ( deptNbr > 6 ) {
for ( var i=0;i<6;i++) {
@@ -109,5 +121,5 @@ $(document).ready(function(){
}
$('div#academic-depts').html(html);
}
-
+
});
diff --git a/productMods/templates/freemarker/lib/lib-home-page.ftl b/productMods/templates/freemarker/lib/lib-home-page.ftl
index 6928fcc1..63853e69 100644
--- a/productMods/templates/freemarker/lib/lib-home-page.ftl
+++ b/productMods/templates/freemarker/lib/lib-home-page.ftl
@@ -12,6 +12,20 @@
#list>
#macro>
+<#-- Renders the html for the faculty member section on the home page. -->
+<#-- Works in conjunction with the homePageUtils.js file, which contains the ajax call. -->
+<#macro facultyMbrHtml>
+
+
Faculty
+
+
+
+
+
+
+
+#macro>
+
<#-- We need the faculty count in order to randomly select 4 faculty using a solr query -->
<#macro facultyMemberCount classGroups>
<#assign foundClassGroup = false />
@@ -39,49 +53,51 @@
<#-- Loop through classGroups first so we can account for situations when all class groups are empty -->
<#assign selected = 'class="selected" ' />
<#assign classGroupList>
- <#list classGroups as group>
- <#-- Only display populated class groups -->
- <#if (group.individualCount > 0)>
- <#-- Catch the first populated class group. Will be used later as the default selected class group -->
- <#if !firstPopulatedClassGroup??>
- <#assign firstPopulatedClassGroup = group />
- #if>
- <#-- Determine the active (selected) group -->
- <#assign activeGroup = "" />
- <#if !classGroup??>
- <#if group_index == 0>
- <#assign activeGroup = selected />
+
+
- #if>
- #if>
- #list>
+ <#-- Only display populated class groups -->
+ <#if (group.individualCount > 0)>
+ <#-- Catch the first populated class group. Will be used later as the default selected class group -->
+ <#if !firstPopulatedClassGroup??>
+ <#assign firstPopulatedClassGroup = group />
+ #if>
+ <#if group.displayName != "equipment" && group.displayName != "courses" >
+
+
#assign>
<#-- Display the class group browse only if we have at least one populated class group -->
<#if firstPopulatedClassGroup??>
${classGroupList}
<#else>
-
There is currently no content in the system, or you need to create class groups and assign your classes to them.
+
There is currently no content in the system, or you need to create class groups and assign your classes to them.
+
+#macro>
+
+<#-- Renders the html for the academic departments section on the home page. -->
+<#-- Works in conjunction with the homePageUtils.js file -->
+<#macro academicDeptsHtml>
+
+
Departments
+
+
+
#macro>
<#-- builds the "academic departments" box on the home page -->
-<#macro academicDepartments>
+<#macro listAcademicDepartments>
#macro>
+
+<#-- renders the "geographic focus" section on the home page. works in -->
+<#-- conjunction with the homePageMaps.js and latLongJson.js files, as well -->
+<#-- as the leaflet javascript library. -->
+<#macro geographicFocusHtml>
+
+
Geographic Focus
+ <#-- map controls allow toggling between multiple map types: e.g., global, country, state/province. -->
+ <#-- VIVO default is for only a global display, though the javascript exists to support the other -->
+ <#-- types. See map documentation for additional information on how to implement additional types. -->
+ <#--
+
-
-
<#include "footer.ftl">
<#-- builds a json object that is used by js to render the academic departments section -->
- <@lh.academicDepartments />
+ <@lh.listAcademicDepartments />