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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt (-133 / +169 lines)
Lines 1-12 Link Here
1
[% USE ItemTypes %]
1
[% USE ItemTypes %]
2
[% SET footerjs = 1 %]
2
    [% INCLUDE 'doc-head-open.inc' %]
3
    [% INCLUDE 'doc-head-open.inc' %]
3
    <title>Koha &rsaquo; Tools &rsaquo; Label creator &rsaquo; Batches &rsaquo; [% IF batch_id %]Edit ([% batch_id %])[% ELSE %]New[% END %]</title>
4
    <title>Koha &rsaquo; Tools &rsaquo; Label creator &rsaquo; Batches &rsaquo; [% IF batch_id %]Edit ([% batch_id %])[% ELSE %]New[% END %]</title>
4
    [% INCLUDE 'doc-head-close.inc' %]
5
    [% INCLUDE 'doc-head-close.inc' %]
5
    [% INCLUDE 'greybox.inc' %]
6
    <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
6
    <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
7
</head>
8
9
<body id="labels_label-edit-batch" class="tools labels" onload="dofocus();">
10
    [% INCLUDE 'header.inc' %]
11
    [% INCLUDE 'cat-search.inc' %]
12
    <div id="breadcrumbs">
13
        <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
14
        <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
15
        <a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a> &rsaquo;
16
        <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=batch">Batches</a> &rsaquo;
17
        [% IF batch_id %]
18
            Edit ([% batch_id %])
19
        [% ELSE %]
20
            New
21
        [% END %]
22
    </div>
23
    <div id="doc3" class="yui-t2">
24
        <div id="bd">
25
            <div id="yui-main">
26
                <div class="yui-b">
27
                        [% INCLUDE 'labels-toolbar.inc' %]
28
                        [% IF ( err ) %]
29
                            <div class="dialog alert">
30
                                <strong>WARNING:</strong> An error was encountered and [% errstr %] Please have your system administrator check the error log for details.
31
                            </div>
32
                        [% ELSIF ( duplicate_message ) %]
33
                            <div class="dialog message">
34
                                <strong>Duplicate item(s) removed from batch number [% batch_id %]: [% duplicate_count %]</strong>
35
                            </div>
36
                        [% END %]
37
38
                        <div id="manage-label-batches">
39
                            <div class="hint">Current library: [% LoginBranchname %]</div>
40
                            <form name="add_by_number" action="/cgi-bin/koha/labels/label-edit-batch.pl" method="post">
41
                                <div>
42
                                    <fieldset class="rows" style="border-bottom: 0px; border: 0px;">
43
                                    <ol><li id="description">
44
                                        <input type="hidden" name="op" value="add" />
45
                                        <input type="hidden" name="batch_id" value="[% batch_id %]" />
46
                                        <label for="description">Batch description: </label>
47
                                        <input type="text" name="description" value="[% description %]">
48
                                        <a href="#" id="savedesc" data-batch_id="[% batch_id %]" class="btn btn-default btn-xs">Save description</a> <span id="change-status"></span>
49
                                    </li>
50
                                    <li>
51
                                        <input type="radio" name="number_type" id="barcode_enter" value="barcode" checked />
52
                                        <label for="barcode_enter">Enter by barcode:</label><br/>
53
                                        <input type="radio" name="number_type" id="itemnum_enter" value="itemnumber" />
54
                                        <label for="itemnum_enter">Enter by itemnumber:</label>
55
                                    </li>
56
                                    <li>
57
                                        <label for="number_list">Add by barcode(s) or itemnumbers(s):
58
                                            <br /> <span class="hint">One number per line.</span>
59
                                            <br /> <span class="hint">Leave empty to add via item search (itemnumber).</span>
60
                                        </label>
61
                                        <textarea rows="5" id="number_list" name="number_list" tabindex="1" class="focus"></textarea>
62
                                    </li></ol>
63
                                    </fieldset>
64
                                </div>
65
                            </form>
66
                            <div id="batch-manage" class="btn-toolbar">
67
                                <a class="btn btn-default btn-sm" id="additems" href="#"><i class="fa fa-plus"></i> Add item(s)</a>[% IF ( table_loop ) %]
68
                                <a class="btn btn-default btn-sm" id="removeitems" href="#"><i class="fa fa-trash"></i> Remove selected items</a>
69
                                <a class="btn btn-default btn-sm" id="deletebatch" href="#"><i class="fa fa-minus-square"></i> Delete batch</a>
70
                                <a class="btn btn-default btn-sm" id="deduplicate" href="#"><i class="fa fa-minus"></i> Remove duplicates</a>
71
                                <a class="btn btn-default btn-sm" id="exportitems" href="#"><i class="fa fa-share-square-o"></i> Export selected items</a>
72
                                <a class="btn btn-default btn-sm" id="exportbatch" href="#"><i class="fa fa-share-square-o"></i> Export full batch</a>[% END %]
73
                            </div>
74
                            [% IF ( table_loop ) %]
75
                                <form name="items" class="checkboxed">
76
                                    <h2>Items in batch number [% batch_id %]</h2>
77
                                    <table id="batcht">
78
                                        [% FOREACH table_loo IN table_loop %]
79
                                            [% IF ( table_loo.header_fields ) %]
80
                                                <thead>
81
                                                    <tr>
82
                                                        [% FOREACH header_field IN table_loo.header_fields %]
83
                                                            [% SWITCH header_field.field_label -%]
84
                                                                [% CASE "Label number" -%]
85
                                                                    <th>Label number</th>
86
                                                                [% CASE "Summary" -%]
87
                                                                    <th class="anti-the">Summary</th>
88
                                                                [% CASE "Item type" %]
89
                                                                    <th>Item type</th>
90
                                                                [% CASE "Barcode" %]
91
                                                                    <th>Barcode</th>
92
                                                                [% CASE "Select" -%]
93
                                                                    <th>Select</th>
94
                                                                [% CASE %]
95
                                                                    <th>[% header_field.field_label %]</th>
96
                                                            [% END -%]
