Permalink
Browse files

Added parameters to limit search by year

  • Loading branch information...
1 parent 2fc7daf commit 3ae1313ef451c324be10bec6a7b05f10c5f2731f @eatyourgreens eatyourgreens committed with Nov 22, 2009
Showing with 19 additions and 1 deletion.
  1. +19 −1 nmm/nmm.collections.search.xml
View
20 nmm/nmm.collections.search.xml
@@ -11,6 +11,24 @@
<bindings>
<select produces="XML" itemPath="rss.channel.item">
<urls>
+ <url>http://www.nmm.ac.uk/collections/requestHandlers/doQuickSearch.cfm?searchterm={searchterm}&amp;authority={authority}&amp;category={category}&amp;startyear={startyear}&amp;endyear={endyear}&amp;sortby={sortby}&amp;format=rss</url>
+ </urls>
+ <paging model="offset">
+ <start id="startrow" default="1"/>
+ <pagesize id="per_page" max="20"/>
+ <total default="20"/>
+ </paging>
+ <inputs>
+ <key id="searchterm" type="xs:string" paramType="path" required="false" default=""/>
+ <key id="authority" type="xs:string" paramType="path" required="false" default="category"/>
+ <key id="category" type="xs:string" paramType="path" required="false" default=""/>
+ <key id="sortby" type="xs:string" paramType="path" required="false" default="rank"/>
+ <key id="startyear" type="xs:string" paramType="path" required="true"/>
+ <key id="endyear" type="xs:string" paramType="path" required="true"/>
+ </inputs>
+ </select>
+ <select produces="XML" itemPath="rss.channel.item">
+ <urls>
<url>http://www.nmm.ac.uk/collections/requestHandlers/doQuickSearch.cfm?searchterm={searchterm}&amp;authority={authority}&amp;category={category}&amp;sortby={sortby}&amp;format=rss</url>
</urls>
<paging model="offset">
@@ -19,7 +37,7 @@
<total default="20"/>
</paging>
<inputs>
- <key id="searchterm" type="xs:string" paramType="path" required="true"/>
+ <key id="searchterm" type="xs:string" paramType="path" required="false" default=""/>
<key id="authority" type="xs:string" paramType="path" required="false" default="category"/>
<key id="category" type="xs:string" paramType="path" required="false" default=""/>
<key id="sortby" type="xs:string" paramType="path" required="false" default="rank"/>

0 comments on commit 3ae1313

Please sign in to comment.