990e315471
there is some old 2.2 code for more complete labels-searching, thats been commented out ive logged a 'bug' for this - 2777 http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=2777 this fix... - enables the index-searching functionality - adds date-ranges - uses the numSearchResults syspref, not a hardcoded '20' - rewrote old 2.2 page-num code, (didnt work for 3.x) - some indent and whitepages tidys. - unused 2.2 search-code removed. Mason Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
143 lines
8 KiB
Cheetah
143 lines
8 KiB
Cheetah
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><title>Koha › Barcodes and Labels › Search Results</title><!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
|
<style type="text/css">#custom-doc { width:46.23em;*width:45.04em;min-width:610px; margin:auto;margin-top: .4em; text-align:left; }</style>
|
|
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.checkboxes.pack.js"></script>
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
$(document).ready(function(){
|
|
$("#CheckAll").click(function(){
|
|
$(".checkboxed").checkCheckboxes();
|
|
return false;
|
|
});
|
|
$("#CheckNone").click(function(){
|
|
$(".checkboxed").unCheckCheckboxes();
|
|
return false;
|
|
});
|
|
});
|
|
function add_item(itemnum,batch_id,type_id){
|
|
var getstr='';
|
|
if (itemnum == 'checked') {
|
|
itms= new Array;
|
|
if(document.resultform.i_itemnumber.length > 0) {
|
|
for (var i=0; i < document.resultform.i_itemnumber.length; i++) {
|
|
if (document.resultform.i_itemnumber[i].checked) {
|
|
itms.push("itemnumber=" + document.resultform.i_itemnumber[i].value);
|
|
}
|
|
}
|
|
getstr = itms.join("&");
|
|
} else {
|
|
getstr = "itemnumber="+document.resultform.i_itemnumber.value;
|
|
}
|
|
} else {
|
|
getstr = "itemnumber="+itemnum;
|
|
}
|
|
var myurl = "label-manager.pl?op=add&batch_id="+batch_id+
|
|
// "&type="+type_id+ // The template variable NAME="TYPE" is RESERVED ('opac' or 'intranet').
|
|
"&"+getstr;
|
|
window.opener.location.href = myurl;
|
|
}
|
|
function add_item3(i_itemnumber){
|
|
var myurl = "label-manager.pl?op=add&itemnumber="+i_itemnumber+"";
|
|
window.opener.location.href = myurl;
|
|
}
|
|
//]]>
|
|
</script>
|
|
</head>
|
|
<body>
|
|
|
|
<div id="custom-doc" class="yui-t7">
|
|
<div id="bd">
|
|
<h1>Search results</h1>
|
|
|
|
|
|
<div class="results">
|
|
<!-- TMPL_IF EXPR="displayprev || displaynext" --><p>
|
|
<!-- TMPL_IF NAME="displayprev" -->
|
|
<a href="label-item-search.pl?startfrom=<!-- TMPL_VAR NAME="startfromprev" -->&ccl_query=<!-- TMPL_VAR NAME="ccl_query" -->&resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&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" -->&ccl_query=<!-- TMPL_VAR NAME="ccl_query" -->&resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&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" -->&ccl_query=<!-- TMPL_VAR NAME="ccl_query" -->&resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&op=do_search&batch_id=<!-- TMPL_VAR NAME="batch_id" -->">>></a>
|
|
<!-- /TMPL_IF -->
|
|
</p><!-- /TMPL_IF -->
|
|
|
|
<!-- TMPL_IF name="result" -->
|
|
<strong>Results <!-- TMPL_VAR name="from" --> through <!-- TMPL_VAR name="to" --> <!-- TMPL_IF NAME="total" --> of <!-- TMPL_VAR name="total" --><!-- /TMPL_IF --></strong>
|
|
<!-- TMPL_ELSE -->
|
|
No results found
|
|
<!-- /TMPL_IF -->
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div id="breadcrumbs"><a href="/cgi-bin/koha/labels/label-item-search.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->">Search for Items for Batch <!-- TMPL_VAR NAME="batch_id" --></a> › Search results</div>
|
|
<form name="resultform" class="checkboxed"><div style="float: right; margin-top: .5em;"><input type="submit" class="icon addchecked" value="Add checked" onclick="add_item('checked',<!-- TMPL_VAR NAME="batch_id" -->,'<!-- TMPL_VAR NAME="type" -->'); return false" /> <input type="button" class="close" value="Done" /></div><div style="line-height: 2em; margin-left: .7em;"><a id="CheckAll" href="/cgi-bin/koha/labels/label-item-search.pl">Select All</a></span><span class="clearall"><a id="CheckNone" href="/cgi-bin/koha/labels/label-item-search.pl">Clear All</a></div>
|
|
|
|
<input type="hidden" name="ccl_query" value="<!-- TMPL_VAR name="ccl_query" -->" />
|
|
|
|
|
|
<!-- TMPL_LOOP name="result" -->
|
|
<table width="610 pixels" frame="border" border="2" style="float: left; margin: .5em 0;">
|
|
<!-- TMPL_IF name="highlight" -->
|
|
<tr class="highlight">
|
|
<!-- TMPL_ELSE -->
|
|
<tr>
|
|
<!-- /TMPL_IF -->
|
|
<td colspan="5">
|
|
<label style="font-weight:bold;"><!-- TMPL_VAR NAME="title" escape="html" --></label> by <!-- TMPL_VAR NAME="author" --><br />
|
|
[<!-- 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="copyrightdate" --><!-- TMPL_VAR name="copyrightdate" -->, <!-- /TMPL_IF --><!-- TMPL_IF name="pages" --><!-- TMPL_VAR name="pages" --><!-- /TMPL_IF --><!-- TMPL_IF name="isbn" -->, <b>ISBN: </b><!-- TMPL_VAR name="isbn" --><!-- /TMPL_IF --><!-- TMPL_IF name="notes" -->,<br /><!-- TMPL_VAR name="notes" --><!-- /TMPL_IF -->
|
|
</td>
|
|
</tr>
|
|
<!-- NEW -->
|
|
<tr>
|
|
<th>Select</th>
|
|
<th>Item Call Number</th>
|
|
<th>Date Accessioned</th>
|
|
<th>Barcode</th>
|
|
<th></th>
|
|
</tr>
|
|
<!-- TMPL_LOOP name="item" -->
|
|
<!-- TMPL_IF name="i_itemnumber1" --><tr><td align="center"><label for="itm<!-- TMPL_VAR NAME="i_itemnumber1" -->" ><input type="checkbox" name="i_itemnumber" id="itm<!-- TMPL_VAR NAME="i_itemnumber1" -->" value="<!-- TMPL_VAR NAME="i_itemnumber1" -->" /></label></td><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="i_itemcallnumber" --><td align="center"><!-- TMPL_VAR name="i_itemcallnumber" --><br /></td><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="i_dateaccessioned" --><td align="center"><!-- TMPL_VAR name="i_dateaccessioned" --><br /></td><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="i_barcode" --><td align="center"><!-- TMPL_VAR name="i_barcode" --></td><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="i_itemnumber2" --><td align="center">
|
|
<a onclick="add_item('<!-- TMPL_VAR NAME="i_itemnumber2" -->',<!-- TMPL_VAR NAME="batch_id" -->, '<!-- TMPL_VAR NAME="type" -->'); return false" href="/cgi-bin/koha/barcodes/label-manager.pl?itemnumber=<!-- TMPL_VAR NAME="i_itemnumber2" -->&batch_id=<!-- TMPL_VAR name="batch_id" -->&op=add">Add</a></td>
|
|
<!-- /TMPL_IF -->
|
|
<!-- /NEW -->
|
|
<!-- /TMPL_LOOP --><!-- item -->
|
|
</tr>
|
|
</table>
|
|
<!-- /TMPL_LOOP -->
|
|
</form>
|
|
|
|
<div class="results">
|
|
<!-- TMPL_IF EXPR="displayprev || displaynext" --><p>
|
|
<!-- TMPL_IF NAME="displayprev" -->
|
|
<a href="label-item-search.pl?startfrom=<!-- TMPL_VAR NAME="startfromnext" -->&ccl_query=<!-- TMPL_VAR NAME="ccl_query" -->&resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&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" -->&ccl_query=<!-- TMPL_VAR NAME="ccl_query" -->&resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&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" -->&ccl_query=<!-- TMPL_VAR NAME="ccl_query" -->&resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&op=do_search&batch_id=<!-- TMPL_VAR NAME="batch_id" -->">>></a>
|
|
<!-- /TMPL_IF -->
|
|
</p><!-- /TMPL_IF -->
|
|
</div>
|
|
|
|
|
|
|
|
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
|