97
                                                        [% END %]
98
                                                    </tr>
99
                                                </thead>
100
                                                <tbody>
101
                                            [% ELSE %]
102
                                                    <tr>
103
                                                        [% FOREACH text_field IN table_loo.text_fields %]
104
                                                            [% IF ( text_field.select_field ) %]
105
                                                                <td>
106
                                                                    <a class="btn btn-default btn-xs 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>
107
                                                                    <a class="btn btn-default btn-xs 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>
108
                                                                </td>
109
                                                                <td><input type="checkbox" name="action" value="[% text_field.field_value %]"></td>
110
                                                            [% ELSE %]
111
                                                                <td>
112
                                                                    [% IF ( text_field.field_name == '_item_type_tbl' ) %]
113
                                                                        [% ItemTypes.GetDescription( text_field.field_value ) %]
114
                                                                    [% ELSE %]
115
                                                                        [% text_field.field_value %]
116
                                                                    [% END %]
117
                                                                </td>
118
                                                            [% END %]
119
                                                        [% END %]
120
                                                    </tr>
121
                                            [% END %]
122
                                        [% END %]
123
                                        </tbody>
124
                                    </table>
125
                                </form>
126
                                [% ELSE %]
127
                                    <div class="dialog message">
128
                                        <h4>There are no items in this batch yet</h4>
129
                                        <p>Add items by using the text area above or leave empty to add via item search.</p>
130
                                    </div>
131
                                [% END %]
132
                            </div>
133
                        </div>
134
                </div>
135
            <div class="yui-b">
136
              [% INCLUDE 'tools-menu.inc' %]
137
            </div>
138
            </div>
139
140
[% MACRO jsinclude BLOCK %]
141
    [% INCLUDE 'greybox.inc' %]
7
    [% INCLUDE 'datatables.inc' %]
142
    [% INCLUDE 'datatables.inc' %]
143
    <script type="text/javascript" src="[% interface %]/[% theme %]/js/tools-menu.js"></script>
8
    <script type="text/javascript">
144
    <script type="text/javascript">
9
    //<![CDATA[
10
        function DeleteConfirm() {
145
        function DeleteConfirm() {
11
            var msg = _("Are you sure you want to delete batch %s?").format("[% batch_id %]");
146
            var msg = _("Are you sure you want to delete batch %s?").format("[% batch_id %]");
12
            var answer = confirm(msg);
147
            var answer = confirm(msg);
Lines 43-49 Link Here
43
                    item_msg = item_num.join(", ");
178
                    item_msg = item_num.join(", ");
44
                    var msg = "Are you sure you want to remove label number(s): " + item_msg + " from this batch?"
179
                    var msg = "Are you sure you want to remove label number(s): " + item_msg + " from this batch?"
45
                } else if (document.items.action.checked) {
180
                } else if (document.items.action.checked) {
46
		    alert(_("Deletion of label from a batch with only one label will delete the batch.") + "\n\n" + _("If this is what you want, select the 'Delete batch' option from the toolbar"));
181
            alert(_("Deletion of label from a batch with only one label will delete the batch.") + "\n\n" + _("If this is what you want, select the 'Delete batch' option from the toolbar"));
47
                    return; // no deletion for single item batch
182
                    return; // no deletion for single item batch
48
                }
183
                }
49
                else {
184
                else {
Lines 167-301 Link Here
167
                var batch_id = $(this).data("batch-id");
302
                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);
303
                GB_showCenter(_("Export labels"),"/cgi-bin/koha/labels/label-print.pl?batch_id=" + batch_id + "&label_id=" + label_id, 400, 800);
169
            });
304
            });
170
         });
305
171
    //]]>
306
            $("#savedesc").click(function(event){
307
                event.preventDefault(); // prevent form submission
308
                var newdescription = $(this).siblings('input[name="description"]').val();
309
                var batch_id = $(this).data('batch_id');
310
                var ajaxData = {
311
                    'newdescription': newdescription,
312
                    'batch_id': batch_id,
313
                    'card_element': "batch",
314
                    'creator': "label",
315
                };
316
317
                $.ajax({
318
                    url: '/cgi-bin/koha/svc/creator_batches',
319
                    type: 'POST',
320
                    dataType: 'json',
321
                    data: ajaxData,
322
                })
323
324
                .done(function(data){
325
                    if (data.status == 'success') {
326
                        $("input[name='description']").text(data.newdesc);
327
                        $("#change-status").text(_("Saved"));
328
                    } else {
329
                        $("#change-status").text(_("Unable to save description"));
330
                    }
331
                });
332
            });
333
        });
172
    </script>
334
    </script>
173
</head>
335
[% END %]
174
<body id="labels_label-edit-batch" class="tools labels" onload="dofocus();">
175
    [% INCLUDE 'header.inc' %]
176
    [% INCLUDE 'cat-search.inc' %]
177
    <div id="breadcrumbs">
178
        <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
179
        <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
180
        <a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a> &rsaquo;
181
        <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=batch">Batches</a> &rsaquo;
182
        [% IF batch_id %]
183
            Edit ([% batch_id %])
184
        [% ELSE %]
185
            New
186
        [% END %]
187
    </div>
188
    <div id="doc3" class="yui-t2">
189
        <div id="bd">
190
            <div id="yui-main">
191
                <div class="yui-b">
192
                        [% INCLUDE 'labels-toolbar.inc' %]
193
                        [% IF ( err ) %]
194
                            <div class="dialog alert">
195
                                <strong>WARNING:</strong> An error was encountered and [% errstr %] Please have your system administrator check the error log for details.
196
                            </div>
197
                        [% ELSIF ( duplicate_message ) %]
198
                            <div class="dialog message">
199
                                <strong>Duplicate item(s) removed from batch number [% batch_id %]: [% duplicate_count %]</strong>
200
                            </div>
201
                        [% END %]
202
336
203
                        <div id="manage-label-batches">
337
[% INCLUDE 'intranet-bottom.inc' %]
204
                            <div class="hint">Current library: [% LoginBranchname %]</div>
