View | Details | Raw Unified | Return to bug 16576
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt (-15 / +22 lines)
Lines 7-13 Link Here
7
    [% INCLUDE 'datatables.inc' %]
7
    [% INCLUDE 'datatables.inc' %]
8
    <script type="text/javascript">
8
    <script type="text/javascript">
9
    //<![CDATA[
9
    //<![CDATA[
10
        var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this?");
11
        function DeleteConfirm() {
10
        function DeleteConfirm() {
12
            var msg = _("Are you sure you want to delete batch %s?").format("[% batch_id %]");
11
            var msg = _("Are you sure you want to delete batch %s?").format("[% batch_id %]");
13
            var answer = confirm(msg);
12
            var answer = confirm(msg);
Lines 159-164 Link Here
159
                Xport('batch');
158
                Xport('batch');
160
                return false;
159
                return false;
161
            });
160
            });
161
            $(".delete").on("click", function(){
162
                return confirmDelete( _("Are you sure you want to delete this?") );
163
            });
164
            $(".export").on("click", function(e){
165
                e.preventDefault();
166
                var label_id = $(this).data("label-id");
167
                var batch_id = $(this).data("batch-id");
168
                GB_showCenter(_("Export labels"),"/cgi-bin/koha/labels/label-print.pl?batch_id=" + batch_id + "&label_id=" + label_id, 400, 800);
169
            });
162
         });
170
         });
163
    //]]>
171
    //]]>
164
    </script>
172
    </script>
Lines 218-229 Link Here
218
                                </div>
226
                                </div>
219
                            </form>
227
                            </form>
220
                            <div id="batch-manage" class="btn-toolbar">
228
                            <div id="batch-manage" class="btn-toolbar">
221
                                <a class="btn btn-small" id="additems" href="#"><icon class="fa fa-plus"></icon> Add item(s)</a>[% IF ( table_loop ) %]
229
                                <a class="btn btn-small" id="additems" href="#"><i class="fa fa-plus"></i> Add item(s)</a>[% IF ( table_loop ) %]
222
                                <a class="btn btn-small" id="removeitems" href="#"><icon class="fa fa-trash"></icon> Remove selected items</a>
230
                                <a class="btn btn-small" id="removeitems" href="#"><i class="fa fa-trash"></i> Remove selected items</a>
223
				<a class="btn btn-small" id="deletebatch" href="#"><icon class="fa fa-minus-square"></icon> Delete batch</a>
231
                                <a class="btn btn-small" id="deletebatch" href="#"><i class="fa fa-minus-square"></i> Delete batch</a>
224
                                <a class="btn btn-small" id="deduplicate" href="#"><icon class="fa fa-minus"></icon> Remove duplicates</a>
232
                                <a class="btn btn-small" id="deduplicate" href="#"><i class="fa fa-minus"></i> Remove duplicates</a>
225
                                <a class="btn btn-small" id="exportitems" href="#"><icon class="fa fa-share-square-o"></icon> Export selected items</a>
233
                                <a class="btn btn-small" id="exportitems" href="#"><i class="fa fa-share-square-o"></i> Export selected items</a>
226
                                <a class="btn btn-small" id="exportbatch" href="#"><icon class="fa fa-share-square-o"></icon> Export full batch</a>[% END %]
234
                                <a class="btn btn-small" id="exportbatch" href="#"><i class="fa fa-share-square-o"></i> Export full batch</a>[% END %]
227
                            </div>
235
                            </div>
228
                            [% IF ( table_loop ) %]
236
                            [% IF ( table_loop ) %]
229
                                <form name="items" class="checkboxed">
237
                                <form name="items" class="checkboxed">
Lines 235-245 Link Here
235
                                                    <tr>
243
                                                    <tr>
236
                                                        [% FOREACH header_field IN table_loo.header_fields %]
244
                                                        [% FOREACH header_field IN table_loo.header_fields %]
237
                                                            [% SWITCH header_field.field_label -%]
245
                                                            [% SWITCH header_field.field_label -%]
238
                                                                [% CASE "Label Number" -%]
246
                                                                [% CASE "Label number" -%]
239
                                                                    <th>Label number</th>
247
                                                                    <th>Label number</th>
240
                                                                [% CASE "Summary" -%]
