Project

General

Profile

« Previous | Next » 

Revision 32293

Closing #348 - added descriptor for opensearch and produce the correct result

View differences:

openSearchDescriptor.jsp
1
<%@page contentType="application/xml" %><%@ page isELIgnored="false" %><?xml version="1.0" encoding="UTF-8"?>
1
<%@page contentType="text/xml" %><%@ page isELIgnored="false" %><?xml version="1.0" encoding="UTF-8"?>
2 2
 <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
3 3
	<ShortName>OpenAIRE Search</ShortName>
4 4
	<Description>Use OpenAIRE to search for research results</Description>
5 5
	<Tags>OpenAIRE</Tags>
6 6
	<Contact>https://www.openaire.eu/support/helpdesk</Contact>
7
	<Url type="application/rss+xml"
8
		template="${baseUrl}/api/publications?keywords={searchTerms}&amp;page={startPage}&amp;size={count}&amp;format=rss"/>
9
</OpenSearchDescription>
7
	<Url type="text/html"
8
		template="http://${pageContext.request.localName}/search/publications?keywords={searchTerms}&amp;page={startPage}&amp;size={count}&amp;format=rss"/>
9
   	<Image height="16" width="16" type="image/x-icon">http://www.openaire.eu/templates/yoo_solar/favicon.ico</Image>
10
</OpenSearchDescription>

Also available in: Unified diff