Lines 7-26
Link Here
|
7 |
<Tags>koha opac [% LibraryName |html %]</Tags> |
7 |
<Tags>koha opac [% LibraryName |html %]</Tags> |
8 |
<Contact>[% KohaAdminEmailAddress |html %]</Contact> |
8 |
<Contact>[% KohaAdminEmailAddress |html %]</Contact> |
9 |
<Url type="application/rss+xml" |
9 |
<Url type="application/rss+xml" |
10 |
template="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?q={searchTerms}&pw={startPage?}&format=rss2"/> |
10 |
template="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?q={searchTerms}&pw={startPage?}&format=rss"/> |
11 |
</OpenSearchDescription> |
11 |
</OpenSearchDescription> |
12 |
|
12 |
|
13 |
[% ELSE %] |
13 |
[% ELSE %] |
14 |
|
14 |
|
15 |
[% IF ( rss2 ) %] |
|
|
16 |
<rss version="2.0" |
15 |
<rss version="2.0" |
17 |
xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" |
16 |
xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" |
18 |
xmlns:dc="http://purl.org/dc/elements/1.1/" |
17 |
xmlns:dc="http://purl.org/dc/elements/1.1/" |
19 |
xmlns:atom="http://www.w3.org/2005/Atom"> |
18 |
xmlns:atom="http://www.w3.org/2005/Atom"> |
20 |
<channel> |
19 |
<channel> |
21 |
<title><![CDATA[[% LibraryName |html %] Search [% IF ( query_desc ) %]for '[% query_desc |html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc |html %]'[% END %]]]></title> |
20 |
<title><![CDATA[[% LibraryName |html %] Search [% IF ( query_desc ) %]for '[% query_desc |html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc |html %]'[% END %]]]></title> |
22 |
<link>[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi |html %][% limit_cgi |html %]&format=rss2</link> |
21 |
<link>[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi |html %][% limit_cgi |html %]&format=rss</link> |
23 |
<atom:link rel="self" type="application/rss+xml" href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi |uri %][% limit_cgi |uri %]&sort_by=[% sort_by | uri %]&format=rss2"/> |
22 |
<atom:link rel="self" type="application/rss+xml" href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi |uri %][% limit_cgi |uri %]&sort_by=[% sort_by |uri %]&format=rss"/> |
24 |
<description><![CDATA[ Search results [% IF ( query_desc ) %]for '[% query_desc |html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc |html %]'[% END %] at [% LibraryName |html %]]]></description> |
23 |
<description><![CDATA[ Search results [% IF ( query_desc ) %]for '[% query_desc |html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc |html %]'[% END %] at [% LibraryName |html %]]]></description> |
25 |
<opensearch:totalResults>[% total %]</opensearch:totalResults> |
24 |
<opensearch:totalResults>[% total %]</opensearch:totalResults> |
26 |
<opensearch:startIndex>[% offset %]</opensearch:startIndex> |
25 |
<opensearch:startIndex>[% offset %]</opensearch:startIndex> |
Lines 62-108
Link Here
|
62 |
[% END %] |
61 |
[% END %] |
63 |
</channel> |
62 |
</channel> |
64 |
</rss> |
63 |
</rss> |
65 |
[% END %] |
|
|
66 |
|
67 |
[% IF ( atom ) %] |
68 |
<feed xmlns="http://www.w3.org/2005/Atom" |
69 |
xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"> |
70 |
<id>[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi |html %][% limit_cgi |html %]&format=atom</id> |
71 |
<title>[% LibraryName |html %] Search [% IF ( query_desc ) %]for '[% query_desc |html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc |html %]'[% END %]</title> |
72 |
<link href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi |uri %][% limit_cgi |uri %]&format=rss2"/> |
73 |
<updated>[% timestamp %]</updated> |
74 |
<author> |
75 |
<name>[% LibraryName |html %]</name> |
76 |
</author> |
77 |
<!-- <id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id> --> |
78 |
<opensearch:totalResults>[% total %]</opensearch:totalResults> |
79 |
<opensearch:startIndex>[% page %]</opensearch:startIndex> |
80 |
[% IF ( results_per_page ) %] |
81 |
<opensearch:itemsPerPage>[% results_per_page %]</opensearch:itemsPerPage> |
82 |
[% ELSE %] |
83 |
<opensearch:itemsPerPage>20</opensearch:itemsPerPage> |
84 |
[% END %] |
85 |
<opensearch:Query role="request" searchTerms="[% query_desc |html %] [% limit_desc |html %]" startPage="[% page |html %]" /> |
86 |
<link rel="alternate" href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi %][% limit_cgi %]pw=[% page %]&format=atom" type="application/atom+xml"/> |
87 |
<link rel="self" href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi %][% limit_cgi %]&format=atom" type="application/atom+xml"/> |
88 |
<link rel="first" href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi %][% limit_cgi %]pw=1&format=atom" type="application/atom+xml"/> |
89 |
<link rel="previous" href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi %][% limit_cgi %]pw=2&format=atom" type="application/atom+xml"/> |
90 |
<link rel="next" href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi %][% limit_cgi %]pw=4&format=atom" type="application/atom+xml"/> |
91 |
<link rel="last" href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi %][% limit_cgi %]pw=42299&format=atom" type="application/atom+xml"/> |
92 |
<link rel="search" type="application/opensearchdescription+xml" href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?format=opensearchdescription"/> |
93 |
|
94 |
[% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %] |
95 |
<entry> |
96 |
<title>[% SEARCH_RESULT.title |html %]</title> |
97 |
<link href="[% OPACBaseURL %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]"/> |
98 |
<!-- <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id> --> |
99 |
<updated>[% SEARCH_RESULT.timestamp %]</updated> |
100 |
<content type="text"><!-- put content here --> |
101 |
</content> |
102 |
<id>[% OPACBaseURL %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]</id> |
103 |
</entry> |
104 |
[% END %] |
105 |
</feed> |
106 |
[% END %] |
107 |
|
64 |
|
108 |
[% END %] |
65 |
[% END %] |