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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-bib-search.tt (-5 / +6 lines)
Lines 1-21 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]Koha › Tools › Labels ›: Search[% INCLUDE 'doc-head-close.inc' %]
1
[% PROCESS 'i18n.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %][% t('Koha › Tools › Labels ›: Search') %][% INCLUDE 'doc-head-close.inc' %]
2
</head>
3
</head>
3
<body id="labels_label-bib-search" class="tools labels">
4
<body id="labels_label-bib-search" class="tools labels">
4
<div id="main-compact">
5
<div id="main-compact">
5
6
6
<h1>Search</h1>
7
<h1>[% t('Search') %]</h1>
7
8
8
<form name="f" method="post">
9
<form name="f" method="post">
9
	<input type="hidden" name="op" value="do_search" />
10
	<input type="hidden" name="op" value="do_search" />
10
	<input type="hidden" name="type" value="intranet" />
11
	<input type="hidden" name="type" value="intranet" />
11
	<div class="details">
12
	<div class="details">
12
		<h2>Search on</h2>
13
		<h2>[% t('Search on') %]</h2>
13
		<p>
14
		<p>
14
			<label for="category">Name or ISSN: </label>
15
			<label for="category">[% t('Name or ISSN:') %] </label>
15
			[% category %]
16
			[% category %]
16
		</p>
17
		</p>
17
		<p>
18
		<p>
18
			<label for="index">Search value: </label>
19
			<label for="index">[% t('Search value:') %] </label>
19
			<input type="text" name="value" value="[% value %]" />
20
			<input type="text" name="value" value="[% value %]" />
20
			<input type="hidden" name="authtypecode" value="[% category %]" />
21
			<input type="hidden" name="authtypecode" value="[% category %]" />
21
			<input type="hidden" name="marclist" value="" />
22
			<input type="hidden" name="marclist" value="" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt (-39 / +40 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE ItemTypes %]
3
[% USE ItemTypes %]
3
    [% INCLUDE 'doc-head-open.inc' %]
4
    [% INCLUDE 'doc-head-open.inc' %]
4
    <title>Koha &rsaquo; Tools &rsaquo; Label creator &rsaquo; Batches &rsaquo; [% IF batch_id %]Edit ([% batch_id %])[% ELSE %]New[% END %]</title>
5
    <title>[% t('Koha › Tools › Label creator › Batches ›') %] [% IF batch_id %][% t('Edit (') %][% batch_id %])[% ELSE %][% t('New') %][% END %]</title>
5
    [% INCLUDE 'doc-head-close.inc' %]
6
    [% INCLUDE 'doc-head-close.inc' %]
6
    [% INCLUDE 'greybox.inc' %]
7
    [% INCLUDE 'greybox.inc' %]
7
    [% Asset.css("css/datatables.css") %]
8
    [% Asset.css("css/datatables.css") %]
Lines 176-189 Link Here
176
    [% INCLUDE 'header.inc' %]
177
    [% INCLUDE 'header.inc' %]
177
    [% INCLUDE 'cat-search.inc' %]
178
    [% INCLUDE 'cat-search.inc' %]
178
    <div id="breadcrumbs">
179
    <div id="breadcrumbs">
179
        <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
180
        <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
180
        <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
181
        <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> ›
181
        <a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a> &rsaquo;
182
        <a href="/cgi-bin/koha/labels/label-home.pl">[% t('Label creator') %]</a> ›
182
        <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=batch">Batches</a> &rsaquo;
183
        <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=batch">[% t('Batches') %]</a> ›
183
        [% IF batch_id %]
184
        [% IF batch_id %]
184
            Edit ([% batch_id %])
185
            [% t('Edit (') %][% batch_id %])
185
        [% ELSE %]
186
        [% ELSE %]
186
            New
187
            [% t('New') %]
187
        [% END %]
188
        [% END %]
188
    </div>
189
    </div>
189
    <div id="doc3" class="yui-t2">
190
    <div id="doc3" class="yui-t2">
Lines 195-224 Link Here
195
                            [% BLOCK xlate_errtype %]
196
                            [% BLOCK xlate_errtype %]
196
                            [%    SWITCH errtype %]
197
                            [%    SWITCH errtype %]
197
                            [%       CASE 'ITEM_NOT_REMOVED' %]
198
                            [%       CASE 'ITEM_NOT_REMOVED' %]
198
                            <span>Item(s) not removed from batch [% batch_id %].</span>
199
                            <span>[% t('Item(s) not removed from batch') %] [% batch_id %].</span>
199
                            [%       CASE 'BATCH_NOT_DELETED' %]
200
                            [%       CASE 'BATCH_NOT_DELETED' %]
200
                            <span>Batch [% batch_id %] was not deleted.</span>
201
                            <span>[% t('Batch') %] [% batch_id %] [% t('was not deleted.') %]</span>
201
                            [%       CASE 'ITEM_NOT_ADDED' %]
202
                            [%       CASE 'ITEM_NOT_ADDED' %]
202
                            <span>Item(s) not added to batch [% batch_id %].</span>
203
                            <span>[% t('Item(s) not added to batch') %] [% batch_id %].</span>
203
                            [%       CASE 'BRANCH_NOT_SET' %]
204
                            [%       CASE 'BRANCH_NOT_SET' %]
204
                            <span>Library is not set, please set your library before adding items to a batch.</span>
205
                            <span>[% t('Library is not set, please set your library before adding items to a batch.') %]</span>
205
                            [%       CASE 'BATCH_NOT_DEDUP' %]
206
                            [%       CASE 'BATCH_NOT_DEDUP' %]
206
                            <span>Batch [% batch_id %] not fully de-duplicated.</span>
207
                            <span>[% t('Batch') %] [% batch_id %] [% t('not fully de-duplicated.') %]</span>
207
                            [%       CASE %]
208
                            [%       CASE %]
208
                            <span>Unknown error type [% errtype %].</span>
209
                            <span>[% t('Unknown error type') %] [% errtype %].</span>
209
                            [%    END %]
210
                            [%    END %]
210
                            [% END %]
211
                            [% END %]
211
                            <div class="dialog alert">
212
                            <div class="dialog alert">
212
                                <strong>WARNING:</strong> An error was encountered: [% PROCESS xlate_errtype %] Please have your system administrator check the error log for details.
213
                                <strong>[% t('WARNING:') %]</strong> [% t('An error was encountered:') %] [% PROCESS xlate_errtype %] [% t('Please have your system administrator check the error log for details.') %]
213
                            </div>
214
                            </div>
214
                        [% ELSIF ( duplicate_message ) %]
215
                        [% ELSIF ( duplicate_message ) %]
215
                            <div class="dialog message">
216
                            <div class="dialog message">
216
                                <strong>Duplicate item(s) removed from batch number [% batch_id %]: [% duplicate_count %]</strong>
217
                                <strong>[% t('Duplicate item(s) removed from batch number') %] [% batch_id %]: [% duplicate_count %]</strong>
217
                            </div>
218
                            </div>
218
                        [% END %]
219
                        [% END %]
219
220
220
                        <div id="manage-label-batches">
221
                        <div id="manage-label-batches">
221
                            <div class="hint">Current library: [% LoginBranchname %]</div>
222
                            <div class="hint">[% t('Current library:') %] [% LoginBranchname %]</div>
222
                            <form name="add_by_number" action="/cgi-bin/koha/labels/label-edit-batch.pl" method="post">
223
                            <form name="add_by_number" action="/cgi-bin/koha/labels/label-edit-batch.pl" method="post">
223
                                <div>
224
                                <div>
224
                                    <fieldset class="rows" style="border-bottom: 0px; border: 0px;">
225
                                    <fieldset class="rows" style="border-bottom: 0px; border: 0px;">
Lines 227-241 Link Here
227
                                        <input type="hidden" name="batch_id" value="[% batch_id %]" />
228
                                        <input type="hidden" name="batch_id" value="[% batch_id %]" />
228
                                    </li>
229
                                    </li>
229
                                    <li>
230
                                    <li>
230
                                        <input type="radio" name="number_type" id="barcode_enter" value="barcode" checked />
231
                                        <input type="radio" name="number_type" id="barcode_enter" value="barcode" checked="" />
231
                                        <label for="barcode_enter">Enter by barcode:</label><br/>
232
                                        <label for="barcode_enter">[% t('Enter by barcode:') %]</label><br />
232
                                        <input type="radio" name="number_type" id="itemnum_enter" value="itemnumber" />
233
                                        <input type="radio" name="number_type" id="itemnum_enter" value="itemnumber" />
233
                                        <label for="itemnum_enter">Enter by itemnumber:</label>
234
                                        <label for="itemnum_enter">[% t('Enter by itemnumber:') %]</label>
234
                                    </li>
235
                                    </li>
235
                                    <li>
236
                                    <li>
236
                                        <label for="number_list">Add by barcode(s) or itemnumbers(s):
237
                                        <label for="number_list">[% t('Add by barcode(s) or itemnumbers(s):') %]
237
                                            <br /> <span class="hint">One number per line.</span>
238
                                            <br /> <span class="hint">[% t('One number per line.') %]</span>
238
                                            <br /> <span class="hint">Leave empty to add via item search (itemnumber).</span>
239
                                            <br /> <span class="hint">[% t('Leave empty to add via item search (itemnumber).') %]</span>
239
                                        </label>
240
                                        </label>
240
                                        <textarea rows="5" id="number_list" name="number_list" tabindex="1" class="focus"></textarea>
241
                                        <textarea rows="5" id="number_list" name="number_list" tabindex="1" class="focus"></textarea>
241
                                    </li></ol>
242
                                    </li></ol>
Lines 243-258 Link Here
243
                                </div>
244
                                </div>
244
                            </form>
245
                            </form>
245
                            <div id="batch-manage" class="btn-toolbar">
246
                            <div id="batch-manage" class="btn-toolbar">
246
                                <a class="btn btn-default btn-sm" id="additems" href="#"><i class="fa fa-plus"></i> Add item(s)</a>[% IF ( table_loop ) %]
247
                                <a class="btn btn-default btn-sm" id="additems" href="#"><i class="fa fa-plus"></i> [% t('Add item(s)') %]</a>[% IF ( table_loop ) %]
247
                                <a class="btn btn-default btn-sm" id="removeitems" href="#"><i class="fa fa-trash"></i> Remove selected items</a>
248
                                <a class="btn btn-default btn-sm" id="removeitems" href="#"><i class="fa fa-trash"></i> [% t('Remove selected items') %]</a>
248
                                <a class="btn btn-default btn-sm" id="deletebatch" href="#"><i class="fa fa-minus-square"></i> Delete batch</a>
249
                                <a class="btn btn-default btn-sm" id="deletebatch" href="#"><i class="fa fa-minus-square"></i> [% t('Delete batch') %]</a>
249
                                <a class="btn btn-default btn-sm" id="deduplicate" href="#"><i class="fa fa-minus"></i> Remove duplicates</a>
250
                                <a class="btn btn-default btn-sm" id="deduplicate" href="#"><i class="fa fa-minus"></i> [% t('Remove duplicates') %]</a>
250
                                <a class="btn btn-default btn-sm" id="exportitems" href="#"><i class="fa fa-share-square-o"></i> Export selected items</a>
251
                                <a class="btn btn-default btn-sm" id="exportitems" href="#"><i class="fa fa-share-square-o"></i> [% t('Export selected items') %]</a>
251
                                <a class="btn btn-default btn-sm" id="exportbatch" href="#"><i class="fa fa-share-square-o"></i> Export full batch</a>[% END %]
252
                                <a class="btn btn-default btn-sm" id="exportbatch" href="#"><i class="fa fa-share-square-o"></i> [% t('Export full batch') %]</a>[% END %]
252
                            </div>
253
                            </div>
253
                            [% IF ( table_loop ) %]
254
                            [% IF ( table_loop ) %]
254
                                <form name="items" class="checkboxed">
255
                                <form name="items" class="checkboxed">
255
                                    <h2>Items in batch number [% batch_id %]</h2>
256
                                    <h2>[% t('Items in batch number') %] [% batch_id %]</h2>
256
                                    <table id="batcht">
257
                                    <table id="batcht">
257
                                        [% FOREACH table_loo IN table_loop %]
258
                                        [% FOREACH table_loo IN table_loop %]
258
                                            [% IF ( table_loo.header_fields ) %]
259
                                            [% IF ( table_loo.header_fields ) %]
Lines 261-277 Link Here
261
                                                        [% FOREACH header_field IN table_loo.header_fields %]
262
                                                        [% FOREACH header_field IN table_loo.header_fields %]
