my $lib = shift;
my $class = shift;
my $base = shift;
+ my $host = shift;
if ($version eq '1.0') {
print <<OSD;
<Url type="application/x-marcxml+xml"
template="$base/1.1/$lib/marcxml/$class/?searchTerms={searchTerms}&startPage={startPage?}&startIndex={startIndex?}&count={count?}&searchLang={language?}"/>
<Url type="text/html"
- template="$base/1.1/$lib/html-full/$class/?searchTerms={searchTerms}&startPage={startPage?}&startIndex={startIndex?}&count={count?}&searchLang={language?}"/>
+ template="https://$host/eg/opac/results?locg=$lib;query={searchTerms};page={startPage?};startIndex={startIndex?};count={count?};searchLang={language?}"/>
<LongName>Search $lib</LongName>
<Query role="example" searchTerms="harry+potter" />
<Developer>Mike Rylander for GPLS/PINES</Developer>
$class = 'keyword';
}
- return opensearch_osd($version, $lib, $class, $base);
+ return opensearch_osd($version, $lib, $class, $base, $host);
}
<link rel="stylesheet" type="text/css" href="[% ctx.opac_root %]/css/style.css" />
<title>[% l('Catalog - [_1]', ctx.page_title) %]</title>
<link rel="unapi-server" type="application/xml" title="unAPI" href="/opac/extras/unapi" />
+ <link type="application/opensearchdescription+xml" rel='search' title="[% l('Evergreen OpenSearch') %]" href="/opac/extras/opensearch/1.1/[% ctx.get_aou(ctx.search_ou).shortname %]/-/osd.xml" />
[% IF want_dojo %]
<style type="text/css">
@import "[% ctx.media_prefix %]/js/dojo/dijit/themes/tundra/tundra.css";