5f4542992a
previously, it wasn't possible to insert anything into the <head> on an individual template unless it was the title of the page. Now, the structure is a bit more flexible to allow additional head elements to be included.
100 lines
4.6 KiB
Cheetah
100 lines
4.6 KiB
Cheetah
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
|
|
<title>Koha › Label and Barcode Printing › Search Results</title>
|
|
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
|
<!-- TMPL_INCLUDE NAME="menus.inc" -->
|
|
<!-- TMPL_INCLUDE NAME="menu-barcodes.inc" -->
|
|
|
|
<div id="main-compact">
|
|
<h1>Search results</h1>
|
|
<div class="results">
|
|
<p>
|
|
<!-- TMPL_IF NAME=displayprev -->
|
|
<a href="label-item-search.pl?startfrom=<!-- TMPL_VAR NAME="startfromprev" -->&<!-- TMPL_LOOP NAME=searchdata --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE=URL -->&<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&type=intranet&op=do_search">
|
|
<<
|
|
</a>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_LOOP NAME=numbers -->
|
|
<!-- TMPL_IF NAME=highlight -->
|
|
<span class="current"><!-- TMPL_VAR NAME="number" --></span>
|
|
<!-- TMPL_ELSE -->
|
|
<a href="label-item-search.pl?startfrom=<!-- TMPL_VAR NAME=startfrom -->&<!-- TMPL_LOOP NAME=searchdata --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE=URL -->&<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&type=intranet&op=do_search"><!-- TMPL_VAR NAME="number" --></a>
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_LOOP -->
|
|
<!-- TMPL_IF NAME=displaynext -->
|
|
<a href="label-item-search.pl?startfrom=<!-- TMPL_VAR NAME="startfromnext" -->&<!-- TMPL_LOOP NAME=searchdata --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE=URL -->&<!-- /TMPL_LOOP -->&resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&type=intranet&op=do_search">>></a>
|
|
<!-- /TMPL_IF -->
|
|
</p>
|
|
<p>
|
|
<!-- TMPL_IF name=total -->
|
|
<b>Results <!-- TMPL_VAR name="from" --> to <!-- TMPL_VAR name="to" --> of <!-- TMPL_VAR name="total" --></b><br><br>
|
|
<!-- TMPL_ELSE -->
|
|
No results found.<br>
|
|
<!-- /TMPL_IF -->
|
|
</p>
|
|
</div>
|
|
|
|
<table>
|
|
<tr>
|
|
<th>Summary</th>
|
|
<th>Item Type</th>
|
|
<th>Add</th>
|
|
</tr>
|
|
<!-- TMPL_LOOP name="result" -->
|
|
<!-- TMPL_IF name="even" -->
|
|
<tr class="highlight">
|
|
<!-- TMPL_ELSE -->
|
|
<tr>
|
|
<!-- /TMPL_IF -->
|
|
<td>
|
|
<p><b><!-- TMPL_VAR NAME="title" --></b></p>
|
|
<p><!-- TMPL_VAR NAME="author" -->
|
|
<!-- TMPL_IF name="publishercode" -->- <!-- TMPL_VAR name="publishercode" --><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="place" --> ; <!-- TMPL_VAR name="place" --><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="pages" --> - <!-- TMPL_VAR name="pages" --><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="notes" --> : <!-- TMPL_VAR name="notes" --><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="size" --> ; <!-- TMPL_VAR name="size" --><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="barcode" --> ; <!-- TMPL_VAR name="barcode" --><!-- /TMPL_IF -->
|
|
</p>
|
|
</td>
|
|
<!-- NEW -->
|
|
<td>
|
|
<!-- TMPL_VAR NAME="itemtype" -->
|
|
</td>
|
|
<td>
|
|
<a onclick="add_item(<!-- TMPL_VAR NAME="itemnumber" -->); return false" href="/cgi-bin/koha/barcodes/label-manager.pl?itemnumber=<!-- TMPL_VAR NAME="itemnumber" -->&op=add">Add</a>
|
|
|
|
<!-- /NEW -->
|
|
</td>
|
|
</tr>
|
|
<!-- /TMPL_LOOP -->
|
|
</table>
|
|
|
|
<div class="results">
|
|
<p>
|
|
<!-- TMPL_IF NAME=displayprev -->
|
|
<a href="label-item-search.pl?startfrom=<!-- TMPL_VAR NAME="startfromprev" -->&<!-- TMPL_LOOP NAME=searchdata --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE=URL -->&<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&type=intranet&op=do_search"><<</a>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_LOOP NAME=numbers -->
|
|
<!-- TMPL_IF NAME=highlight -->
|
|
<span class="current"><!-- TMPL_VAR NAME="number" --></span>
|
|
<!-- TMPL_ELSE -->
|
|
<a href="label-item-search.pl?startfrom=<!-- TMPL_VAR NAME=startfrom -->&<!-- TMPL_LOOP NAME=searchdata --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE=URL -->&<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&type=intranet&op=do_search"><!-- TMPL_VAR NAME="number" --></a>
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_LOOP -->
|
|
<!-- TMPL_IF NAME=displaynext -->
|
|
<a href="label-item-search.pl?startfrom=<!-- TMPL_VAR NAME="startfromnext" -->&<!-- TMPL_LOOP NAME=searchdata --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE=URL -->&<!-- /TMPL_LOOP -->&resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&type=intranet&op=do_search">>></a>
|
|
<!-- /TMPL_IF -->
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
<!--
|
|
|
|
function add_item(itemnumber){
|
|
var myurl = "label-manager.pl?op=add&itemnumber="+itemnumber+"";
|
|
window.opener.location.href = myurl;
|
|
}
|
|
|
|
//-->
|
|
</script>
|