262
                                                            [% SWITCH header_field.field_label -%]
263
                                                            [% SWITCH header_field.field_label -%]
263
                                                                [% CASE "Label number" -%]
264
                                                                [% CASE "Label number" -%]
264
                                                                    <th>Label number</th>
265
                                                                    <th>[% t('Label number') %]</th>
265
                                                                [% CASE "Summary" -%]
266
                                                                [% CASE "Summary" -%]
266
                                                                    <th class="anti-the">Summary</th>
267
                                                                    <th class="anti-the">[% t('Summary') %]</th>
267
                                                                [% CASE "Item type" %]
268
                                                                [% CASE "Item type" %]
268
                                                                    <th>Item type</th>
269
                                                                    <th>[% t('Item type') %]</th>
269
                                                                [% CASE "Call number" %]
270
                                                                [% CASE "Call number" %]
270
                                                                    <th>Call number</th>
271
                                                                    <th>[% t('Call number') %]</th>
271
                                                                [% CASE "Barcode" %]
272
                                                                [% CASE "Barcode" %]
272
                                                                    <th>Barcode</th>
273
                                                                    <th>[% t('Barcode') %]</th>
273
                                                                [% CASE "Select" -%]
274
                                                                [% CASE "Select" -%]
274
                                                                    <th>Select</th>
275
                                                                    <th>[% t('Select') %]</th>
275
                                                                [% CASE %]
276
                                                                [% CASE %]
276
                                                                    <th>[% header_field.field_label %]</th>
277
                                                                    <th>[% header_field.field_label %]</th>
277
                                                            [% END -%]
278
                                                            [% END -%]
Lines 284-291 Link Here
284
                                                        [% FOREACH text_field IN table_loo.text_fields %]
285
                                                        [% FOREACH text_field IN table_loo.text_fields %]
285
                                                            [% IF ( text_field.select_field ) %]
286
                                                            [% IF ( text_field.select_field ) %]
286
                                                                <td>
287
                                                                <td>
287
                                                                    <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>
288
                                                                    <a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/labels/label-edit-batch.pl?op=remove&batch_id=[% batch_id |url %]&label_id=[% text_field.field_value |url %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
288
                                                                    <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>
289
                                                                    <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> [% t('Export') %]</a>
289
                                                                </td>
290
                                                                </td>
290
                                                                <td><input type="checkbox" name="action" value="[% text_field.field_value %]"></td>
291
                                                                <td><input type="checkbox" name="action" value="[% text_field.field_value %]"></td>
291
                                                            [% ELSE %]
292
                                                            [% ELSE %]
Lines 306-313 Link Here
306
                                </form>
307
                                </form>
307
                                [% ELSE %]
308
                                [% ELSE %]
308
                                    <div class="dialog message">
309
                                    <div class="dialog message">
309
                                        <h4>There are no items in this batch yet</h4>
310
                                        <h4>[% t('There are no items in this batch yet') %]</h4>
310
                                        <p>Add items by using the text area above or leave empty to add via item search.</p>
311
                                        <p>[% t('Add items by using the text area above or leave empty to add via item search.') %]</p>
311
                                    </div>
312
                                    </div>
312
                                [% END %]
313
                                [% END %]
313
                            </div>
314
                            </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-layout.tt (-40 / +41 lines)
Lines 1-14 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% BLOCK translate_label_types %]
2
[% BLOCK translate_label_types %]
2
[%  SWITCH type %]
3
[%  SWITCH type %]
3
[%   CASE 'BIB'    %]Biblio
4
[%   CASE 'BIB'    %][% t('Biblio') %]
4
[%   CASE 'BARBIB' %]Barcode/Biblio
5
[%   CASE 'BARBIB' %][% t('Barcode/Biblio') %]
5
[%   CASE 'BIBBAR' %]Biblio/Barcode
6
[%   CASE 'BIBBAR' %][% t('Biblio/Barcode') %]
6
[%   CASE 'ALT'    %]Alternating
7
[%   CASE 'ALT'    %][% t('Alternating') %]
7
[%   CASE 'BAR'    %]Barcode
8
[%   CASE 'BAR'    %][% t('Barcode') %]
8
[%  END %]
9
[%  END %]
9
[% END %]
10
[% END %]
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>[% t('Koha › Tools › Label creator › Layouts ›') %] [% IF ( layout_id ) %][% t('Edit (') %][% layout_id %])[% ELSE %][% t('New') %][% END %]</title>
12
    [% INCLUDE 'doc-head-close.inc' %]
13
    [% INCLUDE 'doc-head-close.inc' %]
13
    <script type="text/JavaScript">
14
    <script type="text/JavaScript">
14
        //<![CDATA[
15
        //<![CDATA[
Lines 42-61 Link Here
42
</head>
43
</head>
43
[% BLOCK translate_justification_types %]
44
[% BLOCK translate_justification_types %]
44
[%  SWITCH type %]
45
[%  SWITCH type %]
45
[%   CASE 'L' %]Left
46
[%   CASE 'L' %][% t('Left') %]
46
[%   CASE 'C' %]Center
47
[%   CASE 'C' %][% t('Center') %]
47
[%   CASE 'R' %]Right
48
[%   CASE 'R' %][% t('Right') %]
48
[%  END %]
49
[%  END %]
49
[% END %]
50
[% END %]
50
<body id="labels_label-edit-layout" class="tools labels">
51
<body id="labels_label-edit-layout" class="tools labels">
51
    [% INCLUDE 'header.inc' %]
52
    [% INCLUDE 'header.inc' %]
52
    [% INCLUDE 'cat-search.inc' %]
53
    [% INCLUDE 'cat-search.inc' %]
53
    <div id="breadcrumbs">
54
    <div id="breadcrumbs">
54
        <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
55
        <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
55
        <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
56
        <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> ›
56
        <a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a> &rsaquo;
57
        <a href="/cgi-bin/koha/labels/label-home.pl">[% t('Label creator') %]</a> ›
57
        <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout">Layouts</a> &rsaquo;
58
        <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout">[% t('Layouts') %]</a> ›
58
        [% IF ( layout_id ) %]Edit ([% layout_id %])[% ELSE %]New[% END %]
59
        [% IF ( layout_id ) %][% t('Edit (') %][% layout_id %])[% ELSE %][% t('New') %][% END %]
59
    </div>
60
    </div>
60
    <div id="doc3" class="yui-t2">
61
    <div id="doc3" class="yui-t2">
61
        <div id="bd">
62
        <div id="bd">
Lines 69-82 Link Here
69
                    </div>
70
                    </div>
70
                    <form name="input" action="/cgi-bin/koha/labels/label-edit-layout.pl" method="get">
71
                    <form name="input" action="/cgi-bin/koha/labels/label-edit-layout.pl" method="get">
71
                        <fieldset class="rows">
72
                        <fieldset class="rows">
72
                            <legend>[% IF ( layout_id ) %]Edit[% ELSE %]Create[% END %] label layout</legend>
73
                            <legend>[% IF ( layout_id ) %][% t('Edit') %][% ELSE %][% t('Create') %][% END %] [% t('label layout') %]</legend>
73
                            <ol>
74
                            <ol>
74
                                <li>
75
                                <li>
75
                                    <label for="layout_name">Layout name: </label>
76
                                    <label for="layout_name">[% t('Layout name:') %] </label>
76
                                    <input type="text" name="layout_name" id="layout_name" size="20" value="[% layout_name %]" />
77
                                    <input type="text" name="layout_name" id="layout_name" size="20" value="[% layout_name %]" />
77
                                </li>
78
                                </li>
78
                                <li>
79
                                <li>
79
                                    <label for="barcode_type">Choose barcode type (encoding): </label>
80
                                    <label for="barcode_type">[% t('Choose barcode type (encoding):') %] </label>
80
                                    <select name="barcode_type" id="barcode_type">
81
                                    <select name="barcode_type" id="barcode_type">
81
                                    [% FOREACH barcode_type IN barcode_types %]
82
                                    [% FOREACH barcode_type IN barcode_types %]
82
                                    [% IF ( barcode_type.selected ) %]
83
                                    [% IF ( barcode_type.selected ) %]
Lines 88-94 Link Here
88
                                    </select>
89
                                    </select>
89
                                </li>
90
                                </li>
90
                                <li>
91
                                <li>
91
                                    <label for="printing_type">Choose layout type: </label>
92
                                    <label for="printing_type">[% t('Choose layout type:') %] </label>
92
                                    <select name="printing_type" id="printing_type">
93
                                    <select name="printing_type" id="printing_type">
93
                                    [% FOREACH label_type IN label_types %]
94
                                    [% FOREACH label_type IN label_types %]
94
                                    [% IF ( label_type.selected ) %]
95
                                    [% IF ( label_type.selected ) %]
Lines 101-112 Link Here
101
                                </li>
102
                                </li>
102
                                <li>
103
                                <li>
103
                                    <fieldset>
104
                                    <fieldset>
104
                                        <legend>Bibliographic data to print</legend>
105
                                        <legend>[% t('Bibliographic data to print') %]</legend>
105
										<ol>
106
										<ol>
106
                                        <li class="radio">[% IF ( layout_string ) %]
107
                                        <li class="radio">[% IF ( layout_string ) %]
107
                                        <input type="radio" name="layout_choice" id="layout_choice_order" value="layout_table" checked="checked" /><label for="layout_choice_order">Choose order of text fields to print</label>
108
                                        <input type="radio" name="layout_choice" id="layout_choice_order" value="layout_table" checked="checked" /><label for="layout_choice_order">[% t('Choose order of text fields to print') %]</label>
108
                                        [% ELSE %]
109
                                        [% ELSE %]
109
                                        <input type="radio" name="layout_choice" id="layout_choice_order" value="layout_table" /><label for="layout_choice_order">Choose Order Of Text Fields to Print</label>
110
                                        <input type="radio" name="layout_choice" id="layout_choice_order" value="layout_table" /><label for="layout_choice_order">[% t('Choose Order Of Text Fields to Print') %]</label>
110
                                        [% END %]
111
                                        [% END %]
111
												<div id="layout_table">
112
												<div id="layout_table">
112
                                                    <p>
113
                                                    <p>
Lines 120-169 Link Here
120
                                                            <option value="[% orde %]">[% orde %]</option>
121
                                                            <option value="[% orde %]">[% orde %]</option>
121
                                                                [% END %]
122
                                                                [% END %]
122
                                                            [% END %]
123
                                                            [% END %]
123
                                                        </select>&nbsp;<label for="[% text_field.field_name |url %]">[% text_field.field_label %]</label>
124
                                                        </select> <label for="[% text_field.field_name |url %]">[% text_field.field_label %]</label>
124
125
125
                                                        &nbsp;&nbsp;
126
                                                          
126
127
127
                                            [% END %]
128
                                            [% END %]
128
                                                    </p>
129
                                                    </p>
129
											</div>
130
											</div>
130
                                            </li>
131
                                            </li>
131
                                            [% UNLESS ( layout_string ) %]
132
                                            [% UNLESS ( layout_string ) %]
132
                                            <li class="radio"><input type="radio" id="layout_choice_list" name="layout_choice" value="layout_string" checked="checked" /> <label for="layout_choice_list">List fields</label></li>
133
                                            <li class="radio"><input type="radio" id="layout_choice_list" name="layout_choice" value="layout_string" checked="checked" /> <label for="layout_choice_list">[% t('List fields') %]</label></li>
133
                                            [% ELSE %]
134
                                            [% ELSE %]
134
                                            <li class="radio"><input type="radio" id="layout_choice_list" name="layout_choice" value="layout_string" /> <label for="layout_choice_list">List Fields</label></li>
135
                                            <li class="radio"><input type="radio" id="layout_choice_list" name="layout_choice" value="layout_string" /> <label for="layout_choice_list">[% t('List Fields') %]</label></li>
135
                                            [% END %]
136
                                            [% END %]
136
                                           <li> <fieldset id="layout_string" class="brief">
137
                                           <li> <fieldset id="layout_string" class="brief">
137
                                                <label for="format_string">Data fields</label>
138
                                                <label for="format_string">[% t('Data fields') %]</label>
138
                                                <input type="text" name="format_string" id="format_string" size="80" value="[% format_string |html %]" />
139
                                                <input type="text" name="format_string" id="format_string" size="80" value="[% format_string |html %]" />
139
                                                <div class="hint">
140
                                                <div class="hint">
140
                                                    <p>Enter a comma separated list of fields to print.  You may include any <em>Koha field</em> or MARC subfield.</p>
