View | Details | Raw Unified | Return to bug 16111
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-opensearch.tt (-100 / +141 lines)
Lines 1-109 Link Here
1
<?xml version='1.0' encoding='utf-8'  ?>
1
<?xml version='1.0' encoding='utf-8'  ?>
2
[% USE Koha %]
2
[% USE Koha %]
3
[% BLOCK item_description %]
4
        <![CDATA[
5
            [% IF ( OPACAmazonCoverImages ) %]
6
                [% IF ( SEARCH_RESULT.normalized_isbn ) %]
7
                    <img src="https://images-na.ssl-images-amazon.com/images/P/[% SEARCH_RESULT.normalized_isbn | html %].01.TZZZZZZZ.jpg" alt="" />
8
                [% END %]
9
            [% END %]
10
            [% IF ( SyndeticsEnabled ) %]
11
                [% IF ( SyndeticsCoverImages ) %]
12
                    [% IF ( SEARCH_RESULT.content_identifier_exists ) %]
13
                        <img src="http://www.syndetics.com/index.aspx?isbn=[% SEARCH_RESULT.normalized_isbn | html %]/SC.GIF&amp;client=[% SEARCH_RESULT.SyndeticsClientCode %]&amp;type=xw10[% IF ( SEARCH_RESULT.normalized_upc ) %]&amp;upc=[% SEARCH_RESULT.normalized_upc | html %][% END %][% IF ( SEARCH_RESULT.normalized_oclc ) %]&amp;oclc=[% SEARCH_RESULT.normalized_oclc | html %][% END %]" alt="" />
14
                    [% ELSE %]
15
                        <img src="http://www.syndetics.com/index.aspx?isbn=[% SEARCH_RESULT.normalized_isbn | html %]/SC.GIF&amp;client=[% SyndeticsClientCode %]&amp;type=xw10&amp;upc=[% SEARCH_RESULT.normalized_upc | html %]&amp;oclc=[% SEARCH_RESULT.normalized_oclc | html %]" alt="" />
16
                    [% END %]
17
                [% END %]
18
            [% END %]
19
            [% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) %]
20
            [% IF ( BakerTaylorEnabled ) %]
21
                [% IF bt_id %]
22
                    <a href="https://[% BakerTaylorBookstoreURL | url %][% bt_id | html %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | html %]" /></a>
23
                [% END %]
24
            [% END %]
25
            <p>
26
                [% IF ( SEARCH_RESULT.author ) %]By [% SEARCH_RESULT.author | html %]. [% END %]
27
                [% IF ( SEARCH_RESULT.place ) %][% SEARCH_RESULT.place | html %] [% END %]
28
                [% IF ( SEARCH_RESULT.publishercode ) %][% SEARCH_RESULT.publishercode | html %][% END %]
29
                [% IF ( SEARCH_RESULT.publicationyear ) %]
30
                    [% SEARCH_RESULT.publicationyear | html %]
31
                [% ELSE %]
32
                    [% IF ( SEARCH_RESULT.copyrightdate ) %] [% SEARCH_RESULT.copyrightdate | html %][% END %]
33
                [% END %]
34
                [% IF ( SEARCH_RESULT.pages ) %]. [% SEARCH_RESULT.pages | html %][% END %]
35
                [% IF ( SEARCH_RESULT.notes ) %], [% SEARCH_RESULT.notes | html %][% END %]
36
                [% IF ( SEARCH_RESULT.size ) %] [% SEARCH_RESULT.size | html %]. [% END %]
37
                [% IF ( SEARCH_RESULT.isbn ) %] [% SEARCH_RESULT.isbn | html %][% END %]
38
               </p>
39
            [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
40
                <p><a href="[% OPACBaseURL %]/cgi-bin/koha/opac-reserve.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]">Place Hold on <i>[% SEARCH_RESULT.title | html %]</i></a></p>
41
            [% END %]
42
        ]]>
43
[% END %]
44
[% BLOCK feed_url %][% OPACBaseURL | html %]/cgi-bin/koha/opac-search.pl?[% query_cgi | html %][% limit_cgi |uri %]&amp;count=[% countrss |uri %]&amp;offset=[% offset %]&amp;sort_by=acqdate_dsc&amp;format=[% END %]
45
3
[% IF ( opensearchdescription ) %]
46
[% IF ( opensearchdescription ) %]
4
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
5
   <ShortName>[% LibraryName | html %] Search</ShortName>
