139 lines
6.4 KiB
Cheetah
139 lines
6.4 KiB
Cheetah
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Barcodes and Labels: Search Results<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
|
</head>
|
|
<body>
|
|
<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&batch_id=<!-- TMPL_VAR NAME="batch_id" -->">
|
|
<<
|
|
</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&batch_id=<!-- TMPL_VAR NAME="batch_id" -->"><!-- 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&batch_id=<!-- TMPL_VAR NAME="batch_id" -->">>></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>
|
|
<form name='resultform'>
|
|
<span class="no"><a class="button" href="#" onclick="history.go(-1)" > « Back</a> <a class="button" href="#" onclick="window.close()">[ Done ]</a></span>
|
|
<input type="submit" class="icon addchecked" value="Add checked" onclick="add_item('checked',<!-- TMPL_VAR NAME="batch_id" -->); return false" />
|
|
<table>
|
|
<tr>
|
|
<tr>
|
|
<th><a href="#" onclick="check_all()" >Check all</a></th>
|
|
<th>Biblio Summary</th>
|
|
<th>Item Summary</th>
|
|
<th>Add</th>
|
|
</tr>
|
|
<!-- TMPL_LOOP name="result" -->
|
|
<!-- TMPL_IF name="even" -->
|
|
<tr class="highlight">
|
|
<!-- TMPL_ELSE -->
|
|
<tr>
|
|
<!-- /TMPL_IF -->
|
|
<td> <input type="checkbox" name="itemnumber" id="itm<!-- TMPL_VAR NAME="itemnumber" -->" value="<!-- TMPL_VAR NAME="itemnumber" -->" /> </td>
|
|
<td>
|
|
<p><b><!-- TMPL_VAR NAME="title" --></b>
|
|
<!-- TMPL_VAR NAME="author" -->
|
|
<p>[ <!-- TMPL_VAR NAME="itemtype" --> ]
|
|
<!-- 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" --> <br /> <!-- TMPL_VAR name="notes" --><!-- /TMPL_IF -->
|
|
</p>
|
|
</td>
|
|
<!-- NEW -->
|
|
<td>
|
|
<!-- TMPL_IF name="itemcallnumber" --><!-- TMPL_VAR name="itemcallnumber" --><br /> <!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="dateaccessioned" -->[<!-- TMPL_VAR name="dateaccessioned" -->]<br /> <!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="barcode" --> <!-- TMPL_VAR name="barcode" --> <!-- /TMPL_IF -->
|
|
|
|
</td>
|
|
<td>
|
|
<a onclick="add_item(<!-- TMPL_VAR NAME="itemnumber" -->,<!-- TMPL_VAR NAME="batch_id" -->); return false" href="/cgi-bin/koha/barcodes/label-manager.pl?itemnumber=<!-- TMPL_VAR NAME="itemnumber" -->&batch_id=<!-- TMPL_VAR name="batch_id" -->&op=add">Add</a>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- /NEW -->
|
|
</td>
|
|
</tr>
|
|
<!-- /TMPL_LOOP -->
|
|
</table>
|
|
</form>
|
|
<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>&batch_id=<!-- TMPL_VAR NAME="batch_id" -->"><<</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&batch_id=<!-- TMPL_VAR NAME="batch_id" -->"><!-- 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&batch_id=<!-- TMPL_VAR NAME="batch_id" -->">>></a>
|
|
<!-- /TMPL_IF -->
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
<!--
|
|
|
|
|
|
function add_item(itemnum,batch_id){
|
|
|
|
var getstr='';
|
|
if (itemnum == 'checked') {
|
|
itms= new Array;
|
|
if(document.resultform.itemnumber.length > 0) {
|
|
for (var i=0; i < document.resultform.itemnumber.length; i++) {
|
|
if (document.resultform.itemnumber[i].checked) {
|
|
itms.push("itemnumber=" + document.resultform.itemnumber[i].value);
|
|
}
|
|
}
|
|
getstr = itms.join("&");
|
|
}
|
|
} else {
|
|
getstr = "itemnumber="+itemnum;
|
|
}
|
|
var myurl = "label-manager.pl?op=add&batch_id="+batch_id+"&"+getstr;
|
|
window.opener.location.href = myurl;
|
|
}
|
|
/* # TODO there's a checkall fcn in opac/includes.... that should be modified to accept form object. */
|
|
function check_all()
|
|
{
|
|
count = document.resultform.elements.length;
|
|
for (i=0; i < count; i++)
|
|
{
|
|
document.resultform.elements[i].checked = 1;
|
|
}
|
|
}
|
|
|
|
function add_item3(itemnumber){
|
|
|
|
var myurl = "label-manager.pl?op=add&itemnumber="+itemnumber+"";
|
|
window.opener.location.href = myurl;
|
|
}
|
|
|
|
//-->
|
|
</script>
|