141
                                                    <p>[% t('Enter a comma separated list of fields to print.') %]  [% t('You may include any') %] <em>[% t('Koha field') %]</em> [% t('or MARC subfield.') %]</p>
141
                                                    <p>See online help for advanced options</p>
142
                                                    <p>[% t('See online help for advanced options') %]</p>
142
                                                    <p>ex: barcode, itemcallnumber, title, "050a 050b", 300a </p>
143
                                                    <p>[% t('ex: barcode, itemcallnumber, title, &#34;050a 050b&#34;, 300a') %] </p>
143
                                                    <p>Fields homebranch_description, holdingbranch_description, ccode_description, location_description and permanent_location_description show description instead of code.</p>
144
                                                    <p>[% t('Fields homebranch_description, holdingbranch_description, ccode_description, location_description and permanent_location_description show description instead of code.') %]</p>
144
                                                </div>
145
                                                </div>
145
                                            </fieldset></li>
146
                                            </fieldset></li>
146
											</ol>
147
											</ol>
147
                                    </fieldset>
148
                                    </fieldset>
148
                                </li>
149
                                </li>
149
                                <li>
150
                                <li>
150
                                    <label for="guidebox">Draw guide boxes: </label>
151
                                    <label for="guidebox">[% t('Draw guide boxes:') %] </label>
151
                                    [% IF ( guidebox ) %]
152
                                    [% IF ( guidebox ) %]
152
                                    <input type="checkbox" name="guidebox" id="guidebox" value="1"  checked="checked" />
153
                                    <input type="checkbox" name="guidebox" id="guidebox" value="1" checked="checked" />
153
                                    [% ELSE %]
154
                                    [% ELSE %]
154
                                    <input type="checkbox" name="guidebox" id="guidebox" value="1" />
155
                                    <input type="checkbox" name="guidebox" id="guidebox" value="1" />
155
                                    [% END %]
156
                                    [% END %]
156
                                </li>
157
                                </li>
157
                                <li>
158
                                <li>
158
                                    <label for="callnum_split">Split call numbers: </label>
159
                                    <label for="callnum_split">[% t('Split call numbers:') %] </label>
159
                                    [% IF ( callnum_split ) %]
160
                                    [% IF ( callnum_split ) %]
160
                                    <input type="checkbox" name="callnum_split" id="callnum_split" value="1"  checked="checked" />
161
                                    <input type="checkbox" name="callnum_split" id="callnum_split" value="1" checked="checked" />
161
                                    [% ELSE %]
162
                                    [% ELSE %]
162
                                    <input type="checkbox" name="callnum_split" id="callnum_split" value="1" />
163
                                    <input type="checkbox" name="callnum_split" id="callnum_split" value="1" />
163
                                    [% END %]
164
                                    [% END %]
164
                                </li>
165
                                </li>
165
                                <li>
166
                                <li>
166
                                    <label for="text_justify">Text justification: </label>
167
                                    <label for="text_justify">[% t('Text justification:') %] </label>
167
                                    <select name="text_justify" id="text_justify">
168
                                    <select name="text_justify" id="text_justify">
168
                                        [% FOREACH text_justification_type IN text_justification_types %]
169
                                        [% FOREACH text_justification_type IN text_justification_types %]
169
                                        [% IF ( text_justification_type.selected ) %]
170
                                        [% IF ( text_justification_type.selected ) %]
Lines 175-181 Link Here
175
                                    </select>
176
                                    </select>
176
                                </li>
177
                                </li>
177
                                <li>
178
                                <li>
178
                                    <label for="font">Font: </label>
179
                                    <label for="font">[% t('Font:') %] </label>
179
                                    <select name="font" id="font">
180
                                    <select name="font" id="font">
180
                                        [% FOREACH font_type IN font_types %]
181
                                        [% FOREACH font_type IN font_types %]
181
                                        [% IF ( font_type.selected ) %]
182
                                        [% IF ( font_type.selected ) %]
Lines 187-199 Link Here
187
                                    </select>
188
                                    </select>
188
                                </li>
189
                                </li>
189
                                <li>
190
                                <li>
190
                                    <label for="font_size">Font size: </label>
191
                                    <label for="font_size">[% t('Font size:') %] </label>
191
                                    <input type="text" name="font_size" id="font_size" size="2" value="[% font_size |html %]" />
192
                                    <input type="text" name="font_size" id="font_size" size="2" value="[% font_size |html %]" />
192
                                </li>
193
                                </li>
193
                                <li>
194
                                <li>
194
                                    <label for="oblique_title">Oblique title: </label>
195
                                    <label for="oblique_title">[% t('Oblique title:') %] </label>
195
                                    [% IF ( oblique_title ) %]
196
                                    [% IF ( oblique_title ) %]
196
                                    <input type="checkbox" name="oblique_title" id="oblique_title" value="1"  checked="checked" />
197
                                    <input type="checkbox" name="oblique_title" id="oblique_title" value="1" checked="checked" />
197
                                    [% ELSE %]
198
                                    [% ELSE %]
198
                                    <input type="checkbox" name="oblique_title" id="oblique_title" value="1" />
199
                                    <input type="checkbox" name="oblique_title" id="oblique_title" value="1" />
199
                                    [% END %]
200
                                    [% END %]
Lines 202-208 Link Here
202
                        </fieldset>
203
                        </fieldset>
203
                        <fieldset class="action">
204
                        <fieldset class="action">
204
                            <input type="submit" value="Save" />
205
                            <input type="submit" value="Save" />
205
                            <a class="cancel" href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout">Cancel</a>
206
                            <a class="cancel" href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout">[% t('Cancel') %]</a>
206
                            <input type="hidden" name="op" value="save" />
207
                            <input type="hidden" name="op" value="save" />
207
                            <input type="hidden" name="layout_id" value="[% layout_id %]" />
208
                            <input type="hidden" name="layout_id" value="[% layout_id %]" />
208
                        </fieldset>
209
                        </fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-profile.tt (-27 / +28 lines)
Lines 1-5 Link Here
1
[% PROCESS 'i18n.inc' %]
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>[% t('Koha › Tools › Label creator › Profiles ›') %] [% IF ( profile_id ) %][% t('Edit (') %][% profile_id %])[% ELSE %][% t('New') %][% END%]</title>
3
    [% INCLUDE 'doc-head-close.inc' %]
4
    [% INCLUDE 'doc-head-close.inc' %]
4
	<script type="text/javascript">
5
	<script type="text/javascript">
5
        //<![CDATA[
6
        //<![CDATA[
Lines 40-50 Link Here
40
    [% INCLUDE 'header.inc' %]
41
    [% INCLUDE 'header.inc' %]
41
    [% INCLUDE 'cat-search.inc' %]
42
    [% INCLUDE 'cat-search.inc' %]
42
    <div id="breadcrumbs">
43
    <div id="breadcrumbs">
43
        <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
44
        <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
44
        <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
45
        <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> ›
45
        <a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a> &rsaquo;
46
        <a href="/cgi-bin/koha/labels/label-home.pl">[% t('Label creator') %]</a> ›
46
        <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile">Profiles</a> &rsaquo;
47
        <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile">[% t('Profiles') %]</a> ›
47
        [% IF ( profile_id ) %]Edit ([% profile_id %])[% ELSE %]New[% END%]
48
        [% IF ( profile_id ) %][% t('Edit (') %][% profile_id %])[% ELSE %][% t('New') %][% END%]
48
    </div>
49
    </div>
49
    <div id="doc3" class="yui-t2">
50
    <div id="doc3" class="yui-t2">
50
        <div id="bd">
51
        <div id="bd">
Lines 54-89 Link Here
54
                    [% INCLUDE 'labels-toolbar.inc' %]
55
                    [% INCLUDE 'labels-toolbar.inc' %]
55
                    </div>
56
                    </div>
56
                        <div class="yui-u first">
57
                        <div class="yui-u first">
57
                            <h3>Edit printer profile</h3>
58
                            <h3>[% t('Edit printer profile') %]</h3>
58
                                <div class="yui-g first">
59
                                <div class="yui-g first">
59
                    <form name="input" action="/cgi-bin/koha/labels/label-edit-profile.pl" method="get">
60
                    <form name="input" action="/cgi-bin/koha/labels/label-edit-profile.pl" method="get">
60
                                    <fieldset class="rows"><legend>Profile settings</legend>
61
                                    <fieldset class="rows"><legend>[% t('Profile settings') %]</legend>
61
                                        <ol>
62
                                        <ol>
62
                                            <li>
63
                                            <li>
63
                                                [% IF ( profile_id ) %]
64
                                                [% IF ( profile_id ) %]
64
                                                 <span class="label">Printer name:</span>[% printer_name %]
65
                                                 <span class="label">[% t('Printer name:') %]</span>[% printer_name %]
65
                                                <input type="hidden" name="printer_name" value="[% printer_name %]" />
66
                                                <input type="hidden" name="printer_name" value="[% printer_name %]" />
66
                                                [% ELSE %]
67
                                                [% ELSE %]
67
                                                <label for="printer_name">Printer name:</label><input type="text"  size="20" name="printer_name" id="printer_name" />
68
                                                <label for="printer_name">[% t('Printer name:') %]</label><input type="text" size="20" name="printer_name" id="printer_name" />
68
                                                [% END %]
69
                                                [% END %]
69
                                            </li>
70
                                            </li>
70
                                            <li>
71
                                            <li>
71
                                                [% IF ( profile_id ) %]
72
                                                [% IF ( profile_id ) %]
72
												<span class="label">Paper bin:</span> [% paper_bin %]
73
												<span class="label">[% t('Paper bin:') %]</span> [% paper_bin %]
73
                                                <input type="hidden" name="paper_bin" value="[% paper_bin %]" />
74
                                                <input type="hidden" name="paper_bin" value="[% paper_bin %]" />
74
                                                [% ELSE %]
75
                                                [% ELSE %]
75
                                                <label for="paper_bin">Paper bin:</label><input type="text"  size="20" name="paper_bin" id="paper_bin" />
76
                                                <label for="paper_bin">[% t('Paper bin:') %]</label><input type="text" size="20" name="paper_bin" id="paper_bin" />
76
                                                [% END %]
77
                                                [% END %]
77
                                            </li>
78
                                            </li>
78
                                            <li>
79
                                            <li>
79
                                                [% IF ( label_template ) %]
80
                                                [% IF ( label_template ) %]
80
                                                 <label for="template_name">Template name:</label> [% label_template %]
81
                                                 <label for="template_name">[% t('Template name:') %]</label> [% label_template %]
81
                                                [% ELSE %]
82
                                                [% ELSE %]
82
                                                 <span class="label">Template name:</span> Profile unassigned
83
                                                 <span class="label">[% t('Template name:') %]</span> [% t('Profile unassigned') %]
83
                                                [% END %]
84
                                                [% END %]
84
                                            </li>
85
                                            </li>
85
                                            <li>
86
                                            <li>
86
                                                <label for="units">Units: </label>
87
                                                <label for="units">[% t('Units:') %] </label>
87
                                                <select id="units" name="units">
88
                                                <select id="units" name="units">
88
                                                    [% FOREACH unit IN units %]
89
                                                    [% FOREACH unit IN units %]
89
                                                    [% IF ( unit.selected ) %]
90
                                                    [% IF ( unit.selected ) %]
Lines 93-107 Link Here
93
                                                    [% END %]
94
                                                    [% END %]
94
                                                    [% SWITCH unit.type %]
95
                                                    [% SWITCH unit.type %]
95
                                                    [%   CASE 'POINT' %]
96
                                                    [%   CASE 'POINT' %]
96
                                                    PostScript Points
97
                                                    [% t('PostScript Points') %]
97
                                                    [%   CASE 'AGATE' %]
98
                                                    [%   CASE 'AGATE' %]
98
                                                    Adobe Agates
99
                                                    [% t('Adobe Agates') %]
99
                                                    [%   CASE 'INCH' %]
100
                                                    [%   CASE 'INCH' %]
100
                                                    US Inches
101
                                                    [% t('US Inches') %]
101
                                                    [%   CASE 'MM' %]
102
                                                    [%   CASE 'MM' %]
102
                                                    SI Millimeters
103
                                                    [% t('SI Millimeters') %]
103
                                                    [%   CASE 'CM' %]
104
                                                    [%   CASE 'CM' %]
104
                                                    SI Centimeters
105
                                                    [% t('SI Centimeters') %]
105
                                                    [% END %]
106
                                                    [% END %]
106
                                                    </option>
107
                                                    </option>
107
                                                    [% END %]
108
                                                    [% END %]