6
   <Description>Search the [% LibraryName | html %]</Description>
7
   <Tags>koha opac [% LibraryName | html %]</Tags>
8
   <Contact>[% KohaAdminEmailAddress | html %]</Contact>
9
   <Url type="application/rss+xml"
10
        template="[% OPACBaseURL | html %]/cgi-bin/koha/opac-search.pl?q={searchTerms}&amp;pw={startPage?}&amp;format=rss"/>
11
</OpenSearchDescription>
12
47
13
[% ELSE %]
48
    <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
49
       <ShortName>[% LibraryName | html %] Search</ShortName>
50
       <Description>Search the [% LibraryName | html %]</Description>
51
       <Tags>koha opac [% LibraryName | html %]</Tags>
52
       <Contact>[% KohaAdminEmailAddress | html %]</Contact>
53
       <Url type="application/rss+xml"
54
            template="[% OPACBaseURL | html %]/cgi-bin/koha/opac-search.pl?q={searchTerms}&amp;pw={startPage?}&amp;format=rss"/>
55
    </OpenSearchDescription>
14
56
15
[% IF ( rss ) %]
16
<rss version="2.0"
17
      xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"
18
      xmlns:dc="http://purl.org/dc/elements/1.1/"
19
      xmlns:atom="http://www.w3.org/2005/Atom">
20
   <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>
22
     <link>[% OPACBaseURL | html %]/cgi-bin/koha/opac-search.pl?[% query_cgi | html %][% limit_cgi | html %]&amp;format=rss</link>
23
     <atom:link rel="self" type="application/rss+xml" href="[% OPACBaseURL | html %]/cgi-bin/koha/opac-search.pl?[% query_cgi |uri %][% limit_cgi |uri %]&amp;sort_by=[% sort_by | uri %]&amp;format=atom"/>
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>
25
     <opensearch:totalResults>[% total | html %]</opensearch:totalResults>
26
     <opensearch:startIndex>[% offset | html %]</opensearch:startIndex>
27
     [% IF ( results_per_page ) %]
28
       <opensearch:itemsPerPage>[% results_per_page | html %]</opensearch:itemsPerPage>
29
     [% ELSE %]
30
       <opensearch:itemsPerPage>20</opensearch:itemsPerPage>
31
     [% END %]
32
	 [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
33
     <atom:link rel="search" type="application/opensearchdescription+xml" href="[% OPACBaseURL | html %]/cgi-bin/koha/opac-search.pl?[% SEARCH_RESULT.query_cgi | html  |uri %][% SEARCH_RESULT.limit_cgi | html |uri %]&amp;sort_by=[% SEARCH_RESULT.sort_by |uri %]&amp;format=opensearchdescription"/>
34
     <opensearch:Query role="request" searchTerms="[% SEARCH_RESULT.query_desc |uri %][% SEARCH_RESULT.limit_desc |uri %]" startPage="[% SEARCH_RESULT.page | html %]" />
35
     <item>
36
       <title>[% SEARCH_RESULT.title | html %] [% FOREACH subtitl IN SEARCH_RESULT.subtitle %], [% subtitl.subfield | html %][% END %]</title>
37
       <dc:identifier>ISBN [% SEARCH_RESULT.isbn | html %]</dc:identifier>
38
       <link>[% IF ( SEARCH_RESULT.BiblioDefaultViewmarc ) %][% OPACBaseURL | html %]/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %][% ELSE %][% IF ( SEARCH_RESULT.BiblioDefaultViewisbd ) %][% OPACBaseURL | html %]/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %][% ELSE %][% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %][% END %][% END %]</link>
