minor fix for page stuff
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 7 Jun 2005 21:39:11 +0000 (21:39 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 7 Jun 2005 21:39:11 +0000 (21:39 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@785 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/extras/opensearch.ttk
Open-ILS/src/extras/opensearch.xml

index c977929..c2a4999 100644 (file)
@@ -25,7 +25,7 @@ string = CGI.param('mr_search_query');
 location = CGI.param('mr_search_location');
 depth = CGI.param('mr_search_depth');
 limit = pagesize;
-offset = itempage * pagesize - 1;
+offset = ((itempage - 1) * pagesize) - 1;
 
 IF offset < 0;
        offset = 0;
index 2e2b491..9fa0dfa 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearchdescription/1.0/">
-  <Url>http://gapines.org/opensearch/?target=mr_result&amp;mr_search_type=keyword&amp;mr_search_query={searchTerms}&amp;itempage={startPage}&amp;mr_search_depth=0&amp;mr_search_location=1</Url>
+  <Url>http://gapines.org/opensearch/?target=mr_result&amp;mr_search_type=keyword&amp;mr_search_query={searchTerms}&amp;page={startPage}&amp;mr_search_depth=0&amp;mr_search_location=1</Url>
   <Format>http://a9.com/-/spec/opensearchrss/1.0/</Format>
   <ShortName>Pines</ShortName>
   <LongName>Pines Consortium Catalogue</LongName>