205
                            <form name="add_by_number" action="/cgi-bin/koha/labels/label-edit-batch.pl" method="post">
206
                                <div>
207
                                    <fieldset class="rows" style="border-bottom: 0px; border: 0px;">
208
                                    <ol><li>
209
                                        <input type="hidden" name="op" value="add" />
210
                                        <input type="hidden" name="batch_id" value="[% batch_id %]" />
211
                                    </li>
212
                                    <li>
213
                                        <input type="radio" name="number_type" id="barcode_enter" value="barcode" checked />
214
                                        <label for="barcode_enter">Enter by barcode:</label><br/>
215
                                        <input type="radio" name="number_type" id="itemnum_enter" value="itemnumber" />
216
                                        <label for="itemnum_enter">Enter by itemnumber:</label>
217
                                    </li>
218
                                    <li>
219
                                        <label for="number_list">Add by barcode(s) or itemnumbers(s):
220
                                            <br /> <span class="hint">One number per line.</span>
221
                                            <br /> <span class="hint">Leave empty to add via item search (itemnumber).</span>
222
                                        </label>
223
                                        <textarea rows="5" id="number_list" name="number_list" tabindex="1" class="focus"></textarea>
224
                                    </li></ol>
225
                                    </fieldset>
226
                                </div>
227
                            </form>
228
                            <div id="batch-manage" class="btn-toolbar">
229
                                <a class="btn btn-default btn-sm" id="additems" href="#"><i class="fa fa-plus"></i> Add item(s)</a>[% IF ( table_loop ) %]
230
                                <a class="btn btn-default btn-sm" id="removeitems" href="#"><i class="fa fa-trash"></i> Remove selected items</a>
231
                                <a class="btn btn-default btn-sm" id="deletebatch" href="#"><i class="fa fa-minus-square"></i> Delete batch</a>
232
                                <a class="btn btn-default btn-sm" id="deduplicate" href="#"><i class="fa fa-minus"></i> Remove duplicates</a>
233
                                <a class="btn btn-default btn-sm" id="exportitems" href="#"><i class="fa fa-share-square-o"></i> Export selected items</a>
234
                                <a class="btn btn-default btn-sm" id="exportbatch" href="#"><i class="fa fa-share-square-o"></i> Export full batch</a>[% END %]
235
                            </div>
236
                            [% IF ( table_loop ) %]
237
                                <form name="items" class="checkboxed">
238
                                    <h2>Items in batch number [% batch_id %]</h2>
239
                                    <table id="batcht">
240
                                        [% FOREACH table_loo IN table_loop %]
241
                                            [% IF ( table_loo.header_fields ) %]
242
                                                <thead>
243
                                                    <tr>
244
                                                        [% FOREACH header_field IN table_loo.header_fields %]
245
                                                            [% SWITCH header_field.field_label -%]
246
                                                                [% CASE "Label number" -%]
247
                                                                    <th>Label number</th>
248
                                                                [% CASE "Summary" -%]
249
                                                                    <th class="anti-the">Summary</th>
250
                                                                [% CASE "Item type" %]
251
                                                                    <th>Item type</th>
252
                                                                [% CASE "Barcode" %]
253
                                                                    <th>Barcode</th>
254
                                                                [% CASE "Select" -%]
255
                                                                    <th>Select</th>
256
                                                                [% CASE %]
257
                                                                    <th>[% header_field.field_label %]</th>
258
                                                            [% END -%]
259
                                                        [% END %]
260
                                                    </tr>
261
                                                </thead>
262
                                                <tbody>
263
                                            [% ELSE %]
264
                                                    <tr>
265
                                                        [% FOREACH text_field IN table_loo.text_fields %]
266
                                                            [% IF ( text_field.select_field ) %]
267
                                                                <td>
268
                                                                    <a class="btn btn-default btn-xs 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-default btn-xs 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>
272
                                                            [% ELSE %]
273
                                                                <td>
274
                                                                    [% IF ( text_field.field_name == '_item_type_tbl' ) %]
275
                                                                        [% ItemTypes.GetDescription( text_field.field_value ) %]
276
                                                                    [% ELSE %]
277
                                                                        [% text_field.field_value %]
278
                                                                    [% END %]
279
                                                                </td>
280
                                                            [% END %]
281
                                                        [% END %]
282
                                                    </tr>
283
                                            [% END %]
284
                                        [% END %]
285
                                        </tbody>
286
                                    </table>
287
                                </form>
288
                                [% ELSE %]
289
                                    <div class="dialog message">
290
                                        <h4>There are no items in this batch yet</h4>
291
                                        <p>Add items by using the text area above or leave empty to add via item search.</p>
292
                                    </div>
293
                                [% END %]
294
                            </div>
295
                        </div>
296
                </div>
297
            <div class="yui-b">
298
              [% INCLUDE 'tools-menu.inc' %]
299
            </div>
300
            </div>