39
       <description><![CDATA[
40
[% IF ( OPACAmazonCoverImages ) %][% IF ( SEARCH_RESULT.normalized_isbn ) %]<img src="https://images-na.ssl-images-amazon.com/images/P/[% SEARCH_RESULT.normalized_isbn | html %].01.TZZZZZZZ.jpg" alt="" />[% END %][% END %]
41
[% IF ( SyndeticsEnabled ) %][% IF ( SyndeticsCoverImages ) %][% IF ( SEARCH_RESULT.content_identifier_exists ) %]<img src="http://www.syndetics.com/index.aspx?isbn=[% SEARCH_RESULT.normalized_isbn | html %]/SC.GIF&amp;client=[% SEARCH_RESULT.SyndeticsClientCode | html %]&amp;type=xw10[% IF ( SEARCH_RESULT.normalized_upc ) %]&amp;upc=[% SEARCH_RESULT.normalized_upc | html %][% END %][% IF ( SEARCH_RESULT.normalized_oclc ) %]&amp;oclc=[% SEARCH_RESULT.normalized_oclc | html %][% END %]" alt="" />
42
[% ELSE %]
57
[% ELSE %]
43
<img src="http://www.syndetics.com/index.aspx?isbn=[% SEARCH_RESULT.normalized_isbn | html %]/SC.GIF&amp;client=[% SyndeticsClientCode | html %]&amp;type=xw10&amp;upc=[% SEARCH_RESULT.normalized_upc | html %]&amp;oclc=[% SEARCH_RESULT.normalized_oclc | html %]" alt="" />
58
    [% IF ( rss ) %]
44
[% END %][% END %][% END %]
59
        <rss version="2.0"
60
              xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"
61
              xmlns:dc="http://purl.org/dc/elements/1.1/"
62
              xmlns:atom="http://www.w3.org/2005/Atom">
63
            <channel>
64
                <title><![CDATA[[% LibraryName | html %] Search [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %]]]></title>
65
                <link>[% PROCESS feed_url %]rss</link>
66
                <atom:link rel="self" type="application/rss+xml" href="[% PROCESS feed_url %]rss"/>
67
                <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>
68
                <opensearch:totalResults>[% total | html %]</opensearch:totalResults>
69
                <opensearch:startIndex>[% offset | html %]</opensearch:startIndex>
70
                [% IF ( results_per_page ) %]
71
                    <opensearch:itemsPerPage>[% results_per_page | html %]</opensearch:itemsPerPage>
72
                [% ELSE %]
73
                    <opensearch:itemsPerPage>20</opensearch:itemsPerPage>
74
                [% END %]
75
                <atom:link rel="search" type="application/opensearchdescription+xml" href="[% OPACBaseURL | html %]/cgi-bin/koha/opac-search.pl?[% query_cgi | uri %][% limit_cgi | uri %]&amp;sort_by=[% sort_by | uri %]&amp;format=opensearchdescription"/>
76
                <opensearch:Query role="request" searchTerms="[% query_desc | uri %][% limit_desc | uri %]" startPage="[% page | html %]" />
77
                [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
78
                    <item>
79
                        <title>[% SEARCH_RESULT.title | html %] [% FOREACH subtitl IN SEARCH_RESULT.subtitle %], [% subtitl.subfield | html %][% END %]</title>
80
                        <dc:identifier>ISBN [% SEARCH_RESULT.isbn | html %]</dc:identifier>
81
                        <link>
82
                            [% IF ( BiblioDefaultViewmarc ) %]
83
                                [% OPACBaseURL | html %]/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]
84
                            [% ELSE %]
85
                                [% IF ( BiblioDefaultViewisbd ) %]
86
                                    [% OPACBaseURL | html %]/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]
87
                                [% ELSE %]
88
                                    [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]
89
                                [% END %]
90
                            [% END %]
91
                        </link>
92
                        <description>
93
                            [% PROCESS item_description %]
94
                        </description>
95
                        <guid>[% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]</guid>
96
                    </item>
97
                [% END %]
98
            </channel>
99
        </rss>
100
    [% END # /IF rss %]
45
101
46
[% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) | html %]
102
    [% IF ( atom ) %]
47
[% IF ( BakerTaylorEnabled ) %][% IF bt_id %]<a href="https://[% BakerTaylorBookstoreURL |url %][% bt_id | html %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL |url %][% bt_id | html %]" /></a>[% END %][% END %]
103
        <feed xmlns="http://www.w3.org/2005/Atom" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">
48
	   <p>[% IF ( SEARCH_RESULT.author ) %]By [% SEARCH_RESULT.author | html %]. [% END %]
104
            <id>[% OPACBaseURL | html %]/cgi-bin/koha/opac-search.pl?[% query_cgi | html %][% limit_cgi | html %]&amp;format=atom</id>
49
	   [% IF ( SEARCH_RESULT.place ) %][% SEARCH_RESULT.place | html %] [% END %][% IF ( SEARCH_RESULT.publishercode ) %][% SEARCH_RESULT.publishercode | html %][% END %][% IF ( SEARCH_RESULT.publicationyear ) %] [% SEARCH_RESULT.publicationyear | html %]
105
            <title>[% LibraryName | html %] Search [% IF ( query_desc ) %]for '[% query_desc %]'[% END %][% IF ( limit_desc ) %]&nbsp;with limit(s):&nbsp;'[% limit_desc | html %]'[% END %]</title>
50
                    [% ELSE %][% IF ( SEARCH_RESULT.copyrightdate ) %] [% SEARCH_RESULT.copyrightdate | html %][% END %][% END %]
106
            <link href="[% PROCESS feed_url %]atom"/>
51
                        [% IF ( SEARCH_RESULT.pages ) %]. [% SEARCH_RESULT.pages | html %][% END %]
107
            [% IF ( timestamp ) %]<updated>[% timestamp | html %]</updated>[% END %]
52
                        [% IF ( SEARCH_RESULT.notes ) %], [% SEARCH_RESULT.notes | html %][% END %]
108
            <author>
53
                        [% IF ( SEARCH_RESULT.size ) %] [% SEARCH_RESULT.size | html %]. [% END %]
109
                <name>[% LibraryName | html %]</name>
54
                        [% IF ( SEARCH_RESULT.isbn ) %] [% SEARCH_RESULT.isbn | html %][% END %]
110
            </author>
55
       </p>
111
            <!-- <id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id> -->
56
[% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
112
            <opensearch:totalResults>[% total | html %]</opensearch:totalResults>
57
<p><a href="[% OPACBaseURL | html %]/cgi-bin/koha/opac-reserve.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]">Place Hold on <i>[% SEARCH_RESULT.title | html %]</i></a></p>
113
            <opensearch:startIndex>[% page | html %]</opensearch:startIndex>
58
[% END %]
114
            [% IF ( results_per_page ) %]
59
						]]></description>