248
                                                                [% CASE "Summary" -%]
241
                                                                    <th class="anti-the">Summary</th>
249
                                                                    <th class="anti-the">Summary</th>
242
                                                                [% CASE "Item Type" %]
250
                                                                [% CASE "Item type" %]
243
                                                                    <th>Item type</th>
251
                                                                    <th>Item type</th>
244
                                                                [% CASE "Barcode" %]
252
                                                                [% CASE "Barcode" %]
245
                                                                    <th>Barcode</th>
253
                                                                    <th>Barcode</th>
Lines 256-263 Link Here
256
                                                    <tr>
264
                                                    <tr>
257
                                                        [% FOREACH text_field IN table_loo.text_fields %]
265
                                                        [% FOREACH text_field IN table_loo.text_fields %]
258
                                                            [% IF ( text_field.select_field ) %]
266
                                                            [% IF ( text_field.select_field ) %]
259
                                                                <td><a class="btn btn-mini" onclick="return confirm(MSG_CONFIRM_DELETE);" href="/cgi-bin/koha/labels/label-edit-batch.pl?op=remove&amp;batch_id=[% batch_id |url %]&amp;label_id=[% text_field.field_value |url %]"><icon class="fa fa-trash"></icon> Delete</a><a class="btn btn-mini" href="#" onclick="GB_showCenter('Export labels','/cgi-bin/koha/labels/label-print.pl?batch_id=[% batch_id %]&amp;label_id=[% text_field.field_value |url %]', 400, 800)"><icon class="fa fa-share-square-o"></icon> Export</a></td>
267
                                                                <td>
260
                                                                <td><center><input type="checkbox" name="action" value="[% text_field.field_value %]"></center></td>
268
                                                                    <a class="btn btn-mini delete" href="/cgi-bin/koha/labels/label-edit-batch.pl?op=remove&amp;batch_id=[% batch_id |url %]&amp;label_id=[% text_field.field_value |url %]"><i class="fa fa-trash"></i> Delete</a>
269
                                                                    <a class="btn btn-mini export" href="#" data-batch-id="[% batch_id %]" data-label-id="[% text_field.field_value |html %]"><i class="fa fa-share-square-o"></i> Export</a>
270
                                                                </td>
271
                                                                <td><input type="checkbox" name="action" value="[% text_field.field_value %]"></td>
261
                                                            [% ELSE %]
272
                                                            [% ELSE %]
262
                                                                <td>
273
                                                                <td>
263
                                                                    [% IF ( text_field.field_name == '_item_type_tbl' ) %]
274
                                                                    [% IF ( text_field.field_name == '_item_type_tbl' ) %]
Lines 275-288 Link Here
275
                                    </table>
286
                                    </table>
276
                                </form>
287
                                </form>
277
                                [% ELSE %]
288
                                [% ELSE %]
278
                                <fieldset class="rows" style="border-bottom: 0px; border: 0px;">
279
                                <ol><li>
280
                                    <div class="dialog message">
289
                                    <div class="dialog message">
281
                                        <h4>There are no items in this batch yet</h4>
290
                                        <h4>There are no items in this batch yet</h4>
282
                                        <p>Add items by using the text area above or leave empty to add via item search.</p>
291
                                        <p>Add items by using the text area above or leave empty to add via item search.</p>
283
                                    </div>
292
                                    </div>
284
                                </li></ol>
285
                                </fieldset>
286
                                [% END %]
293
                                [% END %]
287
                            </div>
294
                            </div>
288
                        </div>
295
                        </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt (-4 / +15 lines)
Lines 16-22 Link Here
16
    [% INCLUDE 'greybox.inc' %]
16
    [% INCLUDE 'greybox.inc' %]
17
    <script type="text/javascript">
17
    <script type="text/javascript">
18
        //<![CDATA[
18
        //<![CDATA[
19
            var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this?");
