Tweaks to opac-detail, opac-results. Many changes to opac-shelves.tmpl following...
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-results.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <!-- TMPL_VAR NAME="LibraryNameTitle" --> &rsaquo; 
3 <!-- TMPL_IF NAME="searchdesc" -->
4     Results of Search for '<!-- TMPL_VAR NAME="searchdesc" -->'
5 <!-- TMPL_ELSE -->
6     You did not specify any search criteria
7 <!-- /TMPL_IF -->
8
9 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
10 </head>
11 <body>
12 <!--TMPL_INCLUDE NAME="masthead.inc" -->
13
14 <div id="doc3" class="yui-t1">
15    <div id="bd">
16    
17 <!-- <!-- TMPL_IF NAME="total" -->
18 <div id="breadcrumbs" class="yui-g">
19 <p><strong>&ldquo;<!-- TMPL_VAR NAME="searchdesc" -->&rdquo;</strong> returned <!-- TMPL_VAR NAME="total" --> results.</p>
20 </div>
21 <!-- TMPL_ELSE -->
22 <div id="breadcrumbs" class="yui-g">
23 <!-- TMPL_IF NAME="searchdesc" -->
24 <h3>No Result found !</h3>
25 <p>
26     No results match your search for <span style="font-weight: bold;">&ldquo;<!-- TMPL_VAR NAME="searchdesc" -->&rdquo;</span> in <!-- TMPL_VAR NAME="LibraryName" --> Catalog.
27 </p>
28 <!-- TMPL_ELSE -->
29 <h3> No result found !</h3>
30 <p>
31     You did not specify any search criteria.
32 </p>
33 </div>
34 <!-- /TMPL_IF -->
35 <!-- /TMPL_IF --> -->
36
37 <div id="yui-main">
38
39         <div class="yui-b">
40   <!-- TMPL_IF NAME="koha_spsuggest" -->
41         Did you mean:
42     <ul style="list-style: none;">
43         <!-- TMPL_LOOP NAME="SPELL_SUGGEST" -->
44         <li>
45             <a href="/cgi-bin/koha/opac-search.pl?q=<!-- TMPL_VAR NAME="spsuggestion" -->"><!-- TMPL_VAR NAME="spsuggestion" --></a>
46         </li>
47         <!-- /TMPL_LOOP -->
48     </ul>
49 <!-- /TMPL_IF -->
50
51 <!-- TMPL_IF NAME="query_error" -->
52 <div class="error">
53         <h4>Error:</h4>
54     <!-- TMPL_VAR NAME="query_error" -->
55 </div>
56 <!-- /TMPL_IF -->       
57         
58 <!-- Search Results Table -->
59 <!-- TMPL_IF NAME="total" -->
60 <!-- TMPL_IF NAME="scan" -->
61     <h1>Scan Index:</h1>
62     <form action="/cgi-bin/koha/opac-search.pl" method="post">
63         <table>
64             <tr>
65                 <td>
66                     Scan Index for: <input type="text" name="qf" id="scan-index" size="35" value="" />
67                 </td>
68             </tr>
69             <tr>
70                 <td>
71                     <label for="scan-index">Indexed in:</label>
72                     <select name="idx" id="scan-index">
73                         <option value="">Any Word</option>
74                         <option value="any/phr:">Any Phrase</option>
75                         <option value="ti:">Title</option>
76                         <option value="ti,phr:">Title Phrase</option>
77                         <option value="au,phr:">Author</option>
78                         <option value="su:">Subject</option>
79                         <option value="su,phr:">Subject Phrase</option>
80                         <option value="se:">Series</option>
81                         <option value="pb:">Publisher</option>
82                         <option value="nt:">Notes</option>
83                         <option value="se:">Series Title</option>
84                         <option value="sn:">ISBN</option>
85                         <option value="ss:">ISSN</option>
86                     </select>
87                     <input type="hidden" name="scan" value="1" />
88                 </td>
89             </tr>
90         </table>
91     </form>
92     
93     <form action="/cgi-bin/koha/opac-search.pl" method="post">
94         <table>
95             <tr>
96                 <th>Term/Phrase</th>
97                 <th>Count</th>
98             </tr>
99             <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
100             <tr<!-- TMPL_IF name="even" --> class="highlight"<!-- /TMPL_IF -->>
101                 <td>
102                     <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>
103                 </td>
104                 <td>
105                     <!-- TMPL_VAR NAME="subtitle" -->
106                 </td>
107             </tr>
108             <!-- /TMPL_LOOP -->
109         </table>
110     </form>
111 <!-- TMPL_ELSE -->
112
113     <div class="searchresults">
114 <form action="/cgi-bin/koha/opac-search.pl" method="post" name="bookbag_form" id="bookbag_form">
115     
116     <!-- TMPL_IF NAME="searchdesc" -->
117     <input type="hidden" name="q" value="<!-- TMPL_VAR NAME="searchdesc" escape="html" -->" />
118     <!-- /TMPL_IF -->
119     
120         
121
122                 
123         <!-- TABLE RESULTS START -->
124         <table>
125                 <tr><td colspan="3"><p class="searchresults">
126                 <!-- 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 -->
127         
128         <!-- TMPL_IF name="opacbookbag" --><a href="#" onclick="SelectAll()"><img src="/opac-tmpl/prog/images/checkall.gif" alt="Check All" border="0" /></a>
129             <input type="button" class="icon shelf" value="Add checked items to book bag" onclick="addMultiple(); return false;" /> 
130             <input type="reset" value="Clear All" class="icon shelf" />
131         <!-- /TMPL_IF --></p></td></tr>
132             <!-- Actual Search Results -->
133             <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
134             <!-- TMPL_IF name="even" -->
135                 <tr class="highlight">
136             <!-- TMPL_ELSE -->
137                 <tr>
138             <!-- /TMPL_IF -->
139                     <td><!-- TMPL_IF NAME="AmazonContent" -->
140                         <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
141                             <img src="<!-- TMPL_IF NAME="isbn" -->http://images.amazon.com/images/P/<!-- TMPL_VAR name="isbn" -->.01.TZZZZZZZ.jpg<!-- TMPL_ELSE -->http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif<!-- /TMPL_IF -->" alt="image" class="thumbnail" />
142                         </a>
143                         <!-- TMPL_ELSE -->
144                         <!-- TMPL_IF name="imageurl" -->
145                         <img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" />
146                         <!-- TMPL_ELSE -->
147                         <!-- TMPL_VAR name="description" -->
148                         <!-- /TMPL_IF -->
149                         <!-- /TMPL_IF -->
150                     </td>
151                     <td><!-- TMPL_IF name="BiblioDefaultViewmarc" --><a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?bib=<!-- 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?bib=<!-- 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?bib=<!-- 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="/search?q=au:<!-- TMPL_VAR NAME="author" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="author" --></a><!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF -->
152                                 <p> <!-- TMPL_IF name="publicationyear" --> - <!-- TMPL_VAR name="publicationyear" --><!-- /TMPL_IF -->
153                                                 <!-- TMPL_IF name="publishercode" -->- <!-- TMPL_VAR name="publishercode" --><!-- /TMPL_IF -->
154                                                 <!-- TMPL_IF name="place" --> ; <!-- TMPL_VAR name="place" --><!-- /TMPL_IF -->
155                                                 <!-- TMPL_IF name="pages" --> - <!-- TMPL_VAR name="pages" --><!-- /TMPL_IF -->
156                                                 <!-- TMPL_IF name="notes" --> : <!-- TMPL_VAR name="notes" --><!-- /TMPL_IF -->
157                                                 <!-- TMPL_IF name="size" --> ; <!-- TMPL_VAR name="size" --><!-- /TMPL_IF -->
158                                                 <!-- TMPL_IF name="timestamp" --> <i>(modified on <!-- TMPL_VAR name="timestamp" -->)</i><!-- /TMPL_IF --></p>
159                                 <p class="availability">
160 <!-- TMPL_IF NAME="items_loop" -->
161 <span class="available"><strong>Copies available at:</strong> <!-- TMPL_LOOP NAME="items_loop" -->
162                 <!-- <!-- TMPL_VAR NAME="branchcode" --> -->
163                 <!-- TMPL_VAR NAME="branchname" -->
164                 (<!-- TMPL_VAR NAME="count" -->),
165 <!-- /TMPL_LOOP --></span>
166 <!-- TMPL_ELSE -->
167 <span class="unavailable">No copies available: </span>
168 <!-- /TMPL_IF -->
169 <span class="unavailable">
170 <!-- TMPL_IF NAME="onloancount" --> On loan (<!-- TMPL_VAR NAME="onloancount" -->), <!-- /TMPL_IF -->
171 <!-- TMPL_IF NAME="wthdrawncount" --> Withdrawn (<!-- TMPL_VAR NAME="wthdrawncount" -->), <!-- /TMPL_IF -->
172 <!-- TMPL_IF NAME="itemlostcount" --> Lost (<!-- TMPL_VAR NAME="itemlostcount" -->)<!-- /TMPL_IF -->
173 <!-- TMPL_IF NAME="orderedcount" --> On order (<!-- TMPL_VAR NAME="orderedcount" -->)<!-- /TMPL_IF --></span>
174                                 </p>
175                 <p><!-- TMPL_UNLESS NAME="norequests" --><!-- TMPL_IF NAME="opacuserlogin" --><a class="reserve" href="/cgi-bin/koha/opac-reserve.pl?bib=<!-- 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" -->
176                                     <a href="/cgi-bin/koha/opac-search.pl?q=callnum:<!-- TMPL_VAR NAME="classification" ESCAPE="URL" -->">
177                                         <!-- TMPL_VAR NAME="classification" -->
178                                     </a>
179                                 <!-- /TMPL_IF --></p> 
180                         </td>
181                     <!-- /TMPL_IF -->
182                                         <td width="20%">
183                         <!-- TMPL_IF NAME="items_loop" -->
184                         <span class="available">
185                             <!-- TMPL_LOOP NAME="items_loop" -->
186                                 <!-- TMPL_VAR NAME="count" --> <!-- TMPL_VAR NAME="branchcode" -->
187                                 <i>
188                                 <!-- TMPL_IF name="location" --> <!-- TMPL_VAR name="location" --><!-- /TMPL_IF -->
189                                 <!-- TMPL_IF name="itemcallnumber" --> <!-- TMPL_VAR name="itemcallnumber" --><!-- /TMPL_IF -->
190                                 <!-- TMPL_IF name="classification" -->
191                                     <a href="/cgi-bin/koha/opac-search.pl?q=callnum:<!-- TMPL_VAR NAME="classification" ESCAPE="URL" -->">
192                                         <!-- TMPL_VAR NAME="classification" -->
193                                     </a>
194                                 <!-- /TMPL_IF -->
195                                 </i>
196                                 <br />
197                                 <span class="unavailable">
198                                     <!-- TMPL_IF NAME="onloancount" --> On loan (due date <!-- TMPL_VAR name="due_date" -->)<br /> <!-- /TMPL_IF -->
199                                     <!-- TMPL_IF NAME="wthdrawncount" --> Withdrawn (<!-- TMPL_VAR NAME="wthdrawncount" -->),<br /> <!-- /TMPL_IF -->
200                                     <!-- TMPL_IF NAME="itemlostcount" --> Lost (<!-- TMPL_VAR NAME="itemlostcount" -->)<br /><!-- /TMPL_IF -->
201                                     <!-- TMPL_IF NAME="orderedcount" --> On order (<!-- TMPL_VAR NAME="orderedcount" -->)<!-- /TMPL_IF -->
202                                 </span>
203                             <!-- /TMPL_LOOP -->
204                         </span>
205                         <!-- /TMPL_IF -->
206                     </td>
207                 </tr>
208                 <!-- /TMPL_LOOP -->
209             </table>
210     </form>
211         </div>
212     <!-- /TMPL_IF -->
213     
214     <!-- TMPL_IF NAME="PAGE_NUMBERS" -->
215     <div class="pages">
216         <!-- Row of numbers corresponding to search result pages -->
217         <!-- TMPL_IF NAME="previous_page_offset" -->
218         <a class="nav" href="/cgi-bin/koha/opac-search.pl?q=<!-- TMPL_VAR NAME="searchdesc" -->&amp;offset=<!-- TMPL_VAR NAME="previous_page_offset" --><!-- TMPL_IF NAME="sort_by" -->&amp;sort_by=<!-- TMPL_VAR NAME="sort_by" --><!-- /TMPL_IF --><!-- TMPL_IF NAME="limit" -->&amp;limit=<!-- TMPL_VAR NAME="limit" --><!-- /TMPL_IF -->">
219             &lt;&lt; Previous
220         </a>
221         <!-- /TMPL_IF -->
222         <!-- TMPL_LOOP NAME="PAGE_NUMBERS" -->
223         <!-- TMPL_IF NAME="highlight" --><span class="current"><!-- TMPL_VAR NAME="pg" --></span>
224         <!-- TMPL_ELSE -->
225         <a class="nav" href="/cgi-bin/koha/opac-search.pl?q=<!-- TMPL_VAR NAME="searchdesc" -->&amp;offset=<!-- TMPL_VAR NAME="offset" --><!-- TMPL_IF NAME="sort_by" -->&amp;sort_by=<!-- TMPL_VAR NAME="sort_by" --><!-- /TMPL_IF --><!-- TMPL_IF NAME="limit" -->&amp;limit=<!-- TMPL_VAR NAME="limit" --><!-- /TMPL_IF -->"><!-- TMPL_VAR NAME="pg" --></a>
226         <!-- /TMPL_IF -->
227         <!-- /TMPL_LOOP -->
228         <!-- TMPL_IF NAME="next_page_offset" --><a class="nav" href="/cgi-bin/koha/opac-search.pl?q=<!-- TMPL_VAR NAME="searchdesc" -->&amp;offset=<!-- TMPL_VAR NAME="next_page_offset" --><!-- TMPL_IF NAME="sort_by" -->&amp;sort_by=<!-- TMPL_VAR NAME="sort_by" --><!-- /TMPL_IF --><!-- TMPL_IF NAME="limit" -->&amp;limit=<!-- TMPL_VAR NAME="limit" --><!-- /TMPL_IF -->">Next &gt;&gt;</a><!-- /TMPL_IF -->
229     </div>
230     <!-- /TMPL_IF -->
231     
232     <!-- TMPL_IF NAME="outer_sup_results_loop" -->
233     <h3><!-- TMPL_LOOP NAME="outer_sup_results_loop" --></h3>
234     <!-- TMPL_IF NAME="inner_sup_results_loop" -->
235     <!-- TMPL_VAR NAME="servername" -->
236     <!-- TMPL_LOOP NAME="inner_sup_results_loop" -->
237     <div><a href="<!-- TMPL_VAR NAME="link" -->"><!-- TMPL_VAR NAME="title" --></a></div>
238     <!-- /TMPL_LOOP -->
239     <!-- /TMPL_IF -->
240     <!-- /TMPL_LOOP -->
241     <!-- /TMPL_IF -->
242     
243     <!-- TMPL_ELSE -->
244     
245     
246     <!-- /TMPL_IF -->
247         
248         <!-- TMPL_IF name="suggestion" -->
249 <!-- 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 -->
250 <!-- /TMPL_IF -->
251     
252 </div>
253 </div>
254 <div class="yui-b">
255  <!-- ######### -->
256         <!-- FACETS START -->
257         <!-- TMPL_IF NAME="opacfacets" -->
258             <!-- TMPL_IF NAME="facets_loop" -->
259                 <div id="facets" >
260                     <h4>Refine Your Search</h4>
261                     <ul>
262                         <!-- TMPL_LOOP NAME="facets_loop" -->
263                         <li id="<!-- TMPL_VAR NAME="type_id" -->"><!-- TMPL_VAR NAME="type_label" -->
264                             <ul>
265                                 <!-- TMPL_LOOP NAME="facets" -->
266                                 <li>
267                                     <a href="/cgi-bin/koha/opac-search.pl?q=<!-- TMPL_VAR NAME="searchdesc" --> and <!-- TMPL_VAR NAME="type_link_value" -->:<!-- TMPL_VAR NAME="facet_link_value" -->" title="<!-- TMPL_VAR NAME="facet_title_value" -->">
268                                         <!-- TMPL_VAR NAME="facet_label_value" -->
269                                     </a> (<!-- TMPL_VAR NAME="facet_count" -->)
270                                 </li>
271                                 <!-- /TMPL_LOOP -->
272                                 <!-- TMPL_IF NAME="expandable" -->
273                                 <li class="showmore">
274                                     <a href="/cgi-bin/koha/opac-search.pl?q=<!-- TMPL_VAR NAME="searchdesc" -->&amp;expand=<!-- TMPL_VAR NAME="expand" -->#<!-- TMPL_VAR NAME="type_id" -->">
275                                         Show More
276                                     </a>
277                                 </li>
278                                 <!-- /TMPL_IF -->
279                             </ul>
280                         </li>
281                         <!-- /TMPL_LOOP -->
282                     </ul>
283                 </div>
284             <!-- /TMPL_IF -->
285         <!-- /TMPL_IF -->
286         <!-- FACETS END -->
287         
288         <!-- ######### -->
289 </div>
290 </div>
291
292 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->