|
From: <rv...@us...> - 2009-07-02 22:52:48
|
Revision: 172
http://treebase.svn.sourceforge.net/treebase/?rev=172&view=rev
Author: rvos
Date: 2009-07-02 22:52:46 +0000 (Thu, 02 Jul 2009)
Log Message:
-----------
Adding template to represent SearchResults objects in RSS1.0
Added Paths:
-----------
trunk/treebase-web/src/main/webapp/WEB-INF/pages/searchResultsAsRDF.jsp
Added: trunk/treebase-web/src/main/webapp/WEB-INF/pages/searchResultsAsRDF.jsp
===================================================================
--- trunk/treebase-web/src/main/webapp/WEB-INF/pages/searchResultsAsRDF.jsp (rev 0)
+++ trunk/treebase-web/src/main/webapp/WEB-INF/pages/searchResultsAsRDF.jsp 2009-07-02 22:52:46 UTC (rev 172)
@@ -0,0 +1,33 @@
+<%@ include file="/common/taglibs.jsp"%>
+<% response.setContentType("application/rdf+xml"); %>
+<rdf:RDF
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:dcterms="http://purl.org/dc/terms/"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns="http://purl.org/rss/1.0/">
+ <channel rdf:about="${baseURL}/${phyloWSPath}?query=<c:out value="${normalizedCQLQuery}" escapeXml="true"/>&format=${format}&recordSchema=${recordSchema}">
+ <title>${phyloWSPath}</title>
+ <link>${baseURL}</link>
+ <description>${searchResultsThawed.description}</description>
+ <image rdf:resource="${domainAddress}<fmt:message key="icons.treebase.16px"/>"/>
+ <items>
+ <rdf:Seq>
+ <c:forEach var="result" items="${searchResultsThawed.results}" varStatus="status">
+ <rdf:li rdf:resource="${baseURL}/<c:out value="${result.phyloWSPath}"/>"/>
+ </c:forEach>
+ </rdf:Seq>
+ </items>
+ </channel>
+ <image rdf:about="${domainAddress}<fmt:message key="icons.treebase.16px"/>">
+ <title>${phyloWSPath}</title>
+ <link>${baseURL}</link>
+ <url>${domainAddress}<fmt:message key="icons.treebase.16px"/></url>
+ </image>
+ <c:forEach var="result" items="${searchResultsThawed.results}" varStatus="status">
+ <item rdf:about="${baseURL}/<c:out value="${result.phyloWSPath}"/>">
+ <title><c:out value="${result.namespacedGUID}"/></title>
+ <link>${baseURL}/<c:out value="${result.phyloWSPath}"/></link>
+ <description><c:out value="${result.namespacedGUID}"/></description>
+ </item>
+ </c:forEach>
+</rdf:RDF>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|