115
                <opensearch:itemsPerPage>[% results_per_page | html %]</opensearch:itemsPerPage>
60
       <guid>[% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]</guid>
116
            [% ELSE %]
61
     </item>
117
                <opensearch:itemsPerPage>20</opensearch:itemsPerPage>
62
	 [% END %]
118
            [% END %]
63
   </channel>
119
            <opensearch:Query role="request" searchTerms="[% query_desc | url %][% limit_desc | url%]" startPage="[% page | html %]" />
64
</rss>
120
            <link rel="alternate" href="[% OPACBaseURL | html %]/cgi-bin/koha/opac-search.pl?[% query_cgi | html %][% limit_cgi | html %]pw=[% page | html %]&amp;format=atom" type="application/atom+xml"/>
65
[% END %]
121
            <link rel="self" href="[% PROCESS feed_url %]atom" type="application/atom+xml"/>
122
            <link rel="first" href="[% OPACBaseURL | html %]/cgi-bin/koha/opac-search.pl?[% query_cgi | html %][% limit_cgi | html %]pw=1&amp;format=atom" type="application/atom+xml"/>
123
            <link rel="previous" href="[% OPACBaseURL | html %]/cgi-bin/koha/opac-search.pl?[% query_cgi | html %][% limit_cgi | html %]pw=2&amp;format=atom" type="application/atom+xml"/>
124
            <link rel="next" href="[% OPACBaseURL | html %]/cgi-bin/koha/opac-search.pl?[% query_cgi | html %][% limit_cgi | html %]pw=4&amp;format=atom" type="application/atom+xml"/>
125
            <link rel="last" href="[% OPACBaseURL | html %]/cgi-bin/koha/opac-search.pl?[% query_cgi | html %][% limit_cgi | html %]pw=42299&amp;format=atom" type="application/atom+xml"/>
126
            <link rel="search" type="application/opensearchdescription+xml" href="[% OPACBaseURL | html %]/cgi-bin/koha/opac-search.pl?format=opensearchdescription"/>