301
    [% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-layout.tt (-30 / +35 lines)
Lines 7-44 Link Here
7
[%   CASE 'BAR'    %]Barcode
7
[%   CASE 'BAR'    %]Barcode
8
[%  END %]
8
[%  END %]
9
[% END %]
9
[% END %]
10
[% SET footerjs = 1 %]
10
    [% INCLUDE 'doc-head-open.inc' %]
11
    [% INCLUDE 'doc-head-open.inc' %]
11
    <title>Koha &rsaquo; Tools &rsaquo; Label creator &rsaquo; Layouts &rsaquo; [% IF ( layout_id ) %]Edit ([% layout_id %])[% ELSE %]New[% END %]</title>
12
    <title>Koha &rsaquo; Tools &rsaquo; Label creator &rsaquo; Layouts &rsaquo; [% IF ( layout_id ) %]Edit ([% layout_id %])[% ELSE %]New[% END %]</title>
12
    [% INCLUDE 'doc-head-close.inc' %]
13
    [% INCLUDE 'doc-head-close.inc' %]
13
    <script type="text/JavaScript">
14
        //<![CDATA[
15
            $(document).ready(function() {
16
                $("input[name='layout_choice']").change( function() { layout_method() } );
17
                layout_method();
18
                $("#font").on("change",function(){
19
                     checkOblique();
20
                });
21
            });
22
            function layout_method() {
23
                if( $("input[name='layout_choice']:checked").val() == 'layout_string' ) {
24
                    $('#layout_table').hide();
25
                    $('#layout_string').show();
26
                } else {
27
                    $('#layout_table').show();
28
                    $('#layout_string').hide();
29
                }
30
            }
31
            function checkOblique() {
32
                var font = document.getElementById("font");
33
                var selectedfont = font.options[font.selectedIndex].value;
34
                if ( selectedfont.match("I$") || selectedfont.match("O$") ) {
35
                    document.getElementById("oblique_title").disabled = true;
36
                } else {
37
                    document.getElementById("oblique_title").disabled = false;
38
                }
39
            }
40
        //]]>
41
    </script>
42
</head>
14
</head>
43
[% BLOCK translate_justification_types %]
15
[% BLOCK translate_justification_types %]
44
[%  SWITCH type %]
16
[%  SWITCH type %]
Lines 47-52 Link Here
47
[%   CASE 'R' %]Right
19
[%   CASE 'R' %]Right
48
[%  END %]
20
[%  END %]
49
[% END %]
21
[% END %]
22
50
<body id="labels_label-edit-layout" class="tools labels">
23
<body id="labels_label-edit-layout" class="tools labels">
51
    [% INCLUDE 'header.inc' %]
24
    [% INCLUDE 'header.inc' %]
52
    [% INCLUDE 'cat-search.inc' %]
25
    [% INCLUDE 'cat-search.inc' %]
Lines 213-216 Link Here
213
              [% INCLUDE 'tools-menu.inc' %]
186
              [% INCLUDE 'tools-menu.inc' %]
214
            </div>
187
            </div>
215
        </div>
188
        </div>
216
        [% INCLUDE 'intranet-bottom.inc' %]
189
190
[% MACRO jsinclude BLOCK %]
191
    <script type="text/javascript" src="[% interface %]/[% theme %]/js/tools-menu.js"></script>
192
    <script type="text/JavaScript">
193
            $(document).ready(function() {
194
                $("input[name='layout_choice']").change( function() { layout_method() } );
195
                layout_method();
196
                $("#font").on("change",function(){
197
                     checkOblique();
198
                });
199
            });
200
            function layout_method() {
201
                if( $("input[name='layout_choice']:checked").val() == 'layout_string' ) {
202
                    $('#layout_table').hide();
203
                    $('#layout_string').show();
204
                } else {
205
                    $('#layout_table').show();
206
                    $('#layout_string').hide();
207
                }
208
            }
209
            function checkOblique() {
210
                var font = document.getElementById("font");
211
                var selectedfont = font.options[font.selectedIndex].value;
212
                if ( selectedfont.match("I$") || selectedfont.match("O$") ) {
213
                    document.getElementById("oblique_title").disabled = true;
214
                } else {
215
                    document.getElementById("oblique_title").disabled = false;
216
                }
217
            }
218
    </script>
219
[% END %]
220
221
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-profile.tt (-35 / +40 lines)
Lines 1-41 Link Here
1
[% SET footerjs = 1 %]
1
    [% INCLUDE 'doc-head-open.inc' %]
2
    [% INCLUDE 'doc-head-open.inc' %]
2
    <title>Koha &rsaquo; Tools &rsaquo; Label creator &rsaquo; Profiles &rsaquo; [% IF ( profile_id ) %]Edit ([% profile_id %])[% ELSE %]New[% END%]</title>
3
    <title>Koha &rsaquo; Tools &rsaquo; Label creator &rsaquo; Profiles &rsaquo; [% IF ( profile_id ) %]Edit ([% profile_id %])[% ELSE %]New[% END%]</title>
3
    [% INCLUDE 'doc-head-close.inc' %]
4
    [% INCLUDE 'doc-head-close.inc' %]
4
	<script type="text/javascript">
5
        //<![CDATA[
6
		$(document).ready(function(){
7
		var selectedUnit = $("#units option:selected").attr("value");
8
		var unitfields = $("#offset_horz,#offset_vert,#creep_horz,#creep_vert");
9
		$(unitfields).after("<span class=\"unit\">"+getUnit(selectedUnit)+"</span>");
10
		$("#units").change(function(){
11
			$(".unit").html(getUnit($(this).val()));
12
		});
13
		function getUnit(unit){
14
			switch(unit){
15
				case "POINT":
16
					var unit = " pt";
17
					break;
18
				case "AGATE":
19
					var unit = " ag";
20
					break;
21
				case "INCH":
22
					var unit = " in";
23
					break;
24
				case "MM":
25
					var unit = " mm";
26
					break;
27
				case "CM":
28
					var unit = " cm";
29
					break;
30
				default:
31
					var unit = "";
32
			}
33
			return unit;
34
		}
35
		});
36
        //]]>
37
	</script>
38
</head>
5
</head>
6
39
<body id="labels_label-edit-profile" class="tools labels">
7
<body id="labels_label-edit-profile" class="tools labels">
40
    [% INCLUDE 'header.inc' %]
8
    [% INCLUDE 'header.inc' %]
41
    [% INCLUDE 'cat-search.inc' %]
9
    [% INCLUDE 'cat-search.inc' %]
Lines 146-149 Link Here
146
                  [% INCLUDE 'tools-menu.inc' %]
114
                  [% INCLUDE 'tools-menu.inc' %]
147
                </div>
115
                </div>
148
            </div>
116
            </div>
149
            [% INCLUDE 'intranet-bottom.inc' %]
117
118
[% MACRO jsinclude BLOCK %]
119
    <script type="text/javascript" src="[% interface %]/[% theme %]/js/tools-menu.js"></script>
120
    <script type="text/javascript">
121
        $(document).ready(function(){
122
            var selectedUnit = $("#units option:selected").attr("value");
123
            var unitfields = $("#offset_horz,#offset_vert,#creep_horz,#creep_vert");
124
            $(unitfields).after("<span class=\"unit\">"+getUnit(selectedUnit)+"</span>");
125
            $("#units").change(function(){
126
                $(".unit").html(getUnit($(this).val()));
127
            });
128
            function getUnit(unit){
129
                switch(unit){
130
                    case "POINT":
131
                        var unit = " pt";
132
                        break;
133
                    case "AGATE":
134
                        var unit = " ag";
135
                        break;
136
                    case "INCH":
137
                        var unit = " in";
138
                        break;
139
                    case "MM":
140
                        var unit = " mm";
141
                        break;
142
                    case "CM":
143
                        var unit = " cm";
144
                        break;
145
                    default:
146
                        var unit = "";
147
                }
148
                return unit;
149
            }
150
        });
151
    </script>
152
[% END %]
153
154
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-template.tt (-35 / +42 lines)
Lines 1-41 Link Here
1
[% SET footerjs = 1 %]
1
    [% INCLUDE 'doc-head-open.inc' %]
2
    [% INCLUDE 'doc-head-open.inc' %]
2
    <title>Koha &rsaquo; Tools &rsaquo; Label creator &rsaquo; Templates &rsaquo; [% IF ( template_id ) %]Edit ([% template_id %])[% ELSE %]New[% END %]</title>
3
    <title>Koha &rsaquo; Tools &rsaquo; Label creator &rsaquo; Templates &rsaquo; [% IF ( template_id ) %]Edit ([% template_id %])[% ELSE %]New[% END %]</title>
3
    [% INCLUDE 'doc-head-close.inc' %]
4
    [% INCLUDE 'doc-head-close.inc' %]
4
	<script type="text/javascript">
5
        //<![CDATA[
6
		$(document).ready(function(){
7
		var selectedUnit = $("#units option:selected").attr("value");
8
		var unitfields = $("#page_height,#page_width,#label_width,#label_height,#top_margin,#left_margin,#top_text_margin,#left_text_margin,#col_gap,#row_gap");
9
		$(unitfields).after("<span class=\"unit\">"+getUnit(selectedUnit)+"</span>");
10
		$("#units").change(function(){
11
			$(".unit").html(getUnit($(this).val()));
12
		});
13
		function getUnit(unit){
14
			switch(unit){
15
				case "POINT":
16
					var unit = " pt";
17
					break;
18
				case "AGATE":
19
					var unit = " ag";
20
					break;
21
				case "INCH":
22
					var unit = " in";
23
					break;
24
				case "MM":
25
					var unit = " mm";
26
					break;
27
				case "CM":
28
					var unit = " cm";
29
					break;
30
				default:
31
					var unit = "";
32
			}
33
			return unit;
34
		}
35
		});
36
        //]]>
37
	</script>
38
</head>
5
</head>
6
39
<body id="labels_label-edit-template" class="tools labels">
7
<body id="labels_label-edit-template" class="tools labels">
40
    [% INCLUDE 'header.inc' %]
8
    [% INCLUDE 'header.inc' %]
41
    [% INCLUDE 'cat-search.inc' %]
9
    [% INCLUDE 'cat-search.inc' %]
Lines 182-185 Link Here
182
          [% INCLUDE 'tools-menu.inc' %]
150
          [% INCLUDE 'tools-menu.inc' %]
183
        </div>
151
        </div>
184
    </div>
152
    </div>
185
    [% INCLUDE 'intranet-bottom.inc' %]
153
154
[% MACRO jsinclude BLOCK %]
155
    <script type="text/javascript" src="[% interface %]/[% theme %]/js/tools-menu.js"></script>
156
    <script type="text/javascript">
157
        //<![CDATA[
158
        $(document).ready(function(){
159
        var selectedUnit = $("#units option:selected").attr("value");
160
        var unitfields = $("#page_height,#page_width,#label_width,#label_height,#top_margin,#left_margin,#top_text_margin,#left_text_margin,#col_gap,#row_gap");
161
        $(unitfields).after("<span class=\"unit\">"+getUnit(selectedUnit)+"</span>");
162
        $("#units").change(function(){
163
            $(".unit").html(getUnit($(this).val()));
164
        });
165
        function getUnit(unit){
166
            switch(unit){
167
                case "POINT":
168
                    var unit = " pt";
169
                    break;
170
                case "AGATE":
171
                    var unit = " ag";
172
                    break;
173
                case "INCH":
174
                    var unit = " in";
175
                    break;
176
                case "MM":
177
                    var unit = " mm";
178
                    break;
179
                case "CM":
180
                    var unit = " cm";
181
                    break;
182
                default:
183
                    var unit = "";
184
            }
185
            return unit;
186
        }
187
        });
188
        //]]>
189
    </script>
190
[% END %]
191
192
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-home.tt (-1 / +7 lines)
Lines 1-3 Link Here
1
[% SET footerjs = 1 %]
1
    [% INCLUDE 'doc-head-open.inc' %]
2
    [% INCLUDE 'doc-head-open.inc' %]
2
    <title>Koha &rsaquo; Tools &rsaquo; Label creator</title>
3
    <title>Koha &rsaquo; Tools &rsaquo; Label creator</title>
3
    [% INCLUDE 'doc-head-close.inc' %]
4
    [% INCLUDE 'doc-head-close.inc' %]
Lines 29-32 Link Here
29
              [% INCLUDE 'tools-menu.inc' %]
30
              [% INCLUDE 'tools-menu.inc' %]
30
            </div>
31
            </div>
31
        </div>
32
        </div>
32
        [% INCLUDE 'intranet-bottom.inc' %]
33
34
[% MACRO jsinclude BLOCK %]
35
    <script type="text/javascript" src="[% interface %]/[% theme %]/js/tools-menu.js"></script>
36
[% END %]
37
38
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt (-77 / +82 lines)
Lines 10-95 Link Here
10
[%-  CASE 'Batches'   -%]Batches
10
[%-  CASE 'Batches'   -%]Batches
11
[%-  END -%]
11
[%-  END -%]
12
[% END %]
12
[% END %]
13
[% SET footerjs = 1 %]
13
    [% INCLUDE 'doc-head-open.inc' %]
14
    [% INCLUDE 'doc-head-open.inc' %]
14
    <title>Koha &rsaquo; Tools &rsaquo; Label creator &rsaquo; [% PROCESS translate_label_element element=label_element_title %]</title>
15
    <title>Koha &rsaquo; Tools &rsaquo; Label creator &rsaquo; [% PROCESS translate_label_element element=label_element_title %]</title>
15
    [% INCLUDE 'doc-head-close.inc' %]
16
    [% INCLUDE 'doc-head-close.inc' %]
16
    [% INCLUDE 'greybox.inc' %]
17
    <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
17
    <script type="text/javascript">
18
        //<![CDATA[
19
            function Xport() {
20
                batches= new Array;
21
                if(document.layouts.action.length > 0) {
22
                    for (var i=0; i < document.layouts.action.length; i++) {
23
                        if (document.layouts.action[i].checked) {
24
                            batches.push("batch_id=" +  document.layouts.action[i].value);
25
                        }
26
                    }
27
                    if (batches.length < 1) {
28
                        alert(_("Please select at least one batch to export."));
29
                        return;     // no batch selected
30
                    }
31
                    getstr = batches.join("&");
32
                }
33
                else if (document.layouts.action.checked) {
34
                    getstr = "batch_id="+document.layouts.action.value;
35
                }
36
                else {
37
                    alert(_("Please select at least one batch to export."));
38
                    return;     // no batch selected
39
                }
40
                return GB_showCenter('Export Labels', "/cgi-bin/koha/labels/label-print.pl?" + getstr, 400, 800);
41
            };
42
            function selected_layout(op) {
43
                var selected = new Array;
44
                if (document.layouts.action.length) {
45
                    for (i=0;i<document.layouts.action.length;i++){
46
                        if (document.layouts.action[i].checked){
47
                            selected.push(i);
48
                        }
49
                    };
50
                    if (selected.length == 1) {
51
                        return(document.layouts.action[selected[0]].value);
52
                    }
53
                    else {
54
                        alert(_("Please select only one %s to %s.").format("[% label_element %]", op));
55
                        return (-1);
56
                    }
57
                }
58
                else {
59
                    if (document.layouts.action.checked){
60
                        return(document.layouts.action.value);
61
                    }
62
                };
63
                alert(_("Please select a %s.").format("[% label_element %]"));
64
                return (-1);
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
            });