Lines 110-139 Link Here
110
                                         </ol>
111
                                         </ol>
111
										</fieldset>
112
										</fieldset>
112
113
113
										<fieldset class="rows"><legend>Offset:</legend>
114
										<fieldset class="rows"><legend>[% t('Offset:') %]</legend>
114
										<ol>
115
										<ol>
115
                                            <li>
116
                                            <li>
116
                                                <label for="offset_horz">Horizontal: </label><input type="text"  size="4" name="offset_horz" id="offset_horz" value="[% offset_horz %]" />
117
                                                <label for="offset_horz">[% t('Horizontal:') %] </label><input type="text" size="4" name="offset_horz" id="offset_horz" value="[% offset_horz %]" />
117
                                            </li>
118
                                            </li>
118
                                            <li>
119
                                            <li>
119
                                                <label for="offset_vert">Vertical: </label><input type="text" size="4" name="offset_vert" id="offset_vert" value="[% offset_vert %]" />
120
                                                <label for="offset_vert">[% t('Vertical:') %] </label><input type="text" size="4" name="offset_vert" id="offset_vert" value="[% offset_vert %]" />
120
                                            </li>
121
                                            </li>
121
                                         </ol>
122
                                         </ol>
122
										</fieldset>
123
										</fieldset>
123
124
124
										<fieldset class="rows"><legend>Creep:</legend>
125
										<fieldset class="rows"><legend>[% t('Creep:') %]</legend>
125
										<ol>
126
										<ol>
126
                                            <li>
127
                                            <li>
127
                                                <label for="creep_horz">Horizontal: </label><input type="text"  size="4" name="creep_horz" id="creep_horz" value="[% creep_horz %]" />
128
                                                <label for="creep_horz">[% t('Horizontal:') %] </label><input type="text" size="4" name="creep_horz" id="creep_horz" value="[% creep_horz %]" />
128
                                            </li>
129
                                            </li>
129
                                            <li>
130
                                            <li>
130
                                                <label for="creep_vert">Vertical: </label><input type="text" size="4" name="creep_vert" id="creep_vert" value="[% creep_vert %]" />
131
                                                <label for="creep_vert">[% t('Vertical:') %] </label><input type="text" size="4" name="creep_vert" id="creep_vert" value="[% creep_vert %]" />
131
                                            </li>
132
                                            </li>
132
                                        </ol>
133
                                        </ol>
133
                                    </fieldset>
134
                                    </fieldset>
134
                                    <fieldset class="action">
135
                                    <fieldset class="action">
135
                                        <input type="submit" value="Save" />
136
                                        <input type="submit" value="Save" />
136
                                        <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile" class="cancel">Cancel</a>
137
                                        <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile" class="cancel">[% t('Cancel') %]</a>
137
                                        <input type="hidden" name="op" value="save" />
138
                                        <input type="hidden" name="op" value="save" />
138
                                        <input type="hidden" name="profile_id" value="[% profile_id %]" />
139
                                        <input type="hidden" name="profile_id" value="[% profile_id %]" />
139
                                    </fieldset>
140
                                    </fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-template.tt (-31 / +32 lines)
Lines 1-5 Link Here
1
[% PROCESS 'i18n.inc' %]
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>[% t('Koha › Tools › Label creator › Templates ›') %] [% IF ( template_id ) %][% t('Edit (') %][% template_id %])[% ELSE %][% t('New') %][% END %]</title>
3
    [% INCLUDE 'doc-head-close.inc' %]
4
    [% INCLUDE 'doc-head-close.inc' %]
4
	<script type="text/javascript">
5
	<script type="text/javascript">
5
        //<![CDATA[
6
        //<![CDATA[
Lines 40-50 Link Here
40
    [% INCLUDE 'header.inc' %]
41
    [% INCLUDE 'header.inc' %]
41
    [% INCLUDE 'cat-search.inc' %]
42
    [% INCLUDE 'cat-search.inc' %]
42
    <div id="breadcrumbs">
43
    <div id="breadcrumbs">
43
        <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
44
        <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
44
        <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
45
        <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> ›
45
        <a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a> &rsaquo;
46
        <a href="/cgi-bin/koha/labels/label-home.pl">[% t('Label creator') %]</a> ›
46
        <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=template">Templates</a> &rsaquo;
47
        <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=template">[% t('Templates') %]</a> ›
47
        [% IF ( template_id ) %]Edit ([% template_id %])[% ELSE %]New[% END %]
48
        [% IF ( template_id ) %][% t('Edit (') %][% template_id %])[% ELSE %][% t('New') %][% END %]
48
    </div>
49
    </div>
49
    <div id="doc3" class="yui-t2">
50
    <div id="doc3" class="yui-t2">
50
        <div id="bd">
51
        <div id="bd">
Lines 58-80 Link Here
58
                    </div>
59
                    </div>
59
                    <form name="input" action="/cgi-bin/koha/labels/label-edit-template.pl" method="get">
60
                    <form name="input" action="/cgi-bin/koha/labels/label-edit-template.pl" method="get">
60
                    <div class="yui-g">
61
                    <div class="yui-g">
61
                        <h3>Edit label template</h3>
62
                        <h3>[% t('Edit label template') %]</h3>
62
                        <div class="yui-u first">
63
                        <div class="yui-u first">
63
                            <fieldset class="rows">
64
                            <fieldset class="rows">
64
                                <ol>
65
                                <ol>
65
                                    <li>
66
                                    <li>
66
                                        <span class="label">Template ID:</span>[% IF ( template_id ) %][% template_id %][% ELSE %]N/A[% END %]
67
                                        <span class="label">[% t('Template ID:') %]</span>[% IF ( template_id ) %][% template_id %][% ELSE %][% t('N/A') %][% END %]
67
                                    </li>
68
                                    </li>
68
                                    <li>
69
                                    <li>
69
                                        <label for="template_code">Template code:</label>
70
                                        <label for="template_code">[% t('Template code:') %]</label>
70
                                        <input type="text" size="30" maxlength="43" name="template_code" id="template_code" value="[% template_code %]" />
71
                                        <input type="text" size="30" maxlength="43" name="template_code" id="template_code" value="[% template_code %]" />
71
                                    </li>
72
                                    </li>
72
                                    <li>
73
                                    <li>
73
                                        <label for="template_desc">Template description:</label>
74
                                        <label for="template_desc">[% t('Template description:') %]</label>
74
                                        <textarea cols="30" rows="3" id="template_desc" name="template_desc">[% template_desc %]</textarea>
75
                                        <textarea cols="30" rows="3" id="template_desc" name="template_desc">[% template_desc %]</textarea>
75
                                    </li>
76
                                    </li>
76
 									<li>
77
 									<li>
77
                                 <label for="units">Units:</label>
78
                                 <label for="units">[% t('Units:') %]</label>
78
                                 <select id="units" name="units">
79
                                 <select id="units" name="units">
79
                                 [% FOREACH unit IN units %]
80
                                 [% FOREACH unit IN units %]
80
                                     [% IF ( unit.selected ) %]
81
                                     [% IF ( unit.selected ) %]
Lines 85-118 Link Here
85
86
86
                                     [% SWITCH unit.type %]
87
                                     [% SWITCH unit.type %]
87
                                     [%   CASE 'POINT' %]
88
                                     [%   CASE 'POINT' %]
88
                                     <span>PostScript Points</span>
89
                                     <span>[% t('PostScript Points') %]</span>
89
                                     [%   CASE 'AGATE' %]
90
                                     [%   CASE 'AGATE' %]
90
                                     <span>Adobe Agates</span>
91
                                     <span>[% t('Adobe Agates') %]</span>
91
                                     [%   CASE 'INCH' %]
92
                                     [%   CASE 'INCH' %]
92
                                     <span>US Inches</span>
93
                                     <span>[% t('US Inches') %]</span>
93
                                     [%   CASE 'MM' %]
94
                                     [%   CASE 'MM' %]
94
                                     <span>SI Millimeters</span>
95
                                     <span>[% t('SI Millimeters') %]</span>
95
                                     [%   CASE 'CM' %]
96
                                     [%   CASE 'CM' %]
96
                                     <span>SI Centimeters</span>
97
                                     <span>[% t('SI Centimeters') %]</span>
97
                                     [% END %]
98
                                     [% END %]
98
                                 </option>
99
                                 </option>
99
                                 [% END %]
100
                                 [% END %]
100
                                 </select>
101
                                 </select>
101
                             </li>
102
                             </li>
102
                                    <li>
103
                                    <li>
103
                                        <label for="page_height">Page height:</label>
104
                                        <label for="page_height">[% t('Page height:') %]</label>
104
                                        <input type="text" size="4" name="page_height" id="page_height" value="[% page_height %]" />
105
                                        <input type="text" size="4" name="page_height" id="page_height" value="[% page_height %]" />
105
                                    </li>
106
                                    </li>
106
                                    <li>
107
                                    <li>
107
                                        <label for="page_width">Page width:</label>
108
                                        <label for="page_width">[% t('Page width:') %]</label>
108
                                        <input type="text" size="4" name="page_width" id="page_width" value="[% page_width %]" />
109
                                        <input type="text" size="4" name="page_width" id="page_width" value="[% page_width %]" />
109
                                    </li>
110
                                    </li>
110
                                    <li>
111
                                    <li>
111
                                        <label for="label_width">Label width:</label>
112
                                        <label for="label_width">[% t('Label width:') %]</label>
112
                                        <input type="text" size="4" name="label_width" id="label_width" value="[% label_width %]" />
113
                                        <input type="text" size="4" name="label_width" id="label_width" value="[% label_width %]" />
113
                                    </li>
114
                                    </li>
114
                                    <li>
115
                                    <li>
115
                                        <label for="label_height">Label height:</label>
116
                                        <label for="label_height">[% t('Label height:') %]</label>
116
                                        <input type="text" size="4" name="label_height" id="label_height" value="[% label_height %]" />
117
                                        <input type="text" size="4" name="label_height" id="label_height" value="[% label_height %]" />
117
                                    </li>
118
                                    </li>
118
119
Lines 122-161 Link Here
122
                        <div class="yui-u">
123
                        <div class="yui-u">
123
                            <fieldset class="rows">
124
                            <fieldset class="rows">
124
                                <ol><li>
125
                                <ol><li>
125
                                    <label for="top_margin">Top page margin:</label>
126
                                    <label for="top_margin">[% t('Top page margin:') %]</label>
126
                                    <input type="text" size="4" name="top_margin" id="top_margin" value="[% top_margin %]" />
127
                                    <input type="text" size="4" name="top_margin" id="top_margin" value="[% top_margin %]" />
127
                                </li>
128
                                </li>
128
                                <li>
129
                                <li>
129
                                    <label for="left_margin">Left page margin:</label>
130
                                    <label for="left_margin">[% t('Left page margin:') %]</label>
130
                                    <input type="text" size="4" name="left_margin" id="left_margin" value="[% left_margin %]" />
131
                                    <input type="text" size="4" name="left_margin" id="left_margin" value="[% left_margin %]" />
131
                                </li>
132
                                </li>
132
                                    <li>
133
                                    <li>
133
                                        <label for="top_text_margin">Top text margin:</label>
134
                                        <label for="top_text_margin">[% t('Top text margin:') %]</label>
134
                                        <input type="text" size="4" name="top_text_margin" id="top_text_margin" value="[% top_text_margin %]" />
135
                                        <input type="text" size="4" name="top_text_margin" id="top_text_margin" value="[% top_text_margin %]" />
135
                                    </li>
136
                                    </li>
136
                                    <li>
137
                                    <li>
137
                                        <label for="left_text_margin">Left text margin:</label>
138
                                        <label for="left_text_margin">[% t('Left text margin:') %]</label>
138
                                        <input type="text" size="4" name="left_text_margin" id="left_text_margin" value="[% left_text_margin %]" />
139
                                        <input type="text" size="4" name="left_text_margin" id="left_text_margin" value="[% left_text_margin %]" />
139
                                    </li>
140
                                    </li>
140
                                    <li>
141
                                    <li>
141
                                        <label for="cols">Number of columns:</label>
142
                                        <label for="cols">[% t('Number of columns:') %]</label>
142
                                        <input type="text" size="4" name="cols" id="cols" value="[% cols %]" />
143
                                        <input type="text" size="4" name="cols" id="cols" value="[% cols %]" />
143
                                    </li>
144
                                    </li>
144
                                    <li>
145
                                    <li>
145
                                        <label for="rows">Number of rows:</label>
146
                                        <label for="rows">[% t('Number of rows:') %]</label>