66
127
67
[% IF ( atom ) %]
128
            [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
68
<feed xmlns="http://www.w3.org/2005/Atom"
129
                <entry>
69
       xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">
130
                    <title>[% SEARCH_RESULT.title | html %] [% FOREACH subtitl IN SEARCH_RESULT.subtitle %], [% subtitl.subfield | html %][% END %]</title>
70
   <id>[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi | html %][% limit_cgi | html %]&amp;format=atom</id>
131
                    [% IF ( SEARCH_RESULT.BiblioDefaultViewmarc ) %]
71
   <title>[% LibraryName | html %] Search [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %]&nbsp;with limit(s):&nbsp;'[% limit_desc | html %]'[% END %]</title>
132
                        <link href="[% OPACBaseURL | html %]/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]" />
72
    <link href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi |uri %][% limit_cgi |uri %]&amp;format=atom"/>
133
                    [% ELSE %]
73
   <updated>[% timestamp %]</updated>
134
                        [% IF ( SEARCH_RESULT.BiblioDefaultViewisbd ) %]
74
   <author>
135
                            <link href="[% OPACBaseURL | html %]/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]" />
75
     <name>[% LibraryName | html %]</name>
136
                        [% ELSE %]
76
   </author>
137
                            <link href="[% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]" />
77
   <!-- <id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id> -->
138
                        [% END %]
78
   <opensearch:totalResults>[% total | html %]</opensearch:totalResults>
139
                    [% END %]
79
   <opensearch:startIndex>[% page | html %]</opensearch:startIndex>
140
                    [% IF ( SEARCH_RESULT.dateaccessioned ) %]<updated>[% SEARCH_RESULT.dateaccessioned | html %]</updated>[% END %]
80
   [% IF ( results_per_page ) %]
141
                    <id>[% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]</id>
81
     <opensearch:itemsPerPage>[% results_per_page | html %]</opensearch:itemsPerPage>
142
                    <summary type="html">
82
   [% ELSE %]
143
                        [% PROCESS item_description %]
83
     <opensearch:itemsPerPage>20</opensearch:itemsPerPage>
144
                    </summary>
84
   [% END %]
145
                </entry>
85
   <opensearch:Query role="request" searchTerms="[% SEARCH_RESULT.query_desc | html %] [% SEARCH_RESULT.limit_desc | html %]" startPage="[% page | html %]" />
146
            [% END %]
86
   <link rel="alternate" href="[% OPACBaseURL | html %]/cgi-bin/koha/opac-search.pl?[% SEARCH_RESULT.query_cgi | html  %][% SEARCH_RESULT.limit_cgi | html %]pw=[% page %]&amp;format=atom" type="application/atom+xml"/>
147
        </feed>
87
   <link rel="self" href="[% OPACBaseURL | html %]/cgi-bin/koha/opac-search.pl?[% SEARCH_RESULT.query_cgi | html  %][% SEARCH_RESULT.limit_cgi | html %]&amp;format=atom" type="application/atom+xml"/>
