Add multiple items to virt shelf, and bugvix virtual shelf adds.
[koha.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 for '<!-- TMPL_VAR NAME="query_desc" --><!-- TMPL_VAR NAME="limit_desc" -->'
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         <div id="yui-main">
18
19         <div class="yui-b">
20   <!-- TMPL_IF NAME="koha_spsuggest" -->
21         Did you mean:
22     <ul style="list-style: none;">
23         <!-- TMPL_LOOP NAME="SPELL_SUGGEST" -->
24         <li>
25             <a href="/cgi-bin/koha/opac-search.pl?q=<!-- TMPL_VAR NAME="spsuggestion" -->"><!-- TMPL_VAR NAME="spsuggestion" --></a>
26         </li>
27         <!-- /TMPL_LOOP -->
28     </ul>
29 <!-- /TMPL_IF -->
30
31 <!-- TMPL_IF NAME="query_error" -->
32 <div class="error">
33         <h4>Error:</h4>
34     <!-- TMPL_VAR NAME="query_error" -->
35 </div>
36 <!-- /TMPL_IF -->       
37         
38 <!-- Search Results Table -->
39 <!-- TMPL_IF NAME="total" -->
40 <!-- TMPL_IF NAME="scan" -->
41     <h1>Scan Index:</h1>
42     <form action="/cgi-bin/koha/opac-search.pl" method="get">
43         <table>
44             <tr>
45                 <td>
46                     Scan Index for: <input type="text" name="q" id="scan-index" size="35" value="" />
47                 </td>
48             </tr>
49             <tr>
50                 <td>
51                     <label for="scan-index">Indexed in:</label>
52                     <select name="idx" id="scan-index">
53                         <option value="">Any Word</option>
54                         <option value="kw,phr:">Any Phrase</option>
55                         <option value="ti:">Title</option>
56                         <option value="ti,phr:">Title Phrase</option>
57                         <option value="au,phr:">Author</option>
58                         <option value="su:">Subject</option>
59                         <option value="su,phr:">Subject Phrase</option>
60                         <option value="se:">Series</option>
61                         <option value="pb:">Publisher</option>
62                         <option value="nt:">Notes</option>
63                         <option value="se:">Series Title</option>
64                         <option value="sn:">ISBN</option>
65                         <option value="ss:">ISSN</option>
66                     </select>
67                     <input type="hidden" name="scan" value="1" />
68                 </td>
69             </tr>
70         </table>
71     </form>
72     
73     <form action="/cgi-bin/koha/opac-search.pl" method="get">
74         <table>
75             <tr>
76                 <th>Term/Phrase</th>
77                 <th>Count</th>
78             </tr>
79             <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
80             <tr<!-- TMPL_IF name="even" --> class="highlight"<!-- /TMPL_IF -->>
81                 <td>
82                     <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>
83                 </td>
84                 <td>
85                     <!-- TMPL_VAR NAME="subtitle" -->
86                 </td>
87             </tr>
88             <!-- /TMPL_LOOP -->
89         </table>
90     </form>
91 <!-- TMPL_ELSE -->
92
93     <div class="searchresults">
94         <form action="/cgi-bin/koha/opac-search.pl" method="get" name="bookbag_form" id="bookbag_form">
95                 <!-- TMPL_IF NAME="searchdesc" -->
96                 <!-- TMPL_LOOP NAME="QUERY_INPUTS"-->
97                 <input type="hidden" name="<!-- TMPL_VAR NAME="input_name" -->" value="<!-- TMPL_VAR NAME="input_value" -->"/>
98                 <!-- /TMPL_LOOP -->
99                 <!-- TMPL_LOOP NAME="LIMIT_INPUTS"-->
100                 <input type="hidden" name="<!-- TMPL_VAR NAME="input_name" -->" value="<!-- TMPL_VAR NAME="input_value" -->"/>
101                 <!-- /TMPL_LOOP -->
102                 <!-- /TMPL_IF -->
103
104         <!-- TABLE RESULTS START -->
105         <table>
106                 <tr><td colspan="3"><p class="searchresults">
107                 <!-- 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 -->
108         
109         <!-- TMPL_IF name="opacbookbag" --><a href="#" onclick="SelectAll()"><img src="/opac-tmpl/prog/images/checkall.gif" alt="Check All" border="0" /></a>
110             <input type="button" class="icon shelf" value="Add checked items to book bag" onclick="addMultiple(); return false;" /> 
111                 <!-- 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 -->
112             <input type="reset" value="Clear All" class="icon shelf" />
113         <!-- /TMPL_IF --></p></td></tr>
114             <!-- Actual Search Results -->
115             <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
116             <!-- TMPL_IF name="even" -->
117                 <tr class="highlight">
118             <!-- TMPL_ELSE -->
119                 <tr>
120             <!-- /TMPL_IF -->
121                     <td><!-- TMPL_IF NAME="AmazonContent" -->
122                         <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 -->
123                         </a>
124                         <!-- TMPL_ELSE -->
125                         <!-- TMPL_IF name="imageurl" -->
126                         <img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" />
127                         <!-- TMPL_ELSE -->
128                         <!-- TMPL_VAR name="description" -->
129                         <!-- /TMPL_IF -->
130                         <!-- /TMPL_IF -->
131                     </td>
132                     <td><!-- TMPL_VAR NAME="result_number" -->. <!-- 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="/cgi-bin/koha/opac-search.pl?q=au:<!-- TMPL_VAR NAME="author" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="author" --></a><!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF -->
133                                 <p> <!-- TMPL_IF name="publicationyear" --> - <!-- TMPL_VAR name="publicationyear" --><!-- /TMPL_IF -->
134                                                 <!-- TMPL_IF name="publishercode" -->- <!-- TMPL_VAR name="publishercode" --><!-- /TMPL_IF -->
135                                                 <!-- TMPL_IF name="place" --> ; <!-- TMPL_VAR name="place" --><!-- /TMPL_IF -->
136                                                 <!-- TMPL_IF name="pages" --> - <!-- TMPL_VAR name="pages" --><!-- /TMPL_IF -->
137                                                 <!-- TMPL_IF name="notes" --> : <!-- TMPL_VAR name="notes" --><!-- /TMPL_IF -->
138                                                 <!-- TMPL_IF name="size" --> ; <!-- TMPL_VAR name="size" --><!-- /TMPL_IF -->
139                                                 <!-- TMPL_IF name="timestamp" --> <i>(modified on <!-- TMPL_VAR name="timestamp" -->)</i><!-- /TMPL_IF --></p>
140                                 <p class="availability">
141 <!-- TMPL_IF NAME="items_loop" -->
142 <span class="available"><strong><!-- TMPL_IF NAME="items_count" --><!-- TMPL_VAR NAME="items_count" --><!-- /TMPL_IF --> copies available at:</strong> <!-- TMPL_LOOP NAME="items_loop" --><!-- <!-- TMPL_VAR NAME="branchcode" --> --><!-- TMPL_VAR NAME="branchname" --><!-- TMPL_IF name="cn_class" -->[<a href="/cgi-bin/koha/opac-search.pl?q=callnum:<!-- TMPL_VAR NAME="cn_class" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="cn_class" --></a>]<!-- /TMPL_IF -->(<!-- TMPL_VAR NAME="count" -->), <!-- /TMPL_LOOP --></span>
143 <!-- TMPL_ELSE -->
144 <span class="unavailable">No copies available: </span>
145 <!-- /TMPL_IF -->
146 <span class="unavailable">
147 <!-- TMPL_IF NAME="onloancount" --> On loan (<!-- TMPL_VAR NAME="onloancount" -->), <!-- /TMPL_IF -->
148 <!-- TMPL_IF NAME="wthdrawncount" --> Withdrawn (<!-- TMPL_VAR NAME="wthdrawncount" -->), <!-- /TMPL_IF -->
149 <!-- TMPL_IF NAME="itemlostcount" --> Lost (<!-- TMPL_VAR NAME="itemlostcount" -->)<!-- /TMPL_IF -->
150 <!-- TMPL_IF NAME="orderedcount" --> On order (<!-- TMPL_VAR NAME="orderedcount" -->)<!-- /TMPL_IF -->
151 </span>
152                                 </p>
153
154                                 <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" -->
155                                     <a href="/cgi-bin/koha/opac-search.pl?q=callnum:<!-- TMPL_VAR NAME="classification" ESCAPE="URL" -->">
156                                         <!-- TMPL_VAR NAME="classification" -->
157                                     </a>
158 <!-- /TMPL_IF --></p> 
159                                 </td>
160                 </tr>
161                 <!-- /TMPL_LOOP -->
162             </table>
163     </form>
164         </div>
165     <!-- /TMPL_IF -->
166         <!-- TMPL_INCLUDE NAME="page-numbers.inc" -->
167
168     <!-- TMPL_ELSE -->
169     <!-- /TMPL_IF -->
170
171         <!-- TMPL_IF name="suggestion" -->
172 <!-- 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 -->
173 <!-- /TMPL_IF -->
174     
175 </div>
176 </div>
177 <div class="yui-b">
178         <!-- FACETS START -->
179         <!-- TMPL_IF NAME="opacfacets" -->
180                 <!-- TMPL_INCLUDE NAME="opac-facets.inc" -->
181         <!-- /TMPL_IF -->
182         <!-- FACETS END -->
183 </div>
184 </div>
185
186 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->