From f093a84974ae32f34de277cf0152f163d4c9a6c9 Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Thu, 1 May 2008 18:55:13 -0500 Subject: [PATCH] Fixing bug 1629: RSS Feeds of Search Results in OPAC --- C4/Auth.pm | 1 + .../prog/en/includes/doc-head-close.inc | 2 +- .../prog/en/modules/opac-opensearch.tmpl | 75 +++++++++++++++++++ .../prog/en/modules/opac-results.tmpl | 4 +- opac/opac-search.pl | 20 ++++- 5 files changed, 95 insertions(+), 7 deletions(-) create mode 100644 koha-tmpl/opac-tmpl/prog/en/modules/opac-opensearch.tmpl diff --git a/C4/Auth.pm b/C4/Auth.pm index fe8068d7b0..279c471f21 100755 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -322,6 +322,7 @@ sub get_template_and_user { TagsEnabled => C4::Context->preference("TagsEnabled"), GoogleJackets => C4::Context->preference("GoogleJackets"), AuthorisedValueImages => C4::Context->preference("AuthorisedValueImages"), + OPACBaseURL=> C4::Context->preference("OPACBaseURL"), ); } $template->param(listloop=>[{shelfname=>"Freelist", shelfnumber=>110}]); diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc b/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc index aaa0d1e57c..ddcafeb23b 100644 --- a/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc +++ b/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc @@ -41,4 +41,4 @@ //]]> - + OpenSearch" href="http:///cgi-bin/koha/opac-search.pl?format=opensearchdescription" /> diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-opensearch.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-opensearch.tmpl new file mode 100644 index 0000000000..2bf7a07050 --- /dev/null +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-opensearch.tmpl @@ -0,0 +1,75 @@ + + + + Search + Search the + koha opac + + /cgi-bin/koha/opac-search.pl?q={searchTerms}&pw={startPage?}&format=rss2"/> + + + + + + + + <!-- TMPL_VAR NAME="LibraryName" --> Search <!-- TMPL_IF NAME="query_desc" -->for '<!-- TMPL_VAR NAME="query_desc" -->'<!-- /TMPL_IF --><!-- TMPL_IF NAME="limit_desc" --> with limit(s): '<!-- TMPL_VAR NAME="limit_desc" -->'<!-- /TMPL_IF --> + http:///cgi-bin/koha/opac-search.pl?q=&format=rss2 + Search results for '' with limit(s): '' at + + + + + + + + + + <!-- TMPL_VAR NAME="LibraryName" --> Search <!-- TMPL_IF NAME="query_desc" -->for '<!-- TMPL_VAR NAME="query_desc" -->'<!-- /TMPL_IF --><!-- TMPL_IF NAME="limit_desc" --> with limit(s): '<!-- TMPL_VAR NAME="limit_desc" -->'<!-- /TMPL_IF --> + /cgi-bin/koha/opac-search.pl?q=&format=rss2"/> + + + + + + + + + " startPage="" /> + /cgi-bin/koha/opac-search.pl?q=pw=" type="text/html"/> + /cgi-bin/koha/opac-search.pl?q=pw=&format=atom" type="application/atom+xml"/> + /cgi-bin/koha/opac-search.pl?q=pw=1&format=atom" type="application/atom+xml"/> + /cgi-bin/koha/opac-search.pl?q=pw=2&format=atom" type="application/atom+xml"/> + /cgi-bin/koha/opac-search.pl?q=pw=4&format=atom" type="application/atom+xml"/> + /cgi-bin/koha/opac-search.pl?q=pw=42299&format=atom" type="application/atom+xml"/> + /cgi-bin/koha/opac-search.pl?format=opensearchdescription"/> + + + + <!-- TMPL_VAR NAME="title" --> + /cgi-bin/koha/opac-detail.pl?biblionumber="/> + + + + + + + + + + diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl index 5509058e5d..cac0738970 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl @@ -6,8 +6,8 @@ You did not specify any search criteria. -" /> + Search RSS Feed" href="http://?q=&=10&startPage=1" /> +