March 30, 2005

Embedding RSS Search...

If the combination of RSS and search is to be widely used, it has to be easy to implement...

So here's a test - I have a working RSS feed from the OU search engine, I have an RSSViewer script on the OUseful pages somewhere that will take a feed and embed it in a page, so surely I should just be able to plug them together, and e.g. embed a search of the OU on the term "technology"...?

Easy peasy....

Next step, of course, is to use a proper search box...

Anyway - if you want to embed an OU keyword search query'n'results in your own webpage, here's some code (just replace KEYWORD with whatever your keyword happens to be...or use several, separated with + signs (and no spaces) at the end of the query...

<script language="JavaScript" type="text/javascript" src="http://ouseful.open.ac.uk/rssViewerJS.php?rssURL=http://ouseful.open.ac.uk/OUSearchScraperRSS.php?q=search+engine" ></script>

It's just as easy to do the same with an OU library search, of course...

First the code you'll need:

<script language="JavaScript" type="text/javascript" src="http://ouseful.open.ac.uk/rssViewerJS.php?rssURL=http://ouseful.open.ac.uk/OUVoyagerScraperRSS.php?q=technology" ></script>

Posted by ajh59 at March 30, 2005 12:42 AM
Comments