1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Barcodes and labels › Search results</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <style type="text/css">#custom-doc { width:46.23em;*width:45.04em;min-width:700px; margin:auto;margin-top: .4em; text-align:left; }</style>
5 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
6 <script type="text/javascript">
8 $(document).ready(function(){
9 $("#CheckAll").click(function(){
10 $(".checkboxed").checkCheckboxes();
13 $("#CheckNone").click(function(){
14 $(".checkboxed").unCheckCheckboxes();
18 function add_item(item_number,batch_id,type_id){
19 var p = window.opener;
20 if (item_number == 'checked') {
22 if(document.resultform.action.length > 0) {
23 for (var i=0; i < document.resultform.action.length; i++) {
24 if (document.resultform.action[i].checked) {
25 p.add_item(document.resultform.action[i].value);
29 p.add_item(document.resultform.action.value);
33 p.add_item(item_number);
39 <body id="labels_result" class="tools labels">
40 <div id="custom-doc" class="yui-t7">
42 <h1>Search results</h1>
44 [% IF ( displayprev || displaynext ) %]
46 [% IF ( displayprev ) %]
47 <a href="label-item-search.pl?startfrom=[% startfromprev %]&ccl_query=[% ccl_query %]&resultsperpage=[% resultsperpage %]&op=do_search&batch_id=[% batch_id %]"><<</a>
49 [% FOREACH number IN numbers %]
50 <a href="label-item-search.pl?startfrom=[% number.startfrom %]&ccl_query=[% ccl_query %]&resultsperpage=[% resultsperpage %]&op=do_search&batch_id=[% batch_id %]">[% number.number %]</a>
52 [% IF ( displaynext ) %]
53 <a href="label-item-search.pl?startfrom=[% startfromnext %]&ccl_query=[% ccl_query %]&resultsperpage=[% resultsperpage %]&op=do_search&batch_id=[% batch_id %]">>></a>
58 <strong>Results [% from %] through [% to %] [% IF ( total ) %] of [% total %][% END %]</strong>
64 <form name="resultform" class="checkboxed" action="">
65 <p><a id="CheckAll" href="#">Select all</a> <a id="CheckNone" href="#">Clear all</a> | <input type="button" value="Add checked" onclick="add_item('checked',[% batch_id %],'[% type %]'); return false;" />
66 <input type="button" class="close" value="Done" /></p>
68 <div id="label-search-results">
69 <input type="hidden" name="ccl_query" value="[% ccl_query %]" />
70 [% FOREACH result_se IN result_set %]
71 <div style="border-bottom:1px solid #CCC;margin: .5em 0;">
72 <h4>[% result_se.title |html %]</h4>
73 <p>[% IF ( result_se.author ) %]by [% result_se.author %][% END %]
74 [[% result_se.itemtype %]], [% IF ( result_se.publishercode ) %][% result_se.publishercode %] [% END %][% IF ( result_se.place ) %][% result_se.place %] [% END %][% IF ( result_se.copyrightdate ) %][% result_se.copyrightdate %], [% END %][% IF ( result_se.pages ) %][% result_se.pages %][% END %][% IF ( result_se.isbn ) %], <b>ISBN: </b>[% result_se.isbn %][% END %][% IF ( result_se.notes ) %],<br />[% result_se.notes %][% END %]</p>
76 <table style="margin-bottom:1em;">
77 [% FOREACH item_tabl IN result_se.item_table %]
78 [% IF ( item_tabl.header_fields ) %]
80 [% FOREACH header_field IN item_tabl.header_fields %]
81 <th>[% header_field.field_label %]</th>
86 [% FOREACH text_field IN item_tabl.text_fields %]
87 [% IF ( text_field.select_field ) %]
88 <td align="center"><input type="checkbox" name="action" value="[% text_field.field_value %]"></td>
89 [% ELSIF ( text_field.link_field ) %]
91 <a onclick="add_item('[% text_field.field_value %]',[% batch_id %], '[% text_field.type %]'); return false" href="/cgi-bin/koha/barcodes/label-edit-batch.pl?op=add&batch_id=[% batch_id %]&item_number=[% text_field.field_value %]">Add</a>
94 <td align="center">[% text_field.field_value %]</td>
106 <div class="results">
107 [% IF ( displayprev || displaynext ) %]
109 [% IF ( displayprev ) %]
110 <a href="label-item-search.pl?startfrom=[% startfromnext %]&ccl_query=[% ccl_query %]&resultsperpage=[% resultsperpage %]&op=do_search&batch_id=[% batch_id %]"><<</a>
112 [% FOREACH number IN numbers %]
113 [% IF ( number.highlight ) %]
114 <span class="current">[% number.number %]</span>
116 <a href="label-item-search.pl?startfrom=[% number.startfrom %]&ccl_query=[% number.ccl_query %]&resultsperpage=[% number.resultsperpage %]&op=do_search&batch_id=[% number.batch_id %]">[% number.number %]</a>
119 [% IF ( displaynext ) %]
120 <a href="label-item-search.pl?startfrom=[% startfromnext %]&ccl_query=[% ccl_query %]&resultsperpage=[% resultsperpage %]&op=do_search&batch_id=[% batch_id %]">>></a>
125 [% INCLUDE 'popup-bottom.inc' %]