20
            function Xport() {
19
            function Xport() {
21
                batches= new Array;
20
                batches= new Array;
22
                if(document.layouts.action.length > 0) {
21
                if(document.layouts.action.length > 0) {
Lines 64-69 Link Here
64
                alert(_("Please select a %s.").format("[% label_element %]"));
63
                alert(_("Please select a %s.").format("[% label_element %]"));
65
                return (-1);
64
                return (-1);
66
            };
65
            };
66
            $(document).ready(function(){
67
                $("#print").click(function(e){
68
                    e.preventDefault();
69
                    Xport();
70
                });
71
                $(".delete").on("click", function(){
72
                    return confirmDelete( _("Are you sure you want to delete this?") );
73
                });
74
            });
67
        //]]>
75
        //]]>
68
    </script>
76
    </script>
69
77
Lines 139-146 Link Here
139
                                        <tr>
147
                                        <tr>
140
                                        [% FOREACH text_field IN table_loo.text_fields %]
148
                                        [% FOREACH text_field IN table_loo.text_fields %]
141
                                            [% IF ( text_field.select_field ) %]
149
                                            [% IF ( text_field.select_field ) %]
142
                                                <td align="center" class="actions"><a class="btn btn-mini" href="/cgi-bin/koha/labels/label-edit-[% label_element |url %].pl?op=edit&amp;element_id=[% text_field.field_value |url %]"><icon class="fa fa-edit"></icon> Edit</a>  <a class="btn btn-mini" href="/cgi-bin/koha/labels/label-manage.pl?op=delete&amp;label_element=[% label_element %]&amp;element_id=[% text_field.field_value |url %]" onclick="return confirm(MSG_CONFIRM_DELETE);"><icon class="fa fa-trash"></icon> Delete</a></td>
150
                                                <td class="actions">
143
                                                [% IF label_element == 'batch' %] <td align="center"><input type="checkbox" name="action" value="[% text_field.field_value %]" /></td>[% END %]
151
                                                    <a class="btn btn-mini" href="/cgi-bin/koha/labels/label-edit-[% label_element |url %].pl?op=edit&amp;element_id=[% text_field.field_value |url %]"><i class="fa fa-edit"></i> Edit</a>
152
                                                    <a class="btn btn-mini delete" href="/cgi-bin/koha/labels/label-manage.pl?op=delete&amp;label_element=[% label_element %]&amp;element_id=[% text_field.field_value |url %]"><i class="fa fa-trash"></i> Delete</a>
153
                                                </td>
154
                                                [% IF label_element == 'batch' %] <td><input type="checkbox" name="action" value="[% text_field.field_value %]" /></td>[% END %]
144
                                            [% ELSIF ( text_field.field_value ) %]
155
                                            [% ELSIF ( text_field.field_value ) %]
145
                                                <td>[% text_field.field_value %]</td>
156
                                                <td>[% text_field.field_value %]</td>
146
                                            [% ELSE %]
157
                                            [% ELSE %]
Lines 151-157 Link Here
151
                                    [% END %]
162
                                    [% END %]
152
                                [% END %]
163
                                [% END %]
153
                            </table>
164
                            </table>
154
                                [% IF ( print ) %]<input type="button" class="btn btn-sm" id="print" onclick="Xport()" value="Export selected" />[% END %]
165
                            [% IF ( print ) %]<button type="button" class="btn btn-sm" id="print">Export selected</button>[% END %]
155
                            </fieldset>
166
                            </fieldset>
156
                            </form>
167
                            </form>
157
                            [% ELSE %]
168
                            [% ELSE %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-print.tt (-3 / +8 lines)
Lines 6-11 Link Here
6
            function Done() {
6
            function Done() {
7
                window.location = "[% referer %]";
7
                window.location = "[% referer %]";
8
            };
8
            };
9
            $(document).ready(function(){
10
                $(".gb-close").on("click",function(){
11
                    parent.parent.GB_hide();
12
                });
13
            });
9
        //]]>
14
        //]]>
10
    </script>
15
    </script>
11
    <style type="text/css">#custom-doc {width:47.23em; *width:46.04em; min-width:610px; margin:auto; margin-top:0.4em;}</style>
16
    <style type="text/css">#custom-doc {width:47.23em; *width:46.04em; min-width:610px; margin:auto; margin-top:0.4em;}</style>
Lines 46-52 Link Here
46
                        </fieldset>
51
                        </fieldset>
47
                        [% END %]
52
                        [% END %]
48
                <fieldset class="action">
53
                <fieldset class="action">
49
                    <input type="button" id="done" onclick="parent.parent.GB_hide();" class="submit" value="Done" />
54
                    <input type="button" class="gb-close" value="Done" />
50
                </fieldset>
55
                </fieldset>
51
            </form>
56
            </form>
52
            [% ELSE %]
57
            [% ELSE %]
Lines 96-103 Link Here
96
                    </ol>
101
                    </ol>
97
                </fieldset>
102
                </fieldset>
98
                <fieldset class="action">
103
                <fieldset class="action">
99
                    <input type="submit" class="submit" value="Export" />
104
                    <input type="submit" value="Export" />
100
                    <a href="#" class="cancel" id="done" onclick="parent.parent.GB_hide();return false;">Cancel</a>
105
                    <a href="#" class="cancel gb-close">Cancel</a>
101
                </fieldset>
106
                </fieldset>
102
            </form>
107
            </form>
103
            [% END %]
108
            [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/result.tt (-54 / +60 lines)
Lines 2-18 Link Here
2
    <title>Koha &rsaquo; Barcodes and labels &rsaquo; Search results</title>
2
    <title>Koha &rsaquo; Barcodes and labels &rsaquo; Search results</title>
3
    [% INCLUDE 'doc-head-close.inc' %]
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>
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>
5
    <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.fixFloat.js"></script>
6
    <script type="text/javascript">
6
    <script type="text/javascript">
7
        //<![CDATA[
7
        //<![CDATA[
8
            $(document).ready(function(){
8
            $(document).ready(function(){
9
                $("#CheckAll").click(function(){
9
                $("#toolbar").fixFloat();
10
                    $(".checkboxed").checkCheckboxes();
10
                $("#CheckAll").click(function(e){
11
                    return false;
11
                    e.preventDefault();
12
                    $("input[type='checkbox']").prop("checked",true);
12
                });
13
                });
13
                $("#CheckNone").click(function(){
14
                $("#CheckNone").click(function(e){
14
                    $(".checkboxed").unCheckCheckboxes();
15
                    e.preventDefault();
15
                    return false;
16
                    $("input[type='checkbox']").prop("checked",false);
17
                });
18
                $("#add_items").on("click",function(){
19
                    add_item('checked',[% batch_id %],'[% type %]');
20
                });
21
                $(".select_item").on("click",function(e){
22
                    e.preventDefault();
23
                    var batch_id = $(this).data("batch-id");
24
                    var itemnumber = $(this).data("item-number");
25
                    var type = $(this).data("field-type");
26
                    add_item(itemnumber, batch_id, type);
16
                });
27
                });
17
            });
28
            });
18
            function add_item(item_number,batch_id,type_id){
29
            function add_item(item_number,batch_id,type_id){
Lines 40-97 Link Here
40
    <div id="custom-doc" class="yui-t7">
51
    <div id="custom-doc" class="yui-t7">
41
        <div id="bd">
52
        <div id="bd">
42
            <h1>Search results</h1>
53
            <h1>Search results</h1>
43
	    <div class="results">
54
            <div class="pages">
44
                [% IF ( displayprev || displaynext ) %]
55
                [% pagination_bar %]
45
                <p>
56
            </div>
46
                    [% IF ( displayprev ) %]
57
            <p>
47
                    <a href="label-item-search.pl?startfrom=[% startfromprev %]&amp;ccl_query=[% ccl_query %]&amp;resultsperpage=[% resultsperpage %]&amp;op=do_search&amp;batch_id=[% batch_id %]">&lt;&lt;</a>
48
                    [% END %]
49
                    [% FOREACH number IN numbers %]
50
                    <a href="label-item-search.pl?startfrom=[% number.startfrom %]&amp;ccl_query=[% ccl_query %]&amp;resultsperpage=[% resultsperpage %]&amp;op=do_search&amp;batch_id=[% batch_id %]">[% number.number %]</a>
51
                    [% END %]
52
                    [% IF ( displaynext ) %]
53
                    <a href="label-item-search.pl?startfrom=[% startfromnext %]&amp;ccl_query=[% ccl_query %]&amp;resultsperpage=[% resultsperpage %]&amp;op=do_search&amp;batch_id=[% batch_id %]">&gt;&gt;</a>
54
                    [% END %]
55
		</p>
56
                [% END %]
57
                [% IF ( results ) %]
58
                [% IF ( results ) %]
58
                <strong>Results [% from %] through [% to %] [% IF ( total ) %] of [% total %][% END %]</strong>
59
                <strong>Results [% from %] through [% to %] [% IF ( total ) %] of [% total %][% END %]</strong>
59
                [% ELSE %]
60
                [% ELSE %]
60
                No results found
61
                No results found
61
                [% END %]
62
                [% END %]
62
            </div>
63
            </p>
63
64
64
            <form name="resultform" class="checkboxed" action="">
65
            <form name="resultform" 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
            <div id="toolbar" class="btn-toolbar">
66
                    <input type="button" class="close" value="Done" /></p>
67
                <div class="btn-group"><button type="button" class="btn btn-small" id="add_items"><i class="fa fa-plus"></i> Add checked</button></div>
68
                <div class="btn-group"><a href="#" class="btn btn-small close"><i class="fa fa-times-circle"></i> Done</a></div>
69
            </div>
70
                <div><a id="CheckAll" href="#"><i class="fa fa-check"></i> Select all</a> <a id="CheckNone" href="#"><i class="fa fa-remove"></i> Clear all</a></div>
67
71
68
                <div id="label-search-results">
72
                <div id="label-search-results">
69
                <input type="hidden" name="ccl_query" value="[% ccl_query %]" />
73
                <input type="hidden" name="ccl_query" value="[% ccl_query %]" />
70
            [% FOREACH result_se IN result_set %]
74
            [% FOREACH result_se IN result_set %]
71
            <div style="border-bottom:1px solid #CCC;margin: .5em 0;">
75
            <div style="border-bottom:1px solid #CCC;padding:1em 0;">
72
		            <h4>[% result_se.title |html %]</h4>
76
		            <h4>[% result_se.title |html %]</h4>
73
                            <p>[% IF ( result_se.author ) %]by [% result_se.author %][% END %]
77
                            <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>
78
                            [[% 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>
75
79
76
                    <table style="margin-bottom:1em;">
80
                    <table>
77
                    [% FOREACH item_tabl IN result_se.item_table %]
81
                    [% FOREACH item_tabl IN result_se.item_table %]
78
                    [% IF ( item_tabl.header_fields ) %]
82
                    [% IF ( item_tabl.header_fields ) %]
79
                    <tr>
83
                        <thead>
80
                    [% FOREACH header_field IN item_tabl.header_fields %]
84
                            <tr>
81
                        <th>[% header_field.field_label %]</th>
85
                                [% FOREACH header_field IN item_tabl.header_fields %]
82
                    [% END %]
86
                                    [% SWITCH header_field.field_label -%]
83
                    </tr>
87
                                        [% CASE "Add Item" -%]
88
                                            <th>Add item</th>
89
                                        [% CASE "Call Number" -%]
90
                                            <th>Call number</th>
91
                                        [% CASE "Accession Date" %]
92
                                            <th>Accession date</th>
93
                                        [% CASE "Barcode" %]
94
                                            <th>Barcode</th>
95
                                        [% CASE "Select" -%]
96
                                            <th>Select</th>
97
                                        [% CASE %]
98
                                            <th>[% header_field.field_label %]</th>
99
z                                    [% END -%]
100
                                [% END %]
101
                            </tr>
102
                        </thead>
84
                    [% ELSE %]
103
                    [% ELSE %]
85
                    <tr>
104
                    <tr>
86
                    [% FOREACH text_field IN item_tabl.text_fields %]
105
                    [% FOREACH text_field IN item_tabl.text_fields %]
87
                    [% IF ( text_field.select_field ) %]
106
                    [% IF ( text_field.select_field ) %]
88
                        <td align="center"><input type="checkbox" name="action" value="[% text_field.field_value %]"></td>
107
                        <td><input type="checkbox" name="action" value="[% text_field.field_value %]"></td>
89
                    [% ELSIF ( text_field.link_field ) %]
108
                    [% ELSIF ( text_field.link_field ) %]
90
                        <td align="center">
109
                        <td>
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&amp;batch_id=[% batch_id %]&amp;item_number=[% text_field.field_value %]">Add</a>
110
                            <a class="btn btn-mini select_item" data-item-number="[% text_field.field_value %]" data-batch-id="[% batch_id %]" data-field-type="[% text_field.type %]"><i class="fa fa-plus"></i> Add</a>
92
                        </td>
111
                        </td>
93
                    [% ELSE %]
112
                    [% ELSE %]
94
                        <td align="center">[% text_field.field_value %]</td>
113
                        <td>[% text_field.field_value %]</td>
95
                    [% END %]
114
                    [% END %]
96
                    [% END %]
115
                    [% END %]
97
                    </tr>
116
                    </tr>
Lines 103-125 Link Here
103
                </div>
122
                </div>
104
            </form>
123
            </form>
105
        </div>
124
        </div>
106
	<div class="results">
107
	    [% IF ( displayprev || displaynext ) %]
125
	    [% IF ( displayprev || displaynext ) %]
108
            <p>
126
            <div class="pages">
109
                [% IF ( displayprev ) %]
127
                [% pagination_bar %]
110
                <a href="label-item-search.pl?startfrom=[% startfromnext %]&amp;ccl_query=[% ccl_query %]&amp;resultsperpage=[% resultsperpage %]&amp;op=do_search&amp;batch_id=[% batch_id %]">&lt;&lt;</a>
128
            </div>
111
                [% END %]
129
        [% END %]
112
                [% FOREACH number IN numbers %]
130
        <div id="closewindow"><a href="#" class="btn btn-default close">Close</a></div>
113
                [% IF ( number.highlight ) %]
114
                <span class="current">[% number.number %]</span>
115
                [% ELSE %]
116
                <a href="label-item-search.pl?startfrom=[% number.startfrom %]&amp;ccl_query=[% number.ccl_query %]&amp;resultsperpage=[% number.resultsperpage %]&amp;op=do_search&amp;batch_id=[% number.batch_id %]">[% number.number %]</a>
117
                [% END %]
118
                [% END %]
119
                [% IF ( displaynext ) %]
120
                <a href="label-item-search.pl?startfrom=[% startfromnext %]&amp;ccl_query=[% ccl_query %]&amp;resultsperpage=[% resultsperpage %]&amp;op=do_search&amp;batch_id=[% batch_id %]">&gt;&gt;</a>
121
                [% END %]
122
	    </p>
123
            [% END %]
124
	</div>
125
    [% INCLUDE 'popup-bottom.inc' %]
131
    [% INCLUDE 'popup-bottom.inc' %]
(-)a/labels/label-item-search.pl (-3 / +3 lines)
Lines 26-37 use List::Util qw( max min ); Link Here
26
use POSIX qw(ceil);
26
use POSIX qw(ceil);
27
27
28
use C4::Auth qw(get_template_and_user);
28
use C4::Auth qw(get_template_and_user);
29
use C4::Output qw(output_html_with_http_headers);
29
use C4::Output qw(output_html_with_http_headers pagination_bar);
30
use C4::Context;
30
use C4::Context;
31
use C4::Search qw(SimpleSearch);
31
use C4::Search qw(SimpleSearch);
32
use C4::Biblio qw(TransformMarcToKoha);
32
use C4::Biblio qw(TransformMarcToKoha);
33
use C4::Items qw(GetItemInfosOf get_itemnumbers_of);
33
use C4::Items qw(GetItemInfosOf get_itemnumbers_of);
34
use C4::Koha qw(GetItemTypes);
34
use C4::Koha qw(GetItemTypes getnbpages);
35
use C4::Creators::Lib qw(html_table);
35
use C4::Creators::Lib qw(html_table);
36
use C4::Debug;
36
use C4::Debug;
37
use Koha::DateUtils;
37
use Koha::DateUtils;
Lines 225-230 if ($show_results) { Link Here
225
        displayprev    => $displayprev,
225
        displayprev    => $displayprev,
226
        resultsperpage => $resultsperpage,
226
        resultsperpage => $resultsperpage,
227
        numbers        => \@numbers,
227
        numbers        => \@numbers,
228
        pagination_bar => pagination_bar( "/cgi-bin/koha/labels/label-item-search.pl?ccl_query=$ccl_query&resultsperpage=$resultsperpage&op=do_search&batch_id=$batch_id", getnbpages( $total_hits, $resultsperpage ), $startfrom, 'startfrom' ),
228
    );
229
    );
229
230
230
    $template->param(
231
    $template->param(
231
- 

Return to bug 16576