diff --git a/productMods/js/homePageUtils.js b/productMods/js/homePageUtils.js index e159ed8f..09cad684 100644 --- a/productMods/js/homePageUtils.js +++ b/productMods/js/homePageUtils.js @@ -134,7 +134,7 @@ $(document).ready(function(){ //Check to see if this index hasn't already been employed if(!indexFound) { //if this index hasn't already been employed then utilize it - html += "
  • " + academicDepartments[index].name + "
  • "; //add this index to the set of already used indices @@ -146,7 +146,7 @@ $(document).ready(function(){ } else { for ( var i=0;i" + academicDepartments[i].name + ""; } diff --git a/productMods/templates/freemarker/lib/lib-home-page.ftl b/productMods/templates/freemarker/lib/lib-home-page.ftl index 25e119b4..c333f091 100644 --- a/productMods/templates/freemarker/lib/lib-home-page.ftl +++ b/productMods/templates/freemarker/lib/lib-home-page.ftl @@ -165,8 +165,7 @@ var academicDepartments = [ <#list academicDeptDG as resultRow> <#assign uri = resultRow["theURI"] /> <#assign label = resultRow["name"] /> - <#assign localName = uri?substring(uri?last_index_of("/")) /> - {"uri": "${localName}", "name": "${label}"}<#if (resultRow_has_next)>, + {"uri": "${uri?url}", "name": "${label}"}<#if (resultRow_has_next)>, ];