No Jira issue. Links to departments on the home page were not working if the uri was not the default namespace.

This commit is contained in:
Tim Worrall 2014-12-03 12:35:55 -05:00
parent 4966d98539
commit 1770c41a35
2 changed files with 3 additions and 4 deletions

View file

@ -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)>,</#if>
{"uri": "${uri?url}", "name": "${label}"}<#if (resultRow_has_next)>,</#if>
</#list>
</#if>
];