75
        //]]>
76
    </script>
77
78
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
79
[% INCLUDE 'datatables.inc' %]
80
<script type="text/javascript" id="js">
81
 $(document).ready(function() {
82
    $("#labels-table").dataTable($.extend(true, {}, dataTablesDefaults, {
83
        "sPaginationType": "four_button",
84
        "aaSorting": [[ 1, "asc" ]],
85
        "aoColumnDefs": [
86
            { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
87
        ]
88
    }));
89
 });
90
</script>
91
92
</head>
18
</head>
19
93
<body id="labels_label-manage" class="tools labels">
20
<body id="labels_label-manage" class="tools labels">
94
    [% INCLUDE 'header.inc' %]
21
    [% INCLUDE 'header.inc' %]
95
    [% INCLUDE 'cat-search.inc' %]
22
    [% INCLUDE 'cat-search.inc' %]
Lines 185-188 Link Here
185
          [% INCLUDE 'tools-menu.inc' %]
112
          [% INCLUDE 'tools-menu.inc' %]
186
        </div>
113
        </div>
187
        </div>
114
        </div>
188
    [% INCLUDE 'intranet-bottom.inc' %]
115
116
[% MACRO jsinclude BLOCK %]
117
    <script type="text/javascript" src="[% interface %]/[% theme %]/js/tools-menu.js"></script>
118
    [% INCLUDE 'greybox.inc' %]
119
    <script type="text/javascript">
120
        //<![CDATA[
121
            function Xport() {
122
                batches= new Array;
123
                if(document.layouts.action.length > 0) {
124
                    for (var i=0; i < document.layouts.action.length; i++) {
125
                        if (document.layouts.action[i].checked) {
126
                            batches.push("batch_id=" +  document.layouts.action[i].value);
127
                        }
128
                    }
129
                    if (batches.length < 1) {
130
                        alert(_("Please select at least one batch to export."));
131
                        return;     // no batch selected
132
                    }
133
                    getstr = batches.join("&");
134
                }
135
                else if (document.layouts.action.checked) {
136
                    getstr = "batch_id="+document.layouts.action.value;
137
                }
138
                else {
139
                    alert(_("Please select at least one batch to export."));
140
                    return;     // no batch selected
141
                }
142
                return GB_showCenter('Export Labels', "/cgi-bin/koha/labels/label-print.pl?" + getstr, 400, 800);
143
            };
144
            function selected_layout(op) {
145
                var selected = new Array;
146
                if (document.layouts.action.length) {
147
                    for (i=0;i<document.layouts.action.length;i++){
148
                        if (document.layouts.action[i].checked){
149
                            selected.push(i);
150
                        }
151
                    };
152
                    if (selected.length == 1) {
153
                        return(document.layouts.action[selected[0]].value);
154
                    }
155
                    else {
156
                        alert(_("Please select only one %s to %s.").format("[% label_element %]", op));
157
                        return (-1);
158
                    }
159
                }
160
                else {
161
                    if (document.layouts.action.checked){
162
                        return(document.layouts.action.value);
163
                    }
164
                };
165
                alert(_("Please select a %s.").format("[% label_element %]"));
166
                return (-1);
167
            };
168
            $(document).ready(function(){
169
                $("#print").click(function(e){
170
                    e.preventDefault();
171
                    Xport();
172
                });
173
                $(".delete").on("click", function(){
174
                    return confirmDelete( _("Are you sure you want to delete this?") );
175
                });
176
            });
177
    </script>
178
179
    [% INCLUDE 'datatables.inc' %]
180
    <script type="text/javascript" id="js">
181
     $(document).ready(function() {
182
        $("#labels-table").dataTable($.extend(true, {}, dataTablesDefaults, {
183
            "sPaginationType": "four_button",
184
            "aaSorting": [[ 1, "asc" ]],
185
            "aoColumnDefs": [
186
                { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
187
            ]
188
        }));
189
     });
190
    </script>
191
[% END %]
192
193
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-print.tt (-14 / +23 lines)
Lines 1-18 Link Here
1
    [% INCLUDE 'doc-head-open.inc' %]
1
<!DOCTYPE html>
2
[% IF ( bidi ) %]<html lang="[% lang %]" dir="[% bidi %]">[% ELSE %]<html lang="[% lang %]">[% END %]
3
<head>
2
    <title>Koha &rsaquo; Tools &rsaquo; Label creator &rsaquo; Label printing/exporting</title>
4
    <title>Koha &rsaquo; Tools &rsaquo; Label creator &rsaquo; Label printing/exporting</title>
3
    [% INCLUDE 'doc-head-close.inc' popup => 1 %]
5
    <link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" />
4
    <script type="text/javascript">
6
    [% INCLUDE intranetstylesheet.inc %]
5
        //<![CDATA[
7
    [% IF ( IntranetUserCSS ) %]<style type="text/css">[% IntranetUserCSS %]</style>[% END %]
6
            function Done() {
7
                window.location = "[% referer %]";
8
            };
9
            $(document).ready(function(){
10
                $(".gb-close").on("click",function(){
11
                    parent.parent.GB_hide();
12
                });
13
            });
14
        //]]>
15
    </script>
16
    <style type="text/css">#custom-doc {width:47.23em; *width:46.04em; min-width:610px; margin:auto; margin-top:0.4em;}</style>
8
    <style type="text/css">#custom-doc {width:47.23em; *width:46.04em; min-width:610px; margin:auto; margin-top:0.4em;}</style>
17
    <style type="text/css">table {border-collapse: separate; border-spacing: 0; border: hidden none;} .header {cursor: auto; background-position: center center; background-repeat: repeat;}</style>
9
    <style type="text/css">table {border-collapse: separate; border-spacing: 0; border: hidden none;} .header {cursor: auto; background-position: center center; background-repeat: repeat;}</style>
18
</head>
10
</head>
Lines 107-110 Link Here
107
            </form>
99
            </form>
108
            [% END %]
100
            [% END %]
109
        </div>
101
        </div>
102
103
[% IF ( IntranetUserJS ) %]
104
    <script type="text/javascript" src="[% interface %]/lib/jquery/jquery-2.2.3.min.js"></script>
105
    <script type="text/javascript" src="[% interface %]/lib/jquery/jquery-migrate-1.3.0.min.js"></script>
106
    <script type="text/javascript">
107
        [% IntranetUserJS %]
108
        function Done() {
109
            window.location = "[% referer %]";
110
        };
111
        $(document).ready(function(){
112
            $(".gb-close").on("click",function(){
113
                parent.parent.GB_hide();
114
            });
115
        });
116
    </script>
117
[% END %]
118
110
[% INCLUDE 'popup-bottom.inc' %]
119
[% INCLUDE 'popup-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/result.tt (-45 / +50 lines)
Lines 1-52 Link Here
1
[% SET footerjs = 1 %]
1
    [% INCLUDE 'doc-head-open.inc' %]
2
    [% INCLUDE 'doc-head-open.inc' %]
2
    <title>Koha &rsaquo; Barcodes and labels &rsaquo; Search results</title>
3
    <title>Koha &rsaquo; Barcodes and labels &rsaquo; Search results</title>
3
    [% INCLUDE 'doc-head-close.inc' %]
4
    [% 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
    <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.fixFloat.js"></script>
6
    <script type="text/javascript">
7
        //<![CDATA[
8
            $(document).ready(function(){
9
                $("#toolbar").fixFloat();
10
                $("#CheckAll").click(function(e){
11
                    e.preventDefault();
12
                    $("input[type='checkbox']").prop("checked",true);
13
                });
14
                $("#CheckNone").click(function(e){
15
                    e.preventDefault();
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);
27
                });
28
            });
29
            function add_item(item_number,batch_id,type_id){
30
                var p = window.opener;
31
                if (item_number == 'checked') {
32
                    items= new Array;
33
                    if(document.resultform.action.length > 0) {
34
                        for (var i=0; i < document.resultform.action.length; i++) {
35
                            if (document.resultform.action[i].checked) {
36
                                p.add_item(document.resultform.action[i].value);
37
                            }
38
                        }
39
                    } else {
40
                        p.add_item(document.resultform.action.value);
41
                    }
42
                }
43
                else {
44
                    p.add_item(item_number);
45
                }
46
            }
47
            //]]>
48
    </script>
49
</head>
6
</head>
7
50
<body id="labels_result" class="tools labels">
8
<body id="labels_result" class="tools labels">
51
    <div id="custom-doc" class="yui-t7">
9
    <div id="custom-doc" class="yui-t7">
52
        <div id="bd">
10
        <div id="bd">
Lines 150-153 z [% END -%] Link Here
150
        <div id="closewindow"><a href="#" class="btn btn-default btn-default close">Close</a></div>
108
        <div id="closewindow"><a href="#" class="btn btn-default btn-default close">Close</a></div>
151
            [% END %]
109
            [% END %]
152
    </div>
110
    </div>
153
    [% INCLUDE 'popup-bottom.inc' %]
111
112
[% MACRO jsinclude BLOCK %]
113
    <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.fixFloat.js"></script>
114
    <script type="text/javascript">
115
            $(document).ready(function(){
116
                $("#toolbar").fixFloat();
117
                $("#CheckAll").click(function(e){
118
                    e.preventDefault();
119
                    $("input[type='checkbox']").prop("checked",true);
120
                });
121
                $("#CheckNone").click(function(e){
122
                    e.preventDefault();
123
                    $("input[type='checkbox']").prop("checked",false);
124
                });
125
                $("#add_items").on("click",function(){
126
                    add_item('checked',[% batch_id %],'[% type %]');
127
                });
128
                $(".select_item").on("click",function(e){
129
                    e.preventDefault();
130
                    var batch_id = $(this).data("batch-id");
131
                    var itemnumber = $(this).data("item-number");
132
                    var type = $(this).data("field-type");
133
                    add_item(itemnumber, batch_id, type);
134
                });
135
            });
136
            function add_item(item_number,batch_id,type_id){
137
                var p = window.opener;
138
                if (item_number == 'checked') {
139
                    items= new Array;
140
                    if(document.resultform.action.length > 0) {
141
                        for (var i=0; i < document.resultform.action.length; i++) {
142
                            if (document.resultform.action[i].checked) {
143
                                p.add_item(document.resultform.action[i].value);
144
                            }
145
                        }
146
                    } else {
147
                        p.add_item(document.resultform.action.value);
148
                    }
149
                }
150
                else {
151
                    p.add_item(item_number);
152
                }
153
            }
154
    </script>
155
[% END %]
156
157
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
158
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/search.tt (-3 / +9 lines)
Lines 1-6 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]<title>Koha &rsaquo;  Labels</title>
1
[% SET footerjs = 1 %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
<title>Koha &rsaquo;  Labels</title>
2
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
3
[% INCLUDE 'calendar.inc' %]
4
<style type="text/css">#custom-doc { width:47.23em;*width:46.04em;min-width:610px; margin:auto;margin-top: .4em; text-align:left; }</style>
5
<style type="text/css">#custom-doc { width:47.23em;*width:46.04em;min-width:610px; margin:auto;margin-top: .4em; text-align:left; }</style>
5
</head>
6
</head>
6
<body id="labels_search" class="tools labels">
7
<body id="labels_search" class="tools labels">
Lines 105-108 to add to Batch [% batch_id %] Link Here
105
</form>
106
</form>
106
</div>
107
</div>
107
</div>
108
</div>
108
[% INCLUDE 'popup-bottom.inc' %]
109
110
[% MACRO jsinclude BLOCK %]
111
    [% INCLUDE 'calendar.inc' %]
112
[% END %]
113
114
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-home.tt (+6 lines)
Lines 1-3 Link Here
1
[% SET footerjs = 1 %]
1
[% INCLUDE 'doc-head-open.inc' %]<title>Koha &rsaquo; Tools &rsaquo; Quick spine label creator</title>
2
[% INCLUDE 'doc-head-open.inc' %]<title>Koha &rsaquo; Tools &rsaquo; Quick spine label creator</title>
2
[% INCLUDE 'doc-head-close.inc' %]
3
[% INCLUDE 'doc-head-close.inc' %]
3
</head>
4
</head>
Lines 30-33 Link Here
30
        </div>
31
        </div>
31
32
32
</div>
33
</div>
34
35
[% MACRO jsinclude BLOCK %]
36
    <script type="text/javascript" src="[% interface %]/[% theme %]/js/tools-menu.js"></script>
37
[% END %]
38
33
[% INCLUDE 'intranet-bottom.inc' %]
39
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt (-13 / +10 lines)
Lines 11-31 Link Here
11
		}
11
		}
12
	</style>
12
	</style>
13
[% IF ( IntranetUserCSS ) %]<style type="text/css">[% IntranetUserCSS %]</style>[% END %]
13
[% IF ( IntranetUserCSS ) %]<style type="text/css">[% IntranetUserCSS %]</style>[% END %]
14
[% IF ( IntranetUserJS ) %]
15
    <script type="text/javascript" src="[% interface %]/lib/jquery/jquery-2.2.3.min.js"></script>
16
    <script type="text/javascript" src="[% interface %]/lib/jquery/jquery-migrate-1.3.0.min.js"></script>
17
    <script type="text/javascript">
18
    //<![CDATA[
19
    [% IntranetUserJS %]
20
    //]]>
21
    </script>
22
[% END %]
23
</head>
14
</head>
24
	[% IF ( BarcodeNotFound ) %]
15
	[% IF ( BarcodeNotFound ) %]
25
		<body id="labels_spinelabel-print" class="tools labels">
16
		<body id="labels_spinelabel-print" class="tools labels">
26
            <p>The barcode [% Barcode |html %] was not found.</p>
17
            <p>The barcode [% Barcode |html %] was not found.</p>
27
            <p><a href="spinelabel-home.pl">Return to spine label printer</a></p>
18
            <p><a href="spinelabel-home.pl">Return to spine label printer</a></p>
28
		</body>
29
	[% ELSE %]
19
	[% ELSE %]
30
		[% IF ( autoprint ) %]
20
		[% IF ( autoprint ) %]
31
            <body id="labels_spinelabel-print" class="tools labels" onload="window.print()">
21
            <body id="labels_spinelabel-print" class="tools labels" onload="window.print()">
Lines 38-43 Link Here
38
			<span id="print_button" class="noprint">
28
			<span id="print_button" class="noprint">
39
                <button onclick="window.print()">Print this label</button>
29
                <button onclick="window.print()">Print this label</button>
40
			</span>
30
			</span>
41
		</body>
42
	[% END %]
31
	[% END %]
43
</html>
32
33
[% IF ( IntranetUserJS ) %]
34
    <script type="text/javascript" src="[% interface %]/lib/jquery/jquery-2.2.3.min.js"></script>
35
    <script type="text/javascript" src="[% interface %]/lib/jquery/jquery-migrate-1.3.0.min.js"></script>
36
    <script type="text/javascript">
37
        [% IntranetUserJS %]
38
    </script>
39
[% END %]
40
41
[% INCLUDE 'popup-bottom.inc' %]
44
- 

Return to bug 19709