146
                                        <input type="text" size="4" name="rows" id="rows" value="[% rows %]" />
147
                                        <input type="text" size="4" name="rows" id="rows" value="[% rows %]" />
147
                                    </li>
148
                                    </li>
148
                                    <li>
149
                                    <li>
149
                                        <label for="col_gap">Gap between columns:</label>
150
                                        <label for="col_gap">[% t('Gap between columns:') %]</label>
150
                                        <input type="text" size="4" name="col_gap" id="col_gap" value="[% col_gap %]" />
151
                                        <input type="text" size="4" name="col_gap" id="col_gap" value="[% col_gap %]" />
151
                                    </li>
152
                                    </li>
152
                                    <li>
153
                                    <li>
153
                                        <label for="row_gap">Gap between rows:</label>
154
                                        <label for="row_gap">[% t('Gap between rows:') %]</label>
154
                                        <input type="text" size="4" name="row_gap" id="row_gap" value="[% row_gap %]" />
155
                                        <input type="text" size="4" name="row_gap" id="row_gap" value="[% row_gap %]" />
155
                                    </li>
156
                                    </li>
156
157
157
                                    <li>
158
                                    <li>
158
                                        <label for="profile_id">Profile:</label>
159
                                        <label for="profile_id">[% t('Profile:') %]</label>
159
                                        [% IF ( profile_list ) %]
160
                                        [% IF ( profile_list ) %]
160
                                        <select id="profile_id" name="profile_id">
161
                                        <select id="profile_id" name="profile_id">
161
                                        [% FOREACH profile_lis IN profile_list %]
162
                                        [% FOREACH profile_lis IN profile_list %]
Lines 169-175 Link Here
169
                                        [% END %]
170
                                        [% END %]
170
                                        </select>
171
                                        </select>
171
                                        [% ELSE %]
172
                                        [% ELSE %]
172
                                        <a href="/cgi-bin/koha/labels/label-edit-profile.pl?op=new">Click here to define a printer profile.</a>
173
                                        <a href="/cgi-bin/koha/labels/label-edit-profile.pl?op=new">[% t('Click here to define a printer profile.') %]</a>
173
                                        [% END %]
174
                                        [% END %]
174
                                    </li>
175
                                    </li>
175
                                </ol>
176
                                </ol>
Lines 178-184 Link Here
178
                    </div>
179
                    </div>
179
                    <div class="yui-g">
180
                    <div class="yui-g">
180
                        <fieldset class="action">
181
                        <fieldset class="action">
181
                            <input type="submit" class="submit" value="Save" /><a class="cancel" href="/cgi-bin/koha/labels/label-manage.pl?label_element=template">Cancel</a>
182
                            <input type="submit" class="submit" value="Save" /><a class="cancel" href="/cgi-bin/koha/labels/label-manage.pl?label_element=template">[% t('Cancel') %]</a>
182
                            <input type="hidden" name="op" value="save" />
183
                            <input type="hidden" name="op" value="save" />
183
                            [% IF ( template_id ) %]
184
                            [% IF ( template_id ) %]
184
                            <input type="hidden" name="template_id" value="[% template_id %]" />
185
                            <input type="hidden" name="template_id" value="[% template_id %]" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-home.tt (-4 / +5 lines)
Lines 1-6 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
    [% INCLUDE 'doc-head-open.inc' %]
3
    [% INCLUDE 'doc-head-open.inc' %]
3
    <title>Koha &rsaquo; Tools &rsaquo; Label creator</title>
4
    <title>[% t('Koha › Tools › Label creator') %]</title>
4
    [% INCLUDE 'doc-head-close.inc' %]
5
    [% INCLUDE 'doc-head-close.inc' %]
5
    [% IF ( bidi ) %]
6
    [% IF ( bidi ) %]
6
    [% Asset.css("css/right-to-left.css") %]
7
    [% Asset.css("css/right-to-left.css") %]
Lines 10-18 Link Here
10
    [% INCLUDE 'header.inc' %]
11
    [% INCLUDE 'header.inc' %]
11
    [% INCLUDE 'cat-search.inc' %]
12
    [% INCLUDE 'cat-search.inc' %]
12
    <div id="breadcrumbs">
13
    <div id="breadcrumbs">
13
        <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
14
        <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
14
        <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
15
        <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> ›
15
        Label creator
16
        [% t('Label creator') %]
16
    </div>
17
    </div>
17
    <div id="doc3" class="yui-t2">
18
    <div id="doc3" class="yui-t2">
18
        <div id="bd">
19
        <div id="bd">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt (-39 / +40 lines)
Lines 1-18 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% BLOCK translate_label_element %]
3
[% BLOCK translate_label_element %]
3
[%-  SWITCH element -%]
4
[%-  SWITCH element -%]
4
[%-  CASE 'layout'    -%]layout
5
[%-  CASE 'layout'    -%][% t('layout') %]
5
[%-  CASE 'Layouts'   -%]Layouts
6
[%-  CASE 'Layouts'   -%][% t('Layouts') %]
6
[%-  CASE 'template'  -%]template
7
[%-  CASE 'template'  -%][% t('template') %]
7
[%-  CASE 'Templates' -%]Templates
8
[%-  CASE 'Templates' -%][% t('Templates') %]
8
[%-  CASE 'profile'   -%]profile
9
[%-  CASE 'profile'   -%][% t('profile') %]
9
[%-  CASE 'Profiles'  -%]Profiles
10
[%-  CASE 'Profiles'  -%][% t('Profiles') %]
10
[%-  CASE 'batch'     -%]batch
11
[%-  CASE 'batch'     -%][% t('batch') %]
11
[%-  CASE 'Batches'   -%]Batches
12
[%-  CASE 'Batches'   -%][% t('Batches') %]
12
[%-  END -%]
13
[%-  END -%]
13
[% END %]
14
[% END %]
14
    [% INCLUDE 'doc-head-open.inc' %]
15
    [% INCLUDE 'doc-head-open.inc' %]
15
    <title>Koha &rsaquo; Tools &rsaquo; Label creator &rsaquo; [% PROCESS translate_label_element element=label_element_title %]</title>
16
    <title>[% t('Koha › Tools › Label creator ›') %] [% PROCESS translate_label_element element=label_element_title %]</title>
16
    [% INCLUDE 'doc-head-close.inc' %]
17
    [% INCLUDE 'doc-head-close.inc' %]
17
    [% INCLUDE 'greybox.inc' %]
18
    [% INCLUDE 'greybox.inc' %]
18
    <script type="text/javascript">
19
    <script type="text/javascript">
Lines 95-103 Link Here
95
    [% INCLUDE 'header.inc' %]
96
    [% INCLUDE 'header.inc' %]
96
    [% INCLUDE 'cat-search.inc' %]
97
    [% INCLUDE 'cat-search.inc' %]
97
    <div id="breadcrumbs">
98
    <div id="breadcrumbs">
98
        <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
99
        <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
99
        <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
100
        <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> ›
100
        <a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a> &rsaquo;
101
        <a href="/cgi-bin/koha/labels/label-home.pl">[% t('Label creator') %]</a> ›
101
        [% PROCESS translate_label_element element=label_element_title %]
102
        [% PROCESS translate_label_element element=label_element_title %]
102
    </div>
103
    </div>
103
    <div id="doc3" class="yui-t2">
104
    <div id="doc3" class="yui-t2">
Lines 107-123 Link Here
107
                    [% INCLUDE 'labels-toolbar.inc' %]
108
                    [% INCLUDE 'labels-toolbar.inc' %]
108
                    <div class="yui-gc">
109
                    <div class="yui-gc">
109
                        <div class="yui-u first" id="manage-label-layouts">
110
                        <div class="yui-u first" id="manage-label-layouts">
110
                            <div class="hint">Current library: [% LoginBranchname %]</div>
111
                            <div class="hint">[% t('Current library:') %] [% LoginBranchname %]</div>
111
                            [% IF ( table_loop ) %]
112
                            [% IF ( table_loop ) %]
112
                            <form name="layouts" action="/cgi-bin/koha/label-manage.pl?label_element=[% label_element %]">
113
                            <form name="layouts" action="/cgi-bin/koha/label-manage.pl?label_element=[% label_element %]">
113
                            [% IF    ( label_element == 'layout' ) %]
114
                            [% IF    ( label_element == 'layout' ) %]
114
                            <h2>Currently available layouts</h2>
115
                            <h2>[% t('Currently available layouts') %]</h2>
115
                            [% ELSIF ( label_element == 'template' ) %]
116
                            [% ELSIF ( label_element == 'template' ) %]
116
                            <h2>Currently available templates</h2>
117
                            <h2>[% t('Currently available templates') %]</h2>
117
                            [% ELSIF ( label_element == 'profile' ) %]
118
                            [% ELSIF ( label_element == 'profile' ) %]
118
                            <h2>Currently available profiles</h2>
119
                            <h2>[% t('Currently available profiles') %]</h2>
119
                            [% ELSIF ( label_element == 'batch' ) %]
120
                            [% ELSIF ( label_element == 'batch' ) %]
120
                            <h2>Currently available batches</h2>
121
                            <h2>[% t('Currently available batches') %]</h2>
121
                            [% END %]
122
                            [% END %]
122
                            <table id="labels-table">
123
                            <table id="labels-table">
123
                                [% FOREACH table_loo IN table_loop %]
124
                                [% FOREACH table_loo IN table_loop %]
Lines 126-145 Link Here
126
                                        <tr>
127
                                        <tr>
127
                                            [% FOREACH header_field IN table_loo.header_fields %]
128
                                            [% FOREACH header_field IN table_loo.header_fields %]
128
                                                [% SWITCH header_field.field_label %]
129
                                                [% SWITCH header_field.field_label %]
129
                                                    [% CASE 'Layout ID'       %]<th>Layout ID</th>
130
                                                    [% CASE 'Layout ID'       %]<th>[% t('Layout ID') %]</th>
130
                                                    [% CASE 'Layout'          %]<th>Layout</th>
131
                                                    [% CASE 'Layout'          %]<th>[% t('Layout') %]</th>
131
                                                    [% CASE 'Barcode Type'    %]<th>Barcode type</th>
132
                                                    [% CASE 'Barcode Type'    %]<th>[% t('Barcode type') %]</th>
132
                                                    [% CASE 'Print Type'      %]<th>Print type</th>
133
                                                    [% CASE 'Print Type'      %]<th>[% t('Print type') %]</th>
133
                                                    [% CASE 'Template ID'     %]<th>Template ID</th>
134
                                                    [% CASE 'Template ID'     %]<th>[% t('Template ID') %]</th>
134
                                                    [% CASE 'Template Name'   %]<th>Template name</th>
135
                                                    [% CASE 'Template Name'   %]<th>[% t('Template name') %]</th>
135
                                                    [% CASE 'Description'     %]<th>Description</th>
136
                                                    [% CASE 'Description'     %]<th>[% t('Description') %]</th>
136
                                                    [% CASE 'Actions'         %]<th>Actions</th>
137
                                                    [% CASE 'Actions'         %]<th>[% t('Actions') %]</th>
137
                                                    [% CASE 'Profile ID'      %]<th>Profile ID</th>
138
                                                    [% CASE 'Profile ID'      %]<th>[% t('Profile ID') %]</th>
138
                                                    [% CASE 'Printer Name'    %]<th>Printer name</th>
139
                                                    [% CASE 'Printer Name'    %]<th>[% t('Printer name') %]</th>
139
                                                    [% CASE 'Paper Bin'       %]<th>Paper bin</th>
140
                                                    [% CASE 'Paper Bin'       %]<th>[% t('Paper bin') %]</th>
140
                                                    [% CASE 'Batch ID'        %]<th>Batch ID</th>
141
                                                    [% CASE 'Batch ID'        %]<th>[% t('Batch ID') %]</th>
141
                                                    [% CASE 'Item Count'      %]<th>Item count</th>
142
                                                    [% CASE 'Item Count'      %]<th>[% t('Item count') %]</th>
142
                                                    [% CASE 'Fields to Print' %]<th>Fields to print</th>
143
                                                    [% CASE 'Fields to Print' %]<th>[% t('Fields to print') %]</th>
143
                                                    [% CASE                   %]<th>[% header_field.field_label %]</th>
144
                                                    [% CASE                   %]<th>[% header_field.field_label %]</th>
144
                                                [% END %]
145
                                                [% END %]
145
                                            [% END %]
146
                                            [% END %]
Lines 150-185 Link Here
150
                                        [% FOREACH text_field IN table_loo.text_fields %]
151
                                        [% FOREACH text_field IN table_loo.text_fields %]
