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

Adam Moran adam at webarchitects.co.uk
Mon Jun 5 11:41:13 BST 2006


Thanks Phil.

I've been a bit busy, but am dropping back on this now

-- Adam

26/03/06 10:41 Phil Shaw wrote:


> 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.
> 
> 
> _______________________________________________
> MKSearch-dev mailing list
> MKSearch-dev at lists.webarch.co.uk
> https://lists.webarch.co.uk/mailman/listinfo/mksearch-dev


-- 
Adam Moran
http://www.webarchitects.co.uk/
Bridging the Digital Divide




More information about the MKSearch-dev mailing list