Adding XML search results NIHVIVO-1303. Adding menu page browse NIHVIVO-632.

This commit is contained in:
bdc34 2010-12-09 23:53:56 +00:00
parent a420b6261a
commit 377ca44940
10 changed files with 503 additions and 141 deletions

View file

@ -2,6 +2,8 @@
<section id="#intro-menupage" role="region">
<h3>People</h3>
<@widget name="browse" />
<section id="content-foaf-person" role="region">
<h4>Visual Graph</h4>
@ -141,4 +143,6 @@
<h1 class="fn"><strong>foaf:lastName, foaf:fisrtName</strong><br>core:preferredTitle <br><span class="org">Albert Mann Library</span></h1>
</article>
</section>
<@dumpAll/>
</section>

View file

@ -0,0 +1,21 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<?xml version="1.0" encoding="UTF-8"?>
<responce>
<lst name="responseHeader">
<str name="q">${querytext?xml}</str>
<#if nextPage??>
<str name="nextPage">${nextPage?xml}</str>
</#if>
</lst>
<result name="responce" numFound="${hitsLength}" start="${startIndex}" >
<#list individuals as individual>
<doc>
<str name="uri">${individual.uri}</str>
<str name="name">${individual.name}</str>
</doc>
</#list>
</result>
</responce>

View file

@ -0,0 +1,52 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Browse widget -->
<#macro assets>
<#--
Are there stylesheets or scripts needed?
${stylesheets.add("/css/browse.css")}
${scripts.add("/js/browse.js")}
-->
</#macro>
<#macro allClassGroups>
<section>
<h2>Macro allClassGroups from widget-browse.ftl</h2>
<ul>
<#list vclassGroupList as group>
<li><a href="${urls.base}${urlMapping}?classgroupUri=${group.uri?url}">${group.publicName}</a></li>
</#list>
</ul>
</section>
</#macro>
<#macro classGroup>
<section>
<h2>Macro classGroup from widget-browse.ftl</h2>
<div>
There are ${classes?size} classes in classGroup ${classGroup.publicName}.
Only classes with instances are included.
</div>
<ul>
<#list classes as class>
<li><a href="${urls.base}${urlMapping}?classgroupUri=${classGroup.uri?url}&vclassUri=${class.uri?url}">${class.name}</a></li>
</#list>
</ul>
</section>
</#macro>
<#macro vclass>
<section>
<h2>vclass ${class.name} from ${classGroup.publicName}</h2>
This has classGroup, classes, and class. It doesn't yet have a list of individuals in the class.
</section>
</#macro>
<#macro vclassAlpha>
<section role="region">
<h2>vclassAlpha</h2>
</section>
</#macro>