151
                                            [% IF ( text_field.select_field ) %]
152
                                            [% IF ( text_field.select_field ) %]
152
                                                <td class="actions">
153
                                                <td class="actions">
153
                                                    <a class="btn btn-default btn-xs" 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>
154
                                                    <a class="btn btn-default btn-xs" href="/cgi-bin/koha/labels/label-edit-[% label_element |url %].pl?op=edit&element_id=[% text_field.field_value |url %]"><i class="fa fa-edit"></i> [% t('Edit') %]</a>
154
                                                    <a class="btn btn-default btn-xs 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>
155
                                                    <a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/labels/label-manage.pl?op=delete&label_element=[% label_element %]&element_id=[% text_field.field_value |url %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
155
                                                </td>
156
                                                </td>
156
                                                [% IF label_element == 'batch' %] <td><input type="checkbox" name="action" value="[% text_field.field_value %]" /></td>[% END %]
157
                                                [% IF label_element == 'batch' %] <td><input type="checkbox" name="action" value="[% text_field.field_value %]" /></td>[% END %]
157
                                            [% ELSIF ( text_field.field_value ) %]
158
                                            [% ELSIF ( text_field.field_value ) %]
158
                                                <td>[% text_field.field_value %]</td>
159
                                                <td>[% text_field.field_value %]</td>
159
                                            [% ELSE %]
160
                                            [% ELSE %]
160
                                                <td>&nbsp;</td>
161
                                                <td> </td>
161
                                            [% END %]
162
                                            [% END %]
162
                                        [% END %]
163
                                        [% END %]
163
                                        </tr>
164
                                        </tr>
164
                                    [% END %]
165
                                    [% END %]
165
                                [% END %]
166
                                [% END %]
166
                            </table>
167
                            </table>
167
                            [% IF ( print ) %]<button type="button" class="btn btn-default btn-sm" id="print">Export selected</button>[% END %]
168
                            [% IF ( print ) %]<button type="button" class="btn btn-default btn-sm" id="print">[% t('Export selected') %]</button>[% END %]
168
                            </fieldset>
169
                            </fieldset>
169
                            </form>
170
                            </form>
170
                            [% ELSE %]
171
                            [% ELSE %]
171
							<div class="dialog message">
172
							<div class="dialog message">
172
                            <h4>There are no
173
                            <h4>[% t('There are no') %]
173
                            [% PROCESS translate_label_element element=label_element_title %]
174
                            [% PROCESS translate_label_element element=label_element_title %]
174
                            currently available.</h4>
175
                            [% t('currently available.') %]</h4>
175
                            <p>Use the toolbar above to create a new
176
                            <p>[% t('Use the toolbar above to create a new') %]
176
                            [% PROCESS translate_label_element element=label_element %].</p></div>
177
                            [% PROCESS translate_label_element element=label_element %].</p></div>
177
                            [% END %]
178
                            [% END %]
178
                        </div>
179
                        </div>
179
                        [% IF ( error ) %]
180
                        [% IF ( error ) %]
180
                        <div class="yui-u">
181
                        <div class="yui-u">
181
                            <div class="dialog alert">
182
                            <div class="dialog alert">
182
                                <strong>WARNING:</strong> An error was encountered and the [% op %] operation for [% label_element %] [% element_id %] was not completed. Please have your system administrator check the error log for details.
183
                                <strong>[% t('WARNING:') %]</strong> [% t('An error was encountered and the') %] [% op %] [% t('operation for') %] [% label_element %] [% element_id %] [% t('was not completed. Please have your system administrator check the error log for details.') %]
183
                            </div>
184
                            </div>
184
                        </div>
185
                        </div>
185
                        [% END %]
186
                        [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-print.tt (-22 / +23 lines)
Lines 1-5 Link Here
1
[% PROCESS 'i18n.inc' %]
1
    [% INCLUDE 'doc-head-open.inc' %]
2
    [% INCLUDE 'doc-head-open.inc' %]
2
    <title>Koha &rsaquo; Tools &rsaquo; Label creator &rsaquo; Label printing/exporting</title>
3
    <title>[% t('Koha › Tools › Label creator › Label printing/exporting') %]</title>
3
    [% INCLUDE 'doc-head-close.inc' popup => 1 %]
4
    [% INCLUDE 'doc-head-close.inc' popup => 1 %]
4
    <script type="text/javascript">
5
    <script type="text/javascript">
5
        //<![CDATA[
6
        //<![CDATA[
Lines 21-52 Link Here
21
        <div id="bd">
22
        <div id="bd">
22
            [% IF ( batches ) %]
23
            [% IF ( batches ) %]
23
            <form>
24
            <form>
24
                <h3>Click on the following links to download the exported batch(es).</h3>
25
                <h3>[% t('Click on the following links to download the exported batch(es).') %]</h3>
25
                        [% FOREACH batche IN batches %]
26
                        [% FOREACH batche IN batches %]
26
                        <fieldset>
27
                        <fieldset>
27
                            [% IF ( batche.label_ids ) %]
28
                            [% IF ( batche.label_ids ) %]
28
                                <legend>[% IF ( batche.label_count == 1 ) %][% batche.label_count %] single label[% ELSE %][% batche.label_count %] single labels[% END %]</legend>
29
                                <legend>[% IF ( batche.label_count == 1 ) %][% batche.label_count %] [% t('single label') %][% ELSE %][% batche.label_count %] [% t('single labels') %][% END %]</legend>
29
                                    <p><a class="document pdf" href="/cgi-bin/koha/labels/[% batche.create_script %]?batch_id=[% batche.batch_id %]&amp;template_id=[% batche.template_id %]&amp;layout_id=[% batche.layout_id %]&amp;start_label=[% batche.start_label %][% batche.label_ids %]">Download as PDF</a></p>
30
                                    <p><a class="document pdf" href="/cgi-bin/koha/labels/[% batche.create_script %]?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]&start_label=[% batche.start_label %][% batche.label_ids %]">[% t('Download as PDF') %]</a></p>
30
31
31
                                    <p><a class="document csv" href="/cgi-bin/koha/labels/label-create-csv.pl?batch_id=[% batche.batch_id %]&amp;template_id=[% batche.template_id %]&amp;layout_id=[% batche.layout_id %][% batche.label_ids %]">Download as CSV</a></p>
32
                                    <p><a class="document csv" href="/cgi-bin/koha/labels/label-create-csv.pl?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %][% batche.label_ids %]">[% t('Download as CSV') %]</a></p>
32
33
33
                                    <p><a class="document xml" href="/cgi-bin/koha/labels/label-create-xml.pl?batch_id=[% batche.batch_id %]&amp;template_id=[% batche.template_id %]&amp;layout_id=[% batche.layout_id %][% batche.label_ids %]">Download as XML</a></p>
34
                                    <p><a class="document xml" href="/cgi-bin/koha/labels/label-create-xml.pl?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %][% batche.label_ids %]">[% t('Download as XML') %]</a></p>
34
                            [% ELSIF ( batche.item_numbers ) %]
35
                            [% ELSIF ( batche.item_numbers ) %]
35
                            <legend>[% IF ( batche.label_count == 1 ) %][% batche.label_count %] single label[% ELSE %][% batche.label_count %] single labels[% END %]</legend>
36
                            <legend>[% IF ( batche.label_count == 1 ) %][% batche.label_count %] [% t('single label') %][% ELSE %][% batche.label_count %] [% t('single labels') %][% END %]</legend>
36
                                    <p><a class="document pdf" href="/cgi-bin/koha/labels/[% batche.create_script %]?template_id=[% batche.template_id %]&amp;layout_id=[% batche.layout_id %]&amp;start_label=[% batche.start_label %][% batche.item_numbers %]">Download as PDF</a></p>
37
                                    <p><a class="document pdf" href="/cgi-bin/koha/labels/[% batche.create_script %]?template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]&start_label=[% batche.start_label %][% batche.item_numbers %]">[% t('Download as PDF') %]</a></p>
37
38
38
                                    <p><a class="document csv" href="/cgi-bin/koha/labels/label-create-csv.pl?batch_id=[% batche.batch_id %]&amp;template_id=[% batche.template_id %]&amp;layout_id=[% batche.layout_id %][% batche.item_numbers %]">Download as CSV</a></p>
39
                                    <p><a class="document csv" href="/cgi-bin/koha/labels/label-create-csv.pl?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %][% batche.item_numbers %]">[% t('Download as CSV') %]</a></p>
39
40
40
                                    <p><a class="document xml" href="/cgi-bin/koha/labels/label-create-xml.pl?batch_id=[% batche.batch_id %]&amp;template_id=[% batche.template_id %]&amp;layout_id=[% batche.layout_id %][% batche.item_numbers %]">Download as XML</a></p>
41
                                    <p><a class="document xml" href="/cgi-bin/koha/labels/label-create-xml.pl?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %][% batche.item_numbers %]">[% t('Download as XML') %]</a></p>
41
                            [% ELSE %]
42
                            [% ELSE %]
42
                            <legend>Label Batch Number [% batche.batch_id %]</legend>
43
                            <legend>[% t('Label Batch Number') %] [% batche.batch_id %]</legend>
43
                                    <p><a class="document pdf" href="/cgi-bin/koha/labels/label-create-pdf.pl?batch_id=[% batche.batch_id %]&amp;template_id=[% batche.template_id %]&amp;layout_id=[% batche.layout_id %]&amp;start_label=[% batche.start_label %]">Download as PDF</a>
44
                                    <p><a class="document pdf" href="/cgi-bin/koha/labels/label-create-pdf.pl?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]&start_label=[% batche.start_label %]">[% t('Download as PDF') %]</a>
44
                                </p>
45
                                </p>
45
                                <p>
46
                                <p>
46
                                    <a class="document csv" href="/cgi-bin/koha/labels/label-create-csv.pl?batch_id=[% batche.batch_id %]&amp;template_id=[% batche.template_id %]&amp;layout_id=[% batche.layout_id %]">Download as CSV</a>
47
                                    <a class="document csv" href="/cgi-bin/koha/labels/label-create-csv.pl?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]">[% t('Download as CSV') %]</a>
47
                                </p>
48
                                </p>
48
                                <p>
49
                                <p>
49
                                    <a class="document xml" href="/cgi-bin/koha/labels/label-create-xml.pl?batch_id=[% batche.batch_id %]&amp;template_id=[% batche.template_id %]&amp;layout_id=[% batche.layout_id %]">Download as XML</a></p>
50
                                    <a class="document xml" href="/cgi-bin/koha/labels/label-create-xml.pl?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]">[% t('Download as XML') %]</a></p>
50
                            [% END %]
51
                            [% END %]
51
                        </fieldset>
52
                        </fieldset>
52
                        [% END %]
53
                        [% END %]
Lines 57-67 Link Here
57
            [% ELSE %]
58
            [% ELSE %]
58
            <h3>
59
            <h3>
59
                [% IF ( label_ids ) %]
60
                [% IF ( label_ids ) %]
60
                    [% IF ( label_count == 1 ) %]Exporting [% label_count %] label[% ELSE %]Exporting [% label_count %] labels[% END %]
61
                    [% IF ( label_count == 1 ) %][% t('Exporting') %] [% label_count %] [% t('label') %][% ELSE %][% t('Exporting') %] [% label_count %] [% t('labels') %][% END %]
61
                [% ELSIF ( item_numbers ) %]
62
                [% ELSIF ( item_numbers ) %]
62
                    [% IF ( item_count == 1 ) %]Exporting [% item_count %] label[% ELSE %]Exporting [% item_count %] labels[% END %]
63
                    [% IF ( item_count == 1 ) %][% t('Exporting') %] [% item_count %] [% t('label') %][% ELSE %][% t('Exporting') %] [% item_count %] [% t('labels') %][% END %]
63
                [% ELSE %]
64
                [% ELSE %]
64
                    [% IF ( multi_batch_count == 1 ) %][% multi_batch_count %] batch to export[% ELSE %][% multi_batch_count %] batches to export[% END %]
65
                    [% IF ( multi_batch_count == 1 ) %][% multi_batch_count %] [% t('batch to export') %][% ELSE %][% multi_batch_count %] [% t('batches to export') %][% END %]
65
                [% END %]
66
                [% END %]
66
            </h3>
67
            </h3>
67
            <form name="exporting" method="post" action="/cgi-bin/koha/labels/label-print.pl">
68
            <form name="exporting" method="post" action="/cgi-bin/koha/labels/label-print.pl">
Lines 79-85 Link Here
79
                <fieldset class="rows">
80
                <fieldset class="rows">
80
                    <ol>
81
                    <ol>
81
                        <li>
82
                        <li>
82
                            <label for="template_id" style="width:20em">Select a template to be applied: </label>
83
                            <label for="template_id" style="width:20em">[% t('Select a template to be applied:') %] </label>
83
                            <select name="template_id" id="template_id">
84
                            <select name="template_id" id="template_id">
84
                                    [% FOREACH template IN templates %]
85
                                    [% FOREACH template IN templates %]
85
                                    <option value="[% template.template_id %]">[% template.template_code %]</option>
86
                                    <option value="[% template.template_id %]">[% template.template_code %]</option>
Lines 87-93 Link Here
87
                                </select>
88
                                </select>
88
                        </li>
89
                        </li>
89
                        <li>
90
                        <li>
90
                            <label for="layout_id" style="width:20em">Select a layout to be applied: </label>
91
                            <label for="layout_id" style="width:20em">[% t('Select a layout to be applied:') %] </label>
91
                            <select name="layout_id" id="layout_id">
92
                            <select name="layout_id" id="layout_id">
92
                                    [% FOREACH layout IN layouts %]
93
                                    [% FOREACH layout IN layouts %]
93
                                    <option value="[% layout.layout_id %]">[% layout.layout_name %]</option>
94
                                    <option value="[% layout.layout_id %]">[% layout.layout_name %]</option>
Lines 95-108 Link Here
95
                                </select>
96
                                </select>
96
                        </li>
97
                        </li>
97
                        <li>
98
                        <li>
98
                            <label for="start_label" style="width:20em">Enter starting label position (for PDF): </label>
99
                            <label for="start_label" style="width:20em">[% t('Enter starting label position (for PDF):') %] </label>
99
                            <input type="text" size="5" id="start_label" name="start_label" class="focus" title="Starting label number" value="1"/>
100
                            <input type="text" size="5" id="start_label" name="start_label" class="focus" title="[% t('Starting label number') %]" value="1" />
100
                        </li>
101
                        </li>
101
                    </ol>
102
                    </ol>
102
                </fieldset>
103
                </fieldset>
103
                <fieldset class="action">
104
                <fieldset class="action">
104
                    <input type="submit" value="Export" />
105
                    <input type="submit" value="Export" />
105
                    <a href="#" class="cancel gb-close">Cancel</a>
106
                    <a href="#" class="cancel gb-close">[% t('Cancel') %]</a>
106
                </fieldset>
107
                </fieldset>
107
            </form>
108
            </form>
108
            [% END %]
109
            [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/result.tt (-23 / +24 lines)
Lines 1-6 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
    [% INCLUDE 'doc-head-open.inc' %]
3
    [% INCLUDE 'doc-head-open.inc' %]
3
    <title>Koha &rsaquo; Barcodes and labels &rsaquo; Search results</title>
4
    <title>[% t('Koha › Barcodes and labels › Search results') %]</title>
4
    [% INCLUDE 'doc-head-close.inc' %]
5
    [% INCLUDE 'doc-head-close.inc' %]
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>
6
    <style type="text/css">#custom-doc { width:46.23em;*width:45.04em;min-width:700px; margin:auto;margin-top: .4em; text-align:left; }</style>
6
    [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") %]
7
    [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") %]
Lines 51-91 Link Here
51
<body id="labels_result" class="tools labels">
52
<body id="labels_result" class="tools labels">
52
    <div id="custom-doc" class="yui-t7">
53
    <div id="custom-doc" class="yui-t7">
53
        <div id="bd">
54
        <div id="bd">
54
            <h1>Search results</h1>
55
            <h1>[% t('Search results') %]</h1>
55
        <div class="results">
56
        <div class="results">
56
                [% IF ( displayprev || displaynext ) %]
57
                [% IF ( displayprev || displaynext ) %]
57
            <p>
58
            <p>
58
                    [% IF ( displayprev ) %]
59
                    [% IF ( displayprev ) %]
59
                    <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>
60
                    <a href="label-item-search.pl?startfrom=[% startfromprev %]&ccl_query=[% ccl_query %]&resultsperpage=[% resultsperpage %]&op=do_search&batch_id=[% batch_id %]"><<</a>
60
                    [% END %]
61
                    [% END %]
61
                    [% FOREACH number IN numbers %]
62
                    [% FOREACH number IN numbers %]
62
                    <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>
63
                    <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>
63
                    [% END %]
64
                    [% END %]
64
                    [% IF ( displaynext ) %]
65
                    [% IF ( displaynext ) %]
65
                    <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>
66
                    <a href="label-item-search.pl?startfrom=[% startfromnext %]&ccl_query=[% ccl_query %]&resultsperpage=[% resultsperpage %]&op=do_search&batch_id=[% batch_id %]">>></a>
66
                    [% END %]
67
                    [% END %]
67
        </p>
68
        </p>
68
                [% END %]
69
                [% END %]
69
                [% IF ( results ) %]
70
                [% IF ( results ) %]
70
                <strong>Results [% from %] through [% to %] [% IF ( total ) %] of [% total %][% END %]</strong>
71
                <strong>[% t('Results') %] [% from %] [% t('through') %] [% to %] [% IF ( total ) %] [% t('of') %] [% total %][% END %]</strong>
71
                [% ELSE %]
72
                [% ELSE %]
72
                No results found
73
                [% t('No results found') %]
73
                [% END %]
74
                [% END %]
74
75
75
            <form name="resultform" action="">
76
            <form name="resultform" action="">
76
            <div id="toolbar" class="btn-toolbar">
77
            <div id="toolbar" class="btn-toolbar">
77
                <div class="btn-group"><button type="button" class="btn btn-default btn-sm" id="add_items"><i class="fa fa-plus"></i> Add checked</button></div>
78
                <div class="btn-group"><button type="button" class="btn btn-default btn-sm" id="add_items"><i class="fa fa-plus"></i> [% t('Add checked') %]</button></div>
78
                <div class="btn-group"><a href="#" class="btn btn-default btn-sm close"><i class="fa fa-times-circle"></i> Done</a></div>
79
                <div class="btn-group"><a href="#" class="btn btn-default btn-sm close"><i class="fa fa-times-circle"></i> [% t('Done') %]</a></div>
79
            </div>
80
            </div>
80
                <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>
81
                <div><a id="CheckAll" href="#"><i class="fa fa-check"></i> [% t('Select all') %]</a> <a id="CheckNone" href="#"><i class="fa fa-remove"></i> [% t('Clear all') %]</a></div>
81
82
82
                <div id="label-search-results">
83
                <div id="label-search-results">
83
                <input type="hidden" name="ccl_query" value="[% ccl_query %]" />
84
                <input type="hidden" name="ccl_query" value="[% ccl_query %]" />
84
            [% FOREACH result_se IN result_set %]
85
            [% FOREACH result_se IN result_set %]
85
            <div style="border-bottom:1px solid #CCC;padding:1em 0;">
86
            <div style="border-bottom:1px solid #CCC;padding:1em 0;">
86
                    <h4>[% result_se.title |html %]</h4>
87
                    <h4>[% result_se.title |html %]</h4>
87
                            <p>[% IF ( result_se.author ) %]by [% result_se.author %][% END %]
88
                            <p>[% IF ( result_se.author ) %][% t('by') %] [% result_se.author %][% END %]
88
                            [[% 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>
89
                            [[% 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>[% t('ISBN:') %] </b>[% result_se.isbn %][% END %][% IF ( result_se.notes ) %],<br />[% result_se.notes %][% END %]</p>
89
90
90
                    <table>
91
                    <table>
91
                    [% FOREACH item_tabl IN result_se.item_table %]
92
                    [% FOREACH item_tabl IN result_se.item_table %]
Lines 95-112 Link Here
95
                                [% FOREACH header_field IN item_tabl.header_fields %]
96
                                [% FOREACH header_field IN item_tabl.header_fields %]
96
                                    [% SWITCH header_field.field_label -%]
97
                                    [% SWITCH header_field.field_label -%]
97
                                        [% CASE "Add Item" -%]
98
                                        [% CASE "Add Item" -%]
98
                                            <th>Add item</th>
99
                                            <th>[% t('Add item') %]</th>
99
                                        [% CASE "Call Number" -%]
100
                                        [% CASE "Call Number" -%]
100
                                            <th>Call number</th>
101
                                            <th>[% t('Call number') %]</th>
101
                                        [% CASE "Accession Date" %]
102
                                        [% CASE "Accession Date" %]
102
                                            <th>Accession date</th>
103
                                            <th>[% t('Accession date') %]</th>
103
                                        [% CASE "Barcode" %]
104
                                        [% CASE "Barcode" %]
104
                                            <th>Barcode</th>
105
                                            <th>[% t('Barcode') %]</th>
105
                                        [% CASE "Select" -%]
106
                                        [% CASE "Select" -%]
106
                                            <th>Select</th>
107
                                            <th>[% t('Select') %]</th>
107
                                        [% CASE %]
108
                                        [% CASE %]
108
                                            <th>[% header_field.field_label %]</th>
109
                                            <th>[% header_field.field_label %]</th>
109
z                                    [% END -%]
110
[% t('z') %]                                    [% END -%]
110
                                [% END %]
111
                                [% END %]
111
                            </tr>
112
                            </tr>
112
                        </thead>
113
                        </thead>
Lines 117-123 z [% END -%] Link Here
117
                        <td><input type="checkbox" name="action" value="[% text_field.field_value %]"></td>
118
                        <td><input type="checkbox" name="action" value="[% text_field.field_value %]"></td>
118
                    [% ELSIF ( text_field.link_field ) %]
119
                    [% ELSIF ( text_field.link_field ) %]
119
                        <td>
120
                        <td>
120
                            <a class="btn btn-default btn-xs 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>
121
                            <a class="btn btn-default btn-xs 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> [% t('Add') %]</a>
121
                        </td>
122
                        </td>
122
                    [% ELSE %]
123
                    [% ELSE %]
123
                        <td>[% text_field.field_value %]</td>
124
                        <td>[% text_field.field_value %]</td>
Lines 135-154 z [% END -%] Link Here
135
        [% IF ( displayprev || displaynext ) %]
136
        [% IF ( displayprev || displaynext ) %]
136
            <p>
137
            <p>
137
                [% IF ( displayprev ) %]
138
                [% IF ( displayprev ) %]
138
                <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>
139
                <a href="label-item-search.pl?startfrom=[% startfromnext %]&ccl_query=[% ccl_query %]&resultsperpage=[% resultsperpage %]&op=do_search&batch_id=[% batch_id %]"><<</a>
139
                [% END %]
140
                [% END %]
140
                [% FOREACH number IN numbers %]
141
                [% FOREACH number IN numbers %]
141
                [% IF ( number.highlight ) %]
142
                [% IF ( number.highlight ) %]
142
                <span class="current">[% number.number %]</span>
143
                <span class="current">[% number.number %]</span>
143
                [% ELSE %]
144
                [% ELSE %]
144
                <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>
145
                <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>
145
                [% END %]
146
                [% END %]
146
        [% END %]
147
        [% END %]
147
                [% IF ( displaynext ) %]
148
                [% IF ( displaynext ) %]
148
                <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>
149
                <a href="label-item-search.pl?startfrom=[% startfromnext %]&ccl_query=[% ccl_query %]&resultsperpage=[% resultsperpage %]&op=do_search&batch_id=[% batch_id %]">>></a>
149
                [% END %]
150
                [% END %]
150
        </p>
151
        </p>
151
        <div id="closewindow"><a href="#" class="btn btn-default btn-default close">Close</a></div>
152
        <div id="closewindow"><a href="#" class="btn btn-default btn-default close">[% t('Close') %]</a></div>
152
            [% END %]
153
            [% END %]
153
    </div>
154
    </div>
154
    [% INCLUDE 'popup-bottom.inc' %]
155
    [% INCLUDE 'popup-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/search.tt (-36 / +37 lines)
Lines 1-4 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]<title>Koha &rsaquo;  Labels</title>
1
[% PROCESS 'i18n.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]<title>[% t('Koha ›') %]  [% t('Labels') %]</title>
2
[% INCLUDE 'doc-head-close.inc' %]
3
[% INCLUDE 'doc-head-close.inc' %]
3
[% INCLUDE 'calendar.inc' %]
4
[% 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>
Lines 8-16 Link Here
8
<div id="custom-doc" class="yui-t7">
9
<div id="custom-doc" class="yui-t7">
9
   <div id="bd">
10
   <div id="bd">
10
11
11
<h1>Search for items
12
<h1>[% t('Search for items') %]
12
[% IF ( batch_id ) %]
13
[% IF ( batch_id ) %]
13
to add to Batch [% batch_id %]
14
[% t('to add to Batch') %] [% batch_id %]
14
[% END %]
15
[% END %]
15
</h1>
16
</h1>
16
17
Lines 21-80 to add to Batch [% batch_id %] Link Here
21
22
22
	<fieldset class="rows">
23
	<fieldset class="rows">
23
<ol><li>
24
<ol><li>
24
<select name="idx" >   <!-- FIXME: script does keyword search regardless -->
25
<select name="idx">   <!-- FIXME: script does keyword search regardless -->
25
26
26
[% IF idx == 'kw' %]<option value="kw" selected="selected">Keyword</option>
27
[% IF idx == 'kw' %]<option value="kw" selected="selected">[% t('Keyword') %]</option>
27
[% ELSE %]<option value="kw">Keyword</option>[% END %]
28
[% ELSE %]<option value="kw">[% t('Keyword') %]</option>[% END %]
28
29
29
[% IF idx == 'au'  %]<option value="au" selected="selected">Author</option>
30
[% IF idx == 'au'  %]<option value="au" selected="selected">[% t('Author') %]</option>
30
[% ELSE %]<option value="au">Author</option>[% END %]
31
[% ELSE %]<option value="au">[% t('Author') %]</option>[% END %]
31
32
32
[% IF idx == 'yr'  %]<option value="yr" selected="selected">Publication date</option>
33
[% IF idx == 'yr'  %]<option value="yr" selected="selected">[% t('Publication date') %]</option>
33
[% ELSE %]<option value="yr">Publication date</option>[% END %]
34
[% ELSE %]<option value="yr">[% t('Publication date') %]</option>[% END %]
34
35
35
[% IF idx == 'sn' %]<option value="sn" selected="selected">Standard number</option>
36
[% IF idx == 'sn' %]<option value="sn" selected="selected">[% t('Standard number') %]</option>
36
[% ELSE %]<option value="sn">Standard number</option>[% END %]
37
[% ELSE %]<option value="sn">[% t('Standard number') %]</option>[% END %]
37
38
38
[% IF idx == 'nb' %]<option value="nb" selected="selected">ISBN</option>
39
[% IF idx == 'nb' %]<option value="nb" selected="selected">[% t('ISBN') %]</option>
39
[% ELSE %]<option value="nb">ISBN</option>[% END %]
40
[% ELSE %]<option value="nb">[% t('ISBN') %]</option>[% END %]
40
41
41
[% IF idx == 'ns' %]<option value="ns" selected="selected">ISSN</option>
42
[% IF idx == 'ns' %]<option value="ns" selected="selected">[% t('ISSN') %]</option>
42
[% ELSE %]<option value="ns">ISSN</option>[% END %]
43
[% ELSE %]<option value="ns">[% t('ISSN') %]</option>[% END %]
43
44
44
[% IF idx == 'lcn,phr' %]<option value="lcn,phr" selected="selected">Call number</option>
45
[% IF idx == 'lcn,phr' %]<option value="lcn,phr" selected="selected">[% t('Call number') %]</option>
45
[% ELSE %]<option value="lcn,phr">Call number</option>[% END %]
46
[% ELSE %]<option value="lcn,phr">[% t('Call number') %]</option>[% END %]
46
47
47
[% IF idx == 'su' %]<option value="su" selected="selected">Subject</option>
48
[% IF idx == 'su' %]<option value="su" selected="selected">[% t('Subject') %]</option>
48
[% ELSE %]<option value="su">Subject</option>[% END %]
49
[% ELSE %]<option value="su">[% t('Subject') %]</option>[% END %]
49
50
50
[% IF idx == 'ti' %]
51
[% IF idx == 'ti' %]
51
   <option value="ti" selected="selected">Title</option>
52
   <option value="ti" selected="selected">[% t('Title') %]</option>
52
[% ELSE %]
53
[% ELSE %]
53
   <option value="ti">Title</option>[% END %]
54
   <option value="ti">[% t('Title') %]</option>[% END %]
54
55
55
[% IF idx == 'ti,phr' %]<option value="ti,phr" selected="selected">Title phrase</option>
56
[% IF idx == 'ti,phr' %]<option value="ti,phr" selected="selected">[% t('Title phrase') %]</option>
56
[% ELSE %]<option value="ti,phr">Title phrase</option>[% END %]
57
[% ELSE %]<option value="ti,phr">[% t('Title phrase') %]</option>[% END %]
57
58
58
[% IF idx == 'se' %]<option value="se" selected="selected">Series title</option>
59
[% IF idx == 'se' %]<option value="se" selected="selected">[% t('Series title') %]</option>
59
[% ELSE %]<option value="se">Series title</option>[% END %]
60
[% ELSE %]<option value="se">[% t('Series title') %]</option>[% END %]
60
61
61
[% IF idx == 'bc' or not idx %]<option value="bc" selected="selected">Barcode</option>
62
[% IF idx == 'bc' or not idx %]<option value="bc" selected="selected">[% t('Barcode') %]</option>
62
[% ELSE %]<option value="bc">Barcode</option>[% END %]
63
[% ELSE %]<option value="bc">[% t('Barcode') %]</option>[% END %]
63
64
64
[% IF idx == 'acqdate' %]<option value="acqdate" selected="selected">Acquisition date</option>
65
[% IF idx == 'acqdate' %]<option value="acqdate" selected="selected">[% t('Acquisition date') %]</option>
65
[% ELSE %]<option value="acqdate">Acquisition date</option>[% END %]
66
[% ELSE %]<option value="acqdate">[% t('Acquisition date') %]</option>[% END %]
66
</select>
67
</select>
67
68
68
   <input type="text" size="30" id="ccl_textbox" name="ccl_textbox" class="focus" title="Enter search terms" value=""/>
69
   <input type="text" size="30" id="ccl_textbox" name="ccl_textbox" class="focus" title="[% t('Enter search terms') %]" value="" />
69
70
70
</li>
71
</li>
71
</ol>
72
</ol>
72
</fieldset>
73
</fieldset>
73
74
74
[% IF ( sort_by_loop ) %]
75
[% IF ( sort_by_loop ) %]
75
<fieldset><legend>Sort by: </legend>
76
<fieldset><legend>[% t('Sort by:') %] </legend>
76
    <p><select id="sort_by" name="sort_by">
77
    <p><select id="sort_by" name="sort_by">
77
        <option value="">Field-weighted, relevance ranked</option>
78
        <option value="">[% t('Field-weighted, relevance ranked') %]</option>
78
        [% FOREACH sort_by_loo IN sort_by_loop %]
79
        [% FOREACH sort_by_loo IN sort_by_loop %]
79
80
80
[% IF ( sort_by_loo.selected ) %]<option value="[% sort_by_loo.value %]" selected="selected">[% sort_by_loo.label %]</option>[% ELSE %]<option value="[% sort_by_loo.value %]">[% sort_by_loo.label %]</option>[% END %]
81
[% IF ( sort_by_loo.selected ) %]<option value="[% sort_by_loo.value %]" selected="selected">[% sort_by_loo.label %]</option>[% ELSE %]<option value="[% sort_by_loo.value %]">[% sort_by_loo.label %]</option>[% END %]
Lines 90-107 to add to Batch [% batch_id %] Link Here
90
<fieldset class="rows">
91
<fieldset class="rows">
91
<ol>
92
<ol>
92
	<li>
93
	<li>
93
    <label for="from">Added on or after date: </label>
94
    <label for="from">[% t('Added on or after date:') %] </label>
94
        <input type="text" size="10" id="from" name="datefrom" class="datepickerfrom" value="" />
95
        <input type="text" size="10" id="from" name="datefrom" class="datepickerfrom" value="" />
95
<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
96
<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
96
</li>
97
</li>
97
<li>
98
<li>
98
    <label for="to">Added on or before date: </label>
99
    <label for="to">[% t('Added on or before date:') %] </label>
99
        <input type="text" size="10" id="to" name="dateto" class="datepickerto" value="" />
100
        <input type="text" size="10" id="to" name="dateto" class="datepickerto" value="" />
100
<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
101
<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
101
</li></ol>
102
</li></ol>
102
</fieldset>
103
</fieldset>
103
104
104
<fieldset class="action"><input type="submit" value="Search" class="submit" /> <a class="cancel close" href="#">Cancel</a></fieldset>
105
<fieldset class="action"><input type="submit" value="Search" class="submit" /> <a class="cancel close" href="#">[% t('Cancel') %]</a></fieldset>
105
</form>
106
</form>
106
</div>
107
</div>
107
</div>
108
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-home.tt (-4 / +5 lines)
Lines 1-22 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]<title>Koha &rsaquo; Tools &rsaquo; Quick spine label creator</title>
1
[% PROCESS 'i18n.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]<title>[% t('Koha › Tools › Quick spine label creator') %]</title>
2
[% INCLUDE 'doc-head-close.inc' %]
3
[% INCLUDE 'doc-head-close.inc' %]
3
</head>
4
</head>
4
<body id="labels_spinelabel-home" class="tools labels">
5
<body id="labels_spinelabel-home" class="tools labels">
5
[% INCLUDE 'header.inc' %]
6
[% INCLUDE 'header.inc' %]
6
[% INCLUDE 'cat-search.inc' %]
7
[% INCLUDE 'cat-search.inc' %]
7
8
8
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; Quick spine label creator</div>
9
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> [% t('› Quick spine label creator') %]</div>
9
10
10
<div id="doc3" class="yui-t2">
11
<div id="doc3" class="yui-t2">
11
   
12
   
12
	<div id="bd">
13
	<div id="bd">
13
		<div id="yui-main">
14
		<div id="yui-main">
14
			<div class="yui-b">
15
			<div class="yui-b">
15
			<h2>Quick spine label creator</h2>
16
			<h2>[% t('Quick spine label creator') %]</h2>
16
				<form action="/cgi-bin/koha/labels/spinelabel-print.pl" method="post">
17
				<form action="/cgi-bin/koha/labels/spinelabel-print.pl" method="post">
17
				<fieldset class="brief">
18
				<fieldset class="brief">
18
				<ol>
19
				<ol>
19
					<li><label for="barcode">Barcode: </label>
20
					<li><label for="barcode">[% t('Barcode:') %] </label>
20
					<input type="text" name="barcode" id="barcode" class="focus" />
21
					<input type="text" name="barcode" id="barcode" class="focus" />
21
					</li>
22
					</li>
22
				</ol>
23
				</ol>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt (-5 / +5 lines)
Lines 1-8 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
<!DOCTYPE html>
3
<!DOCTYPE html>
3
[% IF ( bidi ) %]<html lang="[% lang %]" dir="[% bidi %]">[% ELSE %]<html lang="[% lang %]">[% END %]
4
[% IF ( bidi ) %]<html lang="[% lang %]" dir="[% bidi %]">[% ELSE %]<html lang="[% lang %]">[% END %]
4
<head>
5
<head>
5
<title>Koha &rsaquo; Tools &rsaquo; Spine labels</title>
6
<title>[% t('Koha › Tools › Spine labels') %]</title>
6
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
[% Asset.css("css/spinelabel.css") %]
8
[% Asset.css("css/spinelabel.css") %]
8
9
Lines 24-31 Link Here
24
</head>
25
</head>
25
	[% IF ( BarcodeNotFound ) %]
26
	[% IF ( BarcodeNotFound ) %]
26
		<body id="labels_spinelabel-print" class="tools labels">
27
		<body id="labels_spinelabel-print" class="tools labels">
27
            <p>The barcode [% Barcode |html %] was not found.</p>
28
            <p>[% t('The barcode') %] [% Barcode |html %] [% t('was not found.') %]</p>
28
            <p><a href="spinelabel-home.pl">Return to spine label printer</a></p>
29
            <p><a href="spinelabel-home.pl">[% t('Return to spine label printer') %]</a></p>
29
		</body>
30
		</body>
30
	[% ELSE %]
31
	[% ELSE %]
31
		[% IF ( autoprint ) %]
32
		[% IF ( autoprint ) %]
Lines 37-43 Link Here
37
				[% content %]
38
				[% content %]
38
			</span>
39
			</span>
39
			<span id="print_button" class="noprint">
40
			<span id="print_button" class="noprint">
40
                <button onclick="window.print()">Print this label</button>
41
                <button onclick="window.print()">[% t('Print this label') %]</button>
41
			</span>
42
			</span>
42
		</body>
43
		</body>
43
	[% END %]
44
	[% END %]
44
- 

Return to bug 20988