From c3bdcb66766271df8a8bd7e13e8e014fd8c3746c Mon Sep 17 00:00:00 2001 From: tworrall Date: Fri, 28 Jun 2013 10:15:32 -0400 Subject: [PATCH] minor change, renamed a variable --- .../loadedAtStartup/homePageDataGetters.n3 | 6 +-- .../freemarker/lib/lib-home-page.ftl | 52 +++++++++++-------- 2 files changed, 34 insertions(+), 24 deletions(-) diff --git a/productMods/WEB-INF/ontologies/app/loadedAtStartup/homePageDataGetters.n3 b/productMods/WEB-INF/ontologies/app/loadedAtStartup/homePageDataGetters.n3 index 30f4d155..40a566b8 100644 --- a/productMods/WEB-INF/ontologies/app/loadedAtStartup/homePageDataGetters.n3 +++ b/productMods/WEB-INF/ontologies/app/loadedAtStartup/homePageDataGetters.n3 @@ -20,11 +20,11 @@ display:academicDeptsDataGetter PREFIX rdf: PREFIX vivo: - SELECT DISTINCT ?deptURI (str(?label) as ?name) + SELECT DISTINCT ?theURI (str(?label) as ?name) WHERE { - ?deptURI rdf:type vivo:AcademicDepartment . - ?deptURI rdfs:label ?label + ?theURI rdf:type vivo:AcademicDepartment . + ?theURI rdfs:label ?label } """ . diff --git a/productMods/templates/freemarker/lib/lib-home-page.ftl b/productMods/templates/freemarker/lib/lib-home-page.ftl index ac2ddd31..d523035b 100644 --- a/productMods/templates/freemarker/lib/lib-home-page.ftl +++ b/productMods/templates/freemarker/lib/lib-home-page.ftl @@ -114,28 +114,38 @@ -<#-- builds the "research" box on the home page --> +<#-- Renders the html for the research section on the home page. --> +<#-- Works in conjunction with the homePageUtils.js file --> <#macro researchClasses classGroups=vClassGroups> - <#assign foundClassGroup = false /> -
-

${i18n().research_capitalized}

-
    - <#list classGroups as group> - <#if (group.individualCount > 0) && group.displayName == "research" > - <#assign foundClassGroup = true /> - <#list group.classes as class> - <#if (class.name == "Academic Article" || class.name == "Book" || class.name == "Conference Paper" ||class.name == "Media Contribution" || class.name == "Report" || class.name == "Library Collection") && (class.individualCount > 0)> -
  • ${class.individualCount!} ${class.name}s
  • - - -
  • ${i18n().view_all}
  • - - - <#if !foundClassGroup> -

  • ${i18n().no_research_content_found}
  • +<#assign foundClassGroup = false /> +
    +

    ${i18n().research_capitalized}

    + -
    + + <#if !foundClassGroup> +

  • ${i18n().no_research_content_found}
  • + +
+
<#-- Renders the html for the academic departments section on the home page. --> @@ -154,7 +164,7 @@ var academicDepartments = [ <#if academicDeptDG?has_content> <#list academicDeptDG as resultRow> - <#assign uri = resultRow["deptURI"] /> + <#assign uri = resultRow["theURI"] /> <#assign label = resultRow["name"] /> <#assign localName = uri?substring(uri?last_index_of("/")) /> {"uri": "${localName}", "name": "${label}"}<#if (resultRow_has_next)>,