New XML API
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / catalogue / catalogue_searchresults.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Catalog: Simple Search<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
2
3 <!-- TMPL_INCLUDE NAME="menus.inc" -->
4 <!-- TMPL_INCLUDE NAME="menu-catalogue.inc" -->
5
6 <script language="JavaScript" type="text/javascript">
7
8 var no_biblios_selected = "Select one or more documents to add to your virtual shelves.";
9 var no_shelves_selected = "Select one or more virtual shelves to add the selected documents.";
10
11 /*Add the selected biblionumber to the seleted virtual shelves*/
12 function addBibliosToShelves(){
13         shelf_frm = document.shelf_form;
14         //check for at least one shelf seleted
15         shelf_sel = false;
16         for (var i=0; i < shelf_frm.shelfnumber.length; i++) {
17                 if (shelf_frm.shelfnumber[i].checked) {
18                         shelf_sel = true;
19                         break;
20                 }
21         }
22         if (shelf_sel) {
23             shelf_frm.biblios.value = '';
24                 for (var i=0; i < document.myform.bibid.length; i++) {
25                         if (document.myform.bibid[i].checked) {
26                                 shelf_frm.biblios.value = shelf_frm.biblios.value + document.myform.bibid[i].value + ",";
27                         }
28                 }
29                 if (shelf_frm.biblios.value == '') {
30             alert(no_biblios_selected);
31                 } else {
32                         shelf_frm.submit();
33                 }
34         } else {
35         alert(no_shelves_selected);
36         }
37 }
38
39 function show_shelfPanel() {
40
41         if (document.getElementById('shelf_panel').style.display == 'block') {
42             //document.getElementById('shelf_panel').style.visibility = 'hidden';
43             document.getElementById('shelf_panel').style.display = 'none';
44         } else {
45             document.getElementById('shelf_panel').style.display = 'block';
46         //document.getElementById('shelf_panel').style.visibility = 'visible';
47         }
48 }
49
50 </script>
51
52
53
54     <h1>Catalogue search</h1>
55
56 <!-- TMPL_ELSE -->
57         <!-- TMPL_LOOP NAME="searchdesc" -->
58         You searched:
59         <div style="color:green;">|&nbsp;
60          <!-- TMPL_VAR name="query" -->&nbsp;|&nbsp;
61                 </div>
62         <!-- /TMPL_LOOP -->
63         <!-- TMPL_VAR NAME="numrecords" --> results
64
65 <div id="pages" >
66     <!-- Row of numbers corresponding to search result pages -->
67     
68     <!-- TMPL_LOOP NAME="numbers" -->
69                 <!-- TMPL_IF NAME="highlight" -->
70                     <span class="current">
71                     <!-- TMPL_VAR NAME="number" -->
72                 </span>
73                 <!-- TMPL_ELSE -->
74                     <span class="pages">
75                 <a class="pages"  href="catalogue-search.pl?op=do_search&amp;zoom=1&amp;startfrom=<!-- TMPL_VAR NAME="startfrom" --><!-- TMPL_LOOP NAME="forminputs" -->&amp;<!-- TMPL_VAR NAME="field" -->=<!-- TMPL_VAR NAME="value" ESCAPE="HTML" --><!-- /TMPL_LOOP -->&amp;pg=<!-- TMPL_VAR NAME="pg" -->&amp;reorder=<!-- TMPL_VAR NAME="reorder" -->"><!-- TMPL_VAR NAME="number" --></a>
76                 </span>
77                 <!-- /TMPL_IF -->
78     <!-- /TMPL_LOOP -->
79     
80 </div>
81
82 <!-- TMPL_IF name="shelvescount" -->
83 <table style="border:0">
84         <tr>
85             <td width="75%"></td>
86                 <td>
87                         <input type="button" value="Add to my virtual shelves" class="button"
88                                     style="border:0px;background-color:#F2F0E9;text-align:left;display:block;"
89                                         onclick="show_shelfPanel();">
90
91                         <div class="shelf_panel" id="shelf_panel" style="display:none;">
92                         <form name="shelf_form" action="/cgi-bin/koha/bookshelves/add-biblios-to-shelves.pl" method="post">
93                         <input type="checkbox" name="shelfnumber" value="-1" style="display:none;">
94                                 <input type="hidden" name="biblios" value="">
95                                 <input type="hidden" name="return_url" value="catalogue-search.pl?op=do_search&amp;zoom=1&amp;startfrom=<!-- TMPL_VAR NAME="startfrom" --><!-- TMPL_LOOP NAME="FORMINPUTS" -->&amp;<!-- TMPL_VAR NAME="field" -->=<!-- TMPL_VAR NAME="value" ESCAPE="URL" --><!-- /TMPL_LOOP -->">
96                                 <span class="style3">Select one or more documents and the virtual shelves you want to add them.</span>
97                                 <table style="border:0">
98                                 <!-- TMPL_LOOP name="shelves" -->
99                         <tr>
100                                 <td>
101                                                 <input type="checkbox" name="shelfnumber" value="<!-- TMPL_VAR name="shelfnumber" -->">
102                                         </td>
103                                 <td>
104                                                 <a class="style12" href="/cgi-bin/koha/bookshelves/shelves.pl?op=viewcontent&shelfnumber=<!-- TMPL_VAR name="shelfnumber" -->"><!-- TMPL_VAR name="shelfname" --></a>
105                                         </td>
106                                         <td>
107                                                 <!-- TMPL_VAR name="bibliocount" --> documents
108                                         </td>
109                                 </tr>
110                                 <!-- /TMPL_LOOP -->
111                                 </table>
112                                 <div align="right" class="style5">
113                                         <input type="button" onclick="addBibliosToShelves()" value="Add" style="border:0px;background-color:#4898B0;height:20px;" class="button">
114                                 </div>
115                                 </form>
116                         </div>
117                 </td>
118         </tr>
119 </table>
120 <!-- /TMPL_IF -->
121
122 <!-- Search Results Table -->
123 <!-- TMPL_IF NAME="numrecords" -->
124 <form name="myform" action="" style="margin:0px">
125         <br>
126         <table border="0" cellspacing="0" cellpadding="2" width="80%" align="center">
127         <tr bgcolor="#99cccc" background="<!-- TMPL_VAR NAME="themelang" -->/images/background-opac.gif">
128         <th colspan="2"></th>
129                 <th align="left"> <a  href="catalogue-search.pl?op=do_search&amp;zoom=1&amp;reorder=title,2<!-- TMPL_LOOP NAME="FORMINPUTS" -->&amp;<!-- TMPL_VAR NAME="field" -->=<!-- TMPL_VAR NAME="value" ESCAPE="URL" --><!-- /TMPL_LOOP -->">▼</a>Title <a  href="catalogue-search.pl?op=do_search&zoom=1<!-- TMPL_LOOP NAME="FORMINPUTS" -->&amp;<!-- TMPL_VAR NAME="field" -->=<!-- TMPL_VAR NAME="value" ESCAPE="URL" --><!-- /TMPL_LOOP -->&amp;reorder=title,1">▲</a>
130            </th>
131                 <th align="left"> <a  href="catalogue-search.pl?op=do_search&amp;zoom=1<!-- TMPL_LOOP NAME="FORMINPUTS" -->&amp;<!-- TMPL_VAR NAME="field" -->=<!-- TMPL_VAR NAME="value" ESCAPE="URL" --><!-- /TMPL_LOOP -->&amp;reorder=author,2 ">▼</a>Author<a  href="catalogue-search.pl?op=do_search&zoom=1<!-- TMPL_LOOP NAME="FORMINPUTS" -->&amp;<!-- TMPL_VAR NAME="field" -->=<!-- TMPL_VAR NAME="value" ESCAPE="URL" --><!-- /TMPL_LOOP -->&amp;reorder=author,1">▲</a>
132
133                 <th>Publisher</th>
134                 
135                 <th>&copy;</th>
136                 <th align="left"> <a  href="catalogue-search.pl?op=do_search&zoom=1<!-- TMPL_LOOP NAME="FORMINPUTS" -->&amp;<!-- TMPL_VAR NAME="field" -->=<!-- TMPL_VAR NAME="value" ESCAPE="URL" --><!-- /TMPL_LOOP -->&amp;reorder=lcsort,2 ">▼</a>LC <a  href="catalogue-search.pl?op=do_search&zoom=1<!-- TMPL_LOOP NAME="FORMINPUTS" -->&amp;<!-- TMPL_VAR NAME="field" -->=<!-- TMPL_VAR NAME="value" ESCAPE="URL" --><!-- /TMPL_LOOP -->&amp;reorder=lcsort,1">▲</a>
137         <th>Availability</th>
138                 <th>&nbsp;</th>
139         </tr>
140
141
142         <!-- Actual Search Results -->
143             <input type="checkbox" name="bibid" value="0" style="display:none">
144                 <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
145                         <tr <!-- TMPL_IF name="even" -->bgcolor="#ffffcc"<!-- /TMPL_IF -->>
146                                 <td>
147                                         <div align="center">
148                                                         <img src='<!-- TMPL_VAR NAME="themelang" -->/images/<!-- TMPL_VAR NAME="itemtype" -->.gif'
149                                                              width="16" height="16">
150                                                 </div>
151                                 </td>
152                                 <td width="10" align="center" valign="middle">
153                                         <input type="checkbox" name="bibid" value='<!-- TMPL_VAR NAME="biblionumber" -->'>
154                                 </td>
155                                 <td >
156                                         
157                                         <a class="transparent" href="/cgi-bin/koha/<!--TMPL_VAR NAME="script"-->?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" -->
158                                         </a>
159                                         <br>
160                                         <span style="font-size:90%">
161                     <!-- TMPL_IF NAME="subtitle" --><!-- TMPL_VAR NAME="subtitle" --><br> <!-- /TMPL_IF -->
162                                         <!-- TMPL_IF NAME="isbn" -->ISBN: <!-- TMPL_VAR NAME="isbn" --> <!-- /TMPL_IF -->
163                                         </span>
164                                 </td>
165                                 <td> <!-- TMPL_IF NAME="author" --> <a class="transparent" href="catalogue-search.pl?op=do_search&zoom=1&kohafield=author&value=<!-- TMPL_VAR NAME="author" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="author" --></a><br><!-- /TMPL_IF -->
166                                     <span style="font-size:90%">
167                                         <!-- TMPL_LOOP NAME="additionalauthors" -->
168                                             <a class="transparent" href="catalogue-search.pl?op=do_search&zoom=1&kohafield=author&value=<!-- TMPL_VAR NAME="value" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="value" --></a><br>
169                                                  <!-- /TMPL_LOOP -->
170                     </span>
171                                 </td>
172                 <td ><!-- TMPL_VAR NAME="publishercode" --></a></td>
173                                 
174                                 <td align="center" > <!-- TMPL_IF NAME="copyrightdate" --> <!-- TMPL_VAR NAME="copyrightdate" --> <!-- TMPL_ELSE --> - <!-- /TMPL_IF --> </td>
175                                 <td><!-- TMPL_VAR NAME="classification" --></td>
176                                 <td align="center">
177                     <!-- TMPL_IF NAME="on-loan-p" --> <!-- TMPL_VAR NAME="on-loan-p" --> - On Loan <br> <!-- /TMPL_IF -->
178                                             <!-- TMPL_IF NAME="lost-p" --> <!-- TMPL_VAR NAME="lost-p" --> - Lost <br> <!-- /TMPL_IF -->
179                                           <!-- TMPL_IF NAME="withdrawn-p" --> <!-- TMPL_VAR NAME="withdrawn-p" --> -Withdrawn <br> <!-- /TMPL_IF -->
180                                           
181                                             <!-- TMPL_IF NAME="not-available-p" --> <!-- TMPL_VAR NAME="not-available-p" --> - Not available <br> <!-- /TMPL_IF -->
182                                                         <!-- TMPL_IF name="location-only" -->
183                                                         <!-- TMPL_VAR name="location-only" -->
184                                                 <!-- TMPL_ELSE -->
185                                                         -
186                                                 <!-- /TMPL_IF -->
187                                 </td>
188                                 <td align="center">
189                                         <!-- TMPL_IF NAME="noitems" -->
190                                                                 -
191                                                         <!-- TMPL_ELSE -->
192                                                                 <!-- TMPL_IF NAME="norequests" -->
193                                                                  Not reservable
194                                                                 <!-- TMPL_ELSE -->
195                                                                         <a class="style1"
196                                                                            href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
197                                                                         Reserve
198                                                                         </a>
199                                                                 <!-- /TMPL_IF -->
200                                                         <!-- /TMPL_IF -->
201                                 </td>
202                         </tr>
203                 <!-- /TMPL_LOOP -->
204
205
206                 
207                 </table>
208 </form>
209 <br>
210 <div class="pages">
211     <!-- Row of numbers corresponding to search result pages -->
212
213     <!-- TMPL_LOOP NAME="numbers" -->
214                 <!-- TMPL_IF NAME="highlight" -->
215                     <span class="current">
216                     <!-- TMPL_VAR NAME="number" -->
217                 </span>
218                 <!-- TMPL_ELSE -->
219                     <span class="pages">
220                 <a class="pages" href="catalogue-search.pl?op=do_search&zoom=1&startfrom=<!-- TMPL_VAR NAME="startfrom" --><!-- TMPL_LOOP NAME="forminputs" -->&amp;<!-- TMPL_VAR NAME="field" -->=<!-- TMPL_VAR NAME="value" ESCAPE="URL" --><!-- /TMPL_LOOP -->&amp;pg=<!-- TMPL_VAR NAME="pg" -->&amp;reorder=<!-- TMPL_VAR NAME="reorder" -->"><!-- TMPL_VAR NAME=number --></a>
221                 </span>
222                 <!-- /TMPL_IF -->
223     <!-- /TMPL_LOOP -->
224     
225 </div>
226 <br>
227 <div align="center">Results <b><!-- TMPL_VAR NAME="startfrom" --></b> - <b><!-- TMPL_VAR NAME="endat" --></b> of <b><!-- TMPL_VAR NAME="numrecords" --></b> records.</div>
228 <!-- TMPL_ELSE -->
229         <div align="center">0 records <br></div>
230 <!-- /TMPL_IF -->
231 <!-- /TMPL_IF -->
232 <div align="center"><a class="transparent" href="catalogue-search.pl">New search</a></div>
233
234
235 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->