From 462dead3721b232055873ee4a64609249664343e Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 2 Apr 2009 14:06:33 -0500 Subject: [PATCH] Adding details to OPAC search results RSS, described in Bug 2973. This includes a change to Search.pm to add a variable, subtitle_nospan, in order to display subtitles in the feed without search term highlighting HTML. The modified template attempts to display Amazon, Syndetics, or Baker & Taylor book cover images. Google images are not included because they require Javascript. Signed-off-by: Galen Charlton --- C4/Search.pm | 1 + .../prog/en/modules/opac-opensearch.tmpl | 23 +++++++++++++------ 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index 10f8219c8a..571edf734c 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1311,6 +1311,7 @@ s/\[(.?.?.?.?)$tagsubf(.*?)]/$1$subfieldvalue$2\[$1$tagsubf$2]/g; # save an author with no tag, for the > link $oldbiblio->{'author_nospan'} = $oldbiblio->{'author'}; $oldbiblio->{'title_nospan'} = $oldbiblio->{'title'}; + $oldbiblio->{'subtitle_nospan'} = $oldbiblio->{'subtitle'}; # Add search-term highlighting to the whole record where they match using s if (C4::Context->preference("OpacHighlightedWords")){ my $searchhighlightblob; diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-opensearch.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-opensearch.tmpl index 8f594fbad1..1d231c7dd0 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-opensearch.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-opensearch.tmpl @@ -16,10 +16,10 @@ xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"> - <!-- TMPL_VAR NAME="LibraryName" ESCAPE="html" --> Search <!-- TMPL_IF NAME="query_desc" -->for '<!-- TMPL_VAR NAME="query_desc" ESCAPE="html" -->'<!-- /TMPL_IF --><!-- TMPL_IF NAME="limit_desc" --> with limit(s): '<!-- TMPL_VAR NAME="limit_desc" ESCAPE="html" -->'<!-- /TMPL_IF --> + <!-- TMPL_VAR NAME="LibraryName" ESCAPE="html" --> Search <!-- TMPL_IF NAME="query_desc" -->for '<!-- TMPL_VAR NAME="query_desc" ESCAPE="html" -->'<!-- /TMPL_IF --><!-- TMPL_IF NAME="limit_desc" --> with limit(s): '<!-- TMPL_VAR NAME="limit_desc" ESCAPE="html" -->'<!-- /TMPL_IF --> /cgi-bin/koha/opac-search.pl?&format=rss2 /cgi-bin/koha/opac-search.pl?&format=rss2" /> - Search results for '' with limit(s): '' at + Search results for '' with limit(s): '' at @@ -31,11 +31,20 @@ " startPage="" /> - <!-- TMPL_VAR NAME="title" ESCAPE="html" --> - /cgi-bin/koha/opac-detail.pl?biblionumber= - - - - + <!-- TMPL_VAR NAME="title_nospan" ESCAPE="html" --> <!-- TMPL_VAR NAME="subtitle_nospan" ESCAPE="html" --> + /cgi-bin/koha/opac-MARCdetail.pl?biblionumber=/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=/cgi-bin/koha/opac-detail.pl?biblionumber= + .01.TZZZZZZZ.jpg" alt="" /> +/SC.GIF&client=&type=xw10&upc=&oclc=" alt="" /> +">See Baker & Taylor" /> +

By . + + + . + , + . +

/cgi-bin/koha/opac-reserve.pl?biblionumber=">Place Hold on

+ ]]> /cgi-bin/koha/opac-detail.pl?biblionumber= -- 2.39.2