fixes to search results list, ccl.properties tweak
[wip/koha-chris_n.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-results.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog &rsaquo; 
3 <!-- TMPL_IF NAME="searchdesc" -->
4         Results of Search <!-- TMPL_IF NAME="query_desc" -->for '<!-- TMPL_VAR NAME="query_desc" -->'<!-- /TMPL_IF --><!-- TMPL_IF NAME="limit_desc" -->&nbsp;with limit(s):&nbsp;'<!-- TMPL_VAR NAME="limit_desc" -->'<!-- /TMPL_IF -->
5 <!-- TMPL_ELSE -->
6     You did not specify any search criteria
7 <!-- /TMPL_IF -->
8
9 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
10
11 <link rel="alternate" type="application/rss+xml" title="Koha - RSS"
12 href="/cgi-bin/koha/opac-rss.pl?q=<!-- TMPL_VAR name="query_cgi"--><!-- TMPL_VAR NAME="limit_cgi" -->">
13 </head>
14 <body>
15 <!--TMPL_INCLUDE NAME="masthead.inc" -->
16
17 <div id="doc3" class="yui-t1">
18    <div id="bd">
19
20         <div id="yui-main">
21
22         <div class="yui-b">
23   <!-- TMPL_IF NAME="koha_spsuggest" -->
24         Did you mean:
25     <ul style="list-style: none;">
26         <!-- TMPL_LOOP NAME="SPELL_SUGGEST" -->
27         <li>
28             <a href="/cgi-bin/koha/opac-search.pl?q=<!-- TMPL_VAR NAME="spsuggestion" -->"><!-- TMPL_VAR NAME="spsuggestion" --></a>
29         </li>
30         <!-- /TMPL_LOOP -->
31     </ul>
32 <!-- /TMPL_IF -->
33
34 <!-- TMPL_IF NAME="query_error" -->
35 <div class="error">
36         <h4>Error:</h4>
37     <!-- TMPL_VAR NAME="query_error" -->
38 </div>
39 <!-- /TMPL_IF -->       
40         
41 <!-- Search Results Table -->
42 <!-- TMPL_IF NAME="total" -->
43 <!-- TMPL_IF NAME="scan" -->
44     <h1>Scan Index:</h1>
45     <form action="/cgi-bin/koha/opac-search.pl" method="get">
46         <table>
47             <tr>
48                 <td>
49                     Scan Index for: <input type="text" name="q" id="scan-index" size="35" value="" />
50                 </td>
51             </tr>
52             <tr>
53                 <td>
54                     <label for="scan-index">Indexed in:</label>
55                     <select name="idx" id="scan-index">
56                         <option value="">Any Word</option>
57                         <option value="kw,phr:">Any Phrase</option>
58                         <option value="ti:">Title</option>
59                         <option value="ti,phr:">Title Phrase</option>
60                         <option value="au,phr:">Author</option>
61                         <option value="su:">Subject</option>
62                         <option value="su,phr:">Subject Phrase</option>
63                         <option value="se:">Series</option>
64                         <option value="pb:">Publisher</option>
65                         <option value="nt:">Notes</option>
66                         <option value="se:">Series Title</option>
67                         <option value="sn:">ISBN</option>
68                         <option value="ss:">ISSN</option>
69                     </select>
70                     <input type="hidden" name="scan" value="1" />
71                 </td>
72             </tr>
73         </table>
74     </form>
75     
76     <form action="/cgi-bin/koha/opac-search.pl" method="get">
77         <table>
78             <tr>
79                 <th>Term/Phrase</th>
80                 <th>Count</th>
81             </tr>
82             <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
83             <tr<!-- TMPL_IF name="even" --> class="highlight"<!-- /TMPL_IF -->>
84                 <td>
85                     <a href="/cgi-bin/koha/opac-search.pl?q=<!-- TMPL_VAR NAME="scan_use" escape="url" -->&quot;<!-- TMPL_VAR NAME="title" -->&quot;"><!-- TMPL_VAR NAME="title" --></a>
86                 </td>
87                 <td>
88                     <!-- TMPL_VAR NAME="subtitle" -->
89                 </td>
90             </tr>
91             <!-- /TMPL_LOOP -->
92         </table>
93     </form>
94 <!-- TMPL_ELSE -->
95
96     <div class="searchresults">
97         <form action="/cgi-bin/koha/opac-search.pl" method="get" name="bookbag_form" id="bookbag_form">
98                 <!-- TMPL_IF NAME="searchdesc" -->
99                 <!-- TMPL_LOOP NAME="QUERY_INPUTS"-->
100                 <input type="hidden" name="<!-- TMPL_VAR NAME="input_name" -->" value="<!-- TMPL_VAR NAME="input_value" -->"/>
101                 <!-- /TMPL_LOOP -->
102                 <!-- TMPL_LOOP NAME="LIMIT_INPUTS"-->
103                 <input type="hidden" name="<!-- TMPL_VAR NAME="input_name" -->" value="<!-- TMPL_VAR NAME="input_value" -->"/>
104                 <!-- /TMPL_LOOP -->
105                 <!-- /TMPL_IF -->
106
107         <!-- TABLE RESULTS START -->
108         <table>
109                 <tr><td colspan="3"><p class="searchresults">
110                 <!-- RE-SORT START --> <label><select id="sort_by" name="sort_by" onchange="document.bookbag_form.submit();"> <!--TMPL_INCLUDE Name="resort_form.inc"--> </select></label> <!-- RESORT END -->
111         
112         <!-- TMPL_IF name="opacbookbag" --><a href="#" onclick="SelectAll()"><img src="/opac-tmpl/prog/images/checkall.gif" alt="Check All" border="0" /></a>
113             <input type="button" class="icon shelf" value="Add checked items to book bag" onclick="addMultiple(); return false;" /> 
114                 <!-- TMPL_IF NAME="virtualshelves" --><input type="button" class="icon shelf" value="Add Checked Items to Virtual Shelf" onclick="<!-- TMPL_IF NAME="loggedinusername" -->if (vShelfAdd()) {Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?' + vShelfAdd());} <!-- TMPL_ELSE --> alert('You must be logged in to create or add to Virtual Shelves'); <!-- /TMPL_IF -->  return false;" /><!-- /TMPL_IF -->
115             <input type="reset" value="Clear All" class="icon shelf" />
116         <!-- /TMPL_IF --></p></td></tr>
117             <!-- Actual Search Results -->
118             <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
119             <!-- TMPL_IF name="even" -->
120                 <tr class="highlight">
121             <!-- TMPL_ELSE -->
122                 <tr>
123             <!-- /TMPL_IF -->
124                     <td><!-- TMPL_IF NAME="AmazonContent" -->
125                         <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_IF NAME="isbn" --><img src="http://images.amazon.com/images/P/<!-- TMPL_VAR name="isbn" -->.01.TZZZZZZZ.jpg" alt="" class="thumbnail" /><!-- TMPL_ELSE --><img src="http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif" alt="" class="thumbnail" /><!-- /TMPL_IF -->
126                         </a>
127                         <!-- TMPL_ELSE -->
128                         <!-- TMPL_IF name="imageurl" -->
129                         <img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" />
130                         <!-- TMPL_ELSE -->
131                         <!-- TMPL_VAR name="description" -->
132                         <!-- /TMPL_IF -->
133                         <!-- /TMPL_IF -->
134                     </td>
135                     <td><!-- TMPL_VAR NAME="result_number" -->. <!-- TMPL_IF name="BiblioDefaultViewmarc" --><a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" --></a><!-- TMPL_ELSE --><!-- TMPL_IF name="BiblioDefaultViewisbd" --><a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" --></a><!-- TMPL_ELSE --><a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" --></a><!-- /TMPL_IF --><!-- /TMPL_IF --> <!-- TMPL_IF NAME="author" -->by <a href="/cgi-bin/koha/opac-search.pl?q=au:<!-- TMPL_VAR NAME="author" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="author" --></a><!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF -->
136                                 <p> <!-- TMPL_IF name="publicationyear" --> - <!-- TMPL_VAR name="publicationyear" --><!-- /TMPL_IF -->
137                                                 <!-- TMPL_IF name="publishercode" -->- <!-- TMPL_VAR name="publishercode" --><!-- /TMPL_IF -->
138                                                 <!-- TMPL_IF name="place" --> ; <!-- TMPL_VAR name="place" --><!-- /TMPL_IF -->
139                                                 <!-- TMPL_IF name="pages" --> - <!-- TMPL_VAR name="pages" --><!-- /TMPL_IF -->
140                                                 <!-- TMPL_IF name="notes" --> : <!-- TMPL_VAR name="notes" --><!-- /TMPL_IF -->
141                                                 <!-- TMPL_IF name="size" --> ; <!-- TMPL_VAR name="size" --><!-- /TMPL_IF -->
142                                                 <!-- TMPL_IF name="timestamp" --> <i>(modified on <!-- TMPL_VAR name="timestamp" -->)</i><!-- /TMPL_IF -->
143                                 </p>
144                                 <p><!-- TMPL_VAR NAME="searchhighlightblob" --></p>
145                                 <p class="availability">
146                                         <!-- TMPL_IF NAME="available_items_loop" -->
147                                         <span class="available"><strong>Copies available at:</strong>
148                                         <!-- TMPL_LOOP NAME="available_items_loop" -->
149                                         <!-- TMPL_IF NAME="branchname" --><!-- TMPL_VAR NAME="branchname" --><!-- /TMPL_IF -->
150                                         (<!-- TMPL_VAR NAME="count" -->),
151                                         <!-- /TMPL_LOOP -->
152                                         </span>
153                                         <!-- TMPL_ELSE -->
154                                         <span class="unavailable">No items available:</span>
155                                         <!-- /TMPL_IF -->
156                                         <span class="unavailable">
157                                         <!-- TMPL_IF NAME="onloancount" --> On loan (<!-- TMPL_VAR NAME="onloancount" -->), <!-- /TMPL_IF -->
158                                         <!-- TMPL_IF NAME="wthdrawncount" --> Withdrawn (<!-- TMPL_VAR NAME="wthdrawncount" -->), <!-- /TMPL_IF -->
159                                         <!-- TMPL_IF NAME="itemlostcount" --> Lost (<!-- TMPL_VAR NAME="itemlostcount" -->),<!-- /TMPL_IF -->
160                                         <!-- TMPL_IF NAME="damagedcount" --> Damaged (<!-- TMPL_VAR NAME="damagedcount" -->),<!-- /TMPL_IF -->
161                                         <!-- TMPL_IF NAME="orderedcount" --> On order (<!-- TMPL_VAR NAME="orderedcount" -->),<!-- /TMPL_IF -->
162                                         </span>
163                                 </p>
164
165                                 <p><!-- TMPL_UNLESS NAME="norequests" --><!-- TMPL_IF NAME="opacuserlogin" --><a class="reserve" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Place Reserve</a><!-- /TMPL_IF --><!-- /TMPL_UNLESS --> <!--TMPL_IF NAME="opacbookbag" --><input type="checkbox" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" title="Click to add to book bag" /> <label for="bib<!-- TMPL_VAR NAME="biblionumber" -->"><!-- /TMPL_IF --><img src="<!-- TMPL_VAR NAME="themelang" -->/images/<!-- TMPL_VAR NAME="itemtype" -->.gif" alt="<!-- TMPL_VAR NAME="ccode" -->" title="<!-- TMPL_VAR NAME="ccode" -->" /><!--TMPL_IF NAME="opacbookbag" --></label><!-- /TMPL_IF --> <!-- TMPL_IF name="classification" -->
166                                     <a href="/cgi-bin/koha/opac-search.pl?q=callnum:<!-- TMPL_VAR NAME="classification" ESCAPE="URL" -->">
167                                         <!-- TMPL_VAR NAME="classification" -->
168                                     </a>
169 <!-- /TMPL_IF --></p> 
170                                 </td>
171                 </tr>
172                 <!-- /TMPL_LOOP -->
173             </table>
174     </form>
175         </div>
176     <!-- /TMPL_IF -->
177         <!-- TMPL_INCLUDE NAME="page-numbers.inc" -->
178
179     <!-- TMPL_ELSE -->
180     <!-- /TMPL_IF -->
181
182         <!-- TMPL_IF name="suggestion" -->
183 <!-- TMPL_IF NAME="AnonSuggestions" --><div class="suggestion">Not finding what you're looking for?<br />  Make a <a href="/cgi-bin/koha/opac-suggestions.pl?op=add">purchase suggestion</a></div><!-- TMPL_ELSE --><!-- TMPL_IF NAME="loggedinusername" --><div class="suggestion">Not finding what you're looking for?<br />  Make a <a href="/cgi-bin/koha/opac-suggestions.pl?op=add">purchase suggestion</a></div><!-- /TMPL_IF --><!-- /TMPL_IF -->
184 <!-- /TMPL_IF -->
185     
186 </div>
187 </div>
188 <div class="yui-b">
189         <!-- FACETS START -->
190         <!-- TMPL_IF NAME="opacfacets" -->
191                 <!-- TMPL_INCLUDE NAME="opac-facets.inc" -->
192         <!-- /TMPL_IF -->
193         <!-- FACETS END -->
194 </div>
195 </div>
196
197 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->