[MKSearch-dev] [FEATURE REQ] Templates to enable RSS Auto-discovery

Phil Shaw phil at mkdoc.com
Sun Mar 26 10:41:19 BST 2006


On 27 Feb 2006 at 11:39, Adam Moran wrote:

Adam,

Just a note on how this would be done, a fairly small task.

1. The addition of a new 'ResultFeedTag' to the head of 
$mk_home/src/app/XhtmlQueryResult.jsp, e.g. <mk:result-feed 
extended="true"/>

2. A new ResultFeedTag would take the incoming request URL and change 
the type=html or no type parameter to type=rss and place the modified 
URL in the href attribute of an auto-discovery link.

Since the default case without a type parameter is designed into the 
current system, an immediate, though not complete, fix would be to 
add this to the head of XhtmlQueryResult.jsp (not tested):


<link rel="alternate"
        type="application/rss+xml"
        title="RSS result feed"
        href="<%= request.getRequestURL() + 
                        "?" +
                        request.getQueryString() +
                       "&amp;type=rss" %>" />

This assumes there is a query string and it does not already have a 
type parameter, so is not completely robust, but would do for 
demonstration purposes.

Best regards,

Phil




--
MKSearch (beta)

http://www.mksearch.mkdoc.org/

Free, open source metadata search engine with RDF storage and query.




More information about the MKSearch-dev mailing list