1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Catalog: Simple Search<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
3 <!-- TMPL_INCLUDE NAME="menus.inc" -->
4 <!-- TMPL_INCLUDE NAME="menu-catalogue.inc" -->
6 <script language="JavaScript" type="text/javascript">
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.";
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
16 for (var i=0; i < shelf_frm.shelfnumber.length; i++) {
17 if (shelf_frm.shelfnumber[i].checked) {
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 + ",";
29 if (shelf_frm.biblios.value == '') {
30 alert(no_biblios_selected);
35 alert(no_shelves_selected);
39 function show_shelfPanel() {
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';
45 document.getElementById('shelf_panel').style.display = 'block';
46 //document.getElementById('shelf_panel').style.visibility = 'visible';
54 <h1>Catalogue search</h1>
57 <!-- TMPL_LOOP NAME="searchdesc" -->
59 <div style="color:green;">|
60 <!-- TMPL_VAR name="query" --> |
63 <!-- TMPL_VAR NAME="numrecords" --> results
66 <!-- Row of numbers corresponding to search result pages -->
68 <!-- TMPL_LOOP NAME="numbers" -->
69 <!-- TMPL_IF NAME="highlight" -->
70 <span class="current">
71 <!-- TMPL_VAR NAME="number" -->
75 <a class="pages" href="catalogue-search.pl?op=do_search&zoom=1&startfrom=<!-- TMPL_VAR NAME="startfrom" --><!-- TMPL_LOOP NAME="forminputs" -->&<!-- TMPL_VAR NAME="field" -->=<!-- TMPL_VAR NAME="value" ESCAPE="HTML" --><!-- /TMPL_LOOP -->&pg=<!-- TMPL_VAR NAME="pg" -->&reorder=<!-- TMPL_VAR NAME="reorder" -->"><!-- TMPL_VAR NAME="number" --></a>
82 <!-- TMPL_IF name="shelvescount" -->
83 <table style="border:0">
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();">
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&zoom=1&startfrom=<!-- TMPL_VAR NAME="startfrom" --><!-- TMPL_LOOP NAME="FORMINPUTS" -->&<!-- 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" -->
101 <input type="checkbox" name="shelfnumber" value="<!-- TMPL_VAR name="shelfnumber" -->">
104 <a class="style12" href="/cgi-bin/koha/bookshelves/shelves.pl?op=viewcontent&shelfnumber=<!-- TMPL_VAR name="shelfnumber" -->"><!-- TMPL_VAR name="shelfname" --></a>
107 <!-- TMPL_VAR name="bibliocount" --> documents
112 <div align="right" class="style5">
113 <input type="button" onclick="addBibliosToShelves()" value="Add" style="border:0px;background-color:#4898B0;height:20px;" class="button">
122 <!-- Search Results Table -->
123 <!-- TMPL_IF NAME="numrecords" -->
124 <form name="myform" action="" style="margin:0px">
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&zoom=1&reorder=title,2<!-- TMPL_LOOP NAME="FORMINPUTS" -->&<!-- 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" -->&<!-- TMPL_VAR NAME="field" -->=<!-- TMPL_VAR NAME="value" ESCAPE="URL" --><!-- /TMPL_LOOP -->&reorder=title,1">▲</a>
131 <th align="left"> <a href="catalogue-search.pl?op=do_search&zoom=1<!-- TMPL_LOOP NAME="FORMINPUTS" -->&<!-- TMPL_VAR NAME="field" -->=<!-- TMPL_VAR NAME="value" ESCAPE="URL" --><!-- /TMPL_LOOP -->&reorder=author,2 ">▼</a>Author<a href="catalogue-search.pl?op=do_search&zoom=1<!-- TMPL_LOOP NAME="FORMINPUTS" -->&<!-- TMPL_VAR NAME="field" -->=<!-- TMPL_VAR NAME="value" ESCAPE="URL" --><!-- /TMPL_LOOP -->&reorder=author,1">▲</a>
136 <th align="left"> <a href="catalogue-search.pl?op=do_search&zoom=1<!-- TMPL_LOOP NAME="FORMINPUTS" -->&<!-- TMPL_VAR NAME="field" -->=<!-- TMPL_VAR NAME="value" ESCAPE="URL" --><!-- /TMPL_LOOP -->&reorder=lcsort,2 ">▼</a>LC <a href="catalogue-search.pl?op=do_search&zoom=1<!-- TMPL_LOOP NAME="FORMINPUTS" -->&<!-- TMPL_VAR NAME="field" -->=<!-- TMPL_VAR NAME="value" ESCAPE="URL" --><!-- /TMPL_LOOP -->&reorder=lcsort,1">▲</a>
137 <th>Availability</th>
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 -->>
148 <img src='<!-- TMPL_VAR NAME="themelang" -->/images/<!-- TMPL_VAR NAME="itemtype" -->.gif'
149 width="16" height="16">
152 <td width="10" align="center" valign="middle">
153 <input type="checkbox" name="bibid" value='<!-- TMPL_VAR NAME="biblionumber" -->'>
157 <a class="transparent" href="/cgi-bin/koha/<!--TMPL_VAR NAME="script"-->?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" -->
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 -->
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>
172 <td ><!-- TMPL_VAR NAME="publishercode" --></a></td>
174 <td align="center" > <!-- TMPL_IF NAME="copyrightdate" --> <!-- TMPL_VAR NAME="copyrightdate" --> <!-- TMPL_ELSE --> - <!-- /TMPL_IF --> </td>
175 <td><!-- TMPL_VAR NAME="classification" --></td>
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 -->
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" -->
189 <!-- TMPL_IF NAME="noitems" -->
192 <!-- TMPL_IF NAME="norequests" -->
196 href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
211 <!-- Row of numbers corresponding to search result pages -->
213 <!-- TMPL_LOOP NAME="numbers" -->
214 <!-- TMPL_IF NAME="highlight" -->
215 <span class="current">
216 <!-- TMPL_VAR NAME="number" -->
220 <a class="pages" href="catalogue-search.pl?op=do_search&zoom=1&startfrom=<!-- TMPL_VAR NAME="startfrom" --><!-- TMPL_LOOP NAME="forminputs" -->&<!-- TMPL_VAR NAME="field" -->=<!-- TMPL_VAR NAME="value" ESCAPE="URL" --><!-- /TMPL_LOOP -->&pg=<!-- TMPL_VAR NAME="pg" -->&reorder=<!-- TMPL_VAR NAME="reorder" -->"><!-- TMPL_VAR NAME=number --></a>
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>
229 <div align="center">0 records <br></div>
232 <div align="center"><a class="transparent" href="catalogue-search.pl">New search</a></div>
235 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->