148
    [% END # /IF atom %]
88
   <link rel="first" href="[% OPACBaseURL | html %]/cgi-bin/koha/opac-search.pl?[% SEARCH_RESULT.query_cgi | html  %][% SEARCH_RESULT.limit_cgi | html %]pw=1&amp;format=atom" type="application/atom+xml"/>
89
   <link rel="previous" href="[% OPACBaseURL | html %]/cgi-bin/koha/opac-search.pl?[% SEARCH_RESULT.query_cgi | html  %][% SEARCH_RESULT.limit_cgi | html %]pw=2&amp;format=atom" type="application/atom+xml"/>
90
   <link rel="next" href="[% OPACBaseURL | html %]/cgi-bin/koha/opac-search.pl?[% SEARCH_RESULT.query_cgi | html  %][% SEARCH_RESULT.limit_cgi | html %]pw=4&amp;format=atom" type="application/atom+xml"/>
91
   <link rel="last" href="[% OPACBaseURL | html %]/cgi-bin/koha/opac-search.pl?[% SEARCH_RESULT.query_cgi | html  %][% SEARCH_RESULT.limit_cgi | html %]pw=42299&amp;format=atom" type="application/atom+xml"/>
92
   <link rel="search" type="application/opensearchdescription+xml" href="[% OPACBaseURL | html %]/cgi-bin/koha/opac-search.pl?format=opensearchdescription"/>
93
149
94
   [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
150
[% END # /IF opensearchdescription %]
95
   <entry>
96
     <title>[% SEARCH_RESULT.title | html %] [% FOREACH subtitl IN SEARCH_RESULT.subtitle %], [% subtitl.subfield | html %][% END %]</title>
97
     <link>[% IF ( SEARCH_RESULT.BiblioDefaultViewmarc ) %][% OPACBaseURL | html %]/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %][% ELSE %][% IF ( SEARCH_RESULT.BiblioDefaultViewisbd ) %][% OPACBaseURL | html %]/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %][% ELSE %][% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %][% END %][% END %]</link>
98
     <!-- <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id> -->
99
     <updated>[% SEARCH_RESULT.timestamp | html %]</updated>
100
     <id>[% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]</id>
101
     <content type="text">
102
103
     </content>
104
   </entry>
105
   [% END %]
106
 </feed>
107
[% END %]
108
109
[% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt (-5 / +6 lines)
Lines 17-24 Link Here
17
        [% Asset.css("css/jquery.rating.css") | $raw %]
17
        [% Asset.css("css/jquery.rating.css") | $raw %]
18
    [% END %]
18
    [% END %]
19
[% END %]
19
[% END %]
20
20
[% BLOCK rss_feed %]
21
<link rel="alternate" type="application/rss+xml" title="[% LibraryName | html %] Search RSS feed" href="[% OPACBaseURL | html %]/cgi-bin/koha/opac-search.pl?[% query_cgi | url %][% limit_cgi | uri %]&amp;count=[% countrss | uri %]&amp;sort_by=acqdate_dsc&amp;format=rss" />
21
    [% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi | url %][% limit_cgi |uri %]&amp;count=[% countrss |uri %]&amp;offset=[% offset | html %]&amp;sort_by=acqdate_dsc&amp;format=rss
22
[% END %]
23
<link rel="alternate" type="application/rss+xml" title="[% LibraryName |html %] Search RSS feed" href="[% PROCESS rss_feed %]" />
22
</head>
24
</head>
23
25
24
[% INCLUDE 'bodytag.inc' bodyid='results' bodyclass='scrollto' %]
26
[% INCLUDE 'bodytag.inc' bodyid='results' bodyclass='scrollto' %]
Lines 43-49 Link Here
43
                        <strong>No results found!</strong>
45
                        <strong>No results found!</strong>
44
                        <p>
46
                        <p>
45
                            [% IF ( searchdesc ) %]
47
                            [% IF ( searchdesc ) %]
46
                                No results found for that in [% LibraryName | html %] catalog. <a href="[% OPACBaseURL | html %]/cgi-bin/koha/opac-search.pl?[% query_cgi | url %][% limit_cgi | html | url %]&amp;format=rss" class="rsssearchlink noprint"><img src="[% interface %]/[% theme | html %]/images/feed-icon-16x16.png" alt="Subscribe to this search" title="Subscribe to this search" border="0" class="rsssearchicon"/></a>
48
                                No results found for that in [% LibraryName | html %] catalog. <a href="[% PROCESS rss_feed %]" class="rsssearchlink noprint"><img src="[% interface | html %]/[% theme | html %]/images/feed-icon-16x16.png" alt="Subscribe to this search" title="Subscribe to this search" border="0" class="rsssearchicon"/></a>
47
                            [% ELSE %]
49
                            [% ELSE %]
48
                                You did not specify any search criteria.
50
                                You did not specify any search criteria.
49
                            [% END %]
51
                            [% END %]
Lines 87-93 Link Here
87
                                [% END %]
89
                                [% END %]
88
                            ).
90
                            ).
89
                        [% END %]
91
                        [% END %]
90
                        <a href="[% OPACBaseURL | html %]/cgi-bin/koha/opac-search.pl?[% query_cgi | url %][% limit_cgi | html | url %]&amp;count=[% countrss | html %]&amp;sort_by=acqdate_dsc&amp;format=rss" class="rsssearchlink noprint"><img src="[% interface | html %]/[% theme | html %]/images/feed-icon-16x16.png" alt="Subscribe to this search" title="Subscribe to this search" class="rsssearchicon"/></a>
92
                        <a href="[% PROCESS rss_feed %]" class="rsssearchlink noprint"><img src="[% interface | html %]/[% theme | html %]/images/feed-icon-16x16.png" alt="Subscribe to this search" title="Subscribe to this search" class="rsssearchicon"/></a>
91
                    [% END # / IF total %]
93
                    [% END # / IF total %]
92
                    </p>
94
                    </p>
93
                [% END # / IF searchdesc %]
95
                [% END # / IF searchdesc %]
94
- 

Return to bug 16111