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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/access_files.tt (-8 / +9 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Access files</title>
5
<title>[% t('Access files') %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
[% Asset.css("css/datatables.css") %]
7
[% Asset.css("css/datatables.css") %]
7
</head>
8
</head>
Lines 9-33 Link Here
9
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'cat-search.inc' %]
11
[% INCLUDE 'cat-search.inc' %]
11
12
12
<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; Access files</div>
13
<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('› Access files') %]</div>
13
14
14
<div id="doc3" class="yui-t2">
15
<div id="doc3" class="yui-t2">
15
   <div id="bd">
16
   <div id="bd">
16
    <div id="yui-main">
17
    <div id="yui-main">
17
    <div class="yui-b">
18
    <div class="yui-b">
18
19
19
    <h1>Access files</h1>
20
    <h1>[% t('Access files') %]</h1>
20
21
21
[% IF ( error_no_dir ) %]
22
[% IF ( error_no_dir ) %]
22
    <div class="dialog alert"><strong>Error: </strong>Files could not be found because the "access_dir" option was not set in "koha-conf.xml". Contact your system administrator to add this option.</div>
23
    <div class="dialog alert"><strong>[% t('Error:') %] </strong>[% t('Files could not be found because the &#34;access_dir&#34; option was not set in &#34;koha-conf.xml&#34;. Contact your system administrator to add this option.') %]</div>
23
[% ELSE %]
24
[% ELSE %]
24
    [% IF ( files_loop ) %]
25
    [% IF ( files_loop ) %]
25
        <table id="files">
26
        <table id="files">
26
            <thead>
27
            <thead>
27
                <tr>
28
                <tr>
28
                    <th>Name</th>
29
                    <th>[% t('Name') %]</th>
29
                    <th>Size (bytes)</th>
30
                    <th>[% t('Size (bytes)') %]</th>
30
                    <th>Date last modified</th>
31
                    <th>[% t('Date last modified') %]</th>
31
                </tr>
32
                </tr>
32
            </thead>
33
            </thead>
33
            <tbody>
34
            <tbody>
Lines 41-47 Link Here
41
            </tbody>
42
            </tbody>
42
        </table>
43
        </table>
43
    [% ELSE %]
44
    [% ELSE %]
44
        No file found.
45
        [% t('No file found.') %]
45
    [% END %]
46
    [% END %]
46
[% END %]
47
[% END %]
47
48
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/automatic_item_modification_by_age.tt (-45 / +46 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Tools &rsaquo; Automatic item modifications by age</title>
5
<title>[% t('Koha › Tools › Automatic item modifications by age') %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
</head>
7
</head>
7
8
Lines 9-21 Link Here
9
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'cat-search.inc' %]
11
[% INCLUDE 'cat-search.inc' %]
11
    <div id="breadcrumbs">
12
    <div id="breadcrumbs">
12
        <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
13
        <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
13
        <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
14
        <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> ›
14
        [% IF ( op == 'edit_form' ) %]
15
        [% IF ( op == 'edit_form' ) %]
15
            <a href="/cgi-bin/koha/tools/automatic_item_modification_by_age.pl">Automatic item modifications by age</a> &rsaquo;
16
            <a href="/cgi-bin/koha/tools/automatic_item_modification_by_age.pl">[% t('Automatic item modifications by age') %]</a> ›
16
            Rules
17
            [% t('Rules') %]
17
        [% ELSE %]
18
        [% ELSE %]
18
            Automatic item modifications by age
19
            [% t('Automatic item modifications by age') %]
19
        [% END %]
20
        [% END %]
20
    </div>
21
    </div>
21
22
Lines 26-52 Link Here
26
27
27
        [% IF ( op == 'edit_form' ) %]
28
        [% IF ( op == 'edit_form' ) %]
28
          <form method="post" id="rules_form" action="/cgi-bin/koha/tools/automatic_item_modification_by_age.pl">
29
          <form method="post" id="rules_form" action="/cgi-bin/koha/tools/automatic_item_modification_by_age.pl">
29
            <h3>Rules for automatic item modifications by age</h3>
30
            <h3>[% t('Rules for automatic item modifications by age') %]</h3>
30
            <div id="toolbar" class="btn-toolbar">
31
            <div id="toolbar" class="btn-toolbar">
31
                <div class="btn-group">
32
                <div class="btn-group">
32
                    <button class="btn btn-default btn-sm add_rule"><i class="fa fa-plus"></i> Add rule</button>
33
                    <button class="btn btn-default btn-sm add_rule"><i class="fa fa-plus"></i> [% t('Add rule') %]</button>
33
                </div>
34
                </div>
34
                <div class="btn-group">
35
                <div class="btn-group">
35
                    <button type="submit" id="save_rules" class="btn btn-default btn-sm"><i class="fa fa-save"></i> Save</button>
36
                    <button type="submit" id="save_rules" class="btn btn-default btn-sm"><i class="fa fa-save"></i> [% t('Save') %]</button>
36
                </div>
37
                </div>
37
                <div class="btn-group">
38
                <div class="btn-group">
38
                    <a class="btn btn-default btn-sm" href="/cgi-bin/koha/tools/automatic_item_modification_by_age.pl"><i class="fa fa-remove"></i> Cancel</a>
39
                    <a class="btn btn-default btn-sm" href="/cgi-bin/koha/tools/automatic_item_modification_by_age.pl"><i class="fa fa-remove"></i> [% t('Cancel') %]</a>
39
                </div>
40
                </div>
40
            </div>
41
            </div>
41
        [% ELSE %]
42
        [% ELSE %]
42
            <h3>Automatic item modifications by age</h3>
43
            <h3>[% t('Automatic item modifications by age') %]</h3>
43
            [% IF ( rules ) %]
44
            [% IF ( rules ) %]
44
                <div id="toolbar" class="btn-toolbar">
45
                <div id="toolbar" class="btn-toolbar">
45
                    <a class="btn btn-default btn-sm" id="newentry" href="/cgi-bin/koha/tools/automatic_item_modification_by_age.pl?op=edit_form"><i class="fa fa-pencil"></i> Edit rules</a>
46
                    <a class="btn btn-default btn-sm" id="newentry" href="/cgi-bin/koha/tools/automatic_item_modification_by_age.pl?op=edit_form"><i class="fa fa-pencil"></i> [% t('Edit rules') %]</a>
46
                </div>
47
                </div>
47
            [% ELSE %]
48
            [% ELSE %]
48
                <div id="toolbar" class="btn-toolbar">
49
                <div id="toolbar" class="btn-toolbar">
49
                    <a class="btn btn-default btn-sm" id="newentry" href="/cgi-bin/koha/tools/automatic_item_modification_by_age.pl?op=edit_form"><i class="fa fa-plus"></i> Add rules</a>
50
                    <a class="btn btn-default btn-sm" id="newentry" href="/cgi-bin/koha/tools/automatic_item_modification_by_age.pl?op=edit_form"><i class="fa fa-plus"></i> [% t('Add rules') %]</a>
50
                </div>
51
                </div>
51
            [% END %]
52
            [% END %]
52
        [% END %]
53
        [% END %]
Lines 56-62 Link Here
56
            <div class="dialog alert">
57
            <div class="dialog alert">
57
          [% END %]
58
          [% END %]
58
          [% IF message.code == "unable_to_load_configuration" %]
59
          [% IF message.code == "unable_to_load_configuration" %]
59
            An error occurs: Unable to load the configuration.
60
            [% t('An error occurs: Unable to load the configuration.') %]
60
          [% END %]
61
          [% END %]
61
          </div>
62
          </div>
62
        [% END %]
63
        [% END %]
Lines 67-84 Link Here
67
                [% FOR rule IN rules %]
68
                [% FOR rule IN rules %]
68
                  [% SET id = loop.count %]
69
                  [% SET id = loop.count %]
69
                  <fieldset class="rule">
70
                  <fieldset class="rule">
70
                    <legend>Rule <span class="rulecount">[% loop.count %]</span> <a href="#" class="remove_rule"><i class="fa fa-trash"></i> Remove this rule</a></legend>
71
                    <legend>[% t('Rule') %] <span class="rulecount">[% loop.count %]</span> <a href="#" class="remove_rule"><i class="fa fa-trash"></i> [% t('Remove this rule') %]</a></legend>
71
                    <input type="hidden" name="unique_id" value="[% loop.count %]" /> <!-- FIXME on update, the unique_id should be filled -->
72
                    <input type="hidden" name="unique_id" value="[% loop.count %]" /> <!-- FIXME on update, the unique_id should be filled -->
72
                    <div class="age">
73
                    <div class="age">
73
                      <h5>Age in days</h5>
74
                      <h5>[% t('Age in days') %]</h5>
74
                      <input class="age" type="number" value="[% rule.age %]" name="age_[% id %]" />
75
                      <input class="age" type="number" value="[% rule.age %]" name="age_[% id %]" />
75
                    </div>
76
                    </div>
76
                    <div class="blocks">
77
                    <div class="blocks">
77
                      <h5>Conditions</h5>
78
                      <h5>[% t('Conditions') %]</h5>
78
                      [% FOR condition IN rule.conditions %]
79
                      [% FOR condition IN rule.conditions %]
79
                        <div class="block">
80
                        <div class="block">
80
                          <select name="condition_field_[% id %]">
81
                          <select name="condition_field_[% id %]">
81
                            <option value="">Choose a field name</option>
82
                            <option value="">[% t('Choose a field name') %]</option>
82
                            [% FOR field IN condition_fields %]
83
                            [% FOR field IN condition_fields %]
83
                              [% IF condition.field == field %]
84
                              [% IF condition.field == field %]
84
                                <option value="[% field %]" selected="selected">[% field %]</option>
85
                                <option value="[% field %]" selected="selected">[% field %]</option>
Lines 89-105 Link Here
89
                          </select>
90
                          </select>
90
                          =
91
                          =
91
                          <input type="text" value="[% condition.value %]" name="condition_value_[% id%]" />
92
                          <input type="text" value="[% condition.value %]" name="condition_value_[% id%]" />
92
                          <a class="add_block" href="#"><i class="fa fa-plus"></i> Add a condition</a>
93
                          <a class="add_block" href="#"><i class="fa fa-plus"></i> [% t('Add a condition') %]</a>
93
                          <a class="remove_block" href="#"><i class="fa fa-trash"></i> Remove condition</a>
94
                          <a class="remove_block" href="#"><i class="fa fa-trash"></i> [% t('Remove condition') %]</a>
94
                        </div>
95
                        </div>
95
                      [% END %]
96
                      [% END %]
96
                    </div>
97
                    </div>
97
                    <div class="blocks">
98
                    <div class="blocks">
98
                      <h5>Substitutions</h5>
99
                      <h5>[% t('Substitutions') %]</h5>
99
                      [% FOR substitution IN rule.substitutions %]
100
                      [% FOR substitution IN rule.substitutions %]
100
                        <div class="block">
101
                        <div class="block">
101
                          <select class="required" required="required" name="substitution_field_[% id %]">
102
                          <select class="required" required="required" name="substitution_field_[% id %]">
102
                            <option value="">Choose a field name</option>
103
                            <option value="">[% t('Choose a field name') %]</option>
103
                            [% FOR field IN substitution_fields %]
104
                            [% FOR field IN substitution_fields %]
104
                              [% IF substitution.field == field %]
105
                              [% IF substitution.field == field %]
105
                                <option value="[% field %]" selected="selected">[% field %]</option>
106
                                <option value="[% field %]" selected="selected">[% field %]</option>
Lines 110-118 Link Here
110
                          </select>
111
                          </select>
111
                          =
112
                          =
112
                          <input type="text" value="[% substitution.value %]" name="substitution_value_[% id %]" />
113
                          <input type="text" value="[% substitution.value %]" name="substitution_value_[% id %]" />
113
                          <a class="add_block" href="#"><i class="fa fa-plus"></i> Add a substitution</a>
114
                          <a class="add_block" href="#"><i class="fa fa-plus"></i> [% t('Add a substitution') %]</a>
114
                          <a class="remove_block" href="#"><i class="fa fa-trash"></i> Remove substitution</a>
115
                          <a class="remove_block" href="#"><i class="fa fa-trash"></i> [% t('Remove substitution') %]</a>
115
                          <span class="required">A field name is required</span>
116
                          <span class="required">[% t('A field name is required') %]</span>
116
                        </div>
117
                        </div>
117
                      [% END %]
118
                      [% END %]
118
                    </div>
119
                    </div>
Lines 124-180 Link Here
124
          </form>
125
          </form>
125
126
126
        <div id="norules" class="dialog message">
127
        <div id="norules" class="dialog message">
127
          There are no rules defined.
128
          [% t('There are no rules defined.') %]
128
        </div>
129
        </div>
129
130
130
          <fieldset id="new_rule">
131
          <fieldset id="new_rule">
131
            <legend>Rule <span class="rulecount"></span> <a href="#" class="remove_rule"><i class="fa fa-trash"></i> Remove this rule</a></legend>
132
            <legend>[% t('Rule') %] <span class="rulecount"></span> <a href="#" class="remove_rule"><i class="fa fa-trash"></i> [% t('Remove this rule') %]</a></legend>
132
            <input type="hidden" name="unique_id" />
133
            <input type="hidden" name="unique_id" />
133
            <div class="age">
134
            <div class="age">
134
              <h5>Age in days</h5>
135
              <h5>[% t('Age in days') %]</h5>
135
              <input class="age" type="number" value="" name="age" />
136
              <input class="age" type="number" value="" name="age" />
136
            </div>
137
            </div>
137
            <div class="blocks">
138
            <div class="blocks">
138
              <h5>Conditions</h5>
139
              <h5>[% t('Conditions') %]</h5>
139
              <div class="block">
140
              <div class="block">
140
                <select name="condition_field">
141
                <select name="condition_field">
141
                  <option value="">Choose a field name</option>
142
                  <option value="">[% t('Choose a field name') %]</option>
142
                  [% FOR field IN condition_fields %]
143
                  [% FOR field IN condition_fields %]
143
                    <option value="[% field %]">[% field %]</option>
144
                    <option value="[% field %]">[% field %]</option>
144
                  [% END %]
145
                  [% END %]
145
                </select>
146
                </select>
146
                =
147
                =
147
                <input type="text" value="" name="condition_value" />
148
                <input type="text" value="" name="condition_value" />
148
                <a class="add_block" href="#"><i class="fa fa-plus"></i> Add a condition</a>
149
                <a class="add_block" href="#"><i class="fa fa-plus"></i> [% t('Add a condition') %]</a>
149
                <a class="remove_block" href="#"><i class="fa fa-trash"></i> Remove condition</a>
150
                <a class="remove_block" href="#"><i class="fa fa-trash"></i> [% t('Remove condition') %]</a>
150
              </div>
151
              </div>
151
            </div>
152
            </div>
152
            <div class="blocks">
153
            <div class="blocks">
153
              <h5>Substitutions</h5>
154
              <h5>[% t('Substitutions') %]</h5>
154
              <div class="block">
155
              <div class="block">
155
                <select required="required" class="required" name="substitution_field">
156
                <select required="required" class="required" name="substitution_field">
156
                  <option value="">Choose a field name</option>
157
                  <option value="">[% t('Choose a field name') %]</option>
157
                  [% FOR field IN substitution_fields %]
158
                  [% FOR field IN substitution_fields %]
158
                    <option value="[% field %]">[% field %]</option>
159
                    <option value="[% field %]">[% field %]</option>
159
                  [% END %]
160
                  [% END %]
160
                </select>
161
                </select>
161
                =
162
                =
162
                <input type="text" value="" name="substitution_value" />
163
                <input type="text" value="" name="substitution_value" />
163
                <a class="add_block" href="#"><i class="fa fa-plus"></i> Add a substitution</a>
164
                <a class="add_block" href="#"><i class="fa fa-plus"></i> [% t('Add a substitution') %]</a>
164
                <a class="remove_block" href="#"><i class="fa fa-trash"></i> Remove substitution</a>
165
                <a class="remove_block" href="#"><i class="fa fa-trash"></i> [% t('Remove substitution') %]</a>
165
                <span class="required">A field name is required</span>
166
                <span class="required">[% t('A field name is required') %]</span>
166
              </div>
167
              </div>
167
            </div>
168
            </div>
168
          </fieldset>
169
          </fieldset>
169
        [% ELSIF rules %]
170
        [% ELSIF rules %]
170
            <div>
171
            <div>
171
                <h4>List of rules</h4>
172
                <h4>[% t('List of rules') %]</h4>
172
                    <table id="rulest">
173
                    <table id="rulest">
173
                        <thead>
174
                        <thead>
174
                          <tr>
175
                          <tr>
175
                               <th>Age</th>
176
                               <th>[% t('Age') %]</th>
176
                                <th>Conditions</th>
177
                                <th>[% t('Conditions') %]</th>
177
                                <th>Substitutions</th>
178
                                <th>[% t('Substitutions') %]</th>
178
                            </tr>
179
                            </tr>
179
                        </thead>
180
                        </thead>
180
                        <tbody>
181
                        <tbody>
Lines 182-190 Link Here
182
                                <tr>
183
                                <tr>
183
                                    <td>
184
                                    <td>
184
                                        [% IF rule.age.defined and rule.age.length > 0 %]
185
                                        [% IF rule.age.defined and rule.age.length > 0 %]
185
                                            [% rule.age %] days
186
                                            [% rule.age %] [% t('days') %]
186
                                        [% ELSE %]
187
                                        [% ELSE %]
187
                                            There is no age for this rule.
188
                                            [% t('There is no age for this rule.') %]
188
                                        [% END %]
189
                                        [% END %]
189
                                    </td>
190
                                    </td>
190
                                    <td>
191
                                    <td>
Lines 194-200 Link Here
194
                                                [% condition.field %] = [% condition.value %]
195
                                                [% condition.field %] = [% condition.value %]
195
                                                </div>
196
                                                </div>
196
                                            [% ELSE %]
197
                                            [% ELSE %]
197
                                                There is no condition for this rule.
198
                                                [% t('There is no condition for this rule.') %]
198
                                            [% END %]
199
                                            [% END %]
199
                                        [% END %]
200
                                        [% END %]
200
                                    </td>
201
                                    </td>
Lines 212-218 Link Here
212
            </div>
213
            </div>
213
        [% ELSE %]
214
        [% ELSE %]
214
            <div class="dialog message">
215
            <div class="dialog message">
215
                There are no rules defined.
216
                [% t('There are no rules defined.') %]
216
            </div>
217
            </div>
217
        [% END %]
218
        [% END %]
218
219
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt (-37 / +38 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Tools &rsaquo; Batch item deletion</title>
5
<title>[% t('Koha › Tools › Batch item deletion') %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
[% Asset.css("css/datatables.css") %]
7
[% Asset.css("css/datatables.css") %]
7
<!--[if IE]>
8
<!--[if IE]>
Lines 13-41 Link Here
13
[% INCLUDE 'cat-search.inc' %]
14
[% INCLUDE 'cat-search.inc' %]
14
15
15
<div id="breadcrumbs">
16
<div id="breadcrumbs">
16
    <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
17
    <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
17
    <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
18
    <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> ›
18
    <a href="/cgi-bin/koha/tools/batchMod.pl?del=1">Batch item deletion</a>
19
    <a href="/cgi-bin/koha/tools/batchMod.pl?del=1">[% t('Batch item deletion') %]</a>
19
</div>
20
</div>
20
21
21
<div class="main container-fluid">
22
<div class="main container-fluid">
22
23
23
                [% IF ( show ) %]<h1>Batch item deletion</h1>[% ELSE %]<h1>Batch item deletion results</h1>[% END %]
24
                [% IF ( show ) %]<h1>[% t('Batch item deletion') %]</h1>[% ELSE %]<h1>[% t('Batch item deletion results') %]</h1>[% END %]
24
        [% IF ( barcode_not_unique ) %]<div class="dialog alert"><strong>Error saving item</strong>: Barcode must be unique.</div>[% END %]
25
        [% IF ( barcode_not_unique ) %]<div class="dialog alert"><strong>[% t('Error saving item') %]</strong>[% t(': Barcode must be unique.') %]</div>[% END %]
25
        [% IF ( no_next_barcode ) %]<div class="dialog alert"><strong>Error saving items</strong>: Unable to automatically determine values for barcodes. No item has been inserted.</div>[% END %]
26
        [% IF ( no_next_barcode ) %]<div class="dialog alert"><strong>[% t('Error saving items') %]</strong>[% t(': Unable to automatically determine values for barcodes. No item has been inserted.') %]</div>[% END %]
26
        [% IF ( book_on_loan ) %]<div class="dialog alert"><strong>Cannot delete</strong>: item is checked out.</div>[% END %]
27
        [% IF ( book_on_loan ) %]<div class="dialog alert"><strong>[% t('Cannot delete') %]</strong>[% t(': item is checked out.') %]</div>[% END %]
27
        [% IF ( book_reserved ) %]<div class="dialogalert"><strong>Cannot delete</strong>: item has a waiting hold.</div>[% END %]
28
        [% IF ( book_reserved ) %]<div class="dialogalert"><strong>[% t('Cannot delete') %]</strong>[% t(': item has a waiting hold.') %]</div>[% END %]
28
29
29
    [% UNLESS ( action ) %]
30
    [% UNLESS ( action ) %]
30
31
31
    [% IF ( notfoundbarcodes ) %]
32
    [% IF ( notfoundbarcodes ) %]
32
        <div class="dialog alert">
33
        <div class="dialog alert">
33
        [% IF ( itemresults ) %]<p>Warning, the following barcodes were not found:</p>[% ELSE %]<p>Warning: no barcodes were found</p>[% END %]
34
        [% IF ( itemresults ) %]<p>[% t('Warning, the following barcodes were not found:') %]</p>[% ELSE %]<p>[% t('Warning: no barcodes were found') %]</p>[% END %]
34
        </div>
35
        </div>
35
        <table style="margin:auto;">
36
        <table style="margin:auto;">
36
        <thead>
37
        <thead>
37
            <tr>
38
            <tr>
38
            <th>Barcode</th>
39
            <th>[% t('Barcode') %]</th>
39
            </tr>
40
            </tr>
40
        </thead>
41
        </thead>
41
        <tbody>
42
        <tbody>
Lines 45-51 Link Here
45
        </tbody>
46
        </tbody>
46
        </table>
47
        </table>
47
        [% UNLESS ( too_many_items ) %]
48
        [% UNLESS ( too_many_items ) %]
48
        [% IF ( item_loop ) %]<h4>The following barcodes were found: </h4>[% END %]
49
        [% IF ( item_loop ) %]<h4>[% t('The following barcodes were found:') %] </h4>[% END %]
49
        [% END %]
50
        [% END %]
50
    [% END %]
51
    [% END %]
51
52
Lines 61-70 Link Here
61
     [% END %]
62
     [% END %]
62
63
63
[% IF ( item_loop ) %]
64
[% IF ( item_loop ) %]
64
    [% IF ( show ) %]<div id="toolbar"><a id="selectallbutton" href="#"><i class="fa fa-check"></i> Select all</a> | <a id="clearallbutton" href="#"><i class="fa fa-remove"></i> Clear all</a></div>[% END %]
65
    [% IF ( show ) %]<div id="toolbar"><a id="selectallbutton" href="#"><i class="fa fa-check"></i> [% t('Select all') %]</a> | <a id="clearallbutton" href="#"><i class="fa fa-remove"></i> [% t('Clear all') %]</a></div>[% END %]
65
    <div id="cataloguing_additem_itemlist">
66
    <div id="cataloguing_additem_itemlist">
66
67
67
    <p id="selections"><strong>Show/hide columns:</strong> <span class="selected"><input type="checkbox" checked="checked" id="showall"/><label for="showall">Show all columns</label></span> <span><input type="checkbox" id="hideall"/><label for="hideall">Hide all columns</label></span>
68
    <p id="selections"><strong>[% t('Show/hide columns:') %]</strong> <span class="selected"><input type="checkbox" checked="checked" id="showall" /><label for="showall">[% t('Show all columns') %]</label></span> <span><input type="checkbox" id="hideall" /><label for="hideall">[% t('Hide all columns') %]</label></span>
68
        [% FOREACH item_header_loo IN item_header_loop %]
69
        [% FOREACH item_header_loo IN item_header_loop %]
69
        <span class="selected"><input id="checkheader[% loop.count %]" type="checkbox" checked="checked" /> <label for="checkheader[% loop.count %]">[% item_header_loo.header_value %]</label> </span>
70
        <span class="selected"><input id="checkheader[% loop.count %]" type="checkbox" checked="checked" /> <label for="checkheader[% loop.count %]">[% item_header_loo.header_value %]</label> </span>
70
        [% END %]
71
        [% END %]
Lines 73-88 Link Here
73
        <table id="itemst">
74
        <table id="itemst">
74
            <thead>
75
            <thead>
75
            <tr>
76
            <tr>
76
                [% IF ( show ) %]<th>&nbsp;</th>[% END %]
77
                [% IF ( show ) %]<th> </th>[% END %]
77
                <th class="anti-the">Title</th>
78
                <th class="anti-the">[% t('Title') %]</th>
78
                [% FOREACH item_header_loo IN item_header_loop %]
79
                [% FOREACH item_header_loo IN item_header_loop %]
79
                <th> [% item_header_loo.header_value %] </th>
80
                <th> [% item_header_loo.header_value %] </th>
80
                [% END %]
81
                [% END %]
81
            </tr>
82
            </tr>
82
            </thead>
83
            </thead>
83
            <tbody>
84
            <tbody>
84
            [% FOREACH item_loo IN item_loop %] <tr> [% IF ( show ) %][% IF ( item_loo.nomod ) %] <td class="error">Cannot edit</td>[% ELSE %]<td><input type="checkbox" name="itemnumber" value="[% item_loo.itemnumber %]" id="row[% item_loo.itemnumber %]" checked="checked" /></td>[% END %][% END %]
85
            [% FOREACH item_loo IN item_loop %] <tr> [% IF ( show ) %][% IF ( item_loo.nomod ) %] <td class="error">[% t('Cannot edit') %]</td>[% ELSE %]<td><input type="checkbox" name="itemnumber" value="[% item_loo.itemnumber %]" id="row[% item_loo.itemnumber %]" checked="checked" /></td>[% END %][% END %]
85
            <td><label for="row[% item_loo.itemnumber %]"><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item_loo.biblionumber %]">[% item_loo.title %]</a>[% IF ( item_loo.author ) %], by [% item_loo.author %][% END %]</label></td>
86
            <td><label for="row[% item_loo.itemnumber %]"><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item_loo.biblionumber %]">[% item_loo.title %]</a>[% IF ( item_loo.author ) %][% t(', by') %] [% item_loo.author %][% END %]</label></td>
86
            [% FOREACH item_valu IN item_loo.item_value %] <td>[% item_valu.field |html %]</td>
87
            [% FOREACH item_valu IN item_loo.item_value %] <td>[% item_valu.field |html %]</td>
87
                    [% END %] </tr>
88
                    [% END %] </tr>
88
            [% END %]
89
            [% END %]
Lines 105-111 Link Here
105
[% IF ( show ) %]
106
[% IF ( show ) %]
106
107
107
[% IF ( too_many_items ) %]
108
[% IF ( too_many_items ) %]
108
    <p>Too many items ([% too_many_items %]) to display individually.</p>
109
    <p>[% t('Too many items (') %][% too_many_items %][% t(') to display individually.') %]</p>
109
    [% FOREACH itemnumber IN itemnumbers_array %]
110
    [% FOREACH itemnumber IN itemnumbers_array %]
110
        <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
111
        <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
111
    [% END %]
112
    [% END %]
Lines 114-134 Link Here
114
[% IF ( itemresults ) %]
115
[% IF ( itemresults ) %]
115
        <div id="cataloguing_additem_newitem">
116
        <div id="cataloguing_additem_newitem">
116
         <input type="hidden" name="op" value="[% op %]" />
117
         <input type="hidden" name="op" value="[% op %]" />
117
         <p>This will delete [% IF ( too_many_items ) %]all the[% ELSE %]the selected[% END %] items.</p>
118
         <p>[% t('This will delete') %] [% IF ( too_many_items ) %][% t('all the') %][% ELSE %][% t('the selected') %][% END %] [% t('items.') %]</p>
118
         <input type="hidden" name="del" value="1" />
119
         <input type="hidden" name="del" value="1" />
119
         <fieldset class="action">
120
         <fieldset class="action">
120
        <input type="checkbox" name="del_records" id="del_records" /> <label for="del_records">Delete records if no items remain.</label>
121
        <input type="checkbox" name="del_records" id="del_records" /> <label for="del_records">[% t('Delete records if no items remain.') %]</label>
121
        [% IF too_many_items %]
122
        [% IF too_many_items %]
122
            <input type="submit" name="mainformsubmit" value="Delete ALL submitted items" />
123
            <input type="submit" name="mainformsubmit" value="Delete ALL submitted items" />
123
        [% ELSE %]
124
        [% ELSE %]
124
            <input type="submit" name="mainformsubmit" value="Delete selected items" />
125
            <input type="submit" name="mainformsubmit" value="Delete selected items" />
125
        [% END %]
126
        [% END %]
126
127
127
        <a href="/cgi-bin/koha/tools/batchMod.pl?del=1" class="cancel">Cancel</a>
128
        <a href="/cgi-bin/koha/tools/batchMod.pl?del=1" class="cancel">[% t('Cancel') %]</a>
128
        </fieldset>
129
        </fieldset>
129
    </div>
130
    </div>
130
    [% ELSE %]
131
    [% ELSE %]
131
    <p><a href="/cgi-bin/koha/tools/batchMod.pl?del=1">Return to batch item deletion</a></p>
132
    <p><a href="/cgi-bin/koha/tools/batchMod.pl?del=1">[% t('Return to batch item deletion') %]</a></p>
132
    [% END %]
133
    [% END %]
133
    [% END %]
134
    [% END %]
134
    </form>
135
    </form>
Lines 136-169 Link Here
136
137
137
[% IF ( action ) %]
138
[% IF ( action ) %]
138
    <div class="dialog message">
139
    <div class="dialog message">
139
            <p>[% deleted_items %] item(s) deleted.</p>
140
            <p>[% deleted_items %] [% t('item(s) deleted.') %]</p>
140
            [% IF delete_records %] <p>[% deleted_records %] record(s) deleted.</p> [% END %]
141
            [% IF delete_records %] <p>[% deleted_records %] [% t('record(s) deleted.') %]</p> [% END %]
141
            [% IF src == 'CATALOGUING' # from catalogue/detail.pl > Delete items in a batch%]
142
            [% IF src == 'CATALOGUING' # from catalogue/detail.pl > Delete items in a batch%]
142
                <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]">Return to the record</a>
143
                <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]">[% t('Return to the record') %]</a>
143
            [% ELSIF src %]
144
            [% ELSIF src %]
144
                <a href="[% src %]">Return to where you were</a>
145
                <a href="[% src %]">[% t('Return to where you were') %]</a>
145
            [% ELSE %]
146
            [% ELSE %]
146
                <a href="/cgi-bin/koha/tools/batchMod.pl?del=1">Return to batch item deletion</a>
147
                <a href="/cgi-bin/koha/tools/batchMod.pl?del=1">[% t('Return to batch item deletion') %]</a>
147
            [% END %]
148
            [% END %]
148
        </div>
149
        </div>
149
    [% IF ( not_deleted_items ) %]
150
    [% IF ( not_deleted_items ) %]
150
    <div style="width:55%;margin:auto;">
151
    <div style="width:55%;margin:auto;">
151
        <p>[% not_deleted_items %] item(s) could not be deleted: [% FOREACH not_deleted_itemnumber IN not_deleted_itemnumbers %][% not_deleted_itemnumber.itemnumber %][% END %]</p>
152
        <p>[% not_deleted_items %] [% t('item(s) could not be deleted:') %] [% FOREACH not_deleted_itemnumber IN not_deleted_itemnumbers %][% not_deleted_itemnumber.itemnumber %][% END %]</p>
152
    [% IF ( not_deleted_loop ) %]
153
    [% IF ( not_deleted_loop ) %]
153
    <table id="itemst">
154
    <table id="itemst">
154
        <thead>
155
        <thead>
155
            <tr>
156
            <tr>
156
            <th>Itemnumber</th>
157
            <th>[% t('Itemnumber') %]</th>
157
            <th>Barcode</th>
158
            <th>[% t('Barcode') %]</th>
158
            <th>Reason</th>
159
            <th>[% t('Reason') %]</th>
159
            </tr>
160
            </tr>
160
        </thead>
161
        </thead>
161
        <tbody>
162
        <tbody>
162
            [% FOREACH not_deleted_loo IN not_deleted_loop %]
163
            [% FOREACH not_deleted_loo IN not_deleted_loop %]
163
            <tr>
164
            <tr>
164
                <td>[% not_deleted_loo.itemnumber %]</td>
165
                <td>[% not_deleted_loo.itemnumber %]</td>
165
                <td>[% IF ( CAN_user_editcatalogue_edit_items ) %]<a href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&amp;biblionumber=[% not_deleted_loo.biblionumber %]&amp;itemnumber=[% not_deleted_loo.itemnumber %]">[% not_deleted_loo.barcode %]</a>[% ELSE %][% not_deleted_loo.barcode %][% END %]</td>
166
                <td>[% IF ( CAN_user_editcatalogue_edit_items ) %]<a href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=[% not_deleted_loo.biblionumber %]&itemnumber=[% not_deleted_loo.itemnumber %]">[% not_deleted_loo.barcode %]</a>[% ELSE %][% not_deleted_loo.barcode %][% END %]</td>
166
                <td>[% IF ( not_deleted_loo.book_on_loan ) %]Item is checked out[% ELSIF ( not_deleted_loo.book_reserved ) %]Item has a waiting hold[% END %]</td>
167
                <td>[% IF ( not_deleted_loo.book_on_loan ) %][% t('Item is checked out') %][% ELSIF ( not_deleted_loo.book_reserved ) %][% t('Item has a waiting hold') %][% END %]</td>
167
            </tr>
168
            </tr>
168
            [% END %]
169
            [% END %]
169
        </tbody>
170
        </tbody>
Lines 174-184 Link Here
174
175
175
    <p>
176
    <p>
176
        [% IF src == 'CATALOGUING' # from catalogue/detail.pl > Delete items in a batch%]
177
        [% IF src == 'CATALOGUING' # from catalogue/detail.pl > Delete items in a batch%]
177
           <a class="btn btn-default" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]"><i class="fa fa-check-square-o"></i> Return to the record</a>
178
           <a class="btn btn-default" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]"><i class="fa fa-check-square-o"></i> [% t('Return to the record') %]</a>
178
        [% ELSIF src %]
179
        [% ELSIF src %]
179
           <a class="btn btn-default" href="[% src %]"><i class="fa fa-check-square-o"></i> Return to where you were</a>
180
           <a class="btn btn-default" href="[% src %]"><i class="fa fa-check-square-o"></i> [% t('Return to where you were') %]</a>
180
        [% ELSE %]
181
        [% ELSE %]
181
           <a class="btn btn-default" href="/cgi-bin/koha/tools/batchMod.pl?del=1"><i class="fa fa-check-square-o"></i> Return to batch item deletion</a>
182
           <a class="btn btn-default" href="/cgi-bin/koha/tools/batchMod.pl?del=1"><i class="fa fa-check-square-o"></i> [% t('Return to batch item deletion') %]</a>
182
        [% END %]
183
        [% END %]
183
    </p>
184
    </p>
184
[% END %]
185
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt (-45 / +46 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Tools &rsaquo; Batch item modification</title>
5
<title>[% t('Koha › Tools › Batch item modification') %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
[% Asset.js("js/background-job-progressbar.js") %]
7
[% Asset.js("js/background-job-progressbar.js") %]
7
[% Asset.js("js/cataloging.js") %]
8
[% Asset.js("js/cataloging.js") %]
Lines 57-100 $(document).ready(function(){ Link Here
57
[% INCLUDE 'cat-search.inc' %]
58
[% INCLUDE 'cat-search.inc' %]
58
59
59
<div id="breadcrumbs">
60
<div id="breadcrumbs">
60
  <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
61
  <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
61
  <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
62
  <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> ›
62
  <a href="/cgi-bin/koha/tools/batchMod.pl">Batch item modification</a>
63
  <a href="/cgi-bin/koha/tools/batchMod.pl">[% t('Batch item modification') %]</a>
63
</div>
64
</div>
64
65
65
<div class="main container-fluid">
66
<div class="main container-fluid">
66
67
67
            [% IF ( show ) %]
68
            [% IF ( show ) %]
68
              <h1>Batch item modification</h1>
69
              <h1>[% t('Batch item modification') %]</h1>
69
            [% ELSE %]
70
            [% ELSE %]
70
              <h1>Batch item modification results</h1>
71
              <h1>[% t('Batch item modification results') %]</h1>
71
              <div class="dialog message">
72
              <div class="dialog message">
72
                [% IF (modified_items) %]
73
                [% IF (modified_items) %]
73
                  [% modified_items %] item(s) modified (with [% modified_fields %] field(s) modified).
74
                  [% modified_items %] [% t('item(s) modified (with') %] [% modified_fields %] [% t('field(s) modified).') %]
74
                [% ELSE %]
75
                [% ELSE %]
75
                  No items modified.
76
                  [% t('No items modified.') %]
76
                [% END %]
77
                [% END %]
77
              <fieldset class="action">
78
              <fieldset class="action">
78
                  [% IF src == 'CATALOGUING' # from catalogue/detail.pl > Edit items in a batch%]
79
                  [% IF src == 'CATALOGUING' # from catalogue/detail.pl > Edit items in a batch%]
79
                      <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]">Return to the record</a>
80
                      <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]">[% t('Return to the record') %]</a>
80
                  [% ELSIF src %]
81
                  [% ELSIF src %]
81
                      <a href="[% src %]">Return to where you were</a>
82
                      <a href="[% src %]">[% t('Return to where you were') %]</a>
82
                  [% ELSE %]
83
                  [% ELSE %]
83
                      <a href="/cgi-bin/koha/tools/batchMod.pl">Return to batch item modification</a>
84
                      <a href="/cgi-bin/koha/tools/batchMod.pl">[% t('Return to batch item modification') %]</a>
84
                  [% END %]
85
                  [% END %]
85
              </fieldset>
86
              </fieldset>
86
              </div>
87
              </div>
87
            [% END %]
88
            [% END %]
88
[% IF ( barcode_not_unique ) %]<div class="dialog alert"><strong>Error saving item</strong>: Barcode must be unique.</div>[% END %]
89
[% IF ( barcode_not_unique ) %]<div class="dialog alert"><strong>[% t('Error saving item') %]</strong>[% t(': Barcode must be unique.') %]</div>[% END %]
89
[% IF ( no_next_barcode ) %]<div class="dialog alert"><strong>Error saving items</strong>: Unable to automatically determine values for barcodes. No item has been inserted.</div>[% END %]
90
[% IF ( no_next_barcode ) %]<div class="dialog alert"><strong>[% t('Error saving items') %]</strong>[% t(': Unable to automatically determine values for barcodes. No item has been inserted.') %]</div>[% END %]
90
[% IF ( book_on_loan ) %]<div class="dialog alert"><strong>Cannot Delete</strong>: item is checked out.</div>[% END %]
91
[% IF ( book_on_loan ) %]<div class="dialog alert"><strong>[% t('Cannot Delete') %]</strong>[% t(': item is checked out.') %]</div>[% END %]
91
[% IF ( book_reserved ) %]<div class="dialogalert"><strong>Cannot Delete</strong>: item has a waiting hold.</div>[% END %]
92
[% IF ( book_reserved ) %]<div class="dialogalert"><strong>[% t('Cannot Delete') %]</strong>[% t(': item has a waiting hold.') %]</div>[% END %]
92
93
93
    [% IF ( notfoundbarcodes ) %]
94
    [% IF ( notfoundbarcodes ) %]
94
      <div class="dialog alert"><p>Warning, the following barcodes were not found:</p></div>
95
      <div class="dialog alert"><p>[% t('Warning, the following barcodes were not found:') %]</p></div>
95
      <table style="margin:auto;">
96
      <table style="margin:auto;">
96
    <thead>
97
    <thead>
97
        <tr><th>Barcodes not found</th></tr>
98
        <tr><th>[% t('Barcodes not found') %]</th></tr>
98
    </thead>
99
    </thead>
99
    <tbody>
100
    <tbody>
100
        [% FOREACH notfoundbarcode IN notfoundbarcodes %]
101
        [% FOREACH notfoundbarcode IN notfoundbarcodes %]
Lines 104-110 $(document).ready(function(){ Link Here
104
      </table>
105
      </table>
105
      [% IF ( item_loop ) %]
106
      [% IF ( item_loop ) %]
106
          [% UNLESS ( too_many_items ) %]
107
          [% UNLESS ( too_many_items ) %]
107
          <h4>The following barcodes were found: </h4>
108
          <h4>[% t('The following barcodes were found:') %] </h4>
108
          [% END %]
109
          [% END %]
109
      [% END %]
110
      [% END %]
110
  [% END %] <!-- /notfoundbarcodes -->
111
  [% END %] <!-- /notfoundbarcodes -->
Lines 122-133 $(document).ready(function(){ Link Here
122
[% IF ( item_loop ) %]
123
[% IF ( item_loop ) %]
123
  [% IF show %]
124
  [% IF show %]
124
    <div id="toolbar">
125
    <div id="toolbar">
125
      <a id="selectallbutton" href="#"><i class="fa fa-check"></i> Select all</a> | <a id="clearallbutton" href="#"><i class="fa fa-remove"></i> Clear all</a> | <a id="clearonloanbutton" href="#">Clear on loan</a>
126
      <a id="selectallbutton" href="#"><i class="fa fa-check"></i> [% t('Select all') %]</a> | <a id="clearallbutton" href="#"><i class="fa fa-remove"></i> [% t('Clear all') %]</a> | <a id="clearonloanbutton" href="#">[% t('Clear on loan') %]</a>
126
    </div>
127
    </div>
127
  [% END %]
128
  [% END %]
128
<div id="cataloguing_additem_itemlist">
129
<div id="cataloguing_additem_itemlist">
129
130
130
<p id="selections"><strong>Show/hide columns:</strong> <span class="selected"><input type="checkbox" checked="checked" id="showall"/><label for="showall">Show all columns</label></span> <span><input type="checkbox" id="hideall"/><label for="hideall">Hide all columns</label></span> 
131
<p id="selections"><strong>[% t('Show/hide columns:') %]</strong> <span class="selected"><input type="checkbox" checked="checked" id="showall" /><label for="showall">[% t('Show all columns') %]</label></span> <span><input type="checkbox" id="hideall" /><label for="hideall">[% t('Hide all columns') %]</label></span> 
131
        [% FOREACH item_header_loo IN item_header_loop %]
132
        [% FOREACH item_header_loo IN item_header_loop %]
132
        <span class="selected"><input id="checkheader[% loop.count %]" type="checkbox" checked="checked" /> <label for="checkheader[% loop.count %]">[% item_header_loo.header_value %]</label> </span>
133
        <span class="selected"><input id="checkheader[% loop.count %]" type="checkbox" checked="checked" /> <label for="checkheader[% loop.count %]">[% item_header_loo.header_value %]</label> </span>
133
        [% END %]
134
        [% END %]
Lines 135-142 $(document).ready(function(){ Link Here
135
        <table id="itemst">
136
        <table id="itemst">
136
      <thead>
137
      <thead>
137
    <tr>
138
    <tr>
138
        <th>&nbsp;</th>
139
        <th> </th>
139
        <th class="anti-the">Title</th>
140
        <th class="anti-the">[% t('Title') %]</th>
140
        [% FOREACH item_header_loo IN item_header_loop %]
141
        [% FOREACH item_header_loo IN item_header_loop %]
141
        <th> [% item_header_loo.header_value %] </th>
142
        <th> [% item_header_loo.header_value %] </th>
142
        [% END %] 
143
        [% END %] 
Lines 147-160 $(document).ready(function(){ Link Here
147
              <tr>
148
              <tr>
148
                [% IF show %]
149
                [% IF show %]
149
                  [% IF item_loo.nomod %]
150
                  [% IF item_loo.nomod %]
150
                    <td class="error">Cannot edit</td>
151
                    <td class="error">[% t('Cannot edit') %]</td>
151
                  [% ELSE %]
152
                  [% ELSE %]
152
                    <td><input type="checkbox" name="itemnumber" value="[% item_loo.itemnumber %]" id="row[% item_loo.itemnumber %]" checked="checked" data-is-onloan="[% item_loo.onloan %]" /></td>
153
                    <td><input type="checkbox" name="itemnumber" value="[% item_loo.itemnumber %]" id="row[% item_loo.itemnumber %]" checked="checked" data-is-onloan="[% item_loo.onloan %]" /></td>
153
                  [% END %]
154
                  [% END %]
154
                [% ELSE %]
155
                [% ELSE %]
155
                  <td>&nbsp;</td>
156
                  <td> </td>
156
                [% END %]
157
                [% END %]
157
                <td><label for="row[% item_loo.itemnumber %]"><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item_loo.biblionumber %]">[% item_loo.title %]</a>[% IF ( item_loo.author ) %], by [% item_loo.author %][% END %]</label></td>
158
                <td><label for="row[% item_loo.itemnumber %]"><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item_loo.biblionumber %]">[% item_loo.title %]</a>[% IF ( item_loo.author ) %][% t(', by') %] [% item_loo.author %][% END %]</label></td>
158
                [% FOREACH item_valu IN item_loo.item_value %] <td>[% item_valu.field |html %]</td> 
159
                [% FOREACH item_valu IN item_loo.item_value %] <td>[% item_valu.field |html %]</td> 
159
        [% END %] </tr>
160
        [% END %] </tr>
160
            [% END %]
161
            [% END %]
Lines 164-174 $(document).ready(function(){ Link Here
164
[% END %]<!-- /item_loop -->
165
[% END %]<!-- /item_loop -->
165
166
166
[% IF ( simple_items_display ) %]
167
[% IF ( simple_items_display ) %]
167
    <p>The following items were modified:</p>
168
    <p>[% t('The following items were modified:') %]</p>
168
    <ul>
169
    <ul>
169
    [% FOREACH simple_items_displa IN simple_items_display %]
170
    [% FOREACH simple_items_displa IN simple_items_display %]
170
  <li>
171
  <li>
171
      [% IF ( CAN_user_editcatalogue_edit_items ) %]<a href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&amp;biblionumber=[% simple_items_displa.biblionumber %]&amp;itemnumber=[% simple_items_displa.itemnumber %]">[% simple_items_displa.barcode %]</a>[% ELSE %][% simple_items_displa.barcode %][% END %]
172
      [% IF ( CAN_user_editcatalogue_edit_items ) %]<a href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=[% simple_items_displa.biblionumber %]&itemnumber=[% simple_items_displa.itemnumber %]">[% simple_items_displa.barcode %]</a>[% ELSE %][% simple_items_displa.barcode %][% END %]
172
  </li>
173
  </li>
173
    [% END %]
174
    [% END %]
174
    </ul>
175
    </ul>
Lines 177-183 $(document).ready(function(){ Link Here
177
[% IF ( show ) %]
178
[% IF ( show ) %]
178
179
179
[% IF ( too_many_items ) %]
180
[% IF ( too_many_items ) %]
180
    <p>Too many items ([% too_many_items %]): You are not allowed to edit more than [% Koha.Preference('MaxItemsToProcessForBatchMod') %] items in a batch.</p>
181
    <p>[% t('Too many items (') %][% too_many_items %][% t('): You are not allowed to edit more than') %] [% Koha.Preference('MaxItemsToProcessForBatchMod') %] [% t('items in a batch.') %]</p>
181
    [% FOREACH itemnumber IN itemnumbers_array %]
182
    [% FOREACH itemnumber IN itemnumbers_array %]
182
  <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
183
  <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
183
    [% END %]
184
    [% END %]
Lines 185-192 $(document).ready(function(){ Link Here
185
186
186
[% IF ( item_loop ) %]
187
[% IF ( item_loop ) %]
187
<div id="cataloguing_additem_newitem">
188
<div id="cataloguing_additem_newitem">
188
        <h2>Edit Items</h2>
189
        <h2>[% t('Edit Items') %]</h2>
189
        <div class="hint">Checking the box right next the subfield label will disable the entry and delete the subfield on all selected items. Leave fields blank to make no change.</div>
190
        <div class="hint">[% t('Checking the box right next the subfield label will disable the entry and delete the subfield on all selected items. Leave fields blank to make no change.') %]</div>
190
  <fieldset class="rows">
191
  <fieldset class="rows">
191
  <ol>
192
  <ol>
192
        [% FOREACH ite IN item %]
193
        [% FOREACH ite IN item %]
Lines 213-225 $(document).ready(function(){ Link Here
213
                </select>
214
                </select>
214
              [% ELSIF ( mv.type == 'text1' ) %]
215
              [% ELSIF ( mv.type == 'text1' ) %]
215
                <input type="text" tabindex="1" id="[%- mv.id -%]" name="field_value" class="input_marceditor" size="50" maxlength="255" value="[%- mv.value -%]" />
216
                <input type="text" tabindex="1" id="[%- mv.id -%]" name="field_value" class="input_marceditor" size="50" maxlength="255" value="[%- mv.value -%]" />
216
                <a href="#" class="buttonDot" onclick="Dopop('/cgi-bin/koha/authorities/auth_finder.pl?authtypecode=[%- mv.authtypecode -%]&index=[%- mv.id -%]','[%- mv.id -%]'); return false;" title="Tag editor">...</a>
217
                <a href="#" class="buttonDot" onclick="Dopop('/cgi-bin/koha/authorities/auth_finder.pl?authtypecode=[%- mv.authtypecode -%]&index=[%- mv.id -%]','[%- mv.id -%]'); return false;" title="[% t('Tag editor') %]">...</a>
217
              [% ELSIF ( mv.type == 'text2' ) %]
218
              [% ELSIF ( mv.type == 'text2' ) %]
218
                <input type="text" id="[%- mv.id -%]" name="field_value" class="input_marceditor" size="50" maxlength="255" value="[%- mv.value -%]" />
219
                <input type="text" id="[%- mv.id -%]" name="field_value" class="input_marceditor" size="50" maxlength="255" value="[%- mv.value -%]" />
219
                [% IF mv.noclick %]
220
                [% IF mv.noclick %]
220
                  <a href="#" class="buttonDot disabled" title="No popup">...</a>
221
                  <a href="#" class="buttonDot disabled" title="[% t('No popup') %]">...</a>
221
                [% ELSE %]
222
                [% ELSE %]
222
                  <a href="#" id="buttonDot_[% mv.id %]" class="buttonDot" title="Tag editor">...</a>
223
                  <a href="#" id="buttonDot_[% mv.id %]" class="buttonDot" title="[% t('Tag editor') %]">...</a>
223
                [% END %]
224
                [% END %]
224
                [% mv.javascript %]
225
                [% mv.javascript %]
225
              [% ELSIF ( mv.type == 'text' ) %]
226
              [% ELSIF ( mv.type == 'text' ) %]
Lines 231-247 $(document).ready(function(){ Link Here
231
              [%- END -%]
232
              [%- END -%]
232
233
233
              [% UNLESS ( ite.mandatory ) %]
234
              [% UNLESS ( ite.mandatory ) %]
234
                <input type="checkbox" id="row[% ite.tag %][% ite.subfield %][% ite.random %]" title="Check to delete subfield [% ite.subfield %]" name="disable_input" value="[% ite.subfield %]" />
235
                <input type="checkbox" id="row[% ite.tag %][% ite.subfield %][% ite.random %]" title="[% t('Check to delete subfield') %] [% ite.subfield %]" name="disable_input" value="[% ite.subfield %]" />
235
              [% ELSE %]
236
              [% ELSE %]
236
                <span class="required">Required</span>
237
                <span class="required">[% t('Required') %]</span>
237
              [% END %]
238
              [% END %]
238
239
239
              <input type="hidden" name="tag"       value="[% ite.tag %]" />
240
              <input type="hidden" name="tag" value="[% ite.tag %]" />
240
              <input type="hidden" name="subfield"       value="[% ite.subfield %]" />
241
              <input type="hidden" name="subfield" value="[% ite.subfield %]" />
241
              <input type="hidden" name="mandatory"       value="[% ite.mandatory %]" />
242
              <input type="hidden" name="mandatory" value="[% ite.mandatory %]" />
242
              [% IF ( ite.repeatable ) %]
243
              [% IF ( ite.repeatable ) %]
243
                <a href="#" class="buttonPlus" onclick="CloneItemSubfield(this.parentNode); return false;">
244
                <a href="#" class="buttonPlus" onclick="CloneItemSubfield(this.parentNode); return false;">
244
                  <img src="[% interface %]/[% theme %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" />
245
                  <img src="[% interface %]/[% theme %]/img/clone-subfield.png" alt="[% t('Clone') %]" title="[% t('Clone this subfield') %]" />
245
                </a>
246
                </a>
246
              [% END %]
247
              [% END %]
247
              <span class="hint" id="hint[% ite.tag %][% ite.subfield %][% ite.random %]"></span>
248
              <span class="hint" id="hint[% ite.tag %][% ite.subfield %][% ite.random %]"></span>
Lines 252-275 $(document).ready(function(){ Link Here
252
    </fieldset>
253
    </fieldset>
253
    <fieldset class="action">    
254
    <fieldset class="action">    
254
   <div id="jobpanel">
255
   <div id="jobpanel">
255
       <div id="jobstatus" class="progress_panel">Job progress: <div id="jobprogress"></div> <span id="jobprogresspercent">0</span>%</div>
256
       <div id="jobstatus" class="progress_panel">[% t('Job progress:') %] <div id="jobprogress"></div> <span id="jobprogresspercent">[% t('0') %]</span>%</div>
256
       <div id="jobfailed"></div>
257
       <div id="jobfailed"></div>
257
   </div>
258
   </div>
258
   <input type="submit" id="mainformsubmit" value="Save" />
259
   <input type="submit" id="mainformsubmit" value="Save" />
259
         <a href="/cgi-bin/koha/tools/batchMod.pl" class="cancel">Cancel</a>
260
         <a href="/cgi-bin/koha/tools/batchMod.pl" class="cancel">[% t('Cancel') %]</a>
260
    </fieldset>
261
    </fieldset>
261
</div>
262
</div>
262
[% ELSE %]
263
[% ELSE %]
263
    <p><a href="/cgi-bin/koha/tools/batchMod.pl">Return to batch item modification</a></p>
264
    <p><a href="/cgi-bin/koha/tools/batchMod.pl">[% t('Return to batch item modification') %]</a></p>
264
[% END %]
265
[% END %]
265
[% ELSE %] <!-- // show -->
266
[% ELSE %] <!-- // show -->
266
<fieldset class="action">
267
<fieldset class="action">
267
[% IF src == 'CATALOGUING' # from catalogue/detail.pl > Edit items in a batch%]
268
[% IF src == 'CATALOGUING' # from catalogue/detail.pl > Edit items in a batch%]
268
   <a class="btn btn-default" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]"><i class="fa fa-check-square-o"></i> Return to the record</a>
269
   <a class="btn btn-default" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]"><i class="fa fa-check-square-o"></i> [% t('Return to the record') %]</a>
269
[% ELSIF src %]
270
[% ELSIF src %]
270
   <a class="btn btn-default" href="[% src %]"><i class="fa fa-check-square-o"></i> Return to where you were</a>
271
   <a class="btn btn-default" href="[% src %]"><i class="fa fa-check-square-o"></i> [% t('Return to where you were') %]</a>
271
[% ELSE %]
272
[% ELSE %]
272
   <a class="btn btn-default" href="/cgi-bin/koha/tools/batchMod.pl"><i class="fa fa-check-square-o"></i> Return to batch item modification</a>
273
   <a class="btn btn-default" href="/cgi-bin/koha/tools/batchMod.pl"><i class="fa fa-check-square-o"></i> [% t('Return to batch item modification') %]</a>
273
[% END %]
274
[% END %]
274
</fieldset>
275
</fieldset>
275
276
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod.tt (-15 / +16 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Tools &rsaquo; [% IF ( del ) %]Batch item deletion[% ELSE %]Batch item modification[% END %] </title>
5
<title>[% t('Koha › Tools ›') %] [% IF ( del ) %][% t('Batch item deletion') %][% ELSE %][% t('Batch item modification') %][% END %] </title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
</head>
7
</head>
7
<body id="tools_batchMod" class="tools">
8
<body id="tools_batchMod" class="tools">
Lines 9-20 Link Here
9
[% INCLUDE 'cat-search.inc' %]
10
[% INCLUDE 'cat-search.inc' %]
10
11
11
<div id="breadcrumbs">
12
<div id="breadcrumbs">
12
    <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
13
    <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
13
    <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
14
    <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> ›
14
    [% IF ( del ) %]
15
    [% IF ( del ) %]
15
    <a href="/cgi-bin/koha/tools/batchMod.pl?del=1">Batch item deletion</a>
16
    <a href="/cgi-bin/koha/tools/batchMod.pl?del=1">[% t('Batch item deletion') %]</a>
16
    [% ELSE %]
17
    [% ELSE %]
17
    <a href="/cgi-bin/koha/tools/batchMod.pl">Batch item modification</a>
18
    <a href="/cgi-bin/koha/tools/batchMod.pl">[% t('Batch item modification') %]</a>
18
    [% END %]
19
    [% END %]
19
</div>
20
</div>
20
21
Lines 22-45 Link Here
22
    <div id="bd">
23
    <div id="bd">
23
        <div id="yui-main">
24
        <div id="yui-main">
24
            <div class="yui-b">
25
            <div class="yui-b">
25
                <h1>Batch item [% IF ( del ) %]deletion[% ELSE %]modification[% END %]</h1>
26
                <h1>[% t('Batch item') %] [% IF ( del ) %][% t('deletion') %][% ELSE %][% t('modification') %][% END %]</h1>
26
                        <form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/batchMod.pl">
27
                        <form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/batchMod.pl">
27
                            <fieldset class="rows">
28
                            <fieldset class="rows">
28
                                <legend>Use a file</legend>
29
                                <legend>[% t('Use a file') %]</legend>
29
                                  <ol>
30
                                  <ol>
30
                      <li>
31
                      <li>
31
                    <label for="barcode_file">Barcode file: </label><input type="radio" name="filecontent" value="barcode_file" id="barcode_file" checked="checked" /></li>
32
                    <label for="barcode_file">[% t('Barcode file:') %] </label><input type="radio" name="filecontent" value="barcode_file" id="barcode_file" checked="checked" /></li>
32
                    <li>
33
                    <li>
33
                    <label for="itemid_file">Item number file: </label><input type="radio" name="filecontent" value="itemid_file" id="itemid_file" />
34
                    <label for="itemid_file">[% t('Item number file:') %] </label><input type="radio" name="filecontent" value="itemid_file" id="itemid_file" />
34
                      </li>
35
                      </li>
35
                                    <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
36
                                    <li><label for="uploadfile">[% t('File:') %] </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
36
                                </ol>
37
                                </ol>
37
                            </fieldset>
38
                            </fieldset>
38
                            <fieldset class="rows">
39
                            <fieldset class="rows">
39
                                <legend>Or scan items one by one</legend>
40
                                <legend>[% t('Or scan items one by one') %]</legend>
40
                                <ol>
41
                                <ol>
41
                                    <li>
42
                                    <li>
42
                                      <label for="barcodelist">Barcode list (one barcode per line): </label>
43
                                      <label for="barcodelist">[% t('Barcode list (one barcode per line):') %] </label>
43
                                      <textarea rows="10" cols="30" id="barcodelist" name="barcodelist"></textarea>
44
                                      <textarea rows="10" cols="30" id="barcodelist" name="barcodelist"></textarea>
44
                                    </li>
45
                                    </li>
45
                                </ol>
46
                                </ol>
Lines 48-59 Link Here
48
49
49
                            [% UNLESS del %]
50
                            [% UNLESS del %]
50
                                <fieldset class="rows">
51
                                <fieldset class="rows">
51
                                    <legend>Use default values</legend>
52
                                    <legend>[% t('Use default values') %]</legend>
52
                                    <ol class="radio">
53
                                    <ol class="radio">
53
                                        <li>
54
                                        <li>
54
                                            <label>
55
                                            <label>
55
                                                <input type="checkbox" name="use_default_values" id="use_default_values" />
56
                                                <input type="checkbox" name="use_default_values" id="use_default_values" />
56
                                                Populate fields with default values from default framework
57
                                                [% t('Populate fields with default values from default framework') %]
57
                                            </label>
58
                                            </label>
58
                                        </li>
59
                                        </li>
59
                                    </ol>
60
                                    </ol>
Lines 63-69 Link Here
63
                            [% IF ( del ) %]<input type="hidden" name="del" value="1" />[% END %]
64
                            [% IF ( del ) %]<input type="hidden" name="del" value="1" />[% END %]
64
                            <fieldset class="action">
65
                            <fieldset class="action">
65
                                <input type="submit" value="Continue" class="button" />
66
                                <input type="submit" value="Continue" class="button" />
66
                <a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a>
67
                <a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">[% t('Cancel') %]</a>
67
                            </fieldset>
68
                            </fieldset>
68
69
69
                        </form>
70
                        </form>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt (-48 / +49 lines)
Lines 1-8 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% PROCESS 'authorities-search-results.inc' %]
4
[% PROCESS 'authorities-search-results.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Tools &rsaquo; Batch record deletion</title>
6
<title>[% t('Koha › Tools › Batch record deletion') %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
7
[% Asset.css("css/datatables.css") %]
8
[% Asset.css("css/datatables.css") %]
8
</head>
9
</head>
Lines 12-27 Link Here
12
[% INCLUDE 'cat-search.inc' %]
13
[% INCLUDE 'cat-search.inc' %]
13
14
14
<div id="breadcrumbs">
15
<div id="breadcrumbs">
15
    <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
16
    <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
16
    <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
17
    <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> ›
17
    <a href="/cgi-bin/koha/tools/batch_delete_records.pl">Batch record deletion</a>
18
    <a href="/cgi-bin/koha/tools/batch_delete_records.pl">[% t('Batch record deletion') %]</a>
18
</div>
19
</div>
19
20
20
<div id="doc3" class="yui-t2">
21
<div id="doc3" class="yui-t2">
21
<div id="bd">
22
<div id="bd">
22
<div id="yui-main">
23
<div id="yui-main">
23
<div class="yui-b">
24
<div class="yui-b">
24
  <h1>Batch record deletion</h1>
25
  <h1>[% t('Batch record deletion') %]</h1>
25
  [% FOREACH message IN messages %]
26
  [% FOREACH message IN messages %]
26
    [% IF message.type == 'success' %]
27
    [% IF message.type == 'success' %]
27
      <div class="dialog message">
28
      <div class="dialog message">
Lines 31-79 Link Here
31
      <div class="dialog error" style="margin:auto;">
32
      <div class="dialog error" style="margin:auto;">
32
    [% END %]
33
    [% END %]
33
    [% IF message.code == 'biblio_not_exists' %]
34
    [% IF message.code == 'biblio_not_exists' %]
34
      The biblionumber [% message.biblionumber |html %] does not exist in the database.
35
      [% t('The biblionumber') %] [% message.biblionumber |html %] [% t('does not exist in the database.') %]
35
    [% ELSIF message.code == 'authority_not_exists' %]
36
    [% ELSIF message.code == 'authority_not_exists' %]
36
      The authority id [% message.authid |html %] does not exist in the database.
37
      [% t('The authority id') %] [% message.authid |html %] [% t('does not exist in the database.') %]
37
    [% ELSIF message.code == 'item_issued' %]
38
    [% ELSIF message.code == 'item_issued' %]
38
      At least one item is checked out on bibliographic record [% message.biblionumber %].
39
      [% t('At least one item is checked out on bibliographic record') %] [% message.biblionumber %].
39
    [% ELSIF message.code == 'reserve_not_cancelled' %]
40
    [% ELSIF message.code == 'reserve_not_cancelled' %]
40
      Bibliographic record [% message.biblionumber %] was not deleted. A hold could not be canceled (reserve_id [% message.reserve_id %]).
41
      [% t('Bibliographic record') %] [% message.biblionumber %] [% t('was not deleted. A hold could not be canceled (reserve_id') %] [% message.reserve_id %]).
41
    [% ELSIF message.code == 'item_not_deleted' %]
42
    [% ELSIF message.code == 'item_not_deleted' %]
42
      The bibliographic record [% message.biblionumber %] was not deleted. An error was encountered when deleting an item (itemnumber [% message.itemnumber %]).
43
      [% t('The bibliographic record') %] [% message.biblionumber %] [% t('was not deleted. An error was encountered when deleting an item (itemnumber') %] [% message.itemnumber %]).
43
    [% ELSIF message.code == 'biblio_not_deleted' %]
44
    [% ELSIF message.code == 'biblio_not_deleted' %]
44
      Bibliographic record [% message.biblionumber %] was not deleted. An error occurred.
45
      [% t('Bibliographic record') %] [% message.biblionumber %] [% t('was not deleted. An error occurred.') %]
45
    [% ELSIF message.code == 'authority_not_deleted' %]
46
    [% ELSIF message.code == 'authority_not_deleted' %]
46
      Authority record [% message.authid %] was not deleted. An error occurred.
47
      [% t('Authority record') %] [% message.authid %] [% t('was not deleted. An error occurred.') %]
47
    [% ELSIF message.code == 'biblio_deleted' %]
48
    [% ELSIF message.code == 'biblio_deleted' %]
48
      Bibliographic record [% message.biblionumber %] has been deleted successfully.
49
      [% t('Bibliographic record') %] [% message.biblionumber %] [% t('has been deleted successfully.') %]
49
    [% ELSIF message.code == 'authority_deleted' %]
50
    [% ELSIF message.code == 'authority_deleted' %]
50
      Authority [% message.authid %] has been deleted successfully.
51
      [% t('Authority') %] [% message.authid %] [% t('has been deleted successfully.') %]
51
    [% END %]
52
    [% END %]
52
    [% IF message.error %]
53
    [% IF message.error %]
53
      (The error was: [% message.error%], see the Koha log file for more information).
54
      [% t('(The error was:') %] [% message.error%][% t(', see the Koha log file for more information).') %]
54
    [% END %]
55
    [% END %]
55
    </div>
56
    </div>
56
  [% END %]
57
  [% END %]
57
  [% IF op == 'form' %]
58
  [% IF op == 'form' %]
58
    <form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/batch_delete_records.pl">
59
    <form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/batch_delete_records.pl">
59
      <fieldset class="rows">
60
      <fieldset class="rows">
60
        <legend>Record type</legend>
61
        <legend>[% t('Record type') %]</legend>
61
        <ol>
62
        <ol>
62
          <li><label for="biblio_type">Bibliographic: </label><input type="radio" name="recordtype" value="biblio" id="biblio_type" checked="checked" /></li>
63
          <li><label for="biblio_type">[% t('Bibliographic:') %] </label><input type="radio" name="recordtype" value="biblio" id="biblio_type" checked="checked" /></li>
63
          <li><label for="authority_type">Authorities: </label><input type="radio" name="recordtype" value="authority" id="authority_type" /></li>
64
          <li><label for="authority_type">[% t('Authorities:') %] </label><input type="radio" name="recordtype" value="authority" id="authority_type" /></li>
64
        </ol>
65
        </ol>
65
      </fieldset>
66
      </fieldset>
66
      <fieldset class="rows">
67
      <fieldset class="rows">
67
        <legend>Use a file</legend>
68
        <legend>[% t('Use a file') %]</legend>
68
        <ol>
69
        <ol>
69
          <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
70
          <li><label for="uploadfile">[% t('File:') %] </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
70
        </ol>
71
        </ol>
71
      </fieldset>
72
      </fieldset>
72
      <fieldset class="rows">
73
      <fieldset class="rows">
73
        <legend>Or enter a list of record numbers</legend>
74
        <legend>[% t('Or enter a list of record numbers') %]</legend>
74
        <ol>
75
        <ol>
75
          <li>
76
          <li>
76
            <label for="recordnumber_list">List of biblionumbers or authority ids (one per line): </label>
77
            <label for="recordnumber_list">[% t('List of biblionumbers or authority ids (one per line):') %] </label>
77
            <textarea rows="10" cols="30" id="recordnumber_list" name="recordnumber_list"></textarea>
78
            <textarea rows="10" cols="30" id="recordnumber_list" name="recordnumber_list"></textarea>
78
          </li>
79
          </li>
79
        </ol>
80
        </ol>
Lines 81-108 Link Here
81
      <fieldset class="action">
82
      <fieldset class="action">
82
        <input type="hidden" name="op" value="list" />
83
        <input type="hidden" name="op" value="list" />
83
        <input type="submit" value="Continue" class="button" />
84
        <input type="submit" value="Continue" class="button" />
84
        <a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a>
85
        <a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">[% t('Cancel') %]</a>
85
      </fieldset>
86
      </fieldset>
86
    </form>
87
    </form>
87
  [% ELSIF op == 'list' %]
88
  [% ELSIF op == 'list' %]
88
    [% IF records %]
89
    [% IF records %]
89
      [% IF recordtype == 'biblio' %]
90
      [% IF recordtype == 'biblio' %]
90
        <div id="toolbar">
91
        <div id="toolbar">
91
          <a id="selectall" href="#"><i class="fa fa-check"></i> Select all</a>
92
          <a id="selectall" href="#"><i class="fa fa-check"></i> [% t('Select all') %]</a>
92
          | <a id="clearall" href="#"><i class="fa fa-remove"></i> Clear all</a>
93
          | <a id="clearall" href="#"><i class="fa fa-remove"></i> [% t('Clear all') %]</a>
93
          | <a id="selectwithoutitems" href="#">Select without items</a>
94
          | <a id="selectwithoutitems" href="#">[% t('Select without items') %]</a>
94
          | <a id="selectnotreserved" href="#">Select without holds</a>
95
          | <a id="selectnotreserved" href="#">[% t('Select without holds') %]</a>
95
        </div>
96
        </div>
96
        <form action="/cgi-bin/koha/tools/batch_delete_records.pl" method="post" id="selectrecords">
97
        <form action="/cgi-bin/koha/tools/batch_delete_records.pl" method="post" id="selectrecords">
97
          <table id="biblios" class="records">
98
          <table id="biblios" class="records">
98
            <thead>
99
            <thead>
99
              <tr>
100
              <tr>
100
                <th></th>
101
                <th></th>
101
                <th>Biblionumber</th>
102
                <th>[% t('Biblionumber') %]</th>
102
                <th>Title</th>
103
                <th>[% t('Title') %]</th>
103
                <th>Items</th>
104
                <th>[% t('Items') %]</th>
104
                <th>Holds</th>
105
                <th>[% t('Holds') %]</th>
105
                <th>Checkouts</th>
106
                <th>[% t('Checkouts') %]</th>
106
              </tr>
107
              </tr>
107
            </thead>
108
            </thead>
108
            <tbody>
109
            <tbody>
Lines 118-138 Link Here
118
              [% END %]
119
              [% END %]
119
            </tbody>
120
            </tbody>
120
          </table>
121
          </table>
121
          <div class="note"><i class="fa fa-exclamation"></i> Reminder: this action will delete all selected bibliographic records, attached subscriptions, existing holds, and attached items!</div>
122
          <div class="note"><i class="fa fa-exclamation"></i> [% t('Reminder: this action will delete all selected bibliographic records, attached subscriptions, existing holds, and attached items!') %]</div>
122
      [% ELSE %]
123
      [% ELSE %]
123
        <div id="toolbar">
124
        <div id="toolbar">
124
          <a id="selectall" href="#"><i class="fa fa-check"></i> Select all</a>
125
          <a id="selectall" href="#"><i class="fa fa-check"></i> [% t('Select all') %]</a>
125
          | <a id="clearall" href="#"><i class="fa fa-remove"></i> Clear all</a>
126
          | <a id="clearall" href="#"><i class="fa fa-remove"></i> [% t('Clear all') %]</a>
126
          | <a id="clearlinkedtobiblio" href="#">Clear used authorities</a>
127
          | <a id="clearlinkedtobiblio" href="#">[% t('Clear used authorities') %]</a>
127
        </div>
128
        </div>
128
        <form action="/cgi-bin/koha/tools/batch_delete_records.pl" method="post" id="selectauths">
129
        <form action="/cgi-bin/koha/tools/batch_delete_records.pl" method="post" id="selectauths">
129
          <table id="authorities" class="records">
130
          <table id="authorities" class="records">
130
            <thead>
131
            <thead>
131
              <tr>
132
              <tr>
132
                <th></th>
133
                <th></th>
133
                <th>Authid</th>
134
                <th>[% t('Authid') %]</th>
134
                <th>Summary</th>
135
                <th>[% t('Summary') %]</th>
135
                <th>Used in</th>
136
                <th>[% t('Used in') %]</th>
136
              </tr>
137
              </tr>
137
            </thead>
138
            </thead>
138
            <tbody>
139
            <tbody>
Lines 141-174 Link Here
141
                  <td><input type="checkbox" name="record_id" value="[% authority.authid %]" data-usage="[% authority.count_usage %]" /></td>
142
                  <td><input type="checkbox" name="record_id" value="[% authority.authid %]" data-usage="[% authority.count_usage %]" /></td>
142
                  <td><a href="/cgi-bin/koha/authorities/detail.pl?authid=[% authority.authid %]">[% authority.authid %]</a></td>
143
                  <td><a href="/cgi-bin/koha/authorities/detail.pl?authid=[% authority.authid %]">[% authority.authid %]</a></td>
143
                  <td>[% PROCESS authresult summary=authority.summary %]</td>
144
                  <td>[% PROCESS authresult summary=authority.summary %]</td>
144
                  <td><a href="/cgi-bin/koha/catalogue/search.pl?type=intranet&amp;op=do_search&amp;idx=an,phr&amp;q=[% authority.authid %]">[% authority.count_usage %] record(s)</a></td>
145
                  <td><a href="/cgi-bin/koha/catalogue/search.pl?type=intranet&op=do_search&idx=an,phr&q=[% authority.authid %]">[% authority.count_usage %] [% t('record(s)') %]</a></td>
145
                </tr>
146
                </tr>
146
              [% END %]
147
              [% END %]
147
            </tbody>
148
            </tbody>
148
          </table>
149
          </table>
149
          <div class="note"><i class="fa fa-exclamation"></i> Reminder: this action will delete all selected authorities!</div>
150
          <div class="note"><i class="fa fa-exclamation"></i> [% t('Reminder: this action will delete all selected authorities!') %]</div>
150
      [% END %]
151
      [% END %]
151
        <fieldset class="action">
152
        <fieldset class="action">
152
          <input type="hidden" name="op" value="delete" />
153
          <input type="hidden" name="op" value="delete" />
153
          <input type="hidden" name="recordtype" value="[% recordtype %]" />
154
          <input type="hidden" name="recordtype" value="[% recordtype %]" />
154
          <input type="submit" value="Delete selected records" class="button" />
155
          <input type="submit" value="Delete selected records" class="button" />
155
          <a class="cancel" href="/cgi-bin/koha/tools/batch_delete_records.pl">Cancel</a>
156
          <a class="cancel" href="/cgi-bin/koha/tools/batch_delete_records.pl">[% t('Cancel') %]</a>
156
        </fieldset>
157
        </fieldset>
157
      </form>
158
      </form>
158
    [% ELSE %]
159
    [% ELSE %]
159
      There are no record ids defined.
160
      [% t('There are no record ids defined.') %]
160
    [% END %]
161
    [% END %]
161
  [% ELSIF op == 'report' %]
162
  [% ELSIF op == 'report' %]
162
    [% IF report.total_records == report.total_success %]
163
    [% IF report.total_records == report.total_success %]
163
      All records have been deleted successfully!
164
      [% t('All records have been deleted successfully!') %]
164
    [% ELSIF report.total_success == 0 %]
165
    [% ELSIF report.total_success == 0 %]
165
      No record has been deleted. An error occurred.
166
      [% t('No record has been deleted. An error occurred.') %]
166
    [% ELSE %]
167
    [% ELSE %]
167
      [% report.total_success %] / [% report.total_records %] records have been deleted successfully but some errors occurred.
168
      [% report.total_success %] / [% report.total_records %] [% t('records have been deleted successfully but some errors occurred.') %]
168
    [% END %]
169
    [% END %]
169
    <p><a href="/cgi-bin/koha/tools/batch_delete_records.pl" title="New batch record deletion">New batch record deletion</a></p>
170
    <p><a href="/cgi-bin/koha/tools/batch_delete_records.pl" title="[% t('New batch record deletion') %]">[% t('New batch record deletion') %]</a></p>
170
  [% ELSE %]
171
  [% ELSE %]
171
    No action defined for the template.
172
    [% t('No action defined for the template.') %]
172
  [% END %]
173
  [% END %]
173
</div>
174
</div>
174
</div>
175
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt (-51 / +52 lines)
Lines 1-8 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% PROCESS 'authorities-search-results.inc' %]
4
[% PROCESS 'authorities-search-results.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Tools &rsaquo; Batch record modification</title>
6
<title>[% t('Koha › Tools › Batch record modification') %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
7
[% Asset.css("css/datatables.css") %]
8
[% Asset.css("css/datatables.css") %]
8
</head>
9
</head>
Lines 12-27 Link Here
12
[% INCLUDE 'cat-search.inc' %]
13
[% INCLUDE 'cat-search.inc' %]
13
14
14
<div id="breadcrumbs">
15
<div id="breadcrumbs">
15
    <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
16
    <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
16
    <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
17
    <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> ›
17
    <a href="/cgi-bin/koha/tools/batch_record_modification.pl">Batch record modification</a>
18
    <a href="/cgi-bin/koha/tools/batch_record_modification.pl">[% t('Batch record modification') %]</a>
18
</div>
19
</div>
19
20
20
<div id="doc3" class="yui-t2">
21
<div id="doc3" class="yui-t2">
21
<div id="bd">
22
<div id="bd">
22
<div id="yui-main">
23
<div id="yui-main">
23
<div class="yui-b">
24
<div class="yui-b">
24
  <h1>Batch record modification</h1>
25
  <h1>[% t('Batch record modification') %]</h1>
25
26
26
    [% IF ( messages ) %]
27
    [% IF ( messages ) %]
27
        <div class="dialog message">
28
        <div class="dialog message">
Lines 35-56 Link Here
35
                    <div><i class="fa fa-exclamation error"></i>
36
                    <div><i class="fa fa-exclamation error"></i>
36
                [% END %]
37
                [% END %]
37
                [% IF message.code == 'no_action_defined_for_the_template' %]
38
                [% IF message.code == 'no_action_defined_for_the_template' %]
38
                    The selected template (id=[% message.mmtid%]) does not exist or no action is defined.
39
                    [% t('The selected template (id=') %][% message.mmtid%][% t(') does not exist or no action is defined.') %]
39
                [% ELSIF message.code == 'biblio_not_exists' %]
40
                [% ELSIF message.code == 'biblio_not_exists' %]
40
                    Bibliographic record [% message.biblionumber %] does not exist in the database.
41
                    [% t('Bibliographic record') %] [% message.biblionumber %] [% t('does not exist in the database.') %]
41
                [% ELSIF message.code == 'authority_not_exists' %]
42
                [% ELSIF message.code == 'authority_not_exists' %]
42
                    Authority record [% message.authid %] does not exist in the database.
43
                    [% t('Authority record') %] [% message.authid %] [% t('does not exist in the database.') %]
43
                [% ELSIF message.code == 'biblio_not_modified' %]
44
                [% ELSIF message.code == 'biblio_not_modified' %]
44
                    Bibliographic record <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% message.biblionumber %]">[% message.biblionumber %]</a> has not been modified. An error occurred on modifying it.
45
                    [% t('Bibliographic record') %] <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% message.biblionumber %]">[% message.biblionumber %]</a> [% t('has not been modified. An error occurred on modifying it.') %]
45
                [% ELSIF message.code == 'authority_not_modified' %]
46
                [% ELSIF message.code == 'authority_not_modified' %]
46
                    Authority record <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% message.authid %]">[% message.authid %]</a> has not been modified. An error occurred on modifying it.
47
                    [% t('Authority record') %] <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% message.authid %]">[% message.authid %]</a> [% t('has not been modified. An error occurred on modifying it.') %]
47
                [% ELSIF message.code == 'biblio_modified' %]
48
                [% ELSIF message.code == 'biblio_modified' %]
48
                    Bibliographic record <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% message.biblionumber %]">[% message.biblionumber %]</a> has successfully been modified.
49
                    [% t('Bibliographic record') %] <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% message.biblionumber %]">[% message.biblionumber %]</a> [% t('has successfully been modified.') %]
49
                [% ELSIF message.code == 'authority_modified' %]
50
                [% ELSIF message.code == 'authority_modified' %]
50
                    Bibliographic record <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% message.authid %]">[% message.authid %]</a> has successfully been modified.
51
                    [% t('Bibliographic record') %] <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% message.authid %]">[% message.authid %]</a> [% t('has successfully been modified.') %]
51
                [% END %]
52
                [% END %]
52
                [% IF message.error %]
53
                [% IF message.error %]
53
                    (The error was: [% message.error%]. See the Koha logfile for more information).
54
                    [% t('(The error was:') %] [% message.error%][% t('. See the Koha logfile for more information).') %]
54
                [% END %]
55
                [% END %]
55
                </div>
56
                </div>
56
            [% END %]
57
            [% END %]
Lines 61-94 Link Here
61
  [% IF view == 'form' %]
62
  [% IF view == 'form' %]
62
    <form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/batch_record_modification.pl">
63
    <form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/batch_record_modification.pl">
63
      <fieldset class="rows">
64
      <fieldset class="rows">
64
        <legend>Record type</legend>
65
        <legend>[% t('Record type') %]</legend>
65
        <ol>
66
        <ol>
66
          <li><label for="biblio_type">Biblios: </label><input type="radio" name="recordtype" value="biblio" id="biblio_type" checked="checked" /></li>
67
          <li><label for="biblio_type">[% t('Biblios:') %] </label><input type="radio" name="recordtype" value="biblio" id="biblio_type" checked="checked" /></li>
67
          <li><label for="authority_type">Authorities: </label><input type="radio" name="recordtype" value="authority" id="authority_type" /></li>
68
          <li><label for="authority_type">[% t('Authorities:') %] </label><input type="radio" name="recordtype" value="authority" id="authority_type" /></li>
68
        </ol>
69
        </ol>
69
      </fieldset>
70
      </fieldset>
70
      <fieldset class="rows">
71
      <fieldset class="rows">
71
        <legend>Use a file</legend>
72
        <legend>[% t('Use a file') %]</legend>
72
        <ol>
73
        <ol>
73
          <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
74
          <li><label for="uploadfile">[% t('File:') %] </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
74
        </ol>
75
        </ol>
75
      </fieldset>
76
      </fieldset>
76
      <fieldset class="rows">
77
      <fieldset class="rows">
77
        <legend>Or enter a list of record numbers</legend>
78
        <legend>[% t('Or enter a list of record numbers') %]</legend>
78
        <ol>
79
        <ol>
79
          <li>
80
          <li>
80
            <label for="recordnumber_list">List of biblionumbers or authority ids (one per line): </label>
81
            <label for="recordnumber_list">[% t('List of biblionumbers or authority ids (one per line):') %] </label>
81
            <textarea rows="10" cols="30" id="recordnumber_list" name="recordnumber_list"></textarea>
82
            <textarea rows="10" cols="30" id="recordnumber_list" name="recordnumber_list"></textarea>
82
          </li>
83
          </li>
83
        </ol>
84
        </ol>
84
      </fieldset>
85
      </fieldset>
85
      <fieldset class="rows">
86
      <fieldset class="rows">
86
        <legend>Use MARC Modification Template:</legend>
87
        <legend>[% t('Use MARC Modification Template:') %]</legend>
87
        <ol>
88
        <ol>
88
          <li>
89
          <li>
89
            <label for="marc_modification_template_id" class="required">Modify record using the following template: </label>
90
            <label for="marc_modification_template_id" class="required">[% t('Modify record using the following template:') %] </label>
90
            <select name="marc_modification_template_id" id="marc_modification_template_id" required="required">
91
            <select name="marc_modification_template_id" id="marc_modification_template_id" required="required">
91
              <option value="">Select a template</option>
92
              <option value="">[% t('Select a template') %]</option>
92
                [% FOREACH mmt IN MarcModificationTemplatesLoop %]
93
                [% FOREACH mmt IN MarcModificationTemplatesLoop %]
93
                  <option value="[% mmt.template_id %]">[% mmt.name %]</option>
94
                  <option value="[% mmt.template_id %]">[% mmt.name %]</option>
94
                [% END %]
95
                [% END %]
Lines 99-113 Link Here
99
      <fieldset class="action">
100
      <fieldset class="action">
100
        <input type="hidden" name="op" value="list" />
101
        <input type="hidden" name="op" value="list" />
101
        <input type="submit" value="Continue" class="button" />
102
        <input type="submit" value="Continue" class="button" />
102
        <a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a>
103
        <a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">[% t('Cancel') %]</a>
103
      </fieldset>
104
      </fieldset>
104
    </form>
105
    </form>
105
  [% ELSIF view == 'list' %]
106
  [% ELSIF view == 'list' %]
106
    [% IF records %]
107
    [% IF records %]
107
      <form action="/cgi-bin/koha/tools/batch_record_modification.pl" method="post" id="process">
108
      <form action="/cgi-bin/koha/tools/batch_record_modification.pl" method="post" id="process">
108
        <label for="marc_modification_template_id" class="required">Modify record using the following template: </label>
109
        <label for="marc_modification_template_id" class="required">[% t('Modify record using the following template:') %] </label>
109
        <select name="marc_modification_template_id" id="marc_modification_template_id" required="required">
110
        <select name="marc_modification_template_id" id="marc_modification_template_id" required="required">
110
          <option value="">Select a template</option>
111
          <option value="">[% t('Select a template') %]</option>
111
          [% FOREACH mmt IN MarcModificationTemplatesLoop %]
112
          [% FOREACH mmt IN MarcModificationTemplatesLoop %]
112
            [% IF mmt.selected %]
113
            [% IF mmt.selected %]
113
              <option value="[% mmt.template_id %]" selected="selected">[% mmt.name %]</option>
114
              <option value="[% mmt.template_id %]" selected="selected">[% mmt.name %]</option>
Lines 121-149 Link Here
121
                <div class="modal-content">
122
                <div class="modal-content">
122
                    <div class="modal-header">
123
                    <div class="modal-header">
123
                        <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
124
                        <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
124
                        <h3 id="marcPreviewLabel">MARC preview</h3>
125
                        <h3 id="marcPreviewLabel">[% t('MARC preview') %]</h3>
125
                    </div>
126
                    </div>
126
                    <div class="modal-body">
127
                    <div class="modal-body">
127
                        <div id="loading"> <img src="[% interface %]/[% theme %]/img/loading-small.gif" alt="" /> Loading </div>
128
                        <div id="loading"> <img src="[% interface %]/[% theme %]/img/loading-small.gif" alt="" /> [% t('Loading') %] </div>
128
                    </div>
129
                    </div>
129
                    <div class="modal-footer">
130
                    <div class="modal-footer">
130
                        <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
131
                        <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">[% t('Close') %]</button>
131
                    </div>
132
                    </div>
132
                </div>
133
                </div>
133
            </div>
134
            </div>
134
        </div>
135
        </div>
135
        [% IF recordtype == 'biblio' %]
136
        [% IF recordtype == 'biblio' %]
136
          <div id="toolbar">
137
          <div id="toolbar">
137
            <a id="selectall" href="#"><i class="fa fa-check"></i> Select all</a>
138
            <a id="selectall" href="#"><i class="fa fa-check"></i> [% t('Select all') %]</a>
138
            | <a id="clearall" href="#"><i class="fa fa-remove"></i> Clear all</a>
139
            | <a id="clearall" href="#"><i class="fa fa-remove"></i> [% t('Clear all') %]</a>
139
          </div>
140
          </div>
140
          <table id="biblios" class="records">
141
          <table id="biblios" class="records">
141
            <thead>
142
            <thead>
142
              <tr>
143
              <tr>
143
                <th>&nbsp;</th>
144
                <th> </th>
144
                <th>Biblionumber</th>
145
                <th>[% t('Biblionumber') %]</th>
145
                <th>Title</th>
146
                <th>[% t('Title') %]</th>
146
                <th>&nbsp;</th>
147
                <th> </th>
147
              </tr>
148
              </tr>
148
            </thead>
149
            </thead>
149
            <tbody>
150
            <tbody>
Lines 153-177 Link Here
153
                  <td>[% biblio.biblionumber %]</td>
154
                  <td>[% biblio.biblionumber %]</td>
154
                  <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber %]">[% biblio.title %]</a></td>
155
                  <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber %]">[% biblio.title %]</a></td>
155
                  <td class="actions">
156
                  <td class="actions">
156
                    <a href="/cgi-bin/koha/svc/records/preview?record_type=biblio&record_id=[% biblio.biblionumber %]&mmtid=[% mmtid %]" class="previewMARC btn btn-default btn-xs" data-record_type="biblio" data-record_id="[% biblio.biblionumber %]" data-mmtid="[% mmtid %]" title="Preview MARC"><i class="fa fa-eye"></i> Show MARC</a>
157
                    <a href="/cgi-bin/koha/svc/records/preview?record_type=biblio&record_id=[% biblio.biblionumber %]&mmtid=[% mmtid %]" class="previewMARC btn btn-default btn-xs" data-record_type="biblio" data-record_id="[% biblio.biblionumber %]" data-mmtid="[% mmtid %]" title="[% t('Preview MARC') %]"><i class="fa fa-eye"></i> [% t('Show MARC') %]</a>
157
                  </td>
158
                  </td>
158
                </tr>
159
                </tr>
159
              [% END %]
160
              [% END %]
160
            </tbody>
161
            </tbody>
161
          </table>
162
          </table>
162
          <div class="note"><i class="fa fa-exclamation"></i> Reminder: this action will modify all selected biblios!</div>
163
          <div class="note"><i class="fa fa-exclamation"></i> [% t('Reminder: this action will modify all selected biblios!') %]</div>
163
        [% ELSE %]
164
        [% ELSE %]
164
          <div id="toolbar">
165
          <div id="toolbar">
165
            <a id="selectall" href="#"><i class="fa fa-check"></i> Select all</a>
166
            <a id="selectall" href="#"><i class="fa fa-check"></i> [% t('Select all') %]</a>
166
            | <a id="clearall" href="#"><i class="fa fa-remove"></i> Clear all</a>
167
            | <a id="clearall" href="#"><i class="fa fa-remove"></i> [% t('Clear all') %]</a>
167
          </div>
168
          </div>
168
          <table id="authorities" class="records">
169
          <table id="authorities" class="records">
169
            <thead>
170
            <thead>
170
              <tr>
171
              <tr>
171
                <th></th>
172
                <th></th>
172
                <th>Authid</th>
173
                <th>[% t('Authid') %]</th>
173
                <th>Summary</th>
174
                <th>[% t('Summary') %]</th>
174
                <th>&nbsp;</th>
175
                <th> </th>
175
              </tr>
176
              </tr>
176
            </thead>
177
            </thead>
177
            <tbody>
178
            <tbody>
Lines 180-191 Link Here
180
                  <td><input type="checkbox" name="record_id" value="[% authority.authid %]" data-usage="[% authority.count_usage %]" /></td>
181
                  <td><input type="checkbox" name="record_id" value="[% authority.authid %]" data-usage="[% authority.count_usage %]" /></td>
181
                  <td><a href="/cgi-bin/koha/authorities/detail.pl?authid=[% authority.authid %]">[% authority.authid %]</a></td>
182
                  <td><a href="/cgi-bin/koha/authorities/detail.pl?authid=[% authority.authid %]">[% authority.authid %]</a></td>
182
                  <td>[% PROCESS authresult summary=authority.summary %]</td>
183
                  <td>[% PROCESS authresult summary=authority.summary %]</td>
183
                  <td class="actions"><a href="/cgi-bin/koha/svc/records/preview?record_type=authority&record_id=[% authority.authid %]&mmtid=[% mmtid %]" data-record_type="authority" data-record_id="[% authority.authid %]" data-mmtid="[% mmtid %]" class="previewMARC btn btn-default btn-xs"><i class='fa fa-eye'></i> Show MARC</a>
184
                  <td class="actions"><a href="/cgi-bin/koha/svc/records/preview?record_type=authority&record_id=[% authority.authid %]&mmtid=[% mmtid %]" data-record_type="authority" data-record_id="[% authority.authid %]" data-mmtid="[% mmtid %]" class="previewMARC btn btn-default btn-xs"><i class="fa fa-eye"></i> [% t('Show MARC') %]</a>
184
                </tr>
185
                </tr>
185
              [% END %]
186
              [% END %]
186
            </tbody>
187
            </tbody>
187
          </table>
188
          </table>
188
          <div class="note"><i class="fa fa-exclamation"></i> Reminder: this action will modify all selected authorities!</div>
189
          <div class="note"><i class="fa fa-exclamation"></i> [% t('Reminder: this action will modify all selected authorities!') %]</div>
189
        [% END %]
190
        [% END %]
190
        <fieldset class="action">
191
        <fieldset class="action">
191
          <input type="hidden" name="op" value="modify" />
192
          <input type="hidden" name="op" value="modify" />
Lines 193-231 Link Here
193
          <input type="button" id="mainformsubmit" value="Modify selected records" class="button" />
194
          <input type="button" id="mainformsubmit" value="Modify selected records" class="button" />
194
          <input type="hidden" name="runinbackground" id="runinbackground" value="" />
195
          <input type="hidden" name="runinbackground" id="runinbackground" value="" />
195
          <input type="hidden" name="completedJobID" id="completedJobID" value="" />
196
          <input type="hidden" name="completedJobID" id="completedJobID" value="" />
196
          <a class="cancel" href="/cgi-bin/koha/tools/batch_record_modification.pl">Cancel</a>
197
          <a class="cancel" href="/cgi-bin/koha/tools/batch_record_modification.pl">[% t('Cancel') %]</a>
197
        </fieldset>
198
        </fieldset>
198
        <div id="jobpanel">
199
        <div id="jobpanel">
199
          <div id="jobstatus" class="progress_panel">Job progress: <div id="jobprogress"></div> <span id="jobprogresspercent">0</span>%</div>
200
          <div id="jobstatus" class="progress_panel">[% t('Job progress:') %] <div id="jobprogress"></div> <span id="jobprogresspercent">[% t('0') %]</span>%</div>
200
          <div id="jobfailed"></div>
201
          <div id="jobfailed"></div>
201
        </div>
202
        </div>
202
      </form>
203
      </form>
203
    [% ELSE %]
204
    [% ELSE %]
204
        <div class="dialog message">
205
        <div class="dialog message">
205
            No records were modified. <a href="/cgi-bin/koha/tools/batch_record_modification.pl" title="New batch record modification">New batch record modification</a>
206
            [% t('No records were modified.') %] <a href="/cgi-bin/koha/tools/batch_record_modification.pl" title="[% t('New batch record modification') %]">[% t('New batch record modification') %]</a>
206
        </div>
207
        </div>
207
    [% END %]
208
    [% END %]
208
  [% ELSIF view == 'report' %]
209
  [% ELSIF view == 'report' %]
209
    [% IF report.total_records == report.total_success %]
210
    [% IF report.total_records == report.total_success %]
210
        <div class="dialog message">
211
        <div class="dialog message">
211
            All records have successfully been modified! <a href="/cgi-bin/koha/tools/batch_record_modification.pl" title="New batch record modification">New batch record modification</a>
212
            [% t('All records have successfully been modified!') %] <a href="/cgi-bin/koha/tools/batch_record_modification.pl" title="[% t('New batch record modification') %]">[% t('New batch record modification') %]</a>
212
        </div>
213
        </div>
213
    [% ELSE %]
214
    [% ELSE %]
214
        <div class="dialog message">
215
        <div class="dialog message">
215
            [% report.total_success %] / [% report.total_records %] records have successfully been modified. Some errors occurred. <a href="/cgi-bin/koha/tools/batch_record_modification.pl" title="New batch record modification">New batch record modification</a>
216
            [% report.total_success %] / [% report.total_records %] [% t('records have successfully been modified. Some errors occurred.') %] <a href="/cgi-bin/koha/tools/batch_record_modification.pl" title="[% t('New batch record modification') %]">[% t('New batch record modification') %]</a>
216
        </div>
217
        </div>
217
    [% END %]
218
    [% END %]
218
  [% ELSIF view == 'errors' %]
219
  [% ELSIF view == 'errors' %]
219
    [% FOR error IN errors %]
220
    [% FOR error IN errors %]
220
      [% IF error == 'no_template_defined' %]
221
      [% IF error == 'no_template_defined' %]
221
        <div class="dialog alert">
222
        <div class="dialog alert">
222
            No MARC modification template is defined. You have <a href="/cgi-bin/koha/tools/marc_modification_templates.pl">to create</a> at least one template for using this tool.
223
            [% t('No MARC modification template is defined. You have') %] <a href="/cgi-bin/koha/tools/marc_modification_templates.pl">[% t('to create') %]</a> [% t('at least one template for using this tool.') %]
223
        </div>
224
        </div>
224
      [% END %]
225
      [% END %]
225
    [% END %]
226
    [% END %]
226
  [% ELSE %]
227
  [% ELSE %]
227
        <div class="dialog alert">
228
        <div class="dialog alert">
228
            No action defined for the template.
229
            [% t('No action defined for the template.') %]
229
        </div>
230
        </div>
230
  [% END %]
231
  [% END %]
231
</div>
232
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt (-43 / +44 lines)
Lines 1-10 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% USE KohaDates %]
4
[% USE KohaDates %]
4
[% USE Branches %]
5
[% USE Branches %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Koha &rsaquo; Tools &rsaquo; Batch patron deletion/anonymization [% IF step == 2 %]&rsaquo; Confirm[% END %][% IF step == 3 %]&rsaquo; Finished[% END %]</title>
8
<title>[% t('Koha › Tools › Batch patron deletion/anonymization') %] [% IF step == 2 %][% t('› Confirm') %][% END %][% IF step == 3 %][% t('› Finished') %][% END %]</title>
8
[% INCLUDE 'doc-head-close.inc' %]
9
[% INCLUDE 'doc-head-close.inc' %]
9
</head>
10
</head>
10
11
Lines 13-27 Link Here
13
[% INCLUDE 'cat-search.inc' %]
14
[% INCLUDE 'cat-search.inc' %]
14
15
15
<div id="breadcrumbs">
16
<div id="breadcrumbs">
16
    <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
17
    <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
17
    <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
18
    <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> ›
18
    [% IF step == 1 %]
19
    [% IF step == 1 %]
19
        Batch patron deletion/anonymization
20
        [% t('Batch patron deletion/anonymization') %]
20
    [% ELSE %]
21
    [% ELSE %]
21
        <a href="/cgi-bin/koha/tools/cleanborrowers.pl">Batch patron deletion/anonymization</a> &rsaquo;
22
        <a href="/cgi-bin/koha/tools/cleanborrowers.pl">[% t('Batch patron deletion/anonymization') %]</a> ›
22
    [% END %]
23
    [% END %]
23
    [% IF step == 2 %] Confirm [% END %]
24
    [% IF step == 2 %] [% t('Confirm') %] [% END %]
24
    [% IF step == 3 %] Finished [% END %]
25
    [% IF step == 3 %] [% t('Finished') %] [% END %]
25
</div>
26
</div>
26
27
27
<div id="doc3" class="yui-t2">
28
<div id="doc3" class="yui-t2">
Lines 31-39 Link Here
31
    <div class="yui-b">
32
    <div class="yui-b">
32
[% IF !OnlyMine %]
33
[% IF !OnlyMine %]
33
    <form method="get" action="/cgi-bin/koha/tools/cleanborrowers.pl" id="selectlibrary">
34
    <form method="get" action="/cgi-bin/koha/tools/cleanborrowers.pl" id="selectlibrary">
34
    Select a library :
35
    [% t('Select a library :') %]
35
        <select name="branch" id="branch" style="width:20em;">
36
        <select name="branch" id="branch" style="width:20em;">
36
            <option value="*">All libraries</option>
37
            <option value="*">[% t('All libraries') %]</option>
37
        [% FOREACH branch IN Branches.all( selected => current_branch ) %]
38
        [% FOREACH branch IN Branches.all( selected => current_branch ) %]
38
          [% IF branch.selected %]
39
          [% IF branch.selected %]
39
            <option value="[% branch.branchcode %]" selected="selected">[% branch.branchname %]</option>
40
            <option value="[% branch.branchcode %]" selected="selected">[% branch.branchname %]</option>
Lines 44-92 Link Here
44
        </select>
45
        </select>
45
    </form>
46
    </form>
46
  [% IF current_branch == '*' %]
47
  [% IF current_branch == '*' %]
47
    <h1>Batch patron deletion/anonymization</h1>
48
    <h1>[% t('Batch patron deletion/anonymization') %]</h1>
48
  [% ELSE %]
49
  [% ELSE %]
49
    <h1>Batch patron deletion/anonymization for [% Branches.GetName( current_branch ) %]</h1>
50
    <h1>[% t('Batch patron deletion/anonymization for') %] [% Branches.GetName( current_branch ) %]</h1>
50
  [% END %]
51
  [% END %]
51
[% ELSE %]
52
[% ELSE %]
52
    <h1>Batch patron deletion/anonymization for [% Branches.GetName( Branches.GetLoggedInBranchcode ) %]</h1>
53
    <h1>[% t('Batch patron deletion/anonymization for') %] [% Branches.GetName( Branches.GetLoggedInBranchcode ) %]</h1>
53
[% END %]
54
[% END %]
54
55
55
[% IF step == 1 %]
56
[% IF step == 1 %]
56
<!-- step 1 START -->
57
<!-- step 1 START -->
57
58
58
<div class="help">
59
<div class="help">
59
    <p>This tool allows you to delete patrons and anonymize checkout history. For deleting patrons, any combination of limits can be used.</p>
60
    <p>[% t('This tool allows you to delete patrons and anonymize checkout history. For deleting patrons, any combination of limits can be used.') %]</p>
60
</div>
61
</div>
61
<div id="step1">
62
<div id="step1">
62
    <form name="f1" id="delete_patrons_form" action="/cgi-bin/koha/tools/cleanborrowers.pl" method="post">
63
    <form name="f1" id="delete_patrons_form" action="/cgi-bin/koha/tools/cleanborrowers.pl" method="post">
63
    <fieldset>
64
    <fieldset>
64
    <legend>Delete patrons</legend>
65
    <legend>[% t('Delete patrons') %]</legend>
65
        <h3><input id="checkborrower" type="checkbox" name="checkbox" value="borrower" /><label for="checkborrower"> Verify you want to delete patrons</label></h3>
66
        <h3><input id="checkborrower" type="checkbox" name="checkbox" value="borrower" /><label for="checkborrower"> [% t('Verify you want to delete patrons') %]</label></h3>
66
        <br />
67
        <br />
67
        <h5>Delete patrons who meet the following criteria:</h5>
68
        <h5>[% t('Delete patrons who meet the following criteria:') %]</h5>
68
        <ul>
69
        <ul>
69
                <li>
70
                <li>
70
                    <label for="date1">who have not borrowed since:</label>
71
                    <label for="date1">[% t('who have not borrowed since:') %]</label>
71
                    <input size="10" id="date1" name="not_borrowed_since" type="text" class="datepicker" />
72
                    <input size="10" id="date1" name="not_borrowed_since" type="text" class="datepicker" />
72
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
73
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
73
                </li>
74
                </li>
74
                <li>
75
                <li>
75
                    <label for="borrower_dateexpiry">whose expiration date is before:</label>
76
                    <label for="borrower_dateexpiry">[% t('whose expiration date is before:') %]</label>
76
                    <input size="10" id="borrower_dateexpiry" name="borrower_dateexpiry" type="text" class="datepicker" />
77
                    <input size="10" id="borrower_dateexpiry" name="borrower_dateexpiry" type="text" class="datepicker" />
77
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
78
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
78
                </li>
79
                </li>
79
                [% IF Koha.Preference('TrackLastPatronActivity') %]
80
                [% IF Koha.Preference('TrackLastPatronActivity') %]
80
                    <li>
81
                    <li>
81
                        <label for="borrower_lastseen">who have not been connected since:</label>
82
                        <label for="borrower_lastseen">[% t('who have not been connected since:') %]</label>
82
                        <input size="10" id="borrower_lastseen" name="borrower_lastseen" type="text" class="datepicker" />
83
                        <input size="10" id="borrower_lastseen" name="borrower_lastseen" type="text" class="datepicker" />
83
                        <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
84
                        <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
84
                    </li>
85
                    </li>
85
                [% END %]
86
                [% END %]
86
                <li>
87
                <li>
87
                    <label for="borrower_categorycode">whose patron category is:</label>
88
                    <label for="borrower_categorycode">[% t('whose patron category is:') %]</label>
88
                    <select id="borrower_categorycode" name="borrower_categorycode">
89
                    <select id="borrower_categorycode" name="borrower_categorycode">
89
                        <option value="" selected="selected">Any</option>
90
                        <option value="" selected="selected">[% t('Any') %]</option>
90
                        [% FOREACH bc IN borrower_categorycodes %]
91
                        [% FOREACH bc IN borrower_categorycodes %]
91
                            [% UNLESS bc.category_type == 'S' %]
92
                            [% UNLESS bc.category_type == 'S' %]
92
                                <option value="[% bc.categorycode %]">[% bc.description %]</option>
93
                                <option value="[% bc.categorycode %]">[% bc.description %]</option>
Lines 96-102 Link Here
96
                </li>
97
                </li>
97
                [% IF patron_lists %]
98
                [% IF patron_lists %]
98
                <li>
99
                <li>
99
                    <label for="patron_list_id">who are in patron list: </label>
100
                    <label for="patron_list_id">[% t('who are in patron list:') %] </label>
100
                    <select id="patron_list_id" name="patron_list_id">
101
                    <select id="patron_list_id" name="patron_list_id">
101
                        <option value=""></option>
102
                        <option value=""></option>
102
                        [% FOREACH pl IN patron_lists %]
103
                        [% FOREACH pl IN patron_lists %]
Lines 109-123 Link Here
109
        </fieldset>
110
        </fieldset>
110
111
111
        <fieldset>
112
        <fieldset>
112
        <legend>Anonymize checkout history</legend>
113
        <legend>[% t('Anonymize checkout history') %]</legend>
113
        [% UNLESS Koha.Preference('AnonymousPatron') %]
114
        [% UNLESS Koha.Preference('AnonymousPatron') %]
114
            <div class="dialog message">The AnonymousPatron system preference is not defined. You can use this feature anyway but NULL will be used to update the checkout history.</div>
115
            <div class="dialog message">[% t('The AnonymousPatron system preference is not defined. You can use this feature anyway but NULL will be used to update the checkout history.') %]</div>
115
        [% END %]
116
        [% END %]
116
        <h3><input id="checkissue" type="checkbox" name="checkbox" value="issue" /><label for="checkissue"> Verify you want to anonymize patron checkout history</label></h3>
117
        <h3><input id="checkissue" type="checkbox" name="checkbox" value="issue" /><label for="checkissue"> [% t('Verify you want to anonymize patron checkout history') %]</label></h3>
117
        <br />
118
        <br />
118
        <ul>
119
        <ul>
119
            <li>
120
            <li>
120
                <label for="date2">Permanently delete checkout history older than</label>
121
                <label for="date2">[% t('Permanently delete checkout history older than') %]</label>
121
                <input size="10" id="date2" name="last_issue_date" type="text" class="datepicker" />
122
                <input size="10" id="date2" name="last_issue_date" type="text" class="datepicker" />
122
                <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
123
                <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
123
            </li>
124
            </li>
Lines 127-133 Link Here
127
            <input type="hidden" name="step" value="2" />
128
            <input type="hidden" name="step" value="2" />
128
            <input type="hidden" name="branch" value="[% current_branch %]" />
129
            <input type="hidden" name="branch" value="[% current_branch %]" />
129
            </fieldset>
130
            </fieldset>
130
            <fieldset class="action"><input type="submit" value="Next &gt;&gt;" /></fieldset>
131
            <fieldset class="action"><input type="submit" value="Next >>" /></fieldset>
131
    </form>
132
    </form>
132
</div>
133
</div>
133
<!-- step 1 END -->
134
<!-- step 1 END -->
Lines 138-165 Link Here
138
<div id="step2">
139
<div id="step2">
139
        <form name="f2" action="/cgi-bin/koha/tools/cleanborrowers.pl" method="post">
140
        <form name="f2" action="/cgi-bin/koha/tools/cleanborrowers.pl" method="post">
140
    <fieldset>
141
    <fieldset>
141
        <legend>Warnings</legend>
142
        <legend>[% t('Warnings') %]</legend>
142
        <ul>
143
        <ul>
143
            <li>[% patrons_to_delete.size || 0 %] patrons will be deleted</li>
144
            <li>[% patrons_to_delete.size || 0 %] [% t('patrons will be deleted') %]</li>
144
            <li>[% patrons_to_anonymize.count || 0 %] patron's checkout histories will be anonymized</li>
145
            <li>[% patrons_to_anonymize.count || 0 %] [% t('patron\'s checkout histories will be anonymized') %]</li>
145
        </ul>
146
        </ul>
146
147
147
        <br />
148
        <br />
148
            [% IF patrons_to_delete.size %]
149
            [% IF patrons_to_delete.size %]
149
                <fieldset><legend>What do you want to do for deleted patrons?</legend>
150
                <fieldset><legend>[% t('What do you want to do for deleted patrons?') %]</legend>
150
                <input id="delete" type="radio" name="radio" value="delete" />
151
                <input id="delete" type="radio" name="radio" value="delete" />
151
                <label for="delete">Permanently delete these patrons</label>
152
                <label for="delete">[% t('Permanently delete these patrons') %]</label>
152
153
153
                <br /><input id="trash" type="radio" name="radio" value="trash" />
154
                <br /><input id="trash" type="radio" name="radio" value="trash" />
154
                <label for="trash">Move these patrons to the trash</label>
155
                <label for="trash">[% t('Move these patrons to the trash') %]</label>
155
156
156
                <br /><input id="testrun" type="radio" name="radio" value="testrun" checked="checked" />
157
                <br /><input id="testrun" type="radio" name="radio" value="testrun" checked="checked" />
157
                <label for="testrun">Do not remove any patrons (test run)</label>
158
                <label for="testrun">[% t('Do not remove any patrons (test run)') %]</label>
158
                <input type="hidden" name="do_delete" value="[% patrons_to_delete.size %]" /></fieldset>
159
                <input type="hidden" name="do_delete" value="[% patrons_to_delete.size %]" /></fieldset>
159
160
160
            [% END %]
161
            [% END %]
161
            [% IF patrons_to_anonymize.count %]
162
            [% IF patrons_to_anonymize.count %]
162
                Checkout history for [% patrons_to_anonymize.count %] patrons will be anonymized
163
                [% t('Checkout history for') %] [% patrons_to_anonymize.count %] [% t('patrons will be anonymized') %]
163
                <input type="hidden" name="do_anonym" value="[% patrons_to_anonymize.count %]" />
164
                <input type="hidden" name="do_anonym" value="[% patrons_to_anonymize.count %]" />
164
            [% END %]
165
            [% END %]
165
166
Lines 174-180 Link Here
174
            <input type="hidden" name="patron_list_id" value="[% patron_list_id %]" />
175
            <input type="hidden" name="patron_list_id" value="[% patron_list_id %]" />
175
            <input type="hidden" name="branch" value="[% current_branch %]" />
176
            <input type="hidden" name="branch" value="[% current_branch %]" />
176
    </fieldset>
177
    </fieldset>
177
    <fieldset class="action"><input type="submit" value="Finish" /> <a class="cancel" href="/cgi-bin/koha/tools/cleanborrowers.pl">Cancel</a></fieldset>
178
    <fieldset class="action"><input type="submit" value="Finish" /> <a class="cancel" href="/cgi-bin/koha/tools/cleanborrowers.pl">[% t('Cancel') %]</a></fieldset>
178
        </form>
179
        </form>
179
</div>
180
</div>
180
<!-- STEP 2 END -->
181
<!-- STEP 2 END -->
Lines 185-207 Link Here
185
186
186
    <div id="step3">
187
    <div id="step3">
187
        [% IF ( testrun ) %]
188
        [% IF ( testrun ) %]
188
            <h4>[% TotalDel %] patrons would have been removed (if it wasn't a test run)</h4>
189
            <h4>[% TotalDel %] [% t('patrons would have been removed (if it wasn\'t a test run)') %]</h4>
189
            <h4>No patron records have been actually removed</h4>
190
            <h4>[% t('No patron records have been actually removed') %]</h4>
190
        [% ELSE %]
191
        [% ELSE %]
191
            [% IF ( do_delete ) %]
192
            [% IF ( do_delete ) %]
192
                [% IF ( trash ) %]
193
                [% IF ( trash ) %]
193
                    <h4>[% TotalDel %] patrons have been successfully moved to trash</h4>
194
                    <h4>[% TotalDel %] [% t('patrons have been successfully moved to trash') %]</h4>
194
                [% ELSE %]
195
                [% ELSE %]
195
                    <h4>[% TotalDel %] patrons have been successfully deleted</h4>
196
                    <h4>[% TotalDel %] [% t('patrons have been successfully deleted') %]</h4>
196
                [% END %]
197
                [% END %]
197
            [% ELSE %]
198
            [% ELSE %]
198
                <h4>No patron records have been removed</h4>
199
                <h4>[% t('No patron records have been removed') %]</h4>
199
            [% END %]
200
            [% END %]
200
        [% END %]
201
        [% END %]
201
        [% IF do_anonym %]
202
        [% IF do_anonym %]
202
            <h4>All checkouts ([% do_anonym %]) older than [% last_issue_date | $KohaDates %] have been anonymized</h4>
203
            <h4>[% t('All checkouts (') %][% do_anonym %][% t(') older than') %] [% last_issue_date | $KohaDates %] [% t('have been anonymized') %]</h4>
203
        [% ELSE %]
204
        [% ELSE %]
204
            <h4>No patron records have been anonymized</h4>
205
            <h4>[% t('No patron records have been anonymized') %]</h4>
205
        [% END %]
206
        [% END %]
206
207
207
    </div>
208
    </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt (-75 / +76 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Tools &rsaquo; CSV export profiles</title>
5
<title>[% t('Koha › Tools › CSV export profiles') %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
</head>
7
</head>
7
8
Lines 10-18 Link Here
10
[% INCLUDE 'cat-search.inc' %]
11
[% INCLUDE 'cat-search.inc' %]
11
12
12
<div id="breadcrumbs">
13
<div id="breadcrumbs">
13
    <a href="/cgi-bin/koha/mainpage.pl">Home</a>
14
    <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a>
14
    &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
15
    › <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a>
15
    &rsaquo; CSV export profiles
16
    [% t('› CSV export profiles') %]
16
</div>
17
</div>
17
18
18
<div id="doc3" class="yui-t2">
19
<div id="doc3" class="yui-t2">
Lines 24-42 Link Here
24
    <div class="dialog [% m.type %]">
25
    <div class="dialog [% m.type %]">
25
        [% SWITCH m.code %]
26
        [% SWITCH m.code %]
26
        [% CASE 'error_on_update' %]
27
        [% CASE 'error_on_update' %]
27
            An error occurred when updating this CSV profile. Perhaps it already exists.
28
            [% t('An error occurred when updating this CSV profile. Perhaps it already exists.') %]
28
        [% CASE 'error_on_insert' %]
29
        [% CASE 'error_on_insert' %]
29
            An error occurred when adding this CSV profile.
30
            [% t('An error occurred when adding this CSV profile.') %]
30
        [% CASE 'error_on_delete' %]
31
        [% CASE 'error_on_delete' %]
31
            An error occurred when deleting this CSV profile. Check the logs.
32
            [% t('An error occurred when deleting this CSV profile. Check the logs.') %]
32
        [% CASE 'success_on_update' %]
33
        [% CASE 'success_on_update' %]
33
            CSV profile updated successfully.
34
            [% t('CSV profile updated successfully.') %]
34
        [% CASE 'success_on_insert' %]
35
        [% CASE 'success_on_insert' %]
35
            CSV profile added successfully.
36
            [% t('CSV profile added successfully.') %]
36
        [% CASE 'success_on_delete' %]
37
        [% CASE 'success_on_delete' %]
37
            CSV profile deleted successfully.
38
            [% t('CSV profile deleted successfully.') %]
38
        [% CASE 'already_exists' %]
39
        [% CASE 'already_exists' %]
39
            This CSV profile already exists.
40
            [% t('This CSV profile already exists.') %]
40
        [% CASE %]
41
        [% CASE %]
41
            [% m.code %]
42
            [% m.code %]
42
        [% END %]
43
        [% END %]
Lines 45-107 Link Here
45
46
46
[% BLOCK list_separator_options %]
47
[% BLOCK list_separator_options %]
47
    [% IF selected_separator == ',' %]
48
    [% IF selected_separator == ',' %]
48
        <option value="," selected="selected">Comma (,)</option>
49
        <option value="," selected="selected">[% t('Comma (,)') %]</option>
49
    [% ELSE %]
50
    [% ELSE %]
50
        <option value=",">Comma (,)</option>
51
        <option value=",">[% t('Comma (,)') %]</option>
51
    [% END %]
52
    [% END %]
52
    [% IF selected_separator == '|' %]
53
    [% IF selected_separator == '|' %]
53
        <option value="|" selected="selected">Pipe (|)</option>
54
        <option value="|" selected="selected">[% t('Pipe (|)') %]</option>
54
    [% ELSE %]
55
    [% ELSE %]
55
        <option value="|">Pipe (|)</option>
56
        <option value="|">[% t('Pipe (|)') %]</option>
56
    [% END %]
57
    [% END %]
57
    [% IF selected_separator == ';' %]
58
    [% IF selected_separator == ';' %]
58
        <option value=";" selected="selected">Semi-colon (;)</option>
59
        <option value=";" selected="selected">[% t('Semi-colon (;)') %]</option>
59
    [% ELSE %]
60
    [% ELSE %]
60
        <option value=";">Semi-colon (;)</option>
61
        <option value=";">[% t('Semi-colon (;)') %]</option>
61
    [% END %]
62
    [% END %]
62
    [% IF selected_separator == '#' %]
63
    [% IF selected_separator == '#' %]
63
        <option value="#" selected="selected">Sharp (#)</option>
64
        <option value="#" selected="selected">[% t('Sharp (#)') %]</option>
64
    [% ELSE %]
65
    [% ELSE %]
65
        <option value="#">Sharp (#)</option>
66
        <option value="#">[% t('Sharp (#)') %]</option>
66
    [% END %]
67
    [% END %]
67
    [% IF selected_separator == ' ' %]
68
    [% IF selected_separator == ' ' %]
68
        <option value=" " selected="selected">Space ( )</option>
69
        <option value=" " selected="selected">[% t('Space ( )') %]</option>
69
    [% ELSE %]
70
    [% ELSE %]
70
        <option value=" ">Space ( )</option>
71
        <option value=" ">[% t('Space ( )') %]</option>
71
    [% END %]
72
    [% END %]
72
    [% IF selected_separator == '\t' %]
73
    [% IF selected_separator == '\t' %]
73
        <option value="\t" selected="selected">Tabulation (\t)</option>
74
        <option value="\t" selected="selected">[% t('Tabulation (\t)') %]</option>
74
    [% ELSE %]
75
    [% ELSE %]
75
        <option value="\t">Tabulation (\t)</option>
76
        <option value="\t">[% t('Tabulation (\t)') %]</option>
76
    [% END %]
77
    [% END %]
77
    [% IF selected_separator == '\n' %]
78
    [% IF selected_separator == '\n' %]
78
        <option value="\n" selected="selected">New line (\n)</option>
79
        <option value="\n" selected="selected">[% t('New line (\n)') %]</option>
79
    [% ELSE %]
80
    [% ELSE %]
80
        <option value="\n">New line (\n)</option>
81
        <option value="\n">[% t('New line (\n)') %]</option>
81
    [% END %]
82
    [% END %]
82
[% END %]
83
[% END %]
83
84
84
[% BLOCK type_description %]
85
[% BLOCK type_description %]
85
    [% IF type_code == 'marc' %] MARC
86
    [% IF type_code == 'marc' %] [% t('MARC') %]
86
    [% ELSIF type_code == 'sql' %] SQL
87
    [% ELSIF type_code == 'sql' %] [% t('SQL') %]
87
    [% ELSE %] Unknown type
88
    [% ELSE %] [% t('Unknown type') %]
88
    [% END %]
89
    [% END %]
89
[% END %]
90
[% END %]
90
91
91
[% BLOCK used_for_description %]
92
[% BLOCK used_for_description %]
92
    [% IF used_for_code == 'export_records' %] Export records
93
    [% IF used_for_code == 'export_records' %] [% t('Export records') %]
93
    [% ELSIF used_for_code == 'late_issues' %] Late serial issues claims
94
    [% ELSIF used_for_code == 'late_issues' %] [% t('Late serial issues claims') %]
94
    [% ELSIF used_for_code == 'export_basket' %] Basket export in acquisition
95
    [% ELSIF used_for_code == 'export_basket' %] [% t('Basket export in acquisition') %]
95
    [% ELSIF used_for_code == 'export_lost_items' %] Export lost items in report
96
    [% ELSIF used_for_code == 'export_lost_items' %] [% t('Export lost items in report') %]
96
    [% ELSE %] Unknown usage
97
    [% ELSE %] [% t('Unknown usage') %]
97
    [% END %]
98
    [% END %]
98
[% END %]
99
[% END %]
99
100
100
[% IF op == 'add_form' %]
101
[% IF op == 'add_form' %]
101
    [% IF csv_profile %]
102
    [% IF csv_profile %]
102
        <h1>Modify a CSV profile</h1>
103
        <h1>[% t('Modify a CSV profile') %]</h1>
103
    [% ELSE %]
104
    [% ELSE %]
104
        <h1>New CSV profile</h1>
105
        <h1>[% t('New CSV profile') %]</h1>
105
    [% END %]
106
    [% END %]
106
107
107
    <form action="/cgi-bin/koha/tools/csv-profiles.pl" class="validated" method="post">
108
    <form action="/cgi-bin/koha/tools/csv-profiles.pl" class="validated" method="post">
Lines 110-124 Link Here
110
        <fieldset class="rows">
111
        <fieldset class="rows">
111
            <ol>
112
            <ol>
112
                [% IF csv_profile %]
113
                [% IF csv_profile %]
113
                    <li><span class="label">Profile ID: </span>[% csv_profile.export_format_id %]</li>
114
                    <li><span class="label">[% t('Profile ID:') %] </span>[% csv_profile.export_format_id %]</li>
114
                [% END %]
115
                [% END %]
115
                <li>
116
                <li>
116
                    <label for="profile" class="required">Profile name: </label>
117
                    <label for="profile" class="required">[% t('Profile name:') %] </label>
117
                    <input type="text" name="profile" id="profile" value="[% csv_profile.profile | html %]" class="required">
118
                    <input type="text" name="profile" id="profile" value="[% csv_profile.profile | html %]" class="required">
118
                    <span class="required">Required</span>
119
                    <span class="required">[% t('Required') %]</span>
119
                </li>
120
                </li>
120
                <li>
121
                <li>
121
                    <label for="type" class="required">Profile type: </label>
122
                    <label for="type" class="required">[% t('Profile type:') %] </label>
122
                    <select id="type" name="type">
123
                    <select id="type" name="type">
123
                        [% FOREACH type IN [ 'marc' 'sql'] %]
124
                        [% FOREACH type IN [ 'marc' 'sql'] %]
124
                        [% IF csv_profile.type == type %]
125
                        [% IF csv_profile.type == type %]
Lines 128-137 Link Here
128
                        [% END %]
129
                        [% END %]
129
                        [% END %]
130
                        [% END %]
130
                    </select>
131
                    </select>
131
                    <span class="required">Required</span>
132
                    <span class="required">[% t('Required') %]</span>
132
                </li>
133
                </li>
133
                <li class="sql_specific">
134
                <li class="sql_specific">
134
                    <label for="used_for_sql">Usage: </label>
135
                    <label for="used_for_sql">[% t('Usage:') %] </label>
135
                    <select id="used_for_sql" name="used_for_sql">
136
                    <select id="used_for_sql" name="used_for_sql">
136
                        [% FOREACH used_for IN [ 'late_issues' 'export_basket' 'export_lost_items' ] %]
137
                        [% FOREACH used_for IN [ 'late_issues' 'export_basket' 'export_lost_items' ] %]
137
                        [% IF csv_profile.used_for == used_for %]
138
                        [% IF csv_profile.used_for == used_for %]
Lines 143-149 Link Here
143
                    </select>
144
                    </select>
144
                </li>
145
                </li>
145
                <li class="marc_specific">
146
                <li class="marc_specific">
146
                    <label for="used_for_marc">Usage: </label>
147
                    <label for="used_for_marc">[% t('Usage:') %] </label>
147
                    <select id="used_for_marc" name="used_for_marc">
148
                    <select id="used_for_marc" name="used_for_marc">
148
                        [% FOREACH used_for IN [ 'export_records' ] %]
149
                        [% FOREACH used_for IN [ 'export_records' ] %]
149
                        [% IF csv_profile.used_for == used_for %]
150
                        [% IF csv_profile.used_for == used_for %]
Lines 155-184 Link Here
155
                    </select>
156
                    </select>
156
                </li>
157
                </li>
157
                <li>
158
                <li>
158
                    <label for="description">Profile description: </label>
159
                    <label for="description">[% t('Profile description:') %] </label>
159
                    <textarea cols="50" rows="2" name="description" id="description">[% csv_profile.description | html %]</textarea>
160
                    <textarea cols="50" rows="2" name="description" id="description">[% csv_profile.description | html %]</textarea>
160
                </li>
161
                </li>
161
                <li>
162
                <li>
162
                    <label for="csv_separator">CSV separator: </label>
163
                    <label for="csv_separator">[% t('CSV separator:') %] </label>
163
                    <select name="csv_separator" id="csv_separator">
164
                    <select name="csv_separator" id="csv_separator">
164
                        [% PROCESS list_separator_options selected_separator=csv_profile.csv_separator || ',' %]
165
                        [% PROCESS list_separator_options selected_separator=csv_profile.csv_separator || ',' %]
165
                    </select>
166
                    </select>
166
                </li>
167
                </li>
167
168
168
                <li class="marc_specific">
169
                <li class="marc_specific">
169
                    <label for="field_separator">Field separator: </label>
170
                    <label for="field_separator">[% t('Field separator:') %] </label>
170
                    <select name="field_separator" id="field_separator">
171
                    <select name="field_separator" id="field_separator">
171
                        [% PROCESS list_separator_options selected_separator=csv_profile.field_separator || '#' %]
172
                        [% PROCESS list_separator_options selected_separator=csv_profile.field_separator || '#' %]
172
                    </select>
173
                    </select>
173
                </li>
174
                </li>
174
175
175
                <li class="marc_specific"><label for="subfield_separator">Subfield separator: </label>
176
                <li class="marc_specific"><label for="subfield_separator">[% t('Subfield separator:') %] </label>
176
                    <select name="subfield_separator" id="subfield_separator">
177
                    <select name="subfield_separator" id="subfield_separator">
177
                        [% PROCESS list_separator_options selected_separator=csv_profile.subfield_separator || '|'%]
178
                        [% PROCESS list_separator_options selected_separator=csv_profile.subfield_separator || '|'%]
178
                    </select>
179
                    </select>
179
                </li>
180
                </li>
180
181
181
                <li class="marc_specific"><label for="encoding">Encoding: </label>
182
                <li class="marc_specific"><label for="encoding">[% t('Encoding:') %] </label>
182
                    <select name="encoding" id="encoding">
183
                    <select name="encoding" id="encoding">
183
                        [% FOREACH encoding IN encodings %]
184
                        [% FOREACH encoding IN encodings %]
184
                            [% IF csv_profile.encoding == encoding OR NOT csv_profile AND encoding == 'utf8' %]
185
                            [% IF csv_profile.encoding == encoding OR NOT csv_profile AND encoding == 'utf8' %]
Lines 191-219 Link Here
191
                </li>
192
                </li>
192
193
193
                <li class="marc_specific">
194
                <li class="marc_specific">
194
                    <label for="marc_content" class="required">Profile MARC fields: </label>
195
                    <label for="marc_content" class="required">[% t('Profile MARC fields:') %] </label>
195
                    <textarea cols="50" rows="2" name="marc_content" id="marc_content">[% csv_profile.content %]</textarea>
196
                    <textarea cols="50" rows="2" name="marc_content" id="marc_content">[% csv_profile.content %]</textarea>
196
                    <span class="required">Required</span>
197
                    <span class="required">[% t('Required') %]</span>
197
                    <p>You have to define which fields or subfields you want to export, separated by pipes.</p>
198
                    <p>[% t('You have to define which fields or subfields you want to export, separated by pipes.') %]</p>
198
                    <p>You can also use your own headers (instead of the ones from Koha) by prefixing the field number with an header, followed by the equal sign.</p>
199
                    <p>[% t('You can also use your own headers (instead of the ones from Koha) by prefixing the field number with an header, followed by the equal sign.') %]</p>
199
                    <p>Example: Personal name=200|Entry element=210$a|300|009</p>
200
                    <p>[% t('Example: Personal name=200|Entry element=210$a|300|009') %]</p>
200
                    <p>You can use Template Toolkit tags too. See the help page for more information.</p>
201
                    <p>[% t('You can use Template Toolkit tags too. See the help page for more information.') %]</p>
201
                </li>
202
                </li>
202
203
203
                <li class="sql_specific">
204
                <li class="sql_specific">
204
                    <label for="late_issues_content" class="required">Profile SQL fields: </label>
205
                    <label for="late_issues_content" class="required">[% t('Profile SQL fields:') %] </label>
205
                    <textarea cols="50" rows="2" name="sql_content" id="sql_content">[% csv_profile.content %]</textarea>
206
                    <textarea cols="50" rows="2" name="sql_content" id="sql_content">[% csv_profile.content %]</textarea>
206
                    <p>You have to define which fields you want to export, separated by pipes.</p>
207
                    <p>[% t('You have to define which fields you want to export, separated by pipes.') %]</p>
207
                    <p>You can also use your own headers (instead of the ones from Koha) by prefixing the field name with an header, followed by the equal sign.</p>
208
                    <p>[% t('You can also use your own headers (instead of the ones from Koha) by prefixing the field name with an header, followed by the equal sign.') %]</p>
208
                    <p>Example: Name=subscription.name|Title=subscription.title|Issue number=serial.serialseq</p>
209
                    <p>[% t('Example: Name=subscription.name|Title=subscription.title|Issue number=serial.serialseq') %]</p>
209
                    <p>For late issues claims you can use data from following tables: serial, subscription, biblio, biblioitems and aqbookseller.</p>
210
                    <p>[% t('For late issues claims you can use data from following tables: serial, subscription, biblio, biblioitems and aqbookseller.') %]</p>
210
                    <p>For basket exports you can use data from following tables: biblio, biblioitems, aqorders, aqbudgets and aqbasket.</p>
211
                    <p>[% t('For basket exports you can use data from following tables: biblio, biblioitems, aqorders, aqbudgets and aqbasket.') %]</p>
211
                </li>
212
                </li>
212
            </ol>
213
            </ol>
213
        </fieldset>
214
        </fieldset>
214
        <fieldset class="action">
215
        <fieldset class="action">
215
            <input type="submit" value="Submit" />
216
            <input type="submit" value="Submit" />
216
            <a class="cancel" href="/cgi-bin/koha/tools/csv-profiles.pl">Cancel</a>
217
            <a class="cancel" href="/cgi-bin/koha/tools/csv-profiles.pl">[% t('Cancel') %]</a>
217
        </fieldset>
218
        </fieldset>
218
    </form>
219
    </form>
219
[% END %]
220
[% END %]
Lines 221-227 Link Here
221
[% IF op == 'delete_confirm' %]
222
[% IF op == 'delete_confirm' %]
222
    <div class="dialog alert">
223
    <div class="dialog alert">
223
        [% IF csv_profile %]
224
        [% IF csv_profile %]
224
            <h3>Delete CSV Profile "[% csv_profile.profile | html %]?"</h3>
225
            <h3>[% t('Delete CSV Profile &#34;') %][% csv_profile.profile | html %]?"</h3>
225
            <form action="/cgi-bin/koha/tools/csv-profiles.pl" method="post">
226
            <form action="/cgi-bin/koha/tools/csv-profiles.pl" method="post">
226
                <input type="hidden" name="op" value="delete_confirmed" />
227
                <input type="hidden" name="op" value="delete_confirmed" />
227
                <input type="hidden" name="export_format_id" value="[% csv_profile.export_format_id %]" />
228
                <input type="hidden" name="export_format_id" value="[% csv_profile.export_format_id %]" />
Lines 231-237 Link Here
231
                <input type="submit" class="deny" value="No, do not Delete" />
232
                <input type="submit" class="deny" value="No, do not Delete" />
232
            </form>
233
            </form>
233
        [% ELSE %]
234
        [% ELSE %]
234
            This CSV Profile does not exist.
235
            [% t('This CSV Profile does not exist.') %]
235
        [% END %]
236
        [% END %]
236
    </div>
237
    </div>
237
[% END %]
238
[% END %]
Lines 239-260 Link Here
239
[% IF op == 'list' %]
240
[% IF op == 'list' %]
240
241
241
    <div id="toolbar" class="btn-toolbar">
242
    <div id="toolbar" class="btn-toolbar">
242
        <a class="btn btn-default btn-sm" id="newcsvprofile" href="/cgi-bin/koha/tools/csv-profiles.pl?op=add_form"><i class="fa fa-plus"></i> New CSV profile</a>
243
        <a class="btn btn-default btn-sm" id="newcsvprofile" href="/cgi-bin/koha/tools/csv-profiles.pl?op=add_form"><i class="fa fa-plus"></i> [% t('New CSV profile') %]</a>
243
    </div>
244
    </div>
244
245
245
    <h2>CSV profiles</h2>
246
    <h2>[% t('CSV profiles') %]</h2>
246
247
247
    [% IF csv_profiles %]
248
    [% IF csv_profiles %]
248
        <table id="table_csv_profiles">
249
        <table id="table_csv_profiles">
249
            <thead>
250
            <thead>
250
                <th>CSV profile ID</th>
251
                <th>[% t('CSV profile ID') %]</th>
251
                <th>Name</th>
252
                <th>[% t('Name') %]</th>
252
                <th>Description</th>
253
                <th>[% t('Description') %]</th>
253
                <th>Content</th>
254
                <th>[% t('Content') %]</th>
254
                <th>CSV separator</th>
255
                <th>[% t('CSV separator') %]</th>
255
                <th>CSV type</th>
256
                <th>[% t('CSV type') %]</th>
256
                <th>Usage</th>
257
                <th>[% t('Usage') %]</th>
257
                <th>Actions</th>
258
                <th>[% t('Actions') %]</th>
258
            </thead>
259
            </thead>
259
            <tbody>
260
            <tbody>
260
                [% FOREACH csv_profile IN csv_profiles %]
261
                [% FOREACH csv_profile IN csv_profiles %]
Lines 267-281 Link Here
267
                    <td>[% PROCESS type_description type_code = csv_profile.type %]</td>
268
                    <td>[% PROCESS type_description type_code = csv_profile.type %]</td>
268
                    <td>[% PROCESS used_for_description used_for_code = csv_profile.used_for %]</td>
269
                    <td>[% PROCESS used_for_description used_for_code = csv_profile.used_for %]</td>
269
                    <td class="actions">
270
                    <td class="actions">
270
                        <a href="/cgi-bin/koha/tools/csv-profiles.pl?op=add_form&amp;export_format_id=[% csv_profile.export_format_id %]" class="btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a>
271
                        <a href="/cgi-bin/koha/tools/csv-profiles.pl?op=add_form&export_format_id=[% csv_profile.export_format_id %]" class="btn btn-default btn-xs"><i class="fa fa-pencil"></i> [% t('Edit') %]</a>
271
                        <a href="/cgi-bin/koha/tools/csv-profiles.pl?op=delete_confirm&amp;export_format_id=[% csv_profile.export_format_id %]" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> Delete</a>
272
                        <a href="/cgi-bin/koha/tools/csv-profiles.pl?op=delete_confirm&export_format_id=[% csv_profile.export_format_id %]" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
272
                    </td>
273
                    </td>
273
                </tr>
274
                </tr>
274
                [% END %]
275
                [% END %]
275
            </tbody>
276
            </tbody>
276
        </table>
277
        </table>
277
    [% ELSE %]
278
    [% ELSE %]
278
        There is no CSV profile defined. <a href="/cgi-bin/koha/tools/csv-profiles.pl?op=add_form">Create a new CSV profile</a>.
279
        [% t('There is no CSV profile defined.') %] <a href="/cgi-bin/koha/tools/csv-profiles.pl?op=add_form">[% t('Create a new CSV profile') %]</a>.
279
    [% END %]
280
    [% END %]
280
[% END %]
281
[% END %]
281
282
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt (-58 / +59 lines)
Lines 1-8 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Branches %]
3
[% USE Branches %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Tools &rsaquo; Export data</title>
6
<title>[% t('Koha › Tools › Export data') %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
7
<style type="text/css">
8
<style type="text/css">
8
    fieldset.rows fieldset.rows {
9
    fieldset.rows fieldset.rows {
Lines 15-21 Link Here
15
[% INCLUDE 'header.inc' %]
16
[% INCLUDE 'header.inc' %]
16
[% INCLUDE 'cat-search.inc' %]
17
[% INCLUDE 'cat-search.inc' %]
17
18
18
<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; Export data</div>
19
<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('› Export data') %]</div>
19
20
20
<div id="doc3" class="yui-t2">
21
<div id="doc3" class="yui-t2">
21
   
22
   
Lines 26-32 Link Here
26
[% FOR m IN messages %]
27
[% FOR m IN messages %]
27
    <div class="dialog [% m.type %]">
28
    <div class="dialog [% m.type %]">
28
        [% SWITCH m.code %]
29
        [% SWITCH m.code %]
29
        [% CASE 'invalid_mimetype' %]The file used does not have a valid format. Only csv and txt are allowed.
30
        [% CASE 'invalid_mimetype' %][% t('The file used does not have a valid format. Only csv and txt are allowed.') %]
30
        [% CASE %][% m.code %]
31
        [% CASE %][% m.code %]
31
        [% END %]
32
        [% END %]
32
    </div>
33
    </div>
Lines 34-70 Link Here
34
35
35
<div id="exporttype" class="toptabs">
36
<div id="exporttype" class="toptabs">
36
<ul>
37
<ul>
37
<li><a href="#bibs">Export bibliographic records</a></li>
38
<li><a href="#bibs">[% t('Export bibliographic records') %]</a></li>
38
<li><a href="#auths">Export authority records</a></li>
39
<li><a href="#auths">[% t('Export authority records') %]</a></li>
39
[% IF ( allow_db_export ) %]
40
[% IF ( allow_db_export ) %]
40
<li><a href="#db">Export database</a></li>
41
<li><a href="#db">[% t('Export database') %]</a></li>
41
[% END %]
42
[% END %]
42
[% IF ( allow_conf_export ) %]
43
[% IF ( allow_conf_export ) %]
43
<li><a href="#conf">Export configuration</a></li>
44
<li><a href="#conf">[% t('Export configuration') %]</a></li>
44
[% END %]
45
[% END %]
45
</ul>
46
</ul>
46
<div id="bibs">
47
<div id="bibs">
47
<p>
48
<p>
48
    <b>Note : The items are exported by this tool unless specified.</b>
49
    <b>[% t('Note : The items are exported by this tool unless specified.') %]</b>
49
</p>
50
</p>
50
51
51
<form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/export.pl">
52
<form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/export.pl">
52
    <fieldset class="rows">
53
    <fieldset class="rows">
53
    <legend> Select records to export </legend>
54
    <legend> [% t('Select records to export') %] </legend>
54
        <ol>
55
        <ol>
55
        <li>
56
        <li>
56
            <label for="start">From biblio number: </label>
57
            <label for="start">[% t('From biblio number:') %] </label>
57
            <input id="start" type="text" name="StartingBiblionumber" size="5" />
58
            <input id="start" type="text" name="StartingBiblionumber" size="5" />
58
        </li>
59
        </li>
59
        <li>
60
        <li>
60
            <label for="end">To biblio number: </label>
61
            <label for="end">[% t('To biblio number:') %] </label>
61
            <input id="end" type="text" name="EndingBiblionumber" size="5" />
62
            <input id="end" type="text" name="EndingBiblionumber" size="5" />
62
        </li>
63
        </li>
63
        
64
        
64
        <li>
65
        <li>
65
            <label for="itemtype">Item type: </label>
66
            <label for="itemtype">[% t('Item type:') %] </label>
66
            <select name="itemtype" id="itemtype">
67
            <select name="itemtype" id="itemtype">
67
                <option value="">-- All --</option>
68
                <option value="">[% t('-- All --') %]</option>
68
                [% FOREACH itemtype IN itemtypes %]
69
                [% FOREACH itemtype IN itemtypes %]
69
                    <option value="[% itemtype.itemtype %]">[% itemtype.translated_description %]</option>
70
                    <option value="[% itemtype.itemtype %]">[% itemtype.translated_description %]</option>
70
                [% END %]
71
                [% END %]
Lines 72-105 Link Here
72
        </li>
73
        </li>
73
        
74
        
74
        <li>
75
        <li>
75
            <label>With items owned by the following libraries: </label>
76
            <label>[% t('With items owned by the following libraries:') %] </label>
76
            [% INCLUDE 'branch-selector.inc' branches = libraries %]
77
            [% INCLUDE 'branch-selector.inc' branches = libraries %]
77
        </li>
78
        </li>
78
    </ol>
79
    </ol>
79
80
80
    <fieldset class="rows">
81
    <fieldset class="rows">
81
        <legend>Call number range</legend>
82
        <legend>[% t('Call number range') %]</legend>
82
        <ol>
83
        <ol>
83
            <li>
84
            <li>
84
                <label for="startcn">From item call number: </label>
85
                <label for="startcn">[% t('From item call number:') %] </label>
85
                <input id="startcn" type="text" name="start_callnumber" size="15" />
86
                <input id="startcn" type="text" name="start_callnumber" size="15" />
86
            </li>
87
            </li>
87
            <li>
88
            <li>
88
                <label for="endcn">To item call number: </label>
89
                <label for="endcn">[% t('To item call number:') %] </label>
89
                <input id="endcn" type="text" name="end_callnumber" size="15" />
90
                <input id="endcn" type="text" name="end_callnumber" size="15" />
90
            </li>
91
            </li>
91
        </ol>
92
        </ol>
92
    </fieldset>
93
    </fieldset>
93
94
94
    <fieldset class="rows">
95
    <fieldset class="rows">
95
        <legend>Accession date (inclusive)</legend>
96
        <legend>[% t('Accession date (inclusive)') %]</legend>
96
        <ol>
97
        <ol>
97
            <li>
98
            <li>
98
                    <label for="from">Start date:</label>
99
                    <label for="from">[% t('Start date:') %]</label>
99
                    <input type="text" size="10" id="from" name="start_accession" value="[% from %]" class="datepickerfrom" />
100
                    <input type="text" size="10" id="from" name="start_accession" value="[% from %]" class="datepickerfrom" />
100
            </li>
101
            </li>
101
            <li>
102
            <li>
102
                <label for="to">End date:</label>
103
                <label for="to">[% t('End date:') %]</label>
103
                <input size="10" id="to" name="end_accession" value="[% end_accession %]" type="text" class="datepickerto" />
104
                <input size="10" id="to" name="end_accession" value="[% end_accession %]" type="text" class="datepickerto" />
104
            </li>
105
            </li>
105
        </ol>
106
        </ol>
Lines 108-154 Link Here
108
    </fieldset>
109
    </fieldset>
109
    <fieldset class="rows">
110
    <fieldset class="rows">
110
    <legend>
111
    <legend>
111
        Use a file
112
        [% t('Use a file') %]
112
    </legend>
113
    </legend>
113
        <ol>
114
        <ol>
114
        <li>File containing a list of biblio numbers with one biblio number per line. This list works as a filter: it is compatible with other parameters. (File types accepted: .csv and .txt)</li>
115
        <li>[% t('File containing a list of biblio numbers with one biblio number per line. This list works as a filter: it is compatible with other parameters. (File types accepted: .csv and .txt)') %]</li>
115
        <li><label for="id_list_file">File: </label> <input type="file" id="id_list_file" name="id_list_file" /></li>
116
        <li><label for="id_list_file">[% t('File:') %] </label> <input type="file" id="id_list_file" name="id_list_file" /></li>
116
        </ol>
117
        </ol>
117
    </fieldset>
118
    </fieldset>
118
    <fieldset class="rows">
119
    <fieldset class="rows">
119
    <legend> Options</legend>
120
    <legend> [% t('Options') %]</legend>
120
<ol>        <li>
121
<ol>        <li>
121
        <label for="dont_export_item">Don't export items:</label>
122
        <label for="dont_export_item">[% t('Don\'t export items:') %]</label>
122
        <input id="dont_export_item" type="checkbox" name="dont_export_item" />
123
        <input id="dont_export_item" type="checkbox" name="dont_export_item" />
123
        </li>
124
        </li>
124
        <li>
125
        <li>
125
        <label for="strip_items_not_from_libraries">Remove items not owned by selected libraries:</label>
126
        <label for="strip_items_not_from_libraries">[% t('Remove items not owned by selected libraries:') %]</label>
126
        <input id="strip_items_not_from_libraries" type="checkbox" name="strip_items_not_from_libraries" />
127
        <input id="strip_items_not_from_libraries" type="checkbox" name="strip_items_not_from_libraries" />
127
        </li>
128
        </li>
128
        <li>
129
        <li>
129
        <label for="export_remove_fields">Don't export fields:</label>
130
        <label for="export_remove_fields">[% t('Don\'t export fields:') %]</label>
130
        <input id="export_remove_fields" type="text" name="export_remove_fields" value="[% export_remove_fields %]" />
131
        <input id="export_remove_fields" type="text" name="export_remove_fields" value="[% export_remove_fields %]" />
131
        separate by a blank. (e.g., 100a 200 606)
132
        [% t('separate by a blank. (e.g., 100a 200 606)') %]
132
        </li></ol>
133
        </li></ol>
133
    </fieldset>
134
    </fieldset>
134
    <fieldset class="rows">
135
    <fieldset class="rows">
135
    <legend>
136
    <legend>
136
        Output format
137
        [% t('Output format') %]
137
    </legend>
138
    </legend>
138
        <ol><li>
139
        <ol><li>
139
            <label for="output_format">File format: </label>
140
            <label for="output_format">[% t('File format:') %] </label>
140
            <select id="output_format" name="output_format">
141
            <select id="output_format" name="output_format">
141
                <option value="iso2709">marc</option>
142
                <option value="iso2709">[% t('marc') %]</option>
142
                <option value="xml">xml</option>
143
                <option value="xml">[% t('xml') %]</option>
143
                [% IF csv_profiles %]
144
                [% IF csv_profiles %]
144
                    <option value="csv">csv</option>
145
                    <option value="csv">[% t('csv') %]</option>
145
                [% ELSE %]
146
                [% ELSE %]
146
                    <option value="csv" disabled data-toggle="tooltip" data-placement="left" title="You must create a CSV profile for MARC exports to use this option.">csv</option>
147
                    <option value="csv" disabled="" data-toggle="tooltip" data-placement="left" title="[% t('You must create a CSV profile for MARC exports to use this option.') %]">[% t('csv') %]</option>
147
                [% END %]
148
                [% END %]
148
            </select>
149
            </select>
149
        </li>
150
        </li>
150
        <li class="csv_profiles">
151
        <li class="csv_profiles">
151
            <label for="bibs_csv_profile">CSV profile: </label>
152
            <label for="bibs_csv_profile">[% t('CSV profile:') %] </label>
152
            <select id="bibs_csv_profile" name="csv_profile_id">
153
            <select id="bibs_csv_profile" name="csv_profile_id">
153
                [% FOR csv_profile IN csv_profiles %]
154
                [% FOR csv_profile IN csv_profiles %]
154
                    <option value="[% csv_profile.export_format_id %]">[% csv_profile.profile %]</option>
155
                    <option value="[% csv_profile.export_format_id %]">[% csv_profile.profile %]</option>
Lines 156-162 Link Here
156
            </select>
157
            </select>
157
        </li>
158
        </li>
158
        <li>
159
        <li>
159
        <label for="filename">File name:</label><input id="filename" type="text" name="filename" value="koha.mrc" />
160
        <label for="filename">[% t('File name:') %]</label><input id="filename" type="text" name="filename" value="koha.mrc" />
160
        </li></ol>
161
        </li></ol>
161
    </fieldset>
162
    </fieldset>
162
    <input type="hidden" name="op" value="export" />
163
    <input type="hidden" name="op" value="export" />
Lines 169-187 Link Here
169
<div id="auths">
170
<div id="auths">
170
<form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/export.pl">
171
<form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/export.pl">
171
    <fieldset class="rows">
172
    <fieldset class="rows">
172
    <legend> Select records to export </legend>
173
    <legend> [% t('Select records to export') %] </legend>
173
        <ol><li>
174
        <ol><li>
174
            <label for="start">From authid: </label>
175
            <label for="start">[% t('From authid:') %] </label>
175
            <input id="start" type="text" name="starting_authid" size="6" />
176
            <input id="start" type="text" name="starting_authid" size="6" />
176
        </li>
177
        </li>
177
        <li>
178
        <li>
178
            <label for="end">To authid: </label>
179
            <label for="end">[% t('To authid:') %] </label>
179
            <input id="end" type="text" name="ending_authid" size="6" />
180
            <input id="end" type="text" name="ending_authid" size="6" />
180
        </li>
181
        </li>
181
        <li>
182
        <li>
182
            <label for="authtype">Authority type: </label>
183
            <label for="authtype">[% t('Authority type:') %] </label>
183
            <select name="authtype" id="authtype">
184
            <select name="authtype" id="authtype">
184
                <option value="">-- All --</option>
185
                <option value="">[% t('-- All --') %]</option>
185
                [% FOREACH authority_type IN authority_types %]
186
                [% FOREACH authority_type IN authority_types %]
186
                    <option value="[% authority_type.authtypecode %]">[% authority_type.authtypetext %]</option>
187
                    <option value="[% authority_type.authtypecode %]">[% authority_type.authtypetext %]</option>
187
                [% END %]
188
                [% END %]
Lines 191-223 Link Here
191
    </fieldset>
192
    </fieldset>
192
    <fieldset class="rows">
193
    <fieldset class="rows">
193
    <legend>
194
    <legend>
194
        Use a file
195
        [% t('Use a file') %]
195
    </legend>
196
    </legend>
196
        <ol>
197
        <ol>
197
        <li>File containing a list of authids with one authid per line. This list works as a filter: it is compatible with other parameters. (File types accepted: .csv and .txt)</li>
198
        <li>[% t('File containing a list of authids with one authid per line. This list works as a filter: it is compatible with other parameters. (File types accepted: .csv and .txt)') %]</li>
198
        <li><label for="id_list_file">File:</label> <input type="file" id="id_list_file" name="id_list_file" /></li>
199
        <li><label for="id_list_file">[% t('File:') %]</label> <input type="file" id="id_list_file" name="id_list_file" /></li>
199
        </ol>
200
        </ol>
200
    </fieldset>
201
    </fieldset>
201
    <fieldset class="rows">
202
    <fieldset class="rows">
202
    <legend>Options</legend>
203
    <legend>[% t('Options') %]</legend>
203
        <ol>
204
        <ol>
204
        <li>
205
        <li>
205
            <label for="export_remove_fields">Don't export fields:</label>
206
            <label for="export_remove_fields">[% t('Don\'t export fields:') %]</label>
206
            <input id="export_remove_fields" type="text" name="export_remove_fields" />
207
            <input id="export_remove_fields" type="text" name="export_remove_fields" />
207
            separate by a blank. (e.g., 100a 200 606)
208
            [% t('separate by a blank. (e.g., 100a 200 606)') %]
208
        </li></ol>
209
        </li></ol>
209
    </fieldset>
210
    </fieldset>
210
    <fieldset class="rows">
211
    <fieldset class="rows">
211
    <legend>Output format</legend>
212
    <legend>[% t('Output format') %]</legend>
212
        <ol><li>
213
        <ol><li>
213
            <label for="output_format">File format: </label>
214
            <label for="output_format">[% t('File format:') %] </label>
214
            <select id="output_format" name="output_format">
215
            <select id="output_format" name="output_format">
215
                <option value="marc">marc</option>
216
                <option value="marc">[% t('marc') %]</option>
216
                <option value="xml">xml</option>
217
                <option value="xml">[% t('xml') %]</option>
217
            </select>
218
            </select>
218
        </li>
219
        </li>
219
        <li>
220
        <li>
220
        <label for="filename">File name:</label><input id="filename" type="text" name="filename" value="koha.mrc" />
221
        <label for="filename">[% t('File name:') %]</label><input id="filename" type="text" name="filename" value="koha.mrc" />
221
        </li></ol>
222
        </li></ol>
222
    </fieldset>
223
    </fieldset>
223
    <input type="hidden" name="op" value="export" />
224
    <input type="hidden" name="op" value="export" />
Lines 230-238 Link Here
230
[% IF ( allow_db_export ) %]
231
[% IF ( allow_db_export ) %]
231
<div id="db">
232
<div id="db">
232
<form method="post" action="/cgi-bin/koha/tools/export.pl">
233
<form method="post" action="/cgi-bin/koha/tools/export.pl">
233
    <p><b>Note : This export file will be very large, and is generated nightly.</b></p>
234
    <p><b>[% t('Note : This export file will be very large, and is generated nightly.') %]</b></p>
234
    <fieldset class="rows">
235
    <fieldset class="rows">
235
    <legend> Choose a file </legend>
236
    <legend> [% t('Choose a file') %] </legend>
236
    [% IF ( dbfiles && (dbfiles.size > 0) ) %]
237
    [% IF ( dbfiles && (dbfiles.size > 0) ) %]
237
        <ul>
238
        <ul>
238
        [% FOREACH dbfile IN dbfiles %]
239
        [% FOREACH dbfile IN dbfiles %]
Lines 240-246 Link Here
240
        [% END %]
241
        [% END %]
241
        </ul>
242
        </ul>
242
    [% ELSE %]
243
    [% ELSE %]
243
        <p>Unfortunately, no backups are available.</p>
244
        <p>[% t('Unfortunately, no backups are available.') %]</p>
244
    [% END %]
245
    [% END %]
245
    </fieldset>
246
    </fieldset>
246
247
Lines 256-264 Link Here
256
[% IF ( allow_conf_export ) %]
257
[% IF ( allow_conf_export ) %]
257
<div id="conf">
258
<div id="conf">
258
<form method="post" action="/cgi-bin/koha/tools/export.pl">
259
<form method="post" action="/cgi-bin/koha/tools/export.pl">
259
    <p><b>Note : This export file will be very large, and is generated nightly.</b></p>
260
    <p><b>[% t('Note : This export file will be very large, and is generated nightly.') %]</b></p>
260
    <fieldset class="rows">
261
    <fieldset class="rows">
261
    <legend> Choose a file </legend>
262
    <legend> [% t('Choose a file') %] </legend>
262
    [% IF ( conffiles && (conffiles.size > 0) ) %]
263
    [% IF ( conffiles && (conffiles.size > 0) ) %]
263
        <ul>
264
        <ul>
264
        [% FOREACH conffile IN conffiles %]
265
        [% FOREACH conffile IN conffiles %]
Lines 266-272 Link Here
266
        [% END %]
267
        [% END %]
267
        </ul>
268
        </ul>
268
    [% ELSE %]
269
    [% ELSE %]
269
        <p>Unfortunately, no backups are available.</p>
270
        <p>[% t('Unfortunately, no backups are available.') %]</p>
270
    [% END %]
271
    [% END %]
271
    </fieldset>
272
    </fieldset>
272
273
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tt (-79 / +80 lines)
Lines 1-8 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Branches %]
3
[% USE Branches %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Tools &rsaquo; [% Branches.GetName( branch ) %] calendar</title>
6
<title>[% t('Koha › Tools ›') %] [% Branches.GetName( branch ) %] [% t('calendar') %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
7
[% Asset.css("css/datatables.css") %]
8
[% Asset.css("css/datatables.css") %]
8
<style type="text/css"> .key { padding : 3px; white-space:nowrap; line-height:230%; }
9
<style type="text/css"> .key { padding : 3px; white-space:nowrap; line-height:230%; }
Lines 29-45 td.repeatableyearly a.ui-state-default { background: #FFCC66 none; color : Bl Link Here
29
[% INCLUDE 'header.inc' %]
30
[% INCLUDE 'header.inc' %]
30
[% INCLUDE 'cat-search.inc' %]
31
[% INCLUDE 'cat-search.inc' %]
31
32
32
<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; [% Branches.GetName( branch ) %] calendar</div>
33
<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> › [% Branches.GetName( branch ) %] [% t('calendar') %]</div>
33
34
34
<div id="doc3" class="yui-t1">
35
<div id="doc3" class="yui-t1">
35
   
36
   
36
   <div id="bd">
37
   <div id="bd">
37
    <div id="yui-main">
38
    <div id="yui-main">
38
    <div class="yui-b">
39
    <div class="yui-b">
39
    <h2>[% Branches.GetName( branch ) %] calendar</h2>
40
    <h2>[% Branches.GetName( branch ) %] [% t('calendar') %]</h2>
40
    <div class="yui-g">
41
    <div class="yui-g">
41
    <div class="yui-u first">
42
    <div class="yui-u first">
42
        <label for="branch">Define the holidays for:</label>
43
        <label for="branch">[% t('Define the holidays for:') %]</label>
43
            <select id="branch" name="branch">
44
            <select id="branch" name="branch">
44
                [% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %]
45
                [% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %]
45
            </select>
46
            </select>
Lines 53-67 td.repeatableyearly a.ui-state-default { background: #FFCC66 none; color : Bl Link Here
53
         <form action="/cgi-bin/koha/tools/exceptionHolidays.pl" method="post">
54
         <form action="/cgi-bin/koha/tools/exceptionHolidays.pl" method="post">
54
             <input type="hidden" id="showHolidayType" name="showHolidayType" value="" />
55
             <input type="hidden" id="showHolidayType" name="showHolidayType" value="" />
55
            <fieldset class="brief">
56
            <fieldset class="brief">
56
            <h3>Edit this holiday</h3>
57
            <h3>[% t('Edit this holiday') %]</h3>
57
            <span id="holtype"></span>
58
            <span id="holtype"></span>
58
            <ol>
59
            <ol>
59
            <li>
60
            <li>
60
                <strong>Library:</strong> <span id="showBranchNameOutput"></span>
61
                <strong>[% t('Library:') %]</strong> <span id="showBranchNameOutput"></span>
61
                <input type="hidden" id="showBranchName" name="showBranchName" />
62
                <input type="hidden" id="showBranchName" name="showBranchName" />
62
            </li>
63
            </li>
63
            <li>
64
            <li>
64
                <strong>From date:</strong>
65
                <strong>[% t('From date:') %]</strong>
65
                <span id="showDaynameOutput"></span>, 
66
                <span id="showDaynameOutput"></span>, 
66
                
67
                
67
                                [% IF ( dateformat == "us" ) %]<span id="showMonthOutput"></span>/<span id="showDayOutput"></span>/<span id="showYearOutput"></span>[% ELSIF ( dateformat == "metric") %]<span id="showDayOutput"></span>/<span id="showMonthOutput"></span>/<span id="showYearOutput"></span>[% ELSIF ( dateformat == "dmydot") %]<span id="showDayOutput"></span>.<span id="showMonthOutput"></span>.<span id="showYearOutput"></span>[% ELSE %]<span id="showYearOutput"></span>/<span id="showMonthOutput"></span>/<span id="showDayOutput"></span>[% END %]
68
                                [% IF ( dateformat == "us" ) %]<span id="showMonthOutput"></span>/<span id="showDayOutput"></span>/<span id="showYearOutput"></span>[% ELSIF ( dateformat == "metric") %]<span id="showDayOutput"></span>/<span id="showMonthOutput"></span>/<span id="showYearOutput"></span>[% ELSIF ( dateformat == "dmydot") %]<span id="showDayOutput"></span>.<span id="showMonthOutput"></span>.<span id="showYearOutput"></span>[% ELSE %]<span id="showYearOutput"></span>/<span id="showMonthOutput"></span>/<span id="showDayOutput"></span>[% END %]
Lines 73-119 td.repeatableyearly a.ui-state-default { background: #FFCC66 none; color : Bl Link Here
73
                <input type="hidden" id="showYear" name="showYear" />
74
                <input type="hidden" id="showYear" name="showYear" />
74
            </li>
75
            </li>
75
            <li class="dateinsert">
76
            <li class="dateinsert">
76
                <b>To Date : </b>
77
                <b>[% t('To Date :') %] </b>
77
                <input type="text" id="datecancelrange" name="datecancelrange" size="20" value="[% datecancelrange %]" class="datepicker"/>
78
                <input type="text" id="datecancelrange" name="datecancelrange" size="20" value="[% datecancelrange %]" class="datepicker" />
78
            </li>
79
            </li>
79
            <li><label for="showTitle">Title: </label><input type="text" name="showTitle" id="showTitle" size="35" /></li>
80
            <li><label for="showTitle">[% t('Title:') %] </label><input type="text" name="showTitle" id="showTitle" size="35" /></li>
80
            <!-- showTitle is necessary for exception radio button to work properly -->
81
            <!-- showTitle is necessary for exception radio button to work properly -->
81
            <li>
82
            <li>
82
                <label for="showDescription">Description:</label>
83
                <label for="showDescription">[% t('Description:') %]</label>
83
                <textarea rows="2" cols="40" id="showDescription" name="showDescription"></textarea>
84
                <textarea rows="2" cols="40" id="showDescription" name="showDescription"></textarea>
84
            </li>
85
            </li>
85
            <li class="radio"><div id="exceptionPosibility" style="position:static">
86
            <li class="radio"><div id="exceptionPosibility" style="position:static">
86
                <input type="radio" name="showOperation" id="showOperationExc" value="exception" /> <label for="showOperationExc">Generate an exception for this repeated holiday.</label>
87
                <input type="radio" name="showOperation" id="showOperationExc" value="exception" /> <label for="showOperationExc">[% t('Generate an exception for this repeated holiday.') %]</label>
87
                <a href="#" class="helptext">[?]</a>
88
                <a href="#" class="helptext">[?]</a>
88
                <div class="hint">You can make an exception for this holiday rule. This means that you will be able to say that for a repeatable holiday there is one day which is going to be an exception.</div>
89
                <div class="hint">[% t('You can make an exception for this holiday rule. This means that you will be able to say that for a repeatable holiday there is one day which is going to be an exception.') %]</div>
89
            </div></li>
90
            </div></li>
90
            <li class="radio"><input type="radio" name="showOperation" id="showOperationExcRange" value="exceptionrange" />
91
            <li class="radio"><input type="radio" name="showOperation" id="showOperationExcRange" value="exceptionrange" />
91
                <label for="showOperationExcRange">Generate exceptions on a range of dates.</label>
92
                <label for="showOperationExcRange">[% t('Generate exceptions on a range of dates.') %]</label>
92
                <a href="#" class="helptext">[?]</a>
93
                <a href="#" class="helptext">[?]</a>
93
                <div class="hint">You can make an exception on a range of dates repeated yearly.</div>
94
                <div class="hint">[% t('You can make an exception on a range of dates repeated yearly.') %]</div>
94
            </li>
95
            </li>
95
            <li class="radio"><input type="radio" name="showOperation" id="showOperationDel" value="delete" /> <label for="showOperationDel" id="showOperationDelLabel">Delete this holiday</label>
96
            <li class="radio"><input type="radio" name="showOperation" id="showOperationDel" value="delete" /> <label for="showOperationDel" id="showOperationDelLabel">[% t('Delete this holiday') %]</label>
96
                <a href="#" class="helptext">[?]</a>
97
                <a href="#" class="helptext">[?]</a>
97
                <div class="hint">This will delete this holiday rule. If it is a repeatable holiday, this option checks for possible exceptions. If an exception exists, this option will remove the exception and set the date to a regular holiday.</div></li>
98
                <div class="hint">[% t('This will delete this holiday rule. If it is a repeatable holiday, this option checks for possible exceptions. If an exception exists, this option will remove the exception and set the date to a regular holiday.') %]</div></li>
98
            <li class="radio"><input type="radio" name="showOperation" id="showOperationDelRange" value="deleterange" /> <label for="showOperationDelRange" id="showOperationDelLabelRange">Delete the single holidays on a range</label>.
99
            <li class="radio"><input type="radio" name="showOperation" id="showOperationDelRange" value="deleterange" /> <label for="showOperationDelRange" id="showOperationDelLabelRange">[% t('Delete the single holidays on a range') %]</label>.
99
                <a href="#" class="helptext">[?]</a>
100
                <a href="#" class="helptext">[?]</a>
100
                <div class="hint">This will delete the single holidays rules only. The repeatable holidays and exceptions will not be deleted.</div>
101
                <div class="hint">[% t('This will delete the single holidays rules only. The repeatable holidays and exceptions will not be deleted.') %]</div>
101
            </li>
102
            </li>
102
            <li class="radio"><input type="radio" name="showOperation" id="showOperationDelRangeRepeat" value="deleterangerepeat" /> <label for="showOperationDelRangeRepeat" id="showOperationDelLabelRangeRepeat">Delete the repeated holidays on a range</label>.
103
            <li class="radio"><input type="radio" name="showOperation" id="showOperationDelRangeRepeat" value="deleterangerepeat" /> <label for="showOperationDelRangeRepeat" id="showOperationDelLabelRangeRepeat">[% t('Delete the repeated holidays on a range') %]</label>.
103
                <a href="#" class="helptext">[?]</a>
104
                <a href="#" class="helptext">[?]</a>
104
                <div class="hint">This will delete the repeated holidays rules only. The repeatable holidays will be deleted but not the exceptions.</div>
105
                <div class="hint">[% t('This will delete the repeated holidays rules only. The repeatable holidays will be deleted but not the exceptions.') %]</div>
105
            </li>
106
            </li>
106
            <li class="radio"><input type="radio" name="showOperation" id="showOperationDelRangeRepeatExcept" value="deleterangerepeatexcept" /> <label for="showOperationDelRangeRepeatExcept" id="showOperationDelLabelRangeRepeatExcept">Delete the exceptions on a range</label>.
107
            <li class="radio"><input type="radio" name="showOperation" id="showOperationDelRangeRepeatExcept" value="deleterangerepeatexcept" /> <label for="showOperationDelRangeRepeatExcept" id="showOperationDelLabelRangeRepeatExcept">[% t('Delete the exceptions on a range') %]</label>.
107
                <a href="#" class="helptext">[?]</a>
108
                <a href="#" class="helptext">[?]</a>
108
                <div class="hint">This will delete the exceptions inside a given range. Be careful about your scope range; if it is oversized you could slow down Koha.</div>
109
                <div class="hint">[% t('This will delete the exceptions inside a given range. Be careful about your scope range; if it is oversized you could slow down Koha.') %]</div>
109
            </li>
110
            </li>
110
            <li class="radio"><input type="radio" name="showOperation" id="showOperationEdit" value="edit" checked="checked" /> <label for="showOperationEdit">Edit this holiday</label>
111
            <li class="radio"><input type="radio" name="showOperation" id="showOperationEdit" value="edit" checked="checked" /> <label for="showOperationEdit">[% t('Edit this holiday') %]</label>
111
                <a href="#" class="helptext">[?]</a>
112
                <a href="#" class="helptext">[?]</a>
112
                <div class="hint">This will save changes to the holiday's title and description. If the information for a repeatable holiday is modified, it affects all of the dates on which the holiday is repeated.</div></li>
113
                <div class="hint">[% t('This will save changes to the holiday\'s title and description. If the information for a repeatable holiday is modified, it affects all of the dates on which the holiday is repeated.') %]</div></li>
113
            </ol>
114
            </ol>
114
            <fieldset class="action">
115
            <fieldset class="action">
115
                <input type="submit" name="submit" value="Save" />
116
                <input type="submit" name="submit" value="Save" />
116
                <a href="#" class="cancel hidePanel showHoliday">Cancel</a>
117
                <a href="#" class="cancel hidePanel showHoliday">[% t('Cancel') %]</a>
117
            </fieldset>
118
            </fieldset>
118
            </fieldset>
119
            </fieldset>
119
        </form>
120
        </form>
Lines 123-137 td.repeatableyearly a.ui-state-default { background: #FFCC66 none; color : Bl Link Here
123
    <div class="panel" id="newHoliday">
124
    <div class="panel" id="newHoliday">
124
         <form action="/cgi-bin/koha/tools/newHolidays.pl" method="post">
125
         <form action="/cgi-bin/koha/tools/newHolidays.pl" method="post">
125
            <fieldset class="brief">
126
            <fieldset class="brief">
126
            <h3>Add new holiday</h3>
127
            <h3>[% t('Add new holiday') %]</h3>
127
            <ol>
128
            <ol>
128
            <li>
129
            <li>
129
                <strong>Library:</strong>
130
                <strong>[% t('Library:') %]</strong>
130
                <span id="newBranchNameOutput"></span>
131
                <span id="newBranchNameOutput"></span>
131
                <input type="hidden" id="newBranchName" name="newBranchName" />
132
                <input type="hidden" id="newBranchName" name="newBranchName" />
132
            </li>
133
            </li>
133
            <li>
134
            <li>
134
                <strong>From date:</strong>
135
                <strong>[% t('From date:') %]</strong>
135
                <span id="newDaynameOutput"></span>, 
136
                <span id="newDaynameOutput"></span>, 
136
137
137
                         [% IF ( dateformat == "us" ) %]<span id="newMonthOutput"></span>/<span id="newDayOutput"></span>/<span id="newYearOutput"></span>[% ELSIF ( dateformat == "metric" ) %]<span id="newDayOutput"></span>/<span id="newMonthOutput"></span>/<span id="newYearOutput"></span>[% ELSIF ( dateformat == "dmydot" ) %]<span id="newDayOutput"></span>.<span id="newMonthOutput"></span>.<span id="newYearOutput"></span>[% ELSE %]<span id="newYearOutput"></span>/<span id="newMonthOutput"></span>/<span id="newDayOutput"></span>[% END %]
138
                         [% IF ( dateformat == "us" ) %]<span id="newMonthOutput"></span>/<span id="newDayOutput"></span>/<span id="newYearOutput"></span>[% ELSIF ( dateformat == "metric" ) %]<span id="newDayOutput"></span>/<span id="newMonthOutput"></span>/<span id="newYearOutput"></span>[% ELSIF ( dateformat == "dmydot" ) %]<span id="newDayOutput"></span>.<span id="newMonthOutput"></span>.<span id="newYearOutput"></span>[% ELSE %]<span id="newYearOutput"></span>/<span id="newMonthOutput"></span>/<span id="newDayOutput"></span>[% END %]
Lines 143-189 td.repeatableyearly a.ui-state-default { background: #FFCC66 none; color : Bl Link Here
143
                <input type="hidden" id="newYear" name="newYear" />
144
                <input type="hidden" id="newYear" name="newYear" />
144
            </li>
145
            </li>
145
            <li class="dateinsert">
146
            <li class="dateinsert">
146
                <b>To date: </b>
147
                <b>[% t('To date:') %] </b>
147
                <input type="text" id="dateofrange" name="dateofrange" size="20" value="[% dateofrange %]" class="datepicker" />
148
                <input type="text" id="dateofrange" name="dateofrange" size="20" value="[% dateofrange %]" class="datepicker" />
148
            </li>
149
            </li>
149
            <li><label for="title">Title: </label><input type="text" name="newTitle" id="title" size="35" /></li>
150
            <li><label for="title">[% t('Title:') %] </label><input type="text" name="newTitle" id="title" size="35" /></li>
150
            <li><label for="newDescription">Description:</label>
151
            <li><label for="newDescription">[% t('Description:') %]</label>
151
                <textarea rows="2" cols="40" id="newDescription" name="newDescription"></textarea>
152
                <textarea rows="2" cols="40" id="newDescription" name="newDescription"></textarea>
152
            </li>
153
            </li>
153
            <li class="radio"><input type="radio" name="newOperation" id="newOperationOnce" value="holiday" checked="checked" />
154
            <li class="radio"><input type="radio" name="newOperation" id="newOperationOnce" value="holiday" checked="checked" />
154
            <label for="newOperationOnce">Holiday only on this day</label>.
155
            <label for="newOperationOnce">[% t('Holiday only on this day') %]</label>.
155
            <a href="#" class="helptext">[?]</a>
156
            <a href="#" class="helptext">[?]</a>
156
            <div class="hint">Make a single holiday. For example, selecting August 1, 2012 will make it a holiday, but will not affect August 1 in other years.</div>
157
            <div class="hint">[% t('Make a single holiday. For example, selecting August 1, 2012 will make it a holiday, but will not affect August 1 in other years.') %]</div>
157
            </li>
158
            </li>
158
            <li class="radio"><input type="radio" name="newOperation" id="newOperationDay" value="weekday" />
159
            <li class="radio"><input type="radio" name="newOperation" id="newOperationDay" value="weekday" />
159
                            <label for="newOperationDay">Holiday repeated every same day of the week</label>.
160
                            <label for="newOperationDay">[% t('Holiday repeated every same day of the week') %]</label>.
160
                            <a href="#" class="helptext">[?]</a>
161
                            <a href="#" class="helptext">[?]</a>
161
                            <div class="hint">Make this weekday a holiday, every week. For example, if your library is closed on Saturdays, use this option to make every Saturday a holiday.</div>
162
                            <div class="hint">[% t('Make this weekday a holiday, every week. For example, if your library is closed on Saturdays, use this option to make every Saturday a holiday.') %]</div>
162
                            </li>
163
                            </li>
163
            <li class="radio"><input type="radio" name="newOperation" id="newOperationYear" value="repeatable" />
164
            <li class="radio"><input type="radio" name="newOperation" id="newOperationYear" value="repeatable" />
164
                            <label for="newOperationYear">Holiday repeated yearly on the same date</label>.
165
                            <label for="newOperationYear">[% t('Holiday repeated yearly on the same date') %]</label>.
165
                            <a href="#" class="helptext">[?]</a>
166
                            <a href="#" class="helptext">[?]</a>
166
                            <div class="hint">This will take this day and month as a reference to make it a holiday. Through this option, you can repeat this rule for every year. For example, selecting August 1 will make August 1 a holiday every year.</div>
167
                            <div class="hint">[% t('This will take this day and month as a reference to make it a holiday. Through this option, you can repeat this rule for every year. For example, selecting August 1 will make August 1 a holiday every year.') %]</div>
167
                            </li>
168
                            </li>
168
            <li class="radio"><input type="radio" name="newOperation" id="newOperationField" value="holidayrange" />
169
            <li class="radio"><input type="radio" name="newOperation" id="newOperationField" value="holidayrange" />
169
                            <label for="newOperationField">Holidays on a range</label>.
170
                            <label for="newOperationField">[% t('Holidays on a range') %]</label>.
170
                            <a href="#" class="helptext">[?]</a>
171
                            <a href="#" class="helptext">[?]</a>
171
                            <div class="hint">Make a single holiday on a range. For example, selecting August 1, 2012  and August 10, 2012 will make all days between August 1 and 10 a holiday, but will not affect August 1-10 in other years.</div>
172
                            <div class="hint">[% t('Make a single holiday on a range. For example, selecting August 1, 2012') %]  [% t('and August 10, 2012 will make all days between August 1 and 10 a holiday, but will not affect August 1-10 in other years.') %]</div>
172
                            </li>
173
                            </li>
173
            <li class="radio"><input type="radio" name="newOperation" id="newOperationFieldyear" value="holidayrangerepeat" />
174
            <li class="radio"><input type="radio" name="newOperation" id="newOperationFieldyear" value="holidayrangerepeat" />
174
                            <label for="newOperationFieldyear">Holidays repeated yearly on a range</label>.
175
                            <label for="newOperationFieldyear">[% t('Holidays repeated yearly on a range') %]</label>.
175
                            <a href="#" class="helptext">[?]</a>
176
                            <a href="#" class="helptext">[?]</a>
176
                            <div class="hint">Make a single holiday on a range repeated yearly. For example, selecting August 1, 2012  and August 10, 2012 will make all days between August 1 and 10 a holiday, and will affect August 1-10 in other years.</div>
177
                            <div class="hint">[% t('Make a single holiday on a range repeated yearly. For example, selecting August 1, 2012') %]  [% t('and August 10, 2012 will make all days between August 1 and 10 a holiday, and will affect August 1-10 in other years.') %]</div>
177
                            </li>
178
                            </li>
178
                <li class="checkbox">
179
                <li class="checkbox">
179
                <input type="checkbox" name="allBranches" id="allBranches" />
180
                <input type="checkbox" name="allBranches" id="allBranches" />
180
                <label for="allBranches">Copy to all libraries</label>.
181
                <label for="allBranches">[% t('Copy to all libraries') %]</label>.
181
                <a href="#" class="helptext">[?]</a>
182
                <a href="#" class="helptext">[?]</a>
182
                <div class="hint">If checked, this holiday will be copied to all libraries. If the holiday already exists for a library, no change is made.</div>
183
                <div class="hint">[% t('If checked, this holiday will be copied to all libraries. If the holiday already exists for a library, no change is made.') %]</div>
183
                </li></ol>
184
                </li></ol>
184
                <fieldset class="action">
185
                <fieldset class="action">
185
                    <input type="submit" name="submit" value="Save" />
186
                    <input type="submit" name="submit" value="Save" />
186
                    <a href="#" class="cancel hidePanel newHoliday">Cancel</a>
187
                    <a href="#" class="cancel hidePanel newHoliday">[% t('Cancel') %]</a>
187
                </fieldset>
188
                </fieldset>
188
                </fieldset>
189
                </fieldset>
189
         </form>
190
         </form>
Lines 196-208 td.repeatableyearly a.ui-state-default { background: #FFCC66 none; color : Bl Link Here
196
<!-- ************************************************************************************** -->
197
<!-- ************************************************************************************** -->
197
<!-- ******                              MAIN SCREEN CODE                            ****** -->
198
<!-- ******                              MAIN SCREEN CODE                            ****** -->
198
<!-- ************************************************************************************** -->
199
<!-- ************************************************************************************** -->
199
<h3>Calendar information</h3>
200
<h3>[% t('Calendar information') %]</h3>
200
<div id="jcalendar-container"></div>
201
<div id="jcalendar-container"></div>
201
202
202
<div style="margin-top: 2em;">
203
<div style="margin-top: 2em;">
203
<form action="copy-holidays.pl" method="post">
204
<form action="copy-holidays.pl" method="post">
204
    <input type="hidden" name="from_branchcode" value="[% branch %]" />
205
    <input type="hidden" name="from_branchcode" value="[% branch %]" />
205
  <label for="branchcode">Copy holidays to:</label>
206
  <label for="branchcode">[% t('Copy holidays to:') %]</label>
206
  <select id="branchcode" name="branchcode">
207
  <select id="branchcode" name="branchcode">
207
    <option value=""></option>
208
    <option value=""></option>
208
    [% FOREACH l IN Branches.all() %]
209
    [% FOREACH l IN Branches.all() %]
Lines 216-254 td.repeatableyearly a.ui-state-default { background: #FFCC66 none; color : Bl Link Here
216
</div>
217
</div>
217
<div class="yui-u">
218
<div class="yui-u">
218
<div class="help">
219
<div class="help">
219
<h4>Hints</h4>
220
<h4>[% t('Hints') %]</h4>
220
    <ul>
221
    <ul>
221
        <li>Search in the calendar the day you want to set as holiday.</li>
222
        <li>[% t('Search in the calendar the day you want to set as holiday.') %]</li>
222
        <li>Click the date to add or edit a holiday.</li>
223
        <li>[% t('Click the date to add or edit a holiday.') %]</li>
223
        <li>Enter a title and description for the holiday.</li>
224
        <li>[% t('Enter a title and description for the holiday.') %]</li>
224
        <li>Specify how the holiday should repeat.</li>
225
        <li>[% t('Specify how the holiday should repeat.') %]</li>
225
        <li>Click Save to finish.</li>
226
        <li>[% t('Click Save to finish.') %]</li>
226
    </ul>
227
    </ul>
227
<h4>Key</h4>
228
<h4>[% t('Key') %]</h4>
228
    <p>
229
    <p>
229
        <span class="key normalday">Working day</span>
230
        <span class="key normalday">[% t('Working day') %]</span>
230
        <span class="key holiday">Unique holiday</span>
231
        <span class="key holiday">[% t('Unique holiday') %]</span>
231
        <span class="key repeatableweekly">Holiday repeating weekly</span>
232
        <span class="key repeatableweekly">[% t('Holiday repeating weekly') %]</span>
232
        <span class="key repeatableyearly">Holiday repeating yearly</span>
233
        <span class="key repeatableyearly">[% t('Holiday repeating yearly') %]</span>
233
        <span class="key exception">Holiday exception</span>
234
        <span class="key exception">[% t('Holiday exception') %]</span>
234
    </p>
235
    </p>
235
</div>
236
</div>
236
<div id="holiday-list">
237
<div id="holiday-list">
237
<!-- Exceptions First -->
238
<!-- Exceptions First -->
238
<!--   this will probably always have the least amount of data -->
239
<!--   this will probably always have the least amount of data -->
239
[% IF ( EXCEPTION_HOLIDAYS_LOOP ) %]
240
[% IF ( EXCEPTION_HOLIDAYS_LOOP ) %]
240
<h3>Exceptions</h3>
241
<h3>[% t('Exceptions') %]</h3>
241
  <table id="holidayexceptions">
242
  <table id="holidayexceptions">
242
<thead><tr>
243
<thead><tr>
243
  <th class="exception">Date</th>
244
  <th class="exception">[% t('Date') %]</th>
244
  <th class="exception">Title</th>
245
  <th class="exception">[% t('Title') %]</th>
245
  <th class="exception">Description</th>
246
  <th class="exception">[% t('Description') %]</th>
246
</tr>
247
</tr>
247
</thead>
248
</thead>
248
<tbody>
249
<tbody>
249
  [% FOREACH EXCEPTION_HOLIDAYS_LOO IN EXCEPTION_HOLIDAYS_LOOP %]
250
  [% FOREACH EXCEPTION_HOLIDAYS_LOO IN EXCEPTION_HOLIDAYS_LOOP %]
250
  <tr>
251
  <tr>
251
  <td><a href="/cgi-bin/koha/tools/holidays.pl?branch=[% branch %]&amp;calendardate=[% EXCEPTION_HOLIDAYS_LOO.DATE %]"><span title="[% EXCEPTION_HOLIDAYS_LOO.DATE_SORT %]">[% EXCEPTION_HOLIDAYS_LOO.DATE %]</span></a></td>
252
  <td><a href="/cgi-bin/koha/tools/holidays.pl?branch=[% branch %]&calendardate=[% EXCEPTION_HOLIDAYS_LOO.DATE %]"><span title="[% EXCEPTION_HOLIDAYS_LOO.DATE_SORT %]">[% EXCEPTION_HOLIDAYS_LOO.DATE %]</span></a></td>
252
  <td>[% EXCEPTION_HOLIDAYS_LOO.TITLE |html %]</td>
253
  <td>[% EXCEPTION_HOLIDAYS_LOO.TITLE |html %]</td>
253
  <td>[% EXCEPTION_HOLIDAYS_LOO.DESCRIPTION |html %]</td>
254
  <td>[% EXCEPTION_HOLIDAYS_LOO.DESCRIPTION |html %]</td>
254
  </tr>
255
  </tr>
Lines 258-270 td.repeatableyearly a.ui-state-default { background: #FFCC66 none; color : Bl Link Here
258
[% END %]
259
[% END %]
259
260
260
[% IF ( WEEK_DAYS_LOOP ) %]
261
[% IF ( WEEK_DAYS_LOOP ) %]
261
<h3>Weekly - Repeatable holidays</h3>
262
<h3>[% t('Weekly - Repeatable holidays') %]</h3>
262
<table id="holidayweeklyrepeatable">
263
<table id="holidayweeklyrepeatable">
263
<thead>
264
<thead>
264
<tr>
265
<tr>
265
  <th class="repeatableweekly">Day of week</th>
266
  <th class="repeatableweekly">[% t('Day of week') %]</th>
266
  <th class="repeatableweekly">Title</th>
267
  <th class="repeatableweekly">[% t('Title') %]</th>
267
  <th class="repeatableweekly">Description</th>
268
  <th class="repeatableweekly">[% t('Description') %]</th>
268
</tr>
269
</tr>
269
</thead>
270
</thead>
270
<tbody>
271
<tbody>
Lines 281-297 td.repeatableyearly a.ui-state-default { background: #FFCC66 none; color : Bl Link Here
281
[% END %]
282
[% END %]
282
283
283
[% IF ( DAY_MONTH_HOLIDAYS_LOOP ) %]
284
[% IF ( DAY_MONTH_HOLIDAYS_LOOP ) %]
284
<h3>Yearly - Repeatable holidays</h3>
285
<h3>[% t('Yearly - Repeatable holidays') %]</h3>
285
<table id="holidaysyearlyrepeatable">
286
<table id="holidaysyearlyrepeatable">
286
<thead>
287
<thead>
287
<tr>
288
<tr>
288
  [% IF ( dateformat == "metric" ) %]
289
  [% IF ( dateformat == "metric" ) %]
289
  <th class="repeatableyearly">Day/month</th>
290
  <th class="repeatableyearly">[% t('Day/month') %]</th>
290
  [% ELSE %]
291
  [% ELSE %]
291
  <th class="repeatableyearly">Month/day</th>
292
  <th class="repeatableyearly">[% t('Month/day') %]</th>
292
  [% END %]
293
  [% END %]
293
  <th class="repeatableyearly">Title</th>
294
  <th class="repeatableyearly">[% t('Title') %]</th>
294
  <th class="repeatableyearly">Description</th>
295
  <th class="repeatableyearly">[% t('Description') %]</th>
295
</tr>
296
</tr>
296
</thead>
297
</thead>
297
<tbody>
298
<tbody>
Lines 307-327 td.repeatableyearly a.ui-state-default { background: #FFCC66 none; color : Bl Link Here
307
[% END %]
308
[% END %]
308
309
309
[% IF ( HOLIDAYS_LOOP ) %]
310
[% IF ( HOLIDAYS_LOOP ) %]
310
<h3>Unique holidays</h3>
311
<h3>[% t('Unique holidays') %]</h3>
311
<table id="holidaysunique">
312
<table id="holidaysunique">
312
<thead>
313
<thead>
313
<tr>
314
<tr>
314
  <th class="holiday">Date</th>
315
  <th class="holiday">[% t('Date') %]</th>
315
  <th class="holiday">Title</th>
316
  <th class="holiday">[% t('Title') %]</th>
316
  <th class="holiday">Description</th>
317
  <th class="holiday">[% t('Description') %]</th>
317
</tr>
318
</tr>
318
</thead>
319
</thead>
319
<tbody>
320
<tbody>
320
    [% FOREACH HOLIDAYS_LOO IN HOLIDAYS_LOOP %]
321
    [% FOREACH HOLIDAYS_LOO IN HOLIDAYS_LOOP %]
321
<tr>
322
<tr>
322
  <td><a href="/cgi-bin/koha/tools/holidays.pl?branch=[% branch %]&amp;calendardate=[% HOLIDAYS_LOO.DATE %]"><span title="[% HOLIDAYS_LOO.DATE_SORT %]">[% HOLIDAYS_LOO.DATE %]</span></a></td>
323
  <td><a href="/cgi-bin/koha/tools/holidays.pl?branch=[% branch %]&calendardate=[% HOLIDAYS_LOO.DATE %]"><span title="[% HOLIDAYS_LOO.DATE_SORT %]">[% HOLIDAYS_LOO.DATE %]</span></a></td>
323
  <td>[% HOLIDAYS_LOO.TITLE |html %]</td>
324
  <td>[% HOLIDAYS_LOO.TITLE |html %]</td>
324
  [% br = BLOCK %]<br/>[% END %]
325
  [% br = BLOCK %]<br />[% END %]
325
  <td>[% HOLIDAYS_LOO.DESCRIPTION.replace('\\\r\\\n', br) |html %]</td>
326
  <td>[% HOLIDAYS_LOO.DESCRIPTION.replace('\\\r\\\n', br) |html %]</td>
326
</tr>
327
</tr>
327
  [% END %] 
328
  [% END %] 
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/import_borrowers.tt (-57 / +58 lines)
Lines 1-9 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% USE Branches %]
4
[% USE Branches %]
4
[% SET footerjs = 1 %]
5
[% SET footerjs = 1 %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
<title>Koha &rsaquo; Tools &rsaquo; Import patrons [% IF ( uploadborrowers ) %]&rsaquo; Results[% END %]</title>
7
<title>[% t('Koha › Tools › Import patrons') %] [% IF ( uploadborrowers ) %][% t('› Results') %][% END %]</title>
7
[% INCLUDE 'doc-head-close.inc' %]
8
[% INCLUDE 'doc-head-close.inc' %]
8
<style type="text/css">
9
<style type="text/css">
9
    .yui-u fieldset.rows .widelabel { width: 12em; }
10
    .yui-u fieldset.rows .widelabel { width: 12em; }
Lines 17-23 Link Here
17
[% INCLUDE 'header.inc' %]
18
[% INCLUDE 'header.inc' %]
18
[% INCLUDE 'patron-search.inc' %]
19
[% INCLUDE 'patron-search.inc' %]
19
20
20
<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; <a href="/cgi-bin/koha/tools/import_borrowers.pl">Import patrons</a>[% IF ( uploadborrowers ) %] &rsaquo; Results[% END %]</div>
21
<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> › <a href="/cgi-bin/koha/tools/import_borrowers.pl">[% t('Import patrons') %]</a>[% IF ( uploadborrowers ) %] [% t('› Results') %][% END %]</div>
21
22
22
<div id="doc3" class="yui-t2">
23
<div id="doc3" class="yui-t2">
23
 <div id="bd">
24
 <div id="bd">
Lines 25-61 Link Here
25
   <div class="yui-b">
26
   <div class="yui-b">
26
    <div class="yui-g">
27
    <div class="yui-g">
27
     <div class="yui-u first">
28
     <div class="yui-u first">
28
<h1>Import patrons</h1>
29
<h1>[% t('Import patrons') %]</h1>
29
[% IF ( uploadborrowers ) %]
30
[% IF ( uploadborrowers ) %]
30
    <h5>Import results :</h5>
31
    <h5>[% t('Import results :') %]</h5>
31
    <ul>
32
    <ul>
32
        <li>[% imported %] imported records [% IF ( lastimported ) %](last was [% lastimported %])[% END %]</li>
33
        <li>[% imported %] [% t('imported records') %] [% IF ( lastimported ) %][% t('(last was') %] [% lastimported %])[% END %]</li>
33
        [% IF imported and patronlistname %]
34
        [% IF imported and patronlistname %]
34
            <li>Patronlist with imported patrons: [% patronlistname %]</li>
35
            <li>[% t('Patronlist with imported patrons:') %] [% patronlistname %]</li>
35
        [% END %]
36
        [% END %]
36
        <li>[% overwritten %] overwritten [% IF ( lastoverwritten ) %](last was [% lastoverwritten %])[% END %]</li>
37
        <li>[% overwritten %] [% t('overwritten') %] [% IF ( lastoverwritten ) %][% t('(last was') %] [% lastoverwritten %])[% END %]</li>
37
        <li>[% alreadyindb %] not imported because already in borrowers table and overwrite disabled [% IF ( lastalreadyindb ) %](last was [% lastalreadyindb %])[% END %]</li>
38
        <li>[% alreadyindb %] [% t('not imported because already in borrowers table and overwrite disabled') %] [% IF ( lastalreadyindb ) %][% t('(last was') %] [% lastalreadyindb %])[% END %]</li>
38
        <li>[% invalid %] not imported because they are not in the expected format [% IF ( lastinvalid ) %](last was [% lastinvalid %])[% END %]</li>
39
        <li>[% invalid %] [% t('not imported because they are not in the expected format') %] [% IF ( lastinvalid ) %][% t('(last was') %] [% lastinvalid %])[% END %]</li>
39
        <li>[% total %] records parsed</li>
40
        <li>[% total %] [% t('records parsed') %]</li>
40
        <li><a href="/cgi-bin/koha/tools/tools-home.pl">Back to Tools</a></li>
41
        <li><a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Back to Tools') %]</a></li>
41
    </ul>
42
    </ul>
42
43
43
    [% IF ( feedback ) %]
44
    [% IF ( feedback ) %]
44
        <br /><br />
45
        <br /><br />
45
46
46
        <div>
47
        <div>
47
            <h5>Feedback:</h5>
48
            <h5>[% t('Feedback:') %]</h5>
48
                <ul class="feedback">
49
                <ul class="feedback">
49
                    [% FOREACH f IN feedback %]
50
                    [% FOREACH f IN feedback %]
50
                        <li>
51
                        <li>
51
                            [% IF ( f.filename ) %]
52
                            [% IF ( f.filename ) %]
52
                                Parsing upload file <span class="filename">[% f.filename %]</span>
53
                                [% t('Parsing upload file') %] <span class="filename">[% f.filename %]</span>
53
                            [% ELSIF ( f.backend ) %]
54
                            [% ELSIF ( f.backend ) %]
54
                                Upload parsed using [% f.backend %]
55
                                [% t('Upload parsed using') %] [% f.backend %]
55
                            [% ELSIF ( f.headerrow ) %]
56
                            [% ELSIF ( f.headerrow ) %]
56
                                These fields found: [% f.value %]
57
                                [% t('These fields found:') %] [% f.value %]
57
                            [% ELSIF ( f.already_in_db ) %]
58
                            [% ELSIF ( f.already_in_db ) %]
58
                                Patron already in database: [% f.value %]
59
                                [% t('Patron already in database:') %] [% f.value %]
59
                            [% ELSE %]
60
                            [% ELSE %]
60
                                [% f.name %] : [% f.value %]
61
                                [% f.name %] : [% f.value %]
61
                            [% END %]
62
                            [% END %]
Lines 69-115 Link Here
69
        <br /><br />
70
        <br /><br />
70
71
71
        <div>
72
        <div>
72
            <h5>Error analysis:</h5>
73
            <h5>[% t('Error analysis:') %]</h5>
73
            <ul>
74
            <ul>
74
                [% FOREACH e IN errors %]
75
                [% FOREACH e IN errors %]
75
                    [% IF ( e.badheader ) %]<li>Header row could not be parsed</li>[% END %]
76
                    [% IF ( e.badheader ) %]<li>[% t('Header row could not be parsed') %]</li>[% END %]
76
77
77
                    [% FOREACH missing_critical IN e.missing_criticals %]
78
                    [% FOREACH missing_critical IN e.missing_criticals %]
78
                        <li class="line_error">
79
                        <li class="line_error">
79
                            Line <span class="linenumber">[% missing_critical.line %]</span>
80
                            [% t('Line') %] <span class="linenumber">[% missing_critical.line %]</span>
80
81
81
                            [% IF ( missing_critical.badparse ) %]
82
                            [% IF ( missing_critical.badparse ) %]
82
                                could not be parsed!
83
                                [% t('could not be parsed!') %]
83
                            [% ELSIF ( missing_critical.bad_date ) %]
84
                            [% ELSIF ( missing_critical.bad_date ) %]
84
                                has &quot;[% missing_critical.key %]&quot; in unrecognized format: &quot;[% missing_critical.value %]&quot;
85
                                [% t('has &#34;') %][% missing_critical.key %][% t('&#34; in unrecognized format: &#34;') %][% missing_critical.value %]"
85
                            [% ELSE %]
86
                            [% ELSE %]
86
                                Critical field &quot;[% missing_critical.key %]&quot;
87
                                [% t('Critical field &#34;') %][% missing_critical.key %]"
87
88
88
                                [% IF ( missing_critical.branch_map ) %]
89
                                [% IF ( missing_critical.branch_map ) %]
89
                                    has unrecognized value &quot;[% missing_critical.value %]&quot;
90
                                    [% t('has unrecognized value &#34;') %][% missing_critical.value %]"
90
                                [% ELSIF ( missing_critical.category_map ) %]
91
                                [% ELSIF ( missing_critical.category_map ) %]
91
                                    has unrecognized value &quot;[% missing_critical.value %]&quot;
92
                                    [% t('has unrecognized value &#34;') %][% missing_critical.value %]"
92
                                [% ELSE %]
93
                                [% ELSE %]
93
                                    missing
94
                                    [% t('missing') %]
94
                                [% END %]
95
                                [% END %]
95
96
96
                                (borrowernumber: [% missing_critical.borrowernumber %]; surname: [% missing_critical.surname %]).
97
                                [% t('(borrowernumber:') %] [% missing_critical.borrowernumber %][% t('; surname:') %] [% missing_critical.surname %]).
97
                            [% END %]
98
                            [% END %]
98
99
99
                            <br/>
100
                            <br />
100
                            <code>[% missing_critical.lineraw %]</code>
101
                            <code>[% missing_critical.lineraw %]</code>
101
                        </li>
102
                        </li>
102
                    [% END %]
103
                    [% END %]
103
104
104
                    [% IF e.invalid_cardnumber %]
105
                    [% IF e.invalid_cardnumber %]
105
                        <li class="line_error">
106
                        <li class="line_error">
106
                            Cardnumber [% e.cardnumber %] is not a valid cardnumber
107
                            [% t('Cardnumber') %] [% e.cardnumber %] [% t('is not a valid cardnumber') %]
107
                            [% IF e.borrowernumber %] (for patron with borrowernumber [% e.borrowernumber %])[% END %]
108
                            [% IF e.borrowernumber %] [% t('(for patron with borrowernumber') %] [% e.borrowernumber %])[% END %]
108
                        </li>
109
                        </li>
109
                    [% END %]
110
                    [% END %]
110
                    [% IF e.duplicate_userid %]
111
                    [% IF e.duplicate_userid %]
111
                        <li class="line_error">
112
                        <li class="line_error">
112
                            Userid [% e.userid %] is already used by another patron.
113
                            [% t('Userid') %] [% e.userid %] [% t('is already used by another patron.') %]
113
                        </li>
114
                        </li>
114
                    [% END %]
115
                    [% END %]
115
                [% END %]
116
                [% END %]
Lines 118-152 Link Here
118
    [% END %]
119
    [% END %]
119
[% ELSE %]
120
[% ELSE %]
120
    <ul>
121
    <ul>
121
        <li>Select a file to import into the borrowers table</li>
122
        <li>[% t('Select a file to import into the borrowers table') %]</li>
122
        <li>If a cardnumber exists in the table, you can choose whether to ignore the new one or overwrite the old one.</li>
123
        <li>[% t('If a cardnumber exists in the table, you can choose whether to ignore the new one or overwrite the old one.') %]</li>
123
    </ul>
124
    </ul>
124
125
125
    <form method="post" action="[% SCRIPT_NAME %]" enctype="multipart/form-data">
126
    <form method="post" action="[% SCRIPT_NAME %]" enctype="multipart/form-data">
126
        <fieldset class="rows">
127
        <fieldset class="rows">
127
            <legend>Import into the borrowers table</legend>
128
            <legend>[% t('Import into the borrowers table') %]</legend>
128
129
129
            <ol>
130
            <ol>
130
                <li>
131
                <li>
131
                    <label for="uploadborrowers">Select the file to import: </label>
132
                    <label for="uploadborrowers">[% t('Select the file to import:') %] </label>
132
                    <input type="file" id="uploadborrowers" name="uploadborrowers" />
133
                    <input type="file" id="uploadborrowers" name="uploadborrowers" />
133
                </li>
134
                </li>
134
135
135
                <li>
136
                <li>
136
                    <label for "createpatronlist">Create patron list: </label>
137
                    <label for="" "createpatronlist"="">[% t('Create patron list:') %] </label>
137
                    <input name="createpatronlist" id="createpatronlist" value="1" type="checkbox">
138
                    <input name="createpatronlist" id="createpatronlist" value="1" type="checkbox">
138
                    <span class="hint">List name will be file name with timestamp</span>
139
                    <span class="hint">[% t('List name will be file name with timestamp') %]</span>
139
                </li>
140
                </li>
140
            </ol>
141
            </ol>
141
        </fieldset>
142
        </fieldset>
142
143
143
        <fieldset class="rows">
144
        <fieldset class="rows">
144
            <legend>Field to use for record matching</legend>
145
            <legend>[% t('Field to use for record matching') %]</legend>
145
            <ol>
146
            <ol>
146
                <li class="radio">
147
                <li class="radio">
147
                    <select name="matchpoint" id="matchpoint">
148
                    <select name="matchpoint" id="matchpoint">
148
                        <option value="cardnumber">Cardnumber</option>
149
                        <option value="cardnumber">[% t('Cardnumber') %]</option>
149
                        <option value="userid">Username</option>
150
                        <option value="userid">[% t('Username') %]</option>
150
                        [% FOREACH matchpoint IN matchpoints %]
151
                        [% FOREACH matchpoint IN matchpoints %]
151
                            <option value="[% matchpoint.code %]">[% matchpoint.description %]</option>
152
                            <option value="[% matchpoint.code %]">[% matchpoint.description %]</option>
152
                        [% END %]
153
                        [% END %]
Lines 156-162 Link Here
156
        </fieldset>
157
        </fieldset>
157
158
158
        <fieldset class="rows">
159
        <fieldset class="rows">
159
            <legend>Default values</legend>
160
            <legend>[% t('Default values') %]</legend>
160
161
161
            <ol>
162
            <ol>
162
                [% FOREACH borrower_field IN borrower_fields %]
163
                [% FOREACH borrower_field IN borrower_fields %]
Lines 195-203 Link Here
195
196
196
                [% IF ( Koha.Preference('ExtendedPatronAttributes') == 1 ) %]
197
                [% IF ( Koha.Preference('ExtendedPatronAttributes') == 1 ) %]
197
                    <li>
198
                    <li>
198
                        <label class="description" for="patron_attributes">Patron attributes: </label>
199
                        <label class="description" for="patron_attributes">[% t('Patron attributes:') %] </label>
199
                        <input id="patron_attributes" name="patron_attributes" />
200
                        <input id="patron_attributes" name="patron_attributes" />
200
                        <span class="field_hint">patron_attributes</span>
201
                        <span class="field_hint">[% t('patron_attributes') %]</span>
201
                    </li>
202
                    </li>
202
                [% END %]
203
                [% END %]
203
204
Lines 205-234 Link Here
205
        </fieldset>
206
        </fieldset>
206
207
207
        <fieldset class="rows">
208
        <fieldset class="rows">
208
            <legend>If matching record is already in the borrowers table:</legend>
209
            <legend>[% t('If matching record is already in the borrowers table:') %]</legend>
209
210
210
            <ol>
211
            <ol>
211
                <li class="radio">
212
                <li class="radio">
212
                    <input type="radio" id="overwrite_cardnumberno" name="overwrite_cardnumber" value="0" checked="checked" /><label for="overwrite_cardnumberno">Ignore this one, keep the existing one</label>
213
                    <input type="radio" id="overwrite_cardnumberno" name="overwrite_cardnumber" value="0" checked="checked" /><label for="overwrite_cardnumberno">[% t('Ignore this one, keep the existing one') %]</label>
213
                </li>
214
                </li>
214
215
215
                <li class="radio">
216
                <li class="radio">
216
                    <input type="radio" id="overwrite_cardnumberyes" name="overwrite_cardnumber" value="1" /><label for="overwrite_cardnumberyes">Overwrite the existing one with this</label>
217
                    <input type="radio" id="overwrite_cardnumberyes" name="overwrite_cardnumber" value="1" /><label for="overwrite_cardnumberyes">[% t('Overwrite the existing one with this') %]</label>
217
                </li>
218
                </li>
218
            </ol>
219
            </ol>
219
        </fieldset>
220
        </fieldset>
220
221
221
        [% IF ( Koha.Preference('ExtendedPatronAttributes') == 1 ) %]
222
        [% IF ( Koha.Preference('ExtendedPatronAttributes') == 1 ) %]
222
            <fieldset class="rows">
223
            <fieldset class="rows">
223
                <legend>Patron attributes</legend>
224
                <legend>[% t('Patron attributes') %]</legend>
224
225
225
                <ol>
226
                <ol>
226
                    <li class="radio">
227
                    <li class="radio">
227
                        <input type="radio" id="ext_preserve_0" name="ext_preserve" value="0" checked="checked" /><label for="ext_preserve_0">Replace all patron attributes</label>
228
                        <input type="radio" id="ext_preserve_0" name="ext_preserve" value="0" checked="checked" /><label for="ext_preserve_0">[% t('Replace all patron attributes') %]</label>
228
                    </li>
229
                    </li>
229
230
230
                    <li class="radio">
231
                    <li class="radio">
231
                        <input type="radio" id="ext_preserve_1" name="ext_preserve" value="1" /><label for="ext_preserve_1">Replace only included patron attributes</label>
232
                        <input type="radio" id="ext_preserve_1" name="ext_preserve" value="1" /><label for="ext_preserve_1">[% t('Replace only included patron attributes') %]</label>
232
                    </li>
233
                    </li>
233
                </ol>
234
                </ol>
234
            </fieldset>
235
            </fieldset>
Lines 244-257 Link Here
244
</div>
245
</div>
245
246
246
<div class="yui-u">
247
<div class="yui-u">
247
    <h2>Notes:</h2>
248
    <h2>[% t('Notes:') %]</h2>
248
    <ul>
249
    <ul>
249
        <li>The first line in the file must be a header row defining which columns you are supplying in the import file.</li>
250
        <li>[% t('The first line in the file must be a header row defining which columns you are supplying in the import file.') %]</li>
250
251
251
        <li><b>Download a starter CSV file with all the columns <a href="?sample=1">here</a>.</b>  Values are comma-separated.</li>
252
        <li><b>[% t('Download a starter CSV file with all the columns') %] <a href="?sample=1">[% t('here') %]</a>.</b>  [% t('Values are comma-separated.') %]</li>
252
253
253
        <li>
254
        <li>
254
            OR choose which fields you want to supply from the following list:
255
            [% t('OR choose which fields you want to supply from the following list:') %]
255
            <ul>
256
            <ul>
256
                <li>
257
                <li>
257
                    [% FOREACH columnkey IN borrower_fields %]'[% columnkey.field %]', [% END %]
258
                    [% FOREACH columnkey IN borrower_fields %]'[% columnkey.field %]', [% END %]
Lines 261-281 Link Here
261
262
262
        [% IF ( ExtendedPatronAttributes ) %]
263
        [% IF ( ExtendedPatronAttributes ) %]
263
            <li>
264
            <li>
264
                If loading patron attributes, the 'patron_attributes' field should contain a comma-separated list of attribute types and values. The attribute type code and a colon should precede each value. For example: <b>INSTID:12345,LANG:fr</b> or <b>STARTDATE:January 1 2010,TRACK:Day</b>. If an input record has more than one attribute, the fields should either be entered as an unquoted string (previous examples), or with each field wrapped in separate double quotes and delimited by a comma: <b>&quot;STARTDATE:January 1, 2010&quot;,&quot;TRACK:Day&quot;</b>.  The second syntax would be required if the data might have a comma in it, like a date string.
265
                [% t('If loading patron attributes, the \'patron_attributes\' field should contain a comma-separated list of attribute types and values. The attribute type code and a colon should precede each value. For example:') %] <b>[% t('INSTID:12345,LANG:fr') %]</b> [% t('or') %] <b>[% t('STARTDATE:January 1 2010,TRACK:Day') %]</b>[% t('. If an input record has more than one attribute, the fields should either be entered as an unquoted string (previous examples), or with each field wrapped in separate double quotes and delimited by a comma:') %] <b>[% t('&#34;STARTDATE:January 1, 2010&#34;,&#34;TRACK:Day&#34;') %]</b>.  [% t('The second syntax would be required if the data might have a comma in it, like a date string.') %]
265
            </li>
266
            </li>
266
        [% END %]
267
        [% END %]
267
268
268
        <li>
269
        <li>
269
            The fields 'branchcode' and 'categorycode' are <b>required</b> and <b>must match</b> valid entries in your database.
270
            [% t('The fields \'branchcode\' and \'categorycode\' are') %] <b>[% t('required') %]</b> [% t('and') %] <b>[% t('must match') %]</b> [% t('valid entries in your database.') %]
270
        </li>
271
        </li>
271
272
272
        <li>
273
        <li>
273
            'password' should be stored in plaintext, and will be converted to a Bcrypt hash (if your passwords are already encrypted, talk to your system administrator about options).
274
            [% t('\'password\' should be stored in plaintext, and will be converted to a Bcrypt hash (if your passwords are already encrypted, talk to your system administrator about options).') %]
274
        </li>
275
        </li>
275
276
276
        <li>
277
        <li>
277
            Date formats should match your system preference, and <b>must</b> be zero-padded, e.g. '01/02/2008'.  Alternatively,
278
            [% t('Date formats should match your system preference, and') %] <b>[% t('must') %]</b> [% t('be zero-padded, e.g. \'01/02/2008\'.') %]  [% t('Alternatively,') %]
278
you can supply dates in ISO format (e.g., '2010-10-28').
279
[% t('you can supply dates in ISO format (e.g., \'2010-10-28\').') %]
279
        </li>
280
        </li>
280
    </ul>
281
    </ul>
281
</div>
282
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt (-60 / +61 lines)
Lines 1-9 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% USE Branches %]
4
[% USE Branches %]
4
[% SET footerjs = 1 %]
5
[% SET footerjs = 1 %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
<title>Koha &rsaquo; Tools &rsaquo; Inventory</title>
7
<title>[% t('Koha › Tools › Inventory') %]</title>
7
[% INCLUDE 'doc-head-close.inc' %]
8
[% INCLUDE 'doc-head-close.inc' %]
8
[% Asset.css("css/datatables.css") %]
9
[% Asset.css("css/datatables.css") %]
9
</head>
10
</head>
Lines 12-71 Link Here
12
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'cat-search.inc' %]
14
[% INCLUDE 'cat-search.inc' %]
14
15
15
<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; [% IF (loop) %]<a href="/cgi-bin/koha/tools/inventory.pl">Inventory</a> &rsaquo; Results[% ELSE %]Inventory[% END %]</div>
16
<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> › [% IF (loop) %]<a href="/cgi-bin/koha/tools/inventory.pl">[% t('Inventory') %]</a> [% t('› Results') %][% ELSE %][% t('Inventory') %][% END %]</div>
16
17
17
<div id="doc3" class="yui-t2">
18
<div id="doc3" class="yui-t2">
18
19
19
   <div id="bd">
20
   <div id="bd">
20
    <div id="yui-main">
21
    <div id="yui-main">
21
    <div class="yui-b">
22
    <div class="yui-b">
22
    <h1>Inventory</h1>
23
    <h1>[% t('Inventory') %]</h1>
23
    [% IF (moddatecount) %]<div class="dialog message">[% moddatecount %] items modified : datelastseen set to [% date | $KohaDates %]</div>
24
    [% IF (moddatecount) %]<div class="dialog message">[% moddatecount %] [% t('items modified : datelastseen set to') %] [% date | $KohaDates %]</div>
24
    <div class="dialog alert">Number of potential barcodes read: [% LinesRead %]</div>[% END %]
25
    <div class="dialog alert">[% t('Number of potential barcodes read:') %] [% LinesRead %]</div>[% END %]
25
    [% IF (errorfile) %]<div class="dialog alert">[% errorfile %] can't be opened</div>[% END %]
26
    [% IF (errorfile) %]<div class="dialog alert">[% errorfile %] [% t('can\'t be opened') %]</div>[% END %]
26
    [% IF (err_length && err_length==1) %]<div class="dialog alert">There was 1 barcode that was too long.</div>[% END %]
27
    [% IF (err_length && err_length==1) %]<div class="dialog alert">[% t('There was 1 barcode that was too long.') %]</div>[% END %]
27
    [% IF (err_length && err_length>1) %]<div class="dialog alert">There were [% err_length %] barcodes that were too long.</div>[% END %]
28
    [% IF (err_length && err_length>1) %]<div class="dialog alert">[% t('There were') %] [% err_length %] [% t('barcodes that were too long.') %]</div>[% END %]
28
    [% IF (err_data && err_data==1) %]<div class="dialog alert">There was 1 barcode that contained at least one unprintable character.</div>[% END %]
29
    [% IF (err_data && err_data==1) %]<div class="dialog alert">[% t('There was 1 barcode that contained at least one unprintable character.') %]</div>[% END %]
29
    [% IF (err_data && err_data>1) %]<div class="dialog alert">There were [% err_data %] barcodes that contained at least one unprintable character.</div>[% END %]
30
    [% IF (err_data && err_data>1) %]<div class="dialog alert">[% t('There were') %] [% err_data %] [% t('barcodes that contained at least one unprintable character.') %]</div>[% END %]
30
    [% FOREACH error IN errorloop %]
31
    [% FOREACH error IN errorloop %]
31
        <div class="dialog alert">
32
        <div class="dialog alert">
32
            [% error.barcode %]
33
            [% error.barcode %]
33
            [% IF (error.ERR_BARCODE) %]: barcode not found[% END %]
34
            [% IF (error.ERR_BARCODE) %][% t(': barcode not found') %][% END %]
34
            [% IF (error.ERR_WTHDRAWN) %]: item withdrawn[% END %]
35
            [% IF (error.ERR_WTHDRAWN) %][% t(': item withdrawn') %][% END %]
35
            [% IF (error.ERR_ONLOAN_RET) %]: item was on loan. It was returned before marked as seen[% END %]
36
            [% IF (error.ERR_ONLOAN_RET) %][% t(': item was on loan. It was returned before marked as seen') %][% END %]
36
            [% IF (error.ERR_ONLOAN_NOT_RET) %]: item was on loan. couldn't be returned.[% END %]
37
            [% IF (error.ERR_ONLOAN_NOT_RET) %][% t(': item was on loan. couldn\'t be returned.') %][% END %]
37
        </div>
38
        </div>
38
    [% END %]
39
    [% END %]
39
       [% UNLESS op %]
40
       [% UNLESS op %]
40
    <div class="yui-g">
41
    <div class="yui-g">
41
    <form method="post" id="inventory_form" action="/cgi-bin/koha/tools/inventory.pl" enctype="multipart/form-data">
42
    <form method="post" id="inventory_form" action="/cgi-bin/koha/tools/inventory.pl" enctype="multipart/form-data">
42
        <fieldset class="rows">
43
        <fieldset class="rows">
43
          <legend>Use a barcode file</legend>
44
          <legend>[% t('Use a barcode file') %]</legend>
44
          <ol>
45
          <ol>
45
            <li><label for="uploadbarcodes">Barcode file: </label> <input type="file" id="uploadbarcodes" name="uploadbarcodes" /></li>
46
            <li><label for="uploadbarcodes">[% t('Barcode file:') %] </label> <input type="file" id="uploadbarcodes" name="uploadbarcodes" /></li>
46
            <li><label for="setdate">Set inventory date to:</label> <input type="text" id="setdate" name="setdate" value="[% today | $KohaDates %]" class="datepicker" disabled /></li>
47
            <li><label for="setdate">[% t('Set inventory date to:') %]</label> <input type="text" id="setdate" name="setdate" value="[% today | $KohaDates %]" class="datepicker" disabled="" /></li>
47
            <li><label for="compareinv2barcd">Compare barcodes list to results: </label><input type="checkbox" name="compareinv2barcd" id="compareinv2barcd" disabled /></li>
48
            <li><label for="compareinv2barcd">[% t('Compare barcodes list to results:') %] </label><input type="checkbox" name="compareinv2barcd" id="compareinv2barcd" disabled="" /></li>
48
            <li><label for="dont_checkin">Do not check in items scanned during inventory: </label><input type="checkbox" name="dont_checkin" id="dont_checkin" disabled /></li>
49
            <li><label for="dont_checkin">[% t('Do not check in items scanned during inventory:') %] </label><input type="checkbox" name="dont_checkin" id="dont_checkin" disabled="" /></li>
49
          </ol>
50
          </ol>
50
        </fieldset>
51
        </fieldset>
51
52
52
        <fieldset class="rows">
53
        <fieldset class="rows">
53
        <legend>Item location filters</legend>
54
        <legend>[% t('Item location filters') %]</legend>
54
        <ol><li>
55
        <ol><li>
55
        <label for="branch">Library: </label>
56
        <label for="branch">[% t('Library:') %] </label>
56
            <input type="radio" name="branch" value="homebranch"> Home library</input>
57
            <input type="radio" name="branch" value="homebranch"> [% t('Home library') %]</input>
57
            <input type="radio" name="branch" value="holdingbranch"> Current library</input>
58
            <input type="radio" name="branch" value="holdingbranch"> [% t('Current library') %]</input>
58
        </li><li>
59
        </li><li>
59
        <label for="branchloop">Library: </label><select id="branchloop" name="branchcode" style="width:12em;">
60
        <label for="branchloop">[% t('Library:') %] </label><select id="branchloop" name="branchcode" style="width:12em;">
60
            <option value="">All libraries</option>
61
            <option value="">[% t('All libraries') %]</option>
61
            [% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode, unfiltered => 1, ) %]
62
            [% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode, unfiltered => 1, ) %]
62
        </select>
63
        </select>
63
        </li>
64
        </li>
64
        [% IF (authorised_values) %]
65
        [% IF (authorised_values) %]
65
        <li>
66
        <li>
66
            <label for="locationloop">Shelving location (items.location) is: </label>
67
            <label for="locationloop">[% t('Shelving location (items.location) is:') %] </label>
67
        <select id="locationloop" name="location">
68
        <select id="locationloop" name="location">
68
                <option value="">Filter location</option>
69
                <option value="">[% t('Filter location') %]</option>
69
        [% FOREACH value IN authorised_values %]
70
        [% FOREACH value IN authorised_values %]
70
            [% IF (value.selected) %]
71
            [% IF (value.selected) %]
71
                <option value="[% value.authorised_value %]" selected="selected">[% value.lib %]</option>
72
                <option value="[% value.authorised_value %]" selected="selected">[% value.lib %]</option>
Lines 76-92 Link Here
76
        </select>        </li>
77
        </select>        </li>
77
        [% END %]
78
        [% END %]
78
        <li>
79
        <li>
79
            <label for="minlocation">Item callnumber between: </label>
80
            <label for="minlocation">[% t('Item callnumber between:') %] </label>
80
                <input type="text" name="minlocation" id="minlocation" value="[% minlocation %]" /> (items.itemcallnumber)  </li>
81
                <input type="text" name="minlocation" id="minlocation" value="[% minlocation %]" /> [% t('(items.itemcallnumber)') %]  </li>
81
           <li><label for="maxlocation">...and: </label>
82
           <li><label for="maxlocation">[% t('...and:') %] </label>
82
                <input type="text" name="maxlocation" id="maxlocation" value="[% maxlocation %]" />
83
                <input type="text" name="maxlocation" id="maxlocation" value="[% maxlocation %]" />
83
        </li>
84
        </li>
84
    </ol>
85
    </ol>
85
    </fieldset>
86
    </fieldset>
86
87
87
    <fieldset class="rows" id="optionalfilters">
88
    <fieldset class="rows" id="optionalfilters">
88
            <legend>Optional filters for inventory list or comparing barcodes</legend>
89
            <legend>[% t('Optional filters for inventory list or comparing barcodes') %]</legend>
89
            <br/>
90
            <br />
90
            <div id="statuses" style="display: block;">
91
            <div id="statuses" style="display: block;">
91
                  [% FOREACH status IN statuses %]
92
                  [% FOREACH status IN statuses %]
92
                      [% IF (status.values) %]
93
                      [% IF (status.values) %]
Lines 98-104 Link Here
98
                                    <li>
99
                                    <li>
99
                                    <label for="[% value.id %]">
100
                                    <label for="[% value.id %]">
100
                                        [% IF value.authorised_value==0 %]
101
                                        [% IF value.authorised_value==0 %]
101
                                            For loan
102
                                            [% t('For loan') %]
102
                                        [% ELSE %]
103
                                        [% ELSE %]
103
                                            [% value.lib %]
104
                                            [% value.lib %]
104
                                        [% END %]
105
                                        [% END %]
Lines 114-126 Link Here
114
                </div>
115
                </div>
115
        <ol>
116
        <ol>
116
        <li>
117
        <li>
117
            <br/>
118
            <br />
118
            <label for="datelastseen">Last inventory date:</label>
119
            <label for="datelastseen">[% t('Last inventory date:') %]</label>
119
            <input type="text" id="datelastseen" name="datelastseen" value="[% datelastseen | $KohaDates %]" class="datepicker" />
120
            <input type="text" id="datelastseen" name="datelastseen" value="[% datelastseen | $KohaDates %]" class="datepicker" />
120
            (Skip records marked as seen on or after this date.)
121
            [% t('(Skip records marked as seen on or after this date.)') %]
121
        </li>
122
        </li>
122
        <li>
123
        <li>
123
            <label for="ignoreissued">Skip items on loan: </label>
124
            <label for="ignoreissued">[% t('Skip items on loan:') %] </label>
124
            [% IF (ignoreissued) %]
125
            [% IF (ignoreissued) %]
125
                <input type="checkbox" id="ignoreissued" name="ignoreissued" checked="checked" />
126
                <input type="checkbox" id="ignoreissued" name="ignoreissued" checked="checked" />
126
            [% ELSE %]
127
            [% ELSE %]
Lines 131-141 Link Here
131
    </fieldset>
132
    </fieldset>
132
133
133
        <fieldset class="rows">
134
        <fieldset class="rows">
134
          <legend>Additional options</legend>
135
          <legend>[% t('Additional options') %]</legend>
135
          <ol>
136
          <ol>
136
137
137
        <li>
138
        <li>
138
           <label for="CSVexport">Export to CSV file: </label>
139
           <label for="CSVexport">[% t('Export to CSV file:') %] </label>
139
           <input type="checkbox" name="CSVexport" id="CSVexport" />
140
           <input type="checkbox" name="CSVexport" id="CSVexport" />
140
        </li>
141
        </li>
141
        </ol>
142
        </ol>
Lines 156-178 Link Here
156
    <input type="hidden" name="datelastseen" value="[% datelastseen %]" />
157
    <input type="hidden" name="datelastseen" value="[% datelastseen %]" />
157
158
158
    [% UNLESS uploadedbarcodesflag %]
159
    [% UNLESS uploadedbarcodesflag %]
159
      <div><a href="#" class="checkall"><i class="fa fa-check"></i> Select all</a> <a href="#" class="clearall"><i class="fa fa-remove"></i> Clear all</a></div>
160
      <div><a href="#" class="checkall"><i class="fa fa-check"></i> [% t('Select all') %]</a> <a href="#" class="clearall"><i class="fa fa-remove"></i> [% t('Clear all') %]</a></div>
160
    [% END %]
161
    [% END %]
161
162
162
    <table id="inventoryt">
163
    <table id="inventoryt">
163
    <thead>
164
    <thead>
164
        <tr>
165
        <tr>
165
            [% UNLESS uploadedbarcodesflag %]<th>Seen</th>[% END %]
166
            [% UNLESS uploadedbarcodesflag %]<th>[% t('Seen') %]</th>[% END %]
166
            <th>Barcode</th>
167
            <th>[% t('Barcode') %]</th>
167
            <th>Call number</th>
168
            <th>[% t('Call number') %]</th>
168
            <th>Library</th>
169
            <th>[% t('Library') %]</th>
169
            <th>Title</th>
170
            <th>[% t('Title') %]</th>
170
            <th>Not for loan</th>
171
            <th>[% t('Not for loan') %]</th>
171
            <th>Lost</th>
172
            <th>[% t('Lost') %]</th>
172
            <th>Damaged</th>
173
            <th>[% t('Damaged') %]</th>
173
            <th>Withdrawn</th>
174
            <th>[% t('Withdrawn') %]</th>
174
            <th>Last seen</th>
175
            <th>[% t('Last seen') %]</th>
175
            <th>Problems</th>
176
            <th>[% t('Problems') %]</th>
176
        </tr>
177
        </tr>
177
    </thead>
178
    </thead>
178
    <tbody>
179
    <tbody>
Lines 194-200 Link Here
194
            <td>
195
            <td>
195
                <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% result.biblionumber %]" class="openWin">[% result.title | html %]</a>
196
                <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% result.biblionumber %]" class="openWin">[% result.title | html %]</a>
196
                [% IF ( result.author ) %]
197
                [% IF ( result.author ) %]
197
                    by <span class="author">[% result.author | html %]</span>
198
                    [% t('by') %] <span class="author">[% result.author | html %]</span>
198
                [% END %]
199
                [% END %]
199
            </td>
200
            </td>
200
            <td>
201
            <td>
Lines 215-229 Link Here
215
            <td>
216
            <td>
216
            [% FOREACH problem IN result.problems %]
217
            [% FOREACH problem IN result.problems %]
217
                [% IF problem.key == 'wrongplace' %]
218
                [% IF problem.key == 'wrongplace' %]
218
                    Found in wrong place<br/>
219
                    [% t('Found in wrong place') %]<br />
219
                [% ELSIF problem.key == 'changestatus' %]
220
                [% ELSIF problem.key == 'changestatus' %]
220
                    Unknown not-for-loan status<br/>
221
                    [% t('Unknown not-for-loan status') %]<br />
221
                [% ELSIF problem.key == 'not_scanned' %]
222
                [% ELSIF problem.key == 'not_scanned' %]
222
                    Missing (not scanned)<br/>
223
                    [% t('Missing (not scanned)') %]<br />
223
                [% ELSIF problem.key == 'checkedout' %]
224
                [% ELSIF problem.key == 'checkedout' %]
224
                    Still checked out<br/>
225
                    [% t('Still checked out') %]<br />
225
                [% ELSIF problem.key == 'no_barcode' %]
226
                [% ELSIF problem.key == 'no_barcode' %]
226
                    No barcode<br/>
227
                    [% t('No barcode') %]<br />
227
                [% END %]
228
                [% END %]
228
            [% END %]
229
            [% END %]
229
            </td>
230
            </td>
Lines 233-242 Link Here
233
    </table>
234
    </table>
234
    <div class="spacer"></div>
235
    <div class="spacer"></div>
235
    [% UNLESS uploadedbarcodesflag %]
236
    [% UNLESS uploadedbarcodesflag %]
236
      <div style="padding : .3em 0"><a href="#" class="checkall"><i class="fa fa-check"></i> Select all</a> <a href="#" class="clearall"><i class="fa fa-remove"></i> Clear all</a></div>
237
      <div style="padding : .3em 0"><a href="#" class="checkall"><i class="fa fa-check"></i> [% t('Select all') %]</a> <a href="#" class="clearall"><i class="fa fa-remove"></i> [% t('Clear all') %]</a></div>
237
      <input type="submit" id="markseenandquit" value="Mark seen and quit" />
238
      <input type="submit" id="markseenandquit" value="Mark seen and quit" />
238
      <input type="submit" value="Mark seen and continue &gt;&gt;" id="markseenandcontinuebutton" />
239
      <input type="submit" value="Mark seen and continue >>" id="markseenandcontinuebutton" />
239
      <input type="submit" value="Continue without marking &gt;&gt;" id="continuewithoutmarkingbutton" class="submit" />
240
      <input type="submit" value="Continue without marking >>" id="continuewithoutmarkingbutton" class="submit" />
240
    [% END %]
241
    [% END %]
241
    </form>
242
    </form>
242
243
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt (-59 / +60 lines)
Lines 1-9 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% USE Branches %]
4
[% USE Branches %]
4
[% SET footerjs = 1 %]
5
[% SET footerjs = 1 %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
<title>Koha &rsaquo; Tools &rsaquo; News</title>
7
<title>[% t('Koha › Tools › News') %]</title>
7
[% INCLUDE 'doc-head-close.inc' %]
8
[% INCLUDE 'doc-head-close.inc' %]
8
[% IF ( opac_news_count ) %]
9
[% IF ( opac_news_count ) %]
9
    [% Asset.css("css/datatables.css") %]
10
    [% Asset.css("css/datatables.css") %]
Lines 14-21 Link Here
14
[% INCLUDE 'header.inc' %]
15
[% INCLUDE 'header.inc' %]
15
[% INCLUDE 'cat-search.inc' %]
16
[% INCLUDE 'cat-search.inc' %]
16
17
17
<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; [% IF ( add_form ) %]<a href="/cgi-bin/koha/tools/koha-news.pl">News</a> &rsaquo; [% IF ( id ) %]
18
<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> › [% IF ( add_form ) %]<a href="/cgi-bin/koha/tools/koha-news.pl">[% t('News') %]</a> › [% IF ( id ) %]
18
Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div>
19
[% t('Edit news item') %][% ELSE %][% t('Add news item') %][% END %][% ELSE %][% t('News') %][% END %]</div>
19
20
20
[% IF ( add_form ) %]
21
[% IF ( add_form ) %]
21
    <div class="main container-fluid">
22
    <div class="main container-fluid">
Lines 30-39 Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div> Link Here
30
31
31
[% UNLESS ( add_form ) %]
32
[% UNLESS ( add_form ) %]
32
    [% IF error_message == 'title_missing' %]
33
    [% IF error_message == 'title_missing' %]
33
        <div class="dialog alert">Error: Required news title missing!</div>
34
        <div class="dialog alert">[% t('Error: Required news title missing!') %]</div>
34
    [% END %]
35
    [% END %]
35
<div id="toolbar" class="btn-toolbar">
36
<div id="toolbar" class="btn-toolbar">
36
    <a class="btn btn-default btn-sm" id="newentry" href="/cgi-bin/koha/tools/koha-news.pl?op=add_form&amp;lang=[% lang %]"><i class="fa fa-plus"></i> New entry</a>
37
    <a class="btn btn-default btn-sm" id="newentry" href="/cgi-bin/koha/tools/koha-news.pl?op=add_form&lang=[% lang %]"><i class="fa fa-plus"></i> [% t('New entry') %]</a>
37
</div>
38
</div>
38
[% END %]
39
[% END %]
39
40
Lines 41-153 Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div> Link Here
41
    [% IF ( op == 'add' ) %][% default_lang = lang %]
42
    [% IF ( op == 'add' ) %][% default_lang = lang %]
42
    [% ELSE %][% default_lang = new_detail.lang %]
43
    [% ELSE %][% default_lang = new_detail.lang %]
43
    [% END %]
44
    [% END %]
44
        <form name="add_form" method="post" action="/cgi-bin/koha/tools/koha-news.pl" >
45
        <form name="add_form" method="post" action="/cgi-bin/koha/tools/koha-news.pl">
45
            <input type="hidden" name="op" value="[% op %]" />
46
            <input type="hidden" name="op" value="[% op %]" />
46
            <input type="hidden" name="id" value="[% id %]" />
47
            <input type="hidden" name="id" value="[% id %]" />
47
			<fieldset class="rows">
48
			<fieldset class="rows">
48
            <legend>OPAC and Koha news</legend>
49
            <legend>[% t('OPAC and Koha news') %]</legend>
49
           <ol> <li>
50
           <ol> <li>
50
            <label for="lang">Display location:</label>
51
            <label for="lang">[% t('Display location:') %]</label>
51
            <select id="lang" name="lang">
52
            <select id="lang" name="lang">
52
                [% IF ( default_lang == "" ) %]
53
                [% IF ( default_lang == "" ) %]
53
                <option value="" selected="selected">All</option>
54
                <option value="" selected="selected">[% t('All') %]</option>
54
                [% ELSE %]
55
                [% ELSE %]
55
                <option value=""                    >All</option>
56
                <option value="">[% t('All') %]</option>
56
                [% END %]
57
                [% END %]
57
                [% IF ( default_lang == "koha" ) %]
58
                [% IF ( default_lang == "koha" ) %]
58
                <option value="koha" selected="selected">Librarian interface</option>
59
                <option value="koha" selected="selected">[% t('Librarian interface') %]</option>
59
                [% ELSE %]
60
                [% ELSE %]
60
                <option value="koha"                    >Librarian interface</option>
61
                <option value="koha">[% t('Librarian interface') %]</option>
61
                [% END %]
62
                [% END %]
62
                [% IF ( default_lang == "slip" ) %]
63
                [% IF ( default_lang == "slip" ) %]
63
                <option value="slip" selected="selected">Slip</option>
64
                <option value="slip" selected="selected">[% t('Slip') %]</option>
64
                [% ELSE %]
65
                [% ELSE %]
65
                <option value="slip"                    >Slip</option>
66
                <option value="slip">[% t('Slip') %]</option>
66
                [% END %]
67
                [% END %]
67
                [% FOREACH lang_lis IN lang_list %]
68
                [% FOREACH lang_lis IN lang_list %]
68
                [% IF ( lang_lis.language == default_lang ) %]
69
                [% IF ( lang_lis.language == default_lang ) %]
69
                    <option value="[% lang_lis.language %]" selected="selected">OPAC ([% lang_lis.language %])</option>
70
                    <option value="[% lang_lis.language %]" selected="selected">[% t('OPAC (') %][% lang_lis.language %])</option>
70
                [% ELSE %]
71
                [% ELSE %]
71
                    <option value="[% lang_lis.language %]"                    >OPAC ([% lang_lis.language %])</option>
72
                    <option value="[% lang_lis.language %]">[% t('OPAC (') %][% lang_lis.language %])</option>
72
                [% END %]
73
                [% END %]
73
                [% END %]
74
                [% END %]
74
            </select>
75
            </select>
75
            </li>
76
            </li>
76
            <li>
77
            <li>
77
                <label for="branch">Library: </label>
78
                <label for="branch">[% t('Library:') %] </label>
78
                <select id="branch" name="branch">
79
                <select id="branch" name="branch">
79
                    [% IF ( new_detail.branchcode == '' ) %]
80
                    [% IF ( new_detail.branchcode == '' ) %]
80
                        <option value="" selected="selected">All libraries</option>
81
                        <option value="" selected="selected">[% t('All libraries') %]</option>
81
                    [% ELSE %]
82
                    [% ELSE %]
82
                        <option value=""         >All libraries</option>
83
                        <option value="">[% t('All libraries') %]</option>
83
                    [% END %]
84
                    [% END %]
84
                    [% PROCESS options_for_libraries libraries => Branches.all( selected => new_detail.branchcode, unfiltered => 1, ) %]
85
                    [% PROCESS options_for_libraries libraries => Branches.all( selected => new_detail.branchcode, unfiltered => 1, ) %]
85
                </select>
86
                </select>
86
            </li>
87
            </li>
87
            <li>
88
            <li>
88
                <label for="title" class="required">Title: </label>
89
                <label for="title" class="required">[% t('Title:') %] </label>
89
                <input id="title" size="30" type="text" name="title" value="[% new_detail.title %]" required="required" class="required" /> <span class="required">Required</span>
90
                <input id="title" size="30" type="text" name="title" value="[% new_detail.title %]" required="required" class="required" /> <span class="required">[% t('Required') %]</span>
90
            </li>
91
            </li>
91
            <li>
92
            <li>
92
                <label for="from">Publication date: </label>
93
                <label for="from">[% t('Publication date:') %] </label>
93
                <input id="from" type="text" name="timestamp" size="15" value="[% new_detail.timestamp %]" class="datepickerfrom" />
94
                <input id="from" type="text" name="timestamp" size="15" value="[% new_detail.timestamp %]" class="datepickerfrom" />
94
				<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
95
				<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
95
            </li>
96
            </li>
96
            <li>
97
            <li>
97
                <label for="to">Expiration date: </label>
98
                <label for="to">[% t('Expiration date:') %] </label>
98
                <input id="to" type="text" name="expirationdate" size="15" value="[% new_detail.expirationdate %]" class="datepickerto" />
99
                <input id="to" type="text" name="expirationdate" size="15" value="[% new_detail.expirationdate %]" class="datepickerto" />
99
				<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
100
				<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
100
            </li>
101
            </li>
101
            <li>
102
            <li>
102
                <label for="number">Appear in position: </label>
103
                <label for="number">[% t('Appear in position:') %] </label>
103
                [% IF ( new_detail.number ) %]
104
                [% IF ( new_detail.number ) %]
104
                    <input id="number" size="3" name="number" type="text" value="[% new_detail.number %]" />
105
                    <input id="number" size="3" name="number" type="text" value="[% new_detail.number %]" />
105
                [% ELSE %]
106
                [% ELSE %]
106
                    <input id="number" size="3" name="number" type="text" />
107
                    <input id="number" size="3" name="number" type="text" />
107
                [% END %]
108
                [% END %]
108
            </li>
109
            </li>
109
            <li><label for="content">News: </label>
110
            <li><label for="content">[% t('News:') %] </label>
110
            <textarea name="content" id="content"  cols="75" rows="10">[% new_detail.content %]</textarea>
111
            <textarea name="content" id="content" cols="75" rows="10">[% new_detail.content %]</textarea>
111
            </li>
112
            </li>
112
            </ol>
113
            </ol>
113
			</fieldset>
114
			</fieldset>
114
  
115
  
115
                <fieldset class="action"><input class="button" type="submit" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/tools/koha-news.pl">Cancel</a></fieldset>
116
                <fieldset class="action"><input class="button" type="submit" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/tools/koha-news.pl">[% t('Cancel') %]</a></fieldset>
116
        </form>
117
        </form>
117
    [% ELSE %]
118
    [% ELSE %]
118
        <div style="margin-bottom:5px;">
119
        <div style="margin-bottom:5px;">
119
        <form name="add_form" method="post" action="/cgi-bin/koha/tools/koha-news.pl" >
120
        <form name="add_form" method="post" action="/cgi-bin/koha/tools/koha-news.pl">
120
            <label for="lang">Display location:</label>
121
            <label for="lang">[% t('Display location:') %]</label>
121
            <select name="lang" id="lang">
122
            <select name="lang" id="lang">
122
            [% IF ( lang == "" ) %]
123
            [% IF ( lang == "" ) %]
123
            <option value=""     selected="selected">All</option>
124
            <option value="" selected="selected">[% t('All') %]</option>
124
            [% ELSE %]
125
            [% ELSE %]
125
            <option value=""             >All</option>
126
            <option value="">[% t('All') %]</option>
126
            [% END %]
127
            [% END %]
127
            [% IF ( lang == "koha" ) %]
128
            [% IF ( lang == "koha" ) %]
128
            <option value="koha" selected="selected">Librarian interface</option>
129
            <option value="koha" selected="selected">[% t('Librarian interface') %]</option>
129
            [% ELSE %]
130
            [% ELSE %]
130
            <option value="koha"         >Librarian interface</option>
131
            <option value="koha">[% t('Librarian interface') %]</option>
131
            [% END %]
132
            [% END %]
132
            [% IF ( lang == "slip" ) %]
133
            [% IF ( lang == "slip" ) %]
133
            <option value="slip" selected="selected">Slip</option>
134
            <option value="slip" selected="selected">[% t('Slip') %]</option>
134
            [% ELSE %]
135
            [% ELSE %]
135
            <option value="slip"         >Slip</option>
136
            <option value="slip">[% t('Slip') %]</option>
136
            [% END %]
137
            [% END %]
137
                [% FOREACH lang_lis IN lang_list %]
138
                [% FOREACH lang_lis IN lang_list %]
138
                [% IF ( lang_lis.language == lang ) %]
139
                [% IF ( lang_lis.language == lang ) %]
139
                    <option value="[% lang_lis.language %]" selected="selected">OPAC ([% lang_lis.language %])</option>
140
                    <option value="[% lang_lis.language %]" selected="selected">[% t('OPAC (') %][% lang_lis.language %])</option>
140
                [% ELSE %]
141
                [% ELSE %]
141
                    <option value="[% lang_lis.language %]"         >OPAC ([% lang_lis.language %])</option>
142
                    <option value="[% lang_lis.language %]">[% t('OPAC (') %][% lang_lis.language %])</option>
142
                [% END %]
143
                [% END %]
143
                [% END %]
144
                [% END %]
144
            </select>
145
            </select>
145
            <label for="branch">Library: </label>
146
            <label for="branch">[% t('Library:') %] </label>
146
            <select id="branch" name="branch">
147
            <select id="branch" name="branch">
147
                [% IF ( branchcode == "" ) %]
148
                [% IF ( branchcode == "" ) %]
148
                <option value="" selected="selected">All libraries</option>
149
                <option value="" selected="selected">[% t('All libraries') %]</option>
149
                [% ELSE %]
150
                [% ELSE %]
150
                <option value=""         >All libraries</option>
151
                <option value="">[% t('All libraries') %]</option>
151
                [% END %]
152
                [% END %]
152
                [% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode, unfiltered => 1, ) %]
153
                [% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode, unfiltered => 1, ) %]
153
            </select>
154
            </select>
Lines 158-173 Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div> Link Here
158
        <form id="del_form" method="post" action="/cgi-bin/koha/tools/koha-news.pl">
159
        <form id="del_form" method="post" action="/cgi-bin/koha/tools/koha-news.pl">
159
                <table id="newst">
160
                <table id="newst">
160
                   <thead> <tr>
161
                   <thead> <tr>
161
                        <th>&nbsp;</th>
162
                        <th> </th>
162
                        <th>Location</th>
163
                        <th>[% t('Location') %]</th>
163
                        <th>Library</th>
164
                        <th>[% t('Library') %]</th>
164
                        <th>Number</th>
165
                        <th>[% t('Number') %]</th>
165
                        <th class="title-string">Publication date</th>
166
                        <th class="title-string">[% t('Publication date') %]</th>
166
                        <th class="title-string">Expiration date</th>
167
                        <th class="title-string">[% t('Expiration date') %]</th>
167
                        <th>Title</th>
168
                        <th>[% t('Title') %]</th>
168
                        <th>Author</th>
169
                        <th>[% t('Author') %]</th>
169
                        <th>News</th>
170
                        <th>[% t('News') %]</th>
170
                        <th>Actions</th>
171
                        <th>[% t('Actions') %]</th>
171
                    </tr></thead>
172
                    </tr></thead>
172
                    <tbody>[% FOREACH opac_new IN opac_news %]
173
                    <tbody>[% FOREACH opac_new IN opac_news %]
173
                         [% IF ( opac_new.expired ) %]
174
                         [% IF ( opac_new.expired ) %]
Lines 180-209 Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div> Link Here
180
                            </td>
181
                            </td>
181
                            <td>[% SWITCH opac_new.lang %]
182
                            <td>[% SWITCH opac_new.lang %]
182
                                [%   CASE "koha" %]
183
                                [%   CASE "koha" %]
183
                                    Librarian interface
184
                                    [% t('Librarian interface') %]
184
                                [%   CASE "slip" %]
185
                                [%   CASE "slip" %]
185
                                    Slip
186
                                    [% t('Slip') %]
186
                                [%   CASE "" %]
187
                                [%   CASE "" %]
187
                                    All
188
                                    [% t('All') %]
188
                                [%   CASE %]
189
                                [%   CASE %]
189
                                    OPAC ([% opac_new.lang %])
190
                                    [% t('OPAC (') %][% opac_new.lang %])
190
                                [% END %]
191
                                [% END %]
191
                             </td>
192
                             </td>
192
                            <td>[% IF ( opac_new.branchcode == "" ) -%]
193
                            <td>[% IF ( opac_new.branchcode == "" ) -%]
193
                                All libraries
194
                                [% t('All libraries') %]
194
                                [% ELSE %][% opac_new.branchname %]
195
                                [% ELSE %][% opac_new.branchname %]
195
                                [% END %]</td>
196
                                [% END %]</td>
196
                            <td>[% opac_new.number %]</td>
197
                            <td>[% opac_new.number %]</td>
197
                            <td><span title="[% opac_new.newdate %]">[% opac_new.newdate | $KohaDates %]</span></td>
198
                            <td><span title="[% opac_new.newdate %]">[% opac_new.newdate | $KohaDates %]</span></td>
198
                            <td><span title="[% opac_new.expirationdate %]">[% opac_new.expirationdate | $KohaDates %] [% IF ( opac_new.expired ) %](<span class="expired">expired</span>)[% END %]</span></td>
199
                            <td><span title="[% opac_new.expirationdate %]">[% opac_new.expirationdate | $KohaDates %] [% IF ( opac_new.expired ) %](<span class="expired">[% t('expired') %]</span>)[% END %]</span></td>
199
                            <td>[% opac_new.title %]</td>
200
                            <td>[% opac_new.title %]</td>
200
                            <td>[% opac_new.author_title %] [% opac_new.author_firstname %] [% opac_new.author_surname %]</td>
201
                            <td>[% opac_new.author_title %] [% opac_new.author_firstname %] [% opac_new.author_surname %]</td>
201
                           <td>
202
                           <td>
202
                                [% opac_new.content %]
203
                                [% opac_new.content %]
203
                            </td>
204
                            </td>
204
                            <td class="actions">
205
                            <td class="actions">
205
                                <a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form&amp;id=[% opac_new.idnew %]" class="btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a>
206
                                <a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form&id=[% opac_new.idnew %]" class="btn btn-default btn-xs"><i class="fa fa-pencil"></i> [% t('Edit') %]</a>
206
                                <a href="/cgi-bin/koha/tools/koha-news.pl?op=del&amp;ids=[% opac_new.idnew %]" class="delete_news btn btn-default btn-xs"><i class="fa fa-trash"></i> Delete</a>
207
                                <a href="/cgi-bin/koha/tools/koha-news.pl?op=del&ids=[% opac_new.idnew %]" class="delete_news btn btn-default btn-xs"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
207
                            </td>
208
                            </td>
208
                        </tr>
209
                        </tr>
209
                    [% END %]</tbody>
210
                    [% END %]</tbody>
Lines 212-218 Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div> Link Here
212
                <fieldset class="action"><input type="submit" class="button" value="Delete selected" /></fieldset>
213
                <fieldset class="action"><input type="submit" class="button" value="Delete selected" /></fieldset>
213
            </form>
214
            </form>
214
        [% ELSE %]
215
        [% ELSE %]
215
            <div class="dialog message">There are no news items.</div>
216
            <div class="dialog message">[% t('There are no news items.') %]</div>
216
        [% END %]
217
        [% END %]
217
    [% END %]
218
    [% END %]
218
</div>
219
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt (-88 / +89 lines)
Lines 1-9 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% USE Branches %]
4
[% USE Branches %]
4
[% SET footerjs = 1 %]
5
[% SET footerjs = 1 %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
<title>Koha &rsaquo; Tools &rsaquo; Notices[% IF ( add_form or copy_form ) %][% IF ( modify ) %] &rsaquo; Modify notice[% ELSE %] &rsaquo; Add notice[% END %][% END %][% IF ( add_validate or copy_validate) %] &rsaquo; Notice added[% END %][% IF ( delete_confirm ) %] &rsaquo; Confirm deletion[% END %]</title>
7
<title>[% t('Koha › Tools › Notices') %][% IF ( add_form or copy_form ) %][% IF ( modify ) %] [% t('› Modify notice') %][% ELSE %] [% t('› Add notice') %][% END %][% END %][% IF ( add_validate or copy_validate) %] [% t('› Notice added') %][% END %][% IF ( delete_confirm ) %] [% t('› Confirm deletion') %][% END %]</title>
7
[% INCLUDE 'doc-head-close.inc' %]
8
[% INCLUDE 'doc-head-close.inc' %]
8
[% Asset.css("css/datatables.css") %]
9
[% Asset.css("css/datatables.css") %]
9
<style type="text/css">#preview_template .modal-dialog { width : 80%; } .spinner { display: none; } @media (max-width: 767px) { #preview_template { margin: 0; width : auto; } }</style>
10
<style type="text/css">#preview_template .modal-dialog { width : 80%; } .spinner { display: none; } @media (max-width: 767px) { #preview_template { margin: 0; width : auto; } }</style>
Lines 13-33 Link Here
13
[% INCLUDE 'header.inc' %]
14
[% INCLUDE 'header.inc' %]
14
[% INCLUDE 'letters-search.inc' %]
15
[% INCLUDE 'letters-search.inc' %]
15
16
16
<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; [% IF ( add_form or copy_form) %][% IF ( modify ) %]<a href="/cgi-bin/koha/tools/letter.pl">Notices &amp; slips</a> &rsaquo; Modify notice[% ELSE %] <a href="/cgi-bin/koha/tools/letter.pl">Notices &amp; slips</a> &rsaquo; Add notice[% END %][% ELSE %][% IF ( add_validate or copy_validate) %] <a href="/cgi-bin/koha/tools/letter.pl">Notices &amp; slips</a> &rsaquo; Notice added[% ELSE %][% IF ( delete_confirm ) %] <a href="/cgi-bin/koha/tools/letter.pl">Notices &amp; slips</a> &rsaquo; Confirm deletion[% ELSE %]Notices &amp; slips[% END %][% END %][% END %]</div>
17
<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> › [% IF ( add_form or copy_form) %][% IF ( modify ) %]<a href="/cgi-bin/koha/tools/letter.pl">[% t('Notices &amp; slips') %]</a> [% t('› Modify notice') %][% ELSE %] <a href="/cgi-bin/koha/tools/letter.pl">[% t('Notices &amp; slips') %]</a> [% t('› Add notice') %][% END %][% ELSE %][% IF ( add_validate or copy_validate) %] <a href="/cgi-bin/koha/tools/letter.pl">[% t('Notices &amp; slips') %]</a> [% t('› Notice added') %][% ELSE %][% IF ( delete_confirm ) %] <a href="/cgi-bin/koha/tools/letter.pl">[% t('Notices &amp; slips') %]</a> [% t('› Confirm deletion') %][% ELSE %][% t('Notices &amp; slips') %][% END %][% END %][% END %]</div>
17
18
18
<div id="preview_template" class="modal in" tabindex="-1" role="dialog" aria-labelledby="preview_template_label" aria-hidden="true">
19
<div id="preview_template" class="modal in" tabindex="-1" role="dialog" aria-labelledby="preview_template_label" aria-hidden="true">
19
    <div class="modal-dialog modal-lg">
20
    <div class="modal-dialog modal-lg">
20
    <div class="modal-content">
21
    <div class="modal-content">
21
    <div class="modal-header">
22
    <div class="modal-header">
22
        <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
23
        <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
23
        <h3 id="preview_template_label">Preview notice template</h3>
24
        <h3 id="preview_template_label">[% t('Preview notice template') %]</h3>
24
    </div>
25
    </div>
25
    <div class="modal-body">
26
    <div class="modal-body">
26
        <div id="loading"> <img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> Loading </div>
27
        <div id="loading"> <img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> [% t('Loading') %] </div>
27
    </div>
28
    </div>
28
    <div class="modal-footer">
29
    <div class="modal-footer">
29
        <!-- TODO <a href="#" class="btn btn-default" id="preview_template_button" role="button" data-toggle="modal">Convert using the Template Toolkit syntax</a>-->
30
        <!-- TODO <a href="#" class="btn btn-default" id="preview_template_button" role="button" data-toggle="modal">Convert using the Template Toolkit syntax</a>-->
30
        <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
31
        <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">[% t('Close') %]</button>
31
    </div>
32
    </div>
32
    </div>
33
    </div>
33
    </div>
34
    </div>
Lines 45-76 Link Here
45
[% END %]
46
[% END %]
46
47
47
[% IF ( no_op_set ) %]
48
[% IF ( no_op_set ) %]
48
    <h1>Notices &amp; slips</h1>
49
    <h1>[% t('Notices &amp; slips') %]</h1>
49
    <form method="get" action="/cgi-bin/koha/tools/letter.pl" id="selectlibrary">
50
    <form method="get" action="/cgi-bin/koha/tools/letter.pl" id="selectlibrary">
50
      <input type="hidden" name="searchfield" value="[% searchfield | html %]" />
51
      <input type="hidden" name="searchfield" value="[% searchfield | html %]" />
51
    [% UNLESS independant_branch %]
52
    [% UNLESS independant_branch %]
52
      <p>
53
      <p>
53
        Select a library :
54
        [% t('Select a library :') %]
54
            <select name="branchcode" id="branch" style="width:20em;">
55
            <select name="branchcode" id="branch" style="width:20em;">
55
                <option value="*">All libraries</option>
56
                <option value="*">[% t('All libraries') %]</option>
56
                [% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode ) %]
57
                [% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode ) %]
57
            </select>
58
            </select>
58
      </p>
59
      </p>
59
    [% END %]
60
    [% END %]
60
      <div id="toolbar" class="btn-toolbar">
61
      <div id="toolbar" class="btn-toolbar">
61
          <button type="submit" class="btn btn-default btn-sm" id="newnotice"><i class="fa fa-plus"></i> New notice</button>
62
          <button type="submit" class="btn btn-default btn-sm" id="newnotice"><i class="fa fa-plus"></i> [% t('New notice') %]</button>
62
        <input type="hidden" id="op" name="op" />
63
        <input type="hidden" id="op" name="op" />
63
      </div>
64
      </div>
64
    </form>
65
    </form>
65
66
66
		[% IF ( search ) %]
67
		[% IF ( search ) %]
67
        <p>You searched for <b>[% searchfield | html %]</b></p>
68
        <p>[% t('You searched for') %] <b>[% searchfield | html %]</b></p>
68
		[% END %]
69
		[% END %]
69
		[% IF ( letter && !independant_branch) %]
70
		[% IF ( letter && !independant_branch) %]
70
            [% select_for_copy = BLOCK %]
71
            [% select_for_copy = BLOCK %]
71
            <select name="branchcode">
72
            <select name="branchcode">
72
                [% FOREACH l IN Branches.all() %]
73
                [% FOREACH l IN Branches.all() %]
73
                <option value="[% l.branchcode %]">Copy to [% l.branchname %]</option>
74
                <option value="[% l.branchcode %]">[% t('Copy to') %] [% l.branchname %]</option>
74
                [% END %]
75
                [% END %]
75
            </select>
76
            </select>
76
            [% END %]
77
            [% END %]
Lines 79-97 Link Here
79
          <table id="lettert">
80
          <table id="lettert">
80
            <thead>
81
            <thead>
81
              <tr>
82
              <tr>
82
                <th>Library</th>
83
                <th>[% t('Library') %]</th>
83
                <th>Module</th>
84
                <th>[% t('Module') %]</th>
84
                <th>Code</th>
85
                <th>[% t('Code') %]</th>
85
                <th>Name</th>
86
                <th>[% t('Name') %]</th>
86
                <th class="nosort">Copy notice</th>
87
                <th class="nosort">[% t('Copy notice') %]</th>
87
                <th class="nosort">Actions</th>
88
                <th class="nosort">[% t('Actions') %]</th>
88
              </tr>
89
              </tr>
89
            </thead>
90
            </thead>
90
            <tbody>
91
            <tbody>
91
              [% FOREACH lette IN letter %]
92
              [% FOREACH lette IN letter %]
92
                [% can_edit = lette.branchcode || !independant_branch %]
93
                [% can_edit = lette.branchcode || !independant_branch %]
93
                <tr>
94
                <tr>
94
                  <td>[% IF lette.branchname %][% lette.branchname %][% ELSE %](All libraries)[% END %]</td>
95
                  <td>[% IF lette.branchname %][% lette.branchname %][% ELSE %][% t('(All libraries)') %][% END %]</td>
95
                  <td>[% lette.module %]</td>
96
                  <td>[% lette.module %]</td>
96
                  <td>[% lette.code %]</td>
97
                  <td>[% lette.code %]</td>
97
                  <td>[% lette.name %]</td>
98
                  <td>[% lette.name %]</td>
Lines 107-122 Link Here
107
                        [% ELSE %]
108
                        [% ELSE %]
108
                          [% select_for_copy %]
109
                          [% select_for_copy %]
109
                        [% END %]
110
                        [% END %]
110
                        <button class="btn btn-default btn-xs"><i class="fa fa-clone"></i> Copy</button>
111
                        <button class="btn btn-default btn-xs"><i class="fa fa-clone"></i> [% t('Copy') %]</button>
111
                      </form>
112
                      </form>
112
                    [% END %]
113
                    [% END %]
113
                  </td>
114
                  </td>
114
                  <td class="actions">
115
                  <td class="actions">
115
                    [% IF can_edit %]
116
                    [% IF can_edit %]
116
                      <a class="btn btn-default btn-xs" href="/cgi-bin/koha/tools/letter.pl?op=add_form&amp;branchcode=[% lette.branchcode %]&amp;module=[% lette.module %]&amp;code=[% lette.code %]"><i class="fa fa-pencil"></i> Edit</a>
117
                      <a class="btn btn-default btn-xs" href="/cgi-bin/koha/tools/letter.pl?op=add_form&branchcode=[% lette.branchcode %]&module=[% lette.module %]&code=[% lette.code %]"><i class="fa fa-pencil"></i> [% t('Edit') %]</a>
117
                    [% END %]
118
                    [% END %]
118
                    [% IF !lette.protected && can_edit %]
119
                    [% IF !lette.protected && can_edit %]
119
                      <a class="btn btn-default btn-xs" href="/cgi-bin/koha/tools/letter.pl?op=delete_confirm&amp;branchcode=[%lette.branchcode %]&amp;module=[% lette.module %]&amp;code=[% lette.code %]"><i class="fa fa-trash"></i> Delete</a>
120
                      <a class="btn btn-default btn-xs" href="/cgi-bin/koha/tools/letter.pl?op=delete_confirm&branchcode=[%lette.branchcode %]&module=[% lette.module %]&code=[% lette.code %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
120
                    [% END %]
121
                    [% END %]
121
                  </td>
122
                  </td>
122
                </tr>
123
                </tr>
Lines 126-134 Link Here
126
        [% ELSE %]
127
        [% ELSE %]
127
          <div class="dialog message">
128
          <div class="dialog message">
128
          [% IF ( branchcode ) %]
129
          [% IF ( branchcode ) %]
129
             <p>There are no notices for this library.</p>
130
             <p>[% t('There are no notices for this library.') %]</p>
130
          [% ELSE %]
131
          [% ELSE %]
131
              <p>There are no notices.</p>
132
              <p>[% t('There are no notices.') %]</p>
132
          [% END %]
133
          [% END %]
133
          </div>
134
          </div>
134
        [% END %]
135
        [% END %]
Lines 136-154 Link Here
136
137
137
	
138
	
138
[% IF add_form or copy_form %]
139
[% IF add_form or copy_form %]
139
<h1>[% IF ( modify ) %]Modify notice[% ELSE %]Add notice[% END %]</h1>
140
<h1>[% IF ( modify ) %][% t('Modify notice') %][% ELSE %][% t('Add notice') %][% END %]</h1>
140
141
141
    <div id="toolbar" class="btn-toolbar">
142
    <div id="toolbar" class="btn-toolbar">
142
        <div class="btn-group">
143
        <div class="btn-group">
143
            <button class="btn btn-default btn-sm" id="submit_form"><i class="fa fa-save"></i> Save</button>
144
            <button class="btn btn-default btn-sm" id="submit_form"><i class="fa fa-save"></i> [% t('Save') %]</button>
144
            <button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">
145
            <button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">
145
            <span class="caret"></span>
146
            <span class="caret"></span>
146
            </button>
147
            </button>
147
            <ul class="dropdown-menu">
148
            <ul class="dropdown-menu">
148
                <li><a id="saveandcontinue" href="#">Save and continue editing</a></li>
149
                <li><a id="saveandcontinue" href="#">[% t('Save and continue editing') %]</a></li>
149
            </ul>
150
            </ul>
150
        </div>
151
        </div>
151
        <a class="btn btn-default btn-sm cancel" href="/cgi-bin/koha/tools/letter.pl"><i class="fa fa-remove"></i> Cancel</a>
152
        <a class="btn btn-default btn-sm cancel" href="/cgi-bin/koha/tools/letter.pl"><i class="fa fa-remove"></i> [% t('Cancel') %]</a>
152
    </div>
153
    </div>
153
154
154
        <form id="add_notice" name="Aform" method="post" enctype="multipart/form-data" class="validate">
155
        <form id="add_notice" name="Aform" method="post" enctype="multipart/form-data" class="validate">
Lines 173-196 Link Here
173
            <li>
174
            <li>
174
175
175
                [% IF adding %]
176
                [% IF adding %]
176
                    <label for="branch">Library:</label>
177
                    <label for="branch">[% t('Library:') %]</label>
177
                    <select name="branchcode" id="branch" style="width:20em;">
178
                    <select name="branchcode" id="branch" style="width:20em;">
178
                        <option value="">All libraries</option>
179
                        <option value="">[% t('All libraries') %]</option>
179
                        [% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode ) %]
180
                        [% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode ) %]
180
                    </select>
181
                    </select>
181
                [% ELSE %]
182
                [% ELSE %]
182
                    <span class="label">Library:</span>
183
                    <span class="label">[% t('Library:') %]</span>
183
                    <input type="hidden" id="branch" name="branchcode" value="[% branchcode %]" />
184
                    <input type="hidden" id="branch" name="branchcode" value="[% branchcode %]" />
184
                    [% IF ( branchcode ) %]
185
                    [% IF ( branchcode ) %]
185
                       [% Branches.GetName( branchcode ) %]
186
                       [% Branches.GetName( branchcode ) %]
186
                    [% ELSE %]
187
                    [% ELSE %]
187
                        All libraries
188
                        [% t('All libraries') %]
188
                    [% END %]
189
                    [% END %]
189
                [% END %]
190
                [% END %]
190
            </li>
191
            </li>
191
            [% END %]
192
            [% END %]
192
			<li>
193
			<li>
193
				<label for="module">Koha module:</label>
194
				<label for="module">[% t('Koha module:') %]</label>
194
				<input type="hidden" name="oldmodule" value="[% module %]" />
195
				<input type="hidden" name="oldmodule" value="[% module %]" />
195
                [% IF adding  %]
196
                [% IF adding  %]
196
                  <select name="module" id="newmodule">
197
                  <select name="module" id="newmodule">
Lines 198-282 Link Here
198
                  <select name="module" id="module">
199
                  <select name="module" id="module">
199
                [% END %]
200
                [% END %]
200
                                    [% IF ( module == "acquisition" ) %]
201
                                    [% IF ( module == "acquisition" ) %]
201
                                      <option value="acquisition" selected="selected">Acquisition</option>
202
                                      <option value="acquisition" selected="selected">[% t('Acquisition') %]</option>
202
                                    [% ELSE %]
203
                                    [% ELSE %]
203
                                      <option value="acquisition" >Acquisition</option>
204
                                      <option value="acquisition">[% t('Acquisition') %]</option>
204
                                    [% END %]
205
                                    [% END %]
205
                                    [% IF ( module == "catalogue" ) %]
206
                                    [% IF ( module == "catalogue" ) %]
206
                                      <option value="catalogue" selected="selected">Catalog</option>
207
                                      <option value="catalogue" selected="selected">[% t('Catalog') %]</option>
207
                                    [% ELSE %]
208
                                    [% ELSE %]
208
                                      <option value="catalogue" >Catalog</option>
209
                                      <option value="catalogue">[% t('Catalog') %]</option>
209
                                    [% END %]
210
                                    [% END %]
210
                                    [% IF ( module == "circulation" ) %]
211
                                    [% IF ( module == "circulation" ) %]
211
                                      <option value="circulation" selected="selected">Circulation</option>
212
                                      <option value="circulation" selected="selected">[% t('Circulation') %]</option>
212
                                    [% ELSE %]
213
                                    [% ELSE %]
213
                                      <option value="circulation">Circulation</option>
214
                                      <option value="circulation">[% t('Circulation') %]</option>
214
                                    [% END %]
215
                                    [% END %]
215
                                    [% IF ( module == "orderacquisition" ) %]
216
                                    [% IF ( module == "orderacquisition" ) %]
216
                                      <option value="orderacquisition" selected="selected">Order acquisition</option>
217
                                      <option value="orderacquisition" selected="selected">[% t('Order acquisition') %]</option>
217
                                    [% ELSE %]
218
                                    [% ELSE %]
218
                                      <option value="orderacquisition">Order acquisition</option>
219
                                      <option value="orderacquisition">[% t('Order acquisition') %]</option>
219
                                    [% END %]
220
                                    [% END %]
220
                                    [% IF ( module == "claimacquisition" ) %]
221
                                    [% IF ( module == "claimacquisition" ) %]
221
                                      <option value="claimacquisition" selected="selected">Claim acquisition</option>
222
                                      <option value="claimacquisition" selected="selected">[% t('Claim acquisition') %]</option>
222
                                    [% ELSE %]
223
                                    [% ELSE %]
223
                                      <option value="claimacquisition">Claim acquisition</option>
224
                                      <option value="claimacquisition">[% t('Claim acquisition') %]</option>
224
                                    [% END %]
225
                                    [% END %]
225
                                    [% IF ( module == "claimissues" ) %]
226
                                    [% IF ( module == "claimissues" ) %]
226
                                      <option value="claimissues" selected="selected">Claim serial issue</option>
227
                                      <option value="claimissues" selected="selected">[% t('Claim serial issue') %]</option>
227
                                    [% ELSE %]
228
                                    [% ELSE %]
228
                                      <option value="claimissues">Claim serial issue</option>
229
                                      <option value="claimissues">[% t('Claim serial issue') %]</option>
229
                                    [% END %]
230
                                    [% END %]
230
                                    [% IF ( module == "reserves" ) %]
231
                                    [% IF ( module == "reserves" ) %]
231
                                      <option value="reserves" selected="selected">Holds</option>
232
                                      <option value="reserves" selected="selected">[% t('Holds') %]</option>
232
                                    [% ELSE %]
233
                                    [% ELSE %]
233
                                      <option value="reserves">Holds</option>
234
                                      <option value="reserves">[% t('Holds') %]</option>
234
                                    [% END %]
235
                                    [% END %]
235
                                    [% IF ( module == "members" ) %]
236
                                    [% IF ( module == "members" ) %]
236
                                      <option value="members" selected="selected">Members</option>
237
                                      <option value="members" selected="selected">[% t('Members') %]</option>
237
                                    [% ELSE %]
238
                                    [% ELSE %]
238
                                      <option value="members">Members</option>
239
                                      <option value="members">[% t('Members') %]</option>
239
                                    [% END %]
240
                                    [% END %]
240
                                    [% IF ( module == "serial" ) %]
241
                                    [% IF ( module == "serial" ) %]
241
                                      <option value="serial" selected="selected">Serials (new issue)</option>
242
                                      <option value="serial" selected="selected">[% t('Serials (new issue)') %]</option>
242
                                    [% ELSE %]
243
                                    [% ELSE %]
243
                                      <option value="serial">Serials (new issue)</option>
244
                                      <option value="serial">[% t('Serials (new issue)') %]</option>
244
                                    [% END %]
245
                                    [% END %]
245
                                    [% IF ( module == "suggestions" ) %]
246
                                    [% IF ( module == "suggestions" ) %]
246
                                      <option value="suggestions" selected="selected">Suggestions</option>
247
                                      <option value="suggestions" selected="selected">[% t('Suggestions') %]</option>
247
                                    [% ELSE %]
248
                                    [% ELSE %]
248
                                      <option value="suggestions">Suggestions</option>
249
                                      <option value="suggestions">[% t('Suggestions') %]</option>
249
                                    [% END %]
250
                                    [% END %]
250
                </select>
251
                </select>
251
            </li>
252
            </li>
252
            <li>
253
            <li>
253
              [% IF adding %]
254
              [% IF adding %]
254
                  <label for="code" class="required">Code:</label>
255
                  <label for="code" class="required">[% t('Code:') %]</label>
255
                  <input type="text" id="code" name="code" size="20" maxlength="20" value="" required="required"/>
256
                  <input type="text" id="code" name="code" size="20" maxlength="20" value="" required="required" />
256
                  <span class="required">Required</span>
257
                  <span class="required">[% t('Required') %]</span>
257
              [% ELSE %]
258
              [% ELSE %]
258
                  <span class="label">Code:</span>
259
                  <span class="label">[% t('Code:') %]</span>
259
                  <input type="hidden" id="code" name="code" value="[% code %]" />
260
                  <input type="hidden" id="code" name="code" value="[% code %]" />
260
                  [% code %]
261
                  [% code %]
261
              [% END %]
262
              [% END %]
262
            </li>
263
            </li>
263
            <li>
264
            <li>
264
              <label for="name" class="required">Name:</label>
265
              <label for="name" class="required">[% t('Name:') %]</label>
265
              <input type="text" id="name" name="name" size="60" value="[% letter_name %]" required="required" />
266
              <input type="text" id="name" name="name" size="60" value="[% letter_name %]" required="required" />
266
              <span class="required">Required</span>
267
              <span class="required">[% t('Required') %]</span>
267
            </li>
268
            </li>
268
            [% IF code and preview_is_available%]
269
            [% IF code and preview_is_available%]
269
                <li>
270
                <li>
270
                    <label for="name">Data for preview:</label>
271
                    <label for="name">[% t('Data for preview:') %]</label>
271
                    [% SWITCH code %]
272
                    [% SWITCH code %]
272
                    [% CASE 'CHECKIN' %]
273
                    [% CASE 'CHECKIN' %]
273
                        <input type="text" id="data_preview" name="data_preview" value="" placeholder="barcode" />
274
                        <input type="text" id="data_preview" name="data_preview" value="" placeholder="[% t('barcode') %]" />
274
                    [% CASE 'CHECKOUT' %]
275
                    [% CASE 'CHECKOUT' %]
275
                        <input type="text" id="data_preview" name="data_preview" value="" placeholder="barcode|borrowernumber" />
276
                        <input type="text" id="data_preview" name="data_preview" value="" placeholder="[% t('barcode|borrowernumber') %]" />
276
                    [% CASE 'HOLD_SLIP' %]
277
                    [% CASE 'HOLD_SLIP' %]
277
                        <input type="text" id="data_preview" name="data_preview" value="" placeholder="biblionumber|borrowernumber" />
278
                        <input type="text" id="data_preview" name="data_preview" value="" placeholder="[% t('biblionumber|borrowernumber') %]" />
278
                    [% CASE %]
279
                    [% CASE %]
279
                        Not supported yet.
280
                        [% t('Not supported yet.') %]
280
                    [% END %]
281
                    [% END %]
281
                    </li>
282
                    </li>
282
            [% END %]
283
            [% END %]
Lines 286-292 Link Here
286
        <div style="clear:both"></div>
287
        <div style="clear:both"></div>
287
            <div id="tabs">
288
            <div id="tabs">
288
                <ul>
289
                <ul>
289
                    <li><a href="#lang_default">Default</a></li>
290
                    <li><a href="#lang_default">[% t('Default') %]</a></li>
290
                    [% FOR language IN languages %]
291
                    [% FOR language IN languages %]
291
                        [% FOR sublanguage IN language.sublanguages_loop %]
292
                        [% FOR sublanguage IN language.sublanguages_loop %]
292
                            [% IF language.plural %]
293
                            [% IF language.plural %]
Lines 307-331 Link Here
307
            <h3>
308
            <h3>
308
                [% SWITCH letter.message_transport_type %]
309
                [% SWITCH letter.message_transport_type %]
309
                [% CASE 'email' %]
310
                [% CASE 'email' %]
310
                  Email
311
                  [% t('Email') %]
311
                [% CASE 'print' %]
312
                [% CASE 'print' %]
312
                  Print
313
                  [% t('Print') %]
313
                [% CASE 'sms' %]
314
                [% CASE 'sms' %]
314
                  SMS
315
                  [% t('SMS') %]
315
                [% CASE 'feed' %]
316
                [% CASE 'feed' %]
316
                  Feed
317
                  [% t('Feed') %]
317
                [% CASE 'phone' %]
318
                [% CASE 'phone' %]
318
                  Phone
319
                  [% t('Phone') %]
319
                [% CASE %]
320
                [% CASE %]
320
                  [% letter.message_transport_type %]
321
                  [% letter.message_transport_type %]
321
                [% END %]
322
                [% END %]
322
            </h3>
323
            </h3>
323
            [% IF letter.message_transport_type == "sms" and not Koha.Preference("SMSSendDriver") %]
324
            [% IF letter.message_transport_type == "sms" and not Koha.Preference("SMSSendDriver") %]
324
              <fieldset class="rows mtt" id="[% letter.message_transport_type %]_[% lang %]" disabled="disabled">
325
              <fieldset class="rows mtt" id="[% letter.message_transport_type %]_[% lang %]" disabled="disabled">
325
                <div class="dialog message">You should enable the SMSSendDriver preference to use the SMS templates.</div>
326
                <div class="dialog message">[% t('You should enable the SMSSendDriver preference to use the SMS templates.') %]</div>
326
            [% ELSIF letter.message_transport_type == "phone" and not Koha.Preference("TalkingTechItivaPhoneNotification") %]
327
            [% ELSIF letter.message_transport_type == "phone" and not Koha.Preference("TalkingTechItivaPhoneNotification") %]
327
              <fieldset class="rows mtt" id="[% letter.message_transport_type %]_[% lang %]" disabled="disabled">
328
              <fieldset class="rows mtt" id="[% letter.message_transport_type %]_[% lang %]" disabled="disabled">
328
                <div class="dialog message">You should enable the TalkingTechItivaPhoneNotification preference to use the phone templates.</div>
329
                <div class="dialog message">[% t('You should enable the TalkingTechItivaPhoneNotification preference to use the phone templates.') %]</div>
329
            [% ELSE %]
330
            [% ELSE %]
330
              <fieldset class="rows mtt" id="[% letter.message_transport_type %]_[% lang %]">
331
              <fieldset class="rows mtt" id="[% letter.message_transport_type %]_[% lang %]">
331
            [% END %]
332
            [% END %]
Lines 333-339 Link Here
333
                <li>
334
                <li>
334
                  <input type="hidden" name="message_transport_type" value="[% letter.message_transport_type %]" />
335
                  <input type="hidden" name="message_transport_type" value="[% letter.message_transport_type %]" />
335
                  <input type="hidden" name="lang" value="[% lang %]" />
336
                  <input type="hidden" name="lang" value="[% lang %]" />
336
                  <label for="is_html_[% letter.message_transport_type %]_[% lang %]">HTML message:</label>
337
                  <label for="is_html_[% letter.message_transport_type %]_[% lang %]">[% t('HTML message:') %]</label>
337
                  [% IF letter.is_html %]
338
                  [% IF letter.is_html %]
338
                    <input type="checkbox" name="is_html_[% letter.message_transport_type %]" id="is_html_[% letter.message_transport_type %]_[% lang %]" value="1" checked="checked" />
339
                    <input type="checkbox" name="is_html_[% letter.message_transport_type %]" id="is_html_[% letter.message_transport_type %]_[% lang %]" value="1" checked="checked" />
339
                  [% ELSE %]
340
                  [% ELSE %]
Lines 341-352 Link Here
341
                  [% END %]
342
                  [% END %]
342
                </li>
343
                </li>
343
                <li>
344
                <li>
344
                  <label for="title_[% letter.message_transport_type %]_[% lang %]">Message subject:</label><input type="text" id="title_[% letter.message_transport_type %]_[% lang %]" name="title" size="60" value="[% letter.title %]" />
345
                  <label for="title_[% letter.message_transport_type %]_[% lang %]">[% t('Message subject:') %]</label><input type="text" id="title_[% letter.message_transport_type %]_[% lang %]" name="title" size="60" value="[% letter.title %]" />
345
                </li>
346
                </li>
346
                <li>
347
                <li>
347
                  <label for="SQLfieldname_[% letter.message_transport_type %]_[% lang %]">Message body:</label>
348
                  <label for="SQLfieldname_[% letter.message_transport_type %]_[% lang %]">[% t('Message body:') %]</label>
348
                  [% IF letter.message_transport_type == 'sms' %]
349
                  [% IF letter.message_transport_type == 'sms' %]
349
                    <span class="sms_counter" id="sms_counter_[% lang %]">[% IF letter.content && letter.content.length > 0 %][% letter.content.length %][% ELSE %]0[% END %]/160 characters</span>
350
                    <span class="sms_counter" id="sms_counter_[% lang %]">[% IF letter.content && letter.content.length > 0 %][% letter.content.length %][% ELSE %][% t('0') %][% END %][% t('/160 characters') %]</span>
350
                  [% END %]
351
                  [% END %]
351
                  <table>
352
                  <table>
352
                    <tr>
353
                    <tr>
Lines 358-364 Link Here
358
                        </select>
359
                        </select>
359
                      </td>
360
                      </td>
360
                        <td class="actions">
361
                        <td class="actions">
361
                            <button type="button" data-containerid="[% letter.message_transport_type %]_[% lang %]" class="btn btn-default btn-sm insert">Insert <i class="fa fa-long-arrow-right"></i></button>
362
                            <button type="button" data-containerid="[% letter.message_transport_type %]_[% lang %]" class="btn btn-default btn-sm insert">[% t('Insert') %] <i class="fa fa-long-arrow-right"></i></button>
362
                        </td>
363
                        </td>
363
                      <td><textarea name="content" data-lang="[% lang %]" class="content_[% letter.message_transport_type %]" id="content_[% letter.message_transport_type %]_[% lang %]" cols="80" rows="15">[% letter.content | html %]</textarea></td>
364
                      <td><textarea name="content" data-lang="[% lang %]" class="content_[% letter.message_transport_type %]" id="content_[% letter.message_transport_type %]_[% lang %]" cols="80" rows="15">[% letter.content | html %]</textarea></td>
364
                    </tr>
365
                    </tr>
Lines 366-372 Link Here
366
                </li>
367
                </li>
367
                [% IF preview_is_available %]
368
                [% IF preview_is_available %]
368
                    <li>
369
                    <li>
369
                        <a href="/cgi-bin/koha/svc/letters/preview" class="preview_template btn btn-default btn-xs" title="Preview this notice template" data-mtt="[% letter.message_transport_type %]" data-lang="[% lang %]"><i class="fa fa-eye"></i> Preview</a>
370
                        <a href="/cgi-bin/koha/svc/letters/preview" class="preview_template btn btn-default btn-xs" title="[% t('Preview this notice template') %]" data-mtt="[% letter.message_transport_type %]" data-lang="[% lang %]"><i class="fa fa-eye"></i> [% t('Preview') %]</a>
370
                    </li>
371
                    </li>
371
                [% END %]
372
                [% END %]
372
              </ol>
373
              </ol>
Lines 379-385 Link Here
379
        </div>
380
        </div>
380
        [% END %]
381
        [% END %]
381
382
382
        [% IF code.search('DGST') %] <span class="overdue">Warning, this is a template for a Digest, as such, any references to branch data ( e.g. branches.branchname ) will refer to the borrower's home branch.</span> [% END %]
383
        [% IF code.search('DGST') %] <span class="overdue">[% t('Warning, this is a template for a Digest, as such, any references to branch data ( e.g. branches.branchname ) will refer to the borrower\'s home branch.') %]</span> [% END %]
383
384
384
        <input type="hidden" id="redirect" name="redirect" value="" />
385
        <input type="hidden" id="redirect" name="redirect" value="" />
385
        <input type="hidden" name="searchfield" value="[% searchfield %]" />
386
        <input type="hidden" name="searchfield" value="[% searchfield %]" />
Lines 387-393 Link Here
387
[% END %]
388
[% END %]
388
389
389
[% IF ( add_validate or copy_validate) %]
390
[% IF ( add_validate or copy_validate) %]
390
	Data recorded
391
	[% t('Data recorded') %]
391
	<form action="[% action %]" method="post">
392
	<form action="[% action %]" method="post">
392
	<input type="submit" value="OK" />
393
	<input type="submit" value="OK" />
393
	</form>
394
	</form>
Lines 395-412 Link Here
395
396
396
[% IF ( delete_confirm ) %]
397
[% IF ( delete_confirm ) %]
397
    <div class="dialog alert">
398
    <div class="dialog alert">
398
        <h3>Delete notice?</h3>
399
        <h3>[% t('Delete notice?') %]</h3>
399
        <table>
400
        <table>
400
            <thead>
401
            <thead>
401
            <tr>
402
            <tr>
402
                <th>Library</th>
403
                <th>[% t('Library') %]</th>
403
                <th>Module</th>
404
                <th>[% t('Module') %]</th>
404
                <th>Code</th>
405
                <th>[% t('Code') %]</th>
405
                <th>Name</th>
406
                <th>[% t('Name') %]</th>
406
            </tr>
407
            </tr>
407
            </thead>
408
            </thead>
408
            <tr>
409
            <tr>
409
                <td>[% IF letter.branchcode %][% Branches.GetName( letter.branchcode ) %][% ELSE %](All libraries)[% END %]</td>
410
                <td>[% IF letter.branchcode %][% Branches.GetName( letter.branchcode ) %][% ELSE %][% t('(All libraries)') %][% END %]</td>
410
                <td>[% letter.module %]</td>
411
                <td>[% letter.module %]</td>
411
                <td>[% letter.code %]</td>
412
                <td>[% letter.code %]</td>
412
                <td>[% letter.name %]</td>
413
                <td>[% letter.name %]</td>
Lines 417-433 Link Here
417
            <input type="hidden" name="branchcode" value="[% letter.branchcode %]" />
418
            <input type="hidden" name="branchcode" value="[% letter.branchcode %]" />
418
            <input type="hidden" name="code" value="[% letter.code %]" />
419
            <input type="hidden" name="code" value="[% letter.code %]" />
419
            <input type="hidden" name="module" value="[% letter.module %]" />
420
            <input type="hidden" name="module" value="[% letter.module %]" />
420
            <button type="submit" class="approve"><i class="fa fa-check"></i> Yes, delete</button>
421
            <button type="submit" class="approve"><i class="fa fa-check"></i> [% t('Yes, delete') %]</button>
421
        </form>
422
        </form>
422
423
423
        <form action="[% action %]" method="get">
424
        <form action="[% action %]" method="get">
424
            <button type="submit" class="deny"><i class="fa fa-times"></i> No, do not delete</button>
425
            <button type="submit" class="deny"><i class="fa fa-times"></i> [% t('No, do not delete') %]</button>
425
        </form>
426
        </form>
426
    </div>
427
    </div>
427
[% END %]
428
[% END %]
428
429
429
[% IF ( delete_confirmed ) %]
430
[% IF ( delete_confirmed ) %]
430
	Data deleted
431
	[% t('Data deleted') %]
431
	<form action="[% action %]" method="post">
432
	<form action="[% action %]" method="post">
432
	<input type="submit" value="OK" />
433
	<input type="submit" value="OK" />
433
	</form>
434
	</form>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt (-97 / +98 lines)
Lines 1-9 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Tools &rsaquo; Manage staged MARC records
5
<title>[% t('Koha › Tools › Manage staged MARC records') %]
5
[% IF ( import_batch_id ) %]
6
[% IF ( import_batch_id ) %]
6
 &rsaquo; Batch [% import_batch_id %]
7
 [% t('› Batch') %] [% import_batch_id %]
7
[% END %]
8
[% END %]
8
</title>
9
</title>
9
[% INCLUDE 'doc-head-close.inc' %]
10
[% INCLUDE 'doc-head-close.inc' %]
Lines 17-29 Link Here
17
[% INCLUDE 'header.inc' %]
18
[% INCLUDE 'header.inc' %]
18
[% INCLUDE 'cat-search.inc' %]
19
[% INCLUDE 'cat-search.inc' %]
19
20
20
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> 
21
<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> 
21
[% IF ( import_batch_id ) %]
22
[% IF ( import_batch_id ) %]
22
 &rsaquo;
23
23
 <a href="[% script_name %]">Manage staged MARC records</a>
24
 <a href="[% script_name %]">[% t('Manage staged MARC records') %]</a>
24
 &rsaquo; Batch [% import_batch_id %]
25
 [% t('› Batch') %] [% import_batch_id %]
25
[% ELSE %]
26
[% ELSE %]
26
 &rsaquo; Manage staged MARC records
27
 [% t('› Manage staged MARC records') %]
27
[% END %]
28
[% END %]
28
</div>
29
</div>
29
30
Lines 33-41 Link Here
33
	<div id="yui-main">
34
	<div id="yui-main">
34
	<div class="yui-b">
35
	<div class="yui-b">
35
36
36
<h1>Manage staged MARC records
37
<h1>[% t('Manage staged MARC records') %]
37
[% IF ( import_batch_id ) %]
38
[% IF ( import_batch_id ) %]
38
 &rsaquo; Batch [% import_batch_id %]
39
 [% t('› Batch') %] [% import_batch_id %]
39
[% END %]
40
[% END %]
40
</h1>
41
</h1>
41
[% IF ( label_batch_msg ) %]
42
[% IF ( label_batch_msg ) %]
Lines 49-66 Link Here
49
[% END %]
50
[% END %]
50
51
51
[% IF ( did_clean ) %]
52
[% IF ( did_clean ) %]
52
  <div class="dialog message">Cleaned import batch #[% import_batch_id %]</div>
53
  <div class="dialog message">[% t('Cleaned import batch #') %][% import_batch_id %]</div>
53
[% END %]
54
[% END %]
54
55
55
[% IF ( did_delete ) %]
56
[% IF ( did_delete ) %]
56
  <div class="dialog message">Import batch deleted successfully</div>
57
  <div class="dialog message">[% t('Import batch deleted successfully') %]</div>
57
[% END %]
58
[% END %]
58
59
59
[% UNLESS ( batch_list ) %]
60
[% UNLESS ( batch_list ) %]
60
   [% UNLESS ( batch_info ) %]
61
   [% UNLESS ( batch_info ) %]
61
   <div class="dialog message">
62
   <div class="dialog message">
62
     <p>No records have been staged.</p>
63
     <p>[% t('No records have been staged.') %]</p>
63
     <p><a href="/cgi-bin/koha/tools/stage-marc-import.pl">Stage MARC records for import</a>.</p>
64
     <p><a href="/cgi-bin/koha/tools/stage-marc-import.pl">[% t('Stage MARC records for import') %]</a>.</p>
64
   </div>
65
   </div>
65
   [% END %]
66
   [% END %]
66
[% END %]
67
[% END %]
Lines 76-124 Link Here
76
77
77
  [% IF ( rematch_attempted ) %]
78
  [% IF ( rematch_attempted ) %]
78
    [% IF ( rematch_failed ) %]
79
    [% IF ( rematch_failed ) %]
79
      <div class="dialog alert">Failed to apply different matching rule</div>
80
      <div class="dialog alert">[% t('Failed to apply different matching rule') %]</div>
80
    [% ELSE %]
81
    [% ELSE %]
81
      <div class="dialog message">Applied different matching rule.  Number of records matched now
82
      <div class="dialog message">[% t('Applied different matching rule.') %]  [% t('Number of records matched now') %]
82
       [% num_with_matches %]
83
       [% num_with_matches %]
83
      </div>
84
      </div>
84
    [% END %]
85
    [% END %]
85
  [% END %]
86
  [% END %]
86
  [% IF ( changed_overlay_action ) %]
87
  [% IF ( changed_overlay_action ) %]
87
      <div class="dialog message">Changed action if matching record found</div>
88
      <div class="dialog message">[% t('Changed action if matching record found') %]</div>
88
  [% END %]
89
  [% END %]
89
  [% IF ( changed_nomatch_action ) %]
90
  [% IF ( changed_nomatch_action ) %]
90
      <div class="dialog message">Changed action if no match found</div>
91
      <div class="dialog message">[% t('Changed action if no match found') %]</div>
91
  [% END %]
92
  [% END %]
92
  [% IF ( changed_item_action ) %]
93
  [% IF ( changed_item_action ) %]
93
      <div class="dialog message">Changed item processing option</div>
94
      <div class="dialog message">[% t('Changed item processing option') %]</div>
94
  [% END %]
95
  [% END %]
95
96
96
<fieldset class="rows" id="staged-record-matching-rules">
97
<fieldset class="rows" id="staged-record-matching-rules">
97
  <ol>
98
  <ol>
98
    <li><span class="label">File name:</span> [% file_name %]</li>
99
    <li><span class="label">[% t('File name:') %]</span> [% file_name %]</li>
99
    <li><span class="label">Comments:</span> [% IF ( comments ) %][% comments %][% ELSE %](none)[% END %]</li>
100
    <li><span class="label">[% t('Comments:') %]</span> [% IF ( comments ) %][% comments %][% ELSE %][% t('(none)') %][% END %]</li>
100
    <li><span class="label">Type:</span> [% IF ( record_type == 'auth' ) %]Authority records[% ELSE %]Bibliographic records[% END %]</li>
101
    <li><span class="label">[% t('Type:') %]</span> [% IF ( record_type == 'auth' ) %][% t('Authority records') %][% ELSE %][% t('Bibliographic records') %][% END %]</li>
101
    <li><span class="label">Staged:</span> [% upload_timestamp %]</li>
102
    <li><span class="label">[% t('Staged:') %]</span> [% upload_timestamp %]</li>
102
    <li><span class="label">Status:</span>
103
    <li><span class="label">[% t('Status:') %]</span>
103
      [% IF ( import_status == 'cleaned' ) %]
104
      [% IF ( import_status == 'cleaned' ) %]
104
         Cleaned
105
         [% t('Cleaned') %]
105
      [% ELSIF ( import_status == 'imported' ) %]
106
      [% ELSIF ( import_status == 'imported' ) %]
106
        Imported
107
        [% t('Imported') %]
107
      [% ELSIF ( import_status == 'importing' ) %]
108
      [% ELSIF ( import_status == 'importing' ) %]
108
        Importing
109
        [% t('Importing') %]
109
      [% ELSIF ( import_status == 'reverted' ) %]
110
      [% ELSIF ( import_status == 'reverted' ) %]
110
         Reverted
111
         [% t('Reverted') %]
111
      [% ELSIF ( import_status == 'reverting' ) %]
112
      [% ELSIF ( import_status == 'reverting' ) %]
112
         Reverting
113
         [% t('Reverting') %]
113
      [% ELSIF ( import_status == 'staged' ) %]
114
      [% ELSIF ( import_status == 'staged' ) %]
114
          Staged
115
          [% t('Staged') %]
115
      [% ELSE %]
116
      [% ELSE %]
116
          [% import_status %]
117
          [% import_status %]
117
      [% END %]
118
      [% END %]
118
      </li>
119
      </li>
119
    <li>
120
    <li>
120
[% IF ( can_commit ) %]<label for="new_matcher_id">Matching rule applied:</label><select name="new_matcher_id" id="new_matcher_id">
121
[% IF ( can_commit ) %]<label for="new_matcher_id">[% t('Matching rule applied:') %]</label><select name="new_matcher_id" id="new_matcher_id">
121
       <option value="">Do not look for matching records</option> 
122
       <option value="">[% t('Do not look for matching records') %]</option> 
122
       [% FOREACH available_matcher IN available_matchers %]
123
       [% FOREACH available_matcher IN available_matchers %]
123
          [% IF ( available_matcher.selected ) %]
124
          [% IF ( available_matcher.selected ) %]
124
          <option value="[% available_matcher.matcher_id %]" selected="selected">
125
          <option value="[% available_matcher.matcher_id %]" selected="selected">
Lines 130-153 Link Here
130
          </option>
131
          </option>
131
          [% END %]
132
          [% END %]
132
       [% END %]
133
       [% END %]
133
    </select> <span class="change-status">Changed. <a href="#" class="reset" id="reset_new_matcher_id">Reset</a></span>[% ELSE %]<span class="label">Matching rule applied</span>[% IF ( current_matcher_id ) %]
134
    </select> <span class="change-status">[% t('Changed.') %] <a href="#" class="reset" id="reset_new_matcher_id">[% t('Reset') %]</a></span>[% ELSE %]<span class="label">[% t('Matching rule applied') %]</span>[% IF ( current_matcher_id ) %]
134
  [% current_matcher_code %] ([% current_matcher_description %])
135
  [% current_matcher_code %] ([% current_matcher_description %])
135
[% ELSE %]
136
[% ELSE %]
136
  No matching rule in effect
137
  [% t('No matching rule in effect') %]
137
[% END %][% END %]
138
[% END %][% END %]
138
    </li>
139
    </li>
139
    <li>
140
    <li>
140
        [% IF ( can_commit ) %]
141
        [% IF ( can_commit ) %]
141
            <label for="overlay_action">Action if matching record found:</label>
142
            <label for="overlay_action">[% t('Action if matching record found:') %]</label>
142
            [% INCLUDE 'tools-overlay-action.inc' %] <span class="change-status">Changed. <a href="#" class="reset" id="reset_overlay_action">Reset</a></span>
143
            [% INCLUDE 'tools-overlay-action.inc' %] <span class="change-status">[% t('Changed.') %] <a href="#" class="reset" id="reset_overlay_action">[% t('Reset') %]</a></span>
143
        [% ELSE %]
144
        [% ELSE %]
144
            <span class="label">Action if matching record found:</span>
145
            <span class="label">[% t('Action if matching record found:') %]</span>
145
            [% IF ( overlay_action == 'replace' ) %]
146
            [% IF ( overlay_action == 'replace' ) %]
146
                Replace existing record with incoming record
147
                [% t('Replace existing record with incoming record') %]
147
            [% ELSIF ( overlay_action == 'create_new' ) %]
148
            [% ELSIF ( overlay_action == 'create_new' ) %]
148
                Add incoming record
149
                [% t('Add incoming record') %]
149
            [% ELSIF ( overlay_action == 'ignore' ) %]
150
            [% ELSIF ( overlay_action == 'ignore' ) %]
150
                Ignore incoming record (its items may still be processed)
151
                [% t('Ignore incoming record (its items may still be processed)') %]
151
            [% ELSE %]
152
            [% ELSE %]
152
                [% overlay_action %]
153
                [% overlay_action %]
153
            [% END %]
154
            [% END %]
Lines 155-168 Link Here
155
     
156
     
156
    <li>
157
    <li>
157
        [% IF ( can_commit ) %]
158
        [% IF ( can_commit ) %]
158
            <label for="nomatch_action">Action if no match found:</label>
159
            <label for="nomatch_action">[% t('Action if no match found:') %]</label>
159
            [% INCLUDE 'tools-nomatch-action.inc' %] <span class="change-status">Changed. <a href="#" class="reset" id="reset_nomatch_action">Reset</a></span>
160
            [% INCLUDE 'tools-nomatch-action.inc' %] <span class="change-status">[% t('Changed.') %] <a href="#" class="reset" id="reset_nomatch_action">[% t('Reset') %]</a></span>
160
        [% ELSE %]
161
        [% ELSE %]
161
            <span class="label">Action if no match found:</span>
162
            <span class="label">[% t('Action if no match found:') %]</span>
162
            [% IF ( nomatch_action == 'create_new' ) %]
163
            [% IF ( nomatch_action == 'create_new' ) %]
163
                Add incoming record
164
                [% t('Add incoming record') %]
164
            [% ELSIF ( nomatch_action == 'ignore' ) %]
165
            [% ELSIF ( nomatch_action == 'ignore' ) %]
165
                Ignore incoming record (its items may still be processed)
166
                [% t('Ignore incoming record (its items may still be processed)') %]
166
            [% ELSE %]
167
            [% ELSE %]
167
                [% nomatch_action %]
168
                [% nomatch_action %]
168
            [% END %]
169
            [% END %]
Lines 172-189 Link Here
172
    [% IF ( record_type == 'biblio' ) %]
173
    [% IF ( record_type == 'biblio' ) %]
173
    <li>
174
    <li>
174
        [% IF ( can_commit ) %]
175
        [% IF ( can_commit ) %]
175
            <label for="item_action">Item processing:</label>
176
            <label for="item_action">[% t('Item processing:') %]</label>
176
            [% INCLUDE 'tools-item-action.inc' %] <span class="change-status">Changed. <a href="#" class="reset" id="reset_item_action">Reset</a></span>
177
            [% INCLUDE 'tools-item-action.inc' %] <span class="change-status">[% t('Changed.') %] <a href="#" class="reset" id="reset_item_action">[% t('Reset') %]</a></span>
177
        [% ELSE %]
178
        [% ELSE %]
178
            <span class="label">Item processing:</span>
179
            <span class="label">[% t('Item processing:') %]</span>
179
            [% IF ( item_action == 'always_add' ) %]
180
            [% IF ( item_action == 'always_add' ) %]
180
                Always add items
181
                [% t('Always add items') %]
181
            [% ELSIF ( item_action == 'add_only_for_matches' ) %]
182
            [% ELSIF ( item_action == 'add_only_for_matches' ) %]
182
                Add items only if matching bib was found
183
                [% t('Add items only if matching bib was found') %]
183
            [% ELSIF ( item_action == 'add_only_for_new' ) %]
184
            [% ELSIF ( item_action == 'add_only_for_new' ) %]
184
                Add items only if no matching bib was found
185
                [% t('Add items only if no matching bib was found') %]
185
            [% ELSIF ( item_action == 'ignore' ) %]
186
            [% ELSIF ( item_action == 'ignore' ) %]
186
                Ignore items
187
                [% t('Ignore items') %]
187
            [% ELSE %]
188
            [% ELSE %]
188
                [% item_action %]
189
                [% item_action %]
189
            [% END %]
190
            [% END %]
Lines 204-222 Link Here
204
    <input type="hidden" name="import_batch_id" value="[% import_batch_id %]" />
205
    <input type="hidden" name="import_batch_id" value="[% import_batch_id %]" />
205
    <fieldset class="action">
206
    <fieldset class="action">
206
    [% IF ( record_type != 'auth' ) %]
207
    [% IF ( record_type != 'auth' ) %]
207
    Add new bibliographic records into this framework:
208
    [% t('Add new bibliographic records into this framework:') %]
208
    <select name="framework" id="frameworks">
209
    <select name="framework" id="frameworks">
209
      <option value="">Default</option>
210
      <option value="">[% t('Default') %]</option>
210
      [% FOREACH framework IN frameworks %]
211
      [% FOREACH framework IN frameworks %]
211
          <option value="[% framework.frameworkcode %]">[% framework.frameworktext %]</option>
212
          <option value="[% framework.frameworkcode %]">[% framework.frameworktext %]</option>
212
      [% END %]
213
      [% END %]
213
    </select>
214
    </select>
214
    [% END %]
215
    [% END %]
215
    <br/>
216
    <br />
216
    <input type="submit" class="button" name="mainformsubmit" value="Import this batch into the catalog" />
217
    <input type="submit" class="button" name="mainformsubmit" value="Import this batch into the catalog" />
217
    </fieldset>
218
    </fieldset>
218
  </form>
219
  </form>
219
  <div id="jobpanel"><div id="jobstatus" class="progress_panel">Job progress: <div id="jobprogress"></div> <span id="jobprogresspercent">0</span>%</div>
220
  <div id="jobpanel"><div id="jobstatus" class="progress_panel">[% t('Job progress:') %] <div id="jobprogress"></div> <span id="jobprogresspercent">[% t('0') %]</span>%</div>
220
     <div id="jobfailed"></div></div>
221
     <div id="jobfailed"></div></div>
221
  [% END %]
222
  [% END %]
222
  [% IF ( can_revert ) %]
223
  [% IF ( can_revert ) %]
Lines 227-259 Link Here
227
    <input type="hidden" name="import_batch_id" value="[% import_batch_id %]" />
228
    <input type="hidden" name="import_batch_id" value="[% import_batch_id %]" />
228
    <fieldset class="action"><input type="submit" class="button" name="mainformsubmit" value="Undo import into catalog" /></fieldset>
229
    <fieldset class="action"><input type="submit" class="button" name="mainformsubmit" value="Undo import into catalog" /></fieldset>
229
  </form>
230
  </form>
230
  <div id="jobpanel"><div id="jobstatus">Job progress: <div id="jobprogress"></div> <span id="jobprogresspercent">0</span>%</div>
231
  <div id="jobpanel"><div id="jobstatus">[% t('Job progress:') %] <div id="jobprogress"></div> <span id="jobprogresspercent">[% t('0') %]</span>%</div>
231
     <div id="jobfailed"></div></div>
232
     <div id="jobfailed"></div></div>
232
  [% END %]
233
  [% END %]
233
</div>
234
</div>
234
  [% IF ( did_commit ) %]
235
  [% IF ( did_commit ) %]
235
  <div class="dialog message">Completed import of records</div>
236
  <div class="dialog message">[% t('Completed import of records') %]</div>
236
  <table>
237
  <table>
237
  <tr><td>Number of records added</td><td>[% num_added %]</td></tr>
238
  <tr><td>[% t('Number of records added') %]</td><td>[% num_added %]</td></tr>
238
  <tr><td>Number of records updated</td><td>[% num_updated %]</td></tr>
239
  <tr><td>[% t('Number of records updated') %]</td><td>[% num_updated %]</td></tr>
239
  <tr><td>Number of records ignored</td><td>[% num_ignored %]</td></tr>
240
  <tr><td>[% t('Number of records ignored') %]</td><td>[% num_ignored %]</td></tr>
240
  [% IF ( record_type == 'biblio' ) %]
241
  [% IF ( record_type == 'biblio' ) %]
241
      <tr><td>Number of items added</td><td>[% num_items_added %]</td></tr>
242
      <tr><td>[% t('Number of items added') %]</td><td>[% num_items_added %]</td></tr>
242
      <tr><td>Number of items replaced</td><td>[% num_items_replaced %]</td></tr>
243
      <tr><td>[% t('Number of items replaced') %]</td><td>[% num_items_replaced %]</td></tr>
243
      <tr><td>Number of items ignored because of duplicate barcode</td><td>[% num_items_errored %]</td></tr>
244
      <tr><td>[% t('Number of items ignored because of duplicate barcode') %]</td><td>[% num_items_errored %]</td></tr>
244
  [% END %]
245
  [% END %]
245
  </table>
246
  </table>
246
  [% END %]
247
  [% END %]
247
  [% IF ( did_revert ) %]
248
  [% IF ( did_revert ) %]
248
  <div class="dialog message">Success: Import reversed</div>
249
  <div class="dialog message">[% t('Success: Import reversed') %]</div>
249
  <table>
250
  <table>
250
  <tr><td>Number of records deleted</td><td>[% num_deleted %]</td></tr>
251
  <tr><td>[% t('Number of records deleted') %]</td><td>[% num_deleted %]</td></tr>
251
  [% IF ( record_type == 'biblio' ) %]
252
  [% IF ( record_type == 'biblio' ) %]
252
    <tr><td>Number of items deleted</td><td>[% num_items_deleted %]</td></tr>
253
    <tr><td>[% t('Number of items deleted') %]</td><td>[% num_items_deleted %]</td></tr>
253
    <tr><td>Number of records not deleted due to items on loan</td><td>[% num_errors %]</td></tr>
254
    <tr><td>[% t('Number of records not deleted due to items on loan') %]</td><td>[% num_errors %]</td></tr>
254
  [% END %]
255
  [% END %]
255
  <tr><td>Number of records changed back</td><td>[% num_reverted %]</td></tr>
256
  <tr><td>[% t('Number of records changed back') %]</td><td>[% num_reverted %]</td></tr>
256
  <tr><td>Number of records ignored</td><td>[% num_ignored %]</td></tr>
257
  <tr><td>[% t('Number of records ignored') %]</td><td>[% num_ignored %]</td></tr>
257
  </table>
258
  </table>
258
  [% END %]
259
  [% END %]
259
[% END %]
260
[% END %]
Lines 274-326 Link Here
274
<table>
275
<table>
275
  <tr>
276
  <tr>
276
    <th>#</th>
277
    <th>#</th>
277
    <th>File name</th>
278
    <th>[% t('File name') %]</th>
278
    <th>Comments</th>
279
    <th>[% t('Comments') %]</th>
279
    <th>Type</th>
280
    <th>[% t('Type') %]</th>
280
    <th>Status</th>
281
    <th>[% t('Status') %]</th>
281
    <th>Staged</th>
282
    <th>[% t('Staged') %]</th>
282
    <th># Records</th>
283
    <th>[% t('# Records') %]</th>
283
    <th># Items</th>
284
    <th>[% t('# Items') %]</th>
284
    <th>Action</th>
285
    <th>[% t('Action') %]</th>
285
  </tr>
286
  </tr>
286
  [% FOREACH batch_lis IN batch_list %]
287
  [% FOREACH batch_lis IN batch_list %]
287
    <tr>
288
    <tr>
288
    <td>[% batch_lis.import_batch_id %]</td>
289
    <td>[% batch_lis.import_batch_id %]</td>
289
    <td><a href="[% batch_lis.script_name %]?import_batch_id=[% batch_lis.import_batch_id %]">[% batch_lis.file_name %]</a></td>
290
    <td><a href="[% batch_lis.script_name %]?import_batch_id=[% batch_lis.import_batch_id %]">[% batch_lis.file_name %]</a></td>
290
    <td>[% batch_lis.comments %]</td>
291
    <td>[% batch_lis.comments %]</td>
291
    <td>[% IF ( batch_lis.record_type == 'auth' ) %]Authority[% ELSE %]Bibliographic[% END %]</td>
292
    <td>[% IF ( batch_lis.record_type == 'auth' ) %][% t('Authority') %][% ELSE %][% t('Bibliographic') %][% END %]</td>
292
    <td>
293
    <td>
293
      [% IF ( batch_lis.import_status == 'cleaned' ) %]
294
      [% IF ( batch_lis.import_status == 'cleaned' ) %]
294
         Cleaned
295
         [% t('Cleaned') %]
295
      [% ELSIF ( batch_lis.import_status == 'imported' ) %]
296
      [% ELSIF ( batch_lis.import_status == 'imported' ) %]
296
        Imported
297
        [% t('Imported') %]
297
      [% ELSIF ( batch_lis.import_status == 'importing' ) %]
298
      [% ELSIF ( batch_lis.import_status == 'importing' ) %]
298
        Importing
299
        [% t('Importing') %]
299
      [% ELSIF ( batch_lis.import_status == 'reverted' ) %]
300
      [% ELSIF ( batch_lis.import_status == 'reverted' ) %]
300
         Reverted
301
         [% t('Reverted') %]
301
      [% ELSIF ( batch_lis.import_status == 'reverting' ) %]
302
      [% ELSIF ( batch_lis.import_status == 'reverting' ) %]
302
         Reverting
303
         [% t('Reverting') %]
303
      [% ELSIF ( batch_lis.import_status == 'staged' ) %]
304
      [% ELSIF ( batch_lis.import_status == 'staged' ) %]
304
          Staged
305
          [% t('Staged') %]
305
      [% ELSE %]
306
      [% ELSE %]
306
          [% batch_lis.import_status %]
307
          [% batch_lis.import_status %]
307
      [% END %]
308
      [% END %]
308
    </td>
309
    </td>
309
    <td>[% batch_lis.upload_timestamp %]</td>
310
    <td>[% batch_lis.upload_timestamp %]</td>
310
    <td>[% batch_lis.num_records %]</td>
311
    <td>[% batch_lis.num_records %]</td>
311
    <td>[% batch_lis.num_items %][% IF ( batch_lis.num_items ) %] <a href="[% batch_lis.script_name %]?import_batch_id=[% batch_lis.import_batch_id %]&amp;op=create_labels">(Create label batch)</a>[% END %]</td>
312
    <td>[% batch_lis.num_items %][% IF ( batch_lis.num_items ) %] <a href="[% batch_lis.script_name %]?import_batch_id=[% batch_lis.import_batch_id %]&op=create_labels">[% t('(Create label batch)') %]</a>[% END %]</td>
312
    <td class="actions">
313
    <td class="actions">
313
        [% IF ( batch_lis.can_clean ) %]
314
        [% IF ( batch_lis.can_clean ) %]
314
          <form method="post" action="[% batch_lis.script_name %]" name="clean_batch_[% batch_lis.import_batch_id %]" id="clean_batch_[% batch_lis.import_batch_id %]" class="batch_form batch_clean" >
315
          <form method="post" action="[% batch_lis.script_name %]" name="clean_batch_[% batch_lis.import_batch_id %]" id="clean_batch_[% batch_lis.import_batch_id %]" class="batch_form batch_clean">
315
            <input type="hidden" name="import_batch_id" value="[% batch_lis.import_batch_id %]" />
316
            <input type="hidden" name="import_batch_id" value="[% batch_lis.import_batch_id %]" />
316
            <input type="hidden" name="op" value="clean-batch" />
317
            <input type="hidden" name="op" value="clean-batch" />
317
            <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-eraser"></i> Clean</button>
318
            <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-eraser"></i> [% t('Clean') %]</button>
318
          </form>
319
          </form>
319
        [% ELSIF ( batch_lis.import_status == 'cleaned' ) %]
320
        [% ELSIF ( batch_lis.import_status == 'cleaned' ) %]
320
          <form method="post" action="/cgi-bin/koha/tools/manage-marc-import.pl" name="delete_batch_[% batch_lis.import_batch_id %]" id="delete_batch_[% batch_lis.import_batch_id %]" class="batch_form batch_delete">
321
          <form method="post" action="/cgi-bin/koha/tools/manage-marc-import.pl" name="delete_batch_[% batch_lis.import_batch_id %]" id="delete_batch_[% batch_lis.import_batch_id %]" class="batch_form batch_delete">
321
            <input type="hidden" name="import_batch_id" value="[% batch_lis.import_batch_id %]" />
322
            <input type="hidden" name="import_batch_id" value="[% batch_lis.import_batch_id %]" />
322
            <input type="hidden" name="op" value="delete-batch" />
323
            <input type="hidden" name="op" value="delete-batch" />
323
            <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> Delete</button>
324
            <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> [% t('Delete') %]</button>
324
          </form>
325
          </form>
325
        [% END %]
326
        [% END %]
326
    </td>
327
    </td>
Lines 345-356 Link Here
345
        <thead>
346
        <thead>
346
            <tr>
347
            <tr>
347
                <th>#</th>
348
                <th>#</th>
348
                <th>Citation</th>
349
                <th>[% t('Citation') %]</th>
349
                <th>Status</th>
350
                <th>[% t('Status') %]</th>
350
                <th>Match type</th>
351
                <th>[% t('Match type') %]</th>
351
                <th>Match details</th>
352
                <th>[% t('Match details') %]</th>
352
                <th><abbr title="Differences between the original biblio and the imported">Diff</abbr></th>
353
                <th><abbr title="[% t('Differences between the original biblio and the imported') %]">[% t('Diff') %]</abbr></th>
353
                <th>Record</th>
354
                <th>[% t('Record') %]</th>
354
            </tr>
355
            </tr>
355
        </thead>
356
        </thead>
356
    </table>
357
    </table>
Lines 360-372 Link Here
360
        <div class="modal-content">
361
        <div class="modal-content">
361
        <div class="modal-header">
362
        <div class="modal-header">
362
            <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
363
            <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
363
            <h3 id="marcPreviewLabel">MARC preview</h3>
364
            <h3 id="marcPreviewLabel">[% t('MARC preview') %]</h3>
364
        </div>
365
        </div>
365
        <div class="modal-body">
366
        <div class="modal-body">
366
            <div id="loading"> <img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> Loading </div>
367
            <div id="loading"> <img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> [% t('Loading') %] </div>
367
        </div>
368
        </div>
368
        <div class="modal-footer">
369
        <div class="modal-footer">
369
            <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
370
            <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">[% t('Close') %]</button>
370
        </div>
371
        </div>
371
        </div>
372
        </div>
372
        </div>
373
        </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt (-84 / +85 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Tools &rsaquo; MARC modification templates</title>
5
<title>[% t('Koha › Tools › MARC modification templates') %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
<style type="text/css">
7
<style type="text/css">
7
    #add_action { display: none; }
8
    #add_action { display: none; }
Lines 21-33 Link Here
21
[% END %]
22
[% END %]
22
23
23
<div id="breadcrumbs">
24
<div id="breadcrumbs">
24
    <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
25
    <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
25
    <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
26
    <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> ›
26
    [% IF ( template_name ) %]
27
    [% IF ( template_name ) %]
27
        <a href="/cgi-bin/koha/tools/marc_modification_templates.pl">MARC modification templates</a>
28
        <a href="/cgi-bin/koha/tools/marc_modification_templates.pl">[% t('MARC modification templates') %]</a>
28
        &rsaquo; [% template_name %]
29
        › [% template_name %]
29
    [% ELSE %]
30
    [% ELSE %]
30
        MARC modification templates
31
        [% t('MARC modification templates') %]
31
    [% END %]
32
    [% END %]
32
</div>
33
</div>
33
34
Lines 37-51 Link Here
37
        <div class="yui-b">
38
        <div class="yui-b">
38
39
39
            <div id="toolbar" class="btn-toolbar">
40
            <div id="toolbar" class="btn-toolbar">
40
                <a href="#" data-toggle="modal" data-template_id="" data-target="#createTemplate" id="new_template" class="btn btn-default btn-sm duplicate_template"><i class="fa fa-plus"></i> New template</a>
41
                <a href="#" data-toggle="modal" data-template_id="" data-target="#createTemplate" id="new_template" class="btn btn-default btn-sm duplicate_template"><i class="fa fa-plus"></i> [% t('New template') %]</a>
41
                [% IF ( template_id != '' ) %]
42
                [% IF ( template_id != '' ) %]
42
                    <a href="#" id="new_action" class="btn btn-default btn-sm"><i class="fa fa-plus"></i> New action</a>
43
                    <a href="#" id="new_action" class="btn btn-default btn-sm"><i class="fa fa-plus"></i> [% t('New action') %]</a>
43
                [% END %]
44
                [% END %]
44
            </div>
45
            </div>
45
46
46
            [% IF error %]
47
            [% IF error %]
47
                [% IF error == 'no_from_field' %]
48
                [% IF error == 'no_from_field' %]
48
                    <div class="dialog message">Error: no field value specified.</div>
49
                    <div class="dialog message">[% t('Error: no field value specified.') %]</div>
49
                [% END %]
50
                [% END %]
50
            [% END %]
51
            [% END %]
51
52
Lines 53-65 Link Here
53
54
54
                [% IF ( template_id == '' ) %]
55
                [% IF ( template_id == '' ) %]
55
56
56
                    <h2>MARC modification templates [% template_id %]</h2>
57
                    <h2>[% t('MARC modification templates') %] [% template_id %]</h2>
57
58
58
                    <table id="templatest">
59
                    <table id="templatest">
59
                        <thead>
60
                        <thead>
60
                            <tr>
61
                            <tr>
61
                                <th>Template</th>
62
                                <th>[% t('Template') %]</th>
62
                                <th>Actions</th>
63
                                <th>[% t('Actions') %]</th>
63
                            </tr>
64
                            </tr>
64
                        </thead>
65
                        </thead>
65
                        <tbody>
66
                        <tbody>
Lines 67-75 Link Here
67
                                <tr>
68
                                <tr>
68
                                    <td>[% TemplatesLoo.name %]</td>
69
                                    <td>[% TemplatesLoo.name %]</td>
69
                                    <td class="actions">
70
                                    <td class="actions">
70
                                        <a class="btn btn-default btn-xs" href="/cgi-bin/koha/tools/marc_modification_templates.pl?template_id=[% TemplatesLoo.template_id %]&amp;op=select_template" ><i class="fa fa-fw fa-pencil"></i> Edit actions</a>
71
                                        <a class="btn btn-default btn-xs" href="/cgi-bin/koha/tools/marc_modification_templates.pl?template_id=[% TemplatesLoo.template_id %]&op=select_template"><i class="fa fa-fw fa-pencil"></i> [% t('Edit actions') %]</a>
71
                                        <a class="btn btn-default btn-xs duplicate_template" href="#" data-toggle="modal" data-template_id="[% TemplatesLoo.template_id %]" data-target="#createTemplate"><i class="fa fa-fw fa-copy"></i> Duplicate</a>
72
                                        <a class="btn btn-default btn-xs duplicate_template" href="#" data-toggle="modal" data-template_id="[% TemplatesLoo.template_id %]" data-target="#createTemplate"><i class="fa fa-fw fa-copy"></i> [% t('Duplicate') %]</a>
72
                                        <a class="btn btn-default btn-xs delete_template" href="/cgi-bin/koha/tools/marc_modification_templates.pl?template_id=[% TemplatesLoo.template_id %]&amp;op=delete_template"><i class="fa fa-fw fa-trash"></i> Delete</a>
73
                                        <a class="btn btn-default btn-xs delete_template" href="/cgi-bin/koha/tools/marc_modification_templates.pl?template_id=[% TemplatesLoo.template_id %]&op=delete_template"><i class="fa fa-fw fa-trash"></i> [% t('Delete') %]</a>
73
                                    </td>
74
                                    </td>
74
                                </tr>
75
                                </tr>
75
                            [% END %]
76
                            [% END %]
Lines 78-161 Link Here
78
79
79
                [% ELSE %]
80
                [% ELSE %]
80
81
81
                    <h2>Actions for <i>[% template_name %]</i></h2>
82
                    <h2>[% t('Actions for') %] <i>[% template_name %]</i></h2>
82
83
83
                    [% IF ( ActionsLoop ) %]
84
                    [% IF ( ActionsLoop ) %]
84
85
85
                        <table id="template_actions" class="template_actions">
86
                        <table id="template_actions" class="template_actions">
86
                            <thead>
87
                            <thead>
87
                                <tr>
88
                                <tr>
88
                                    <th>Change order</th>
89
                                    <th>[% t('Change order') %]</th>
89
                                    <th>Order</th>
90
                                    <th>[% t('Order') %]</th>
90
                                    <th>Action</th>
91
                                    <th>[% t('Action') %]</th>
91
                                    <th>Description</th>
92
                                    <th>[% t('Description') %]</th>
92
                                    <th>&nbsp;</th>
93
                                    <th> </th>
93
                                    <th>&nbsp;</th>
94
                                    <th> </th>
94
                                </tr>
95
                                </tr>
95
                            </thead>
96
                            </thead>
96
                            <tbody>
97
                            <tbody>
97
                                [% FOREACH ActionsLoo IN ActionsLoop %]
98
                                [% FOREACH ActionsLoo IN ActionsLoop %]
98
                                    <tr>
99
                                    <tr>
99
                                        <td class="actions">
100
                                        <td class="actions">
100
                                            <a title="Move action up" href="marc_modification_templates.pl?op=move_action&amp;where=up&amp;template_id=[% ActionsLoo.template_id %]&amp;mmta_id=[% ActionsLoo.mmta_id %]">
101
                                            <a title="[% t('Move action up') %]" href="marc_modification_templates.pl?op=move_action&where=up&template_id=[% ActionsLoo.template_id %]&mmta_id=[% ActionsLoo.mmta_id %]">
101
                                                <i class="fa fa-arrow-up fa-lg order-control"></i>
102
                                                <i class="fa fa-arrow-up fa-lg order-control"></i>
102
                                            </a>
103
                                            </a>
103
104
104
                                            <a title="Move action to top" href="marc_modification_templates.pl?op=move_action&amp;where=top&amp;template_id=[% ActionsLoo.template_id %]&amp;mmta_id=[% ActionsLoo.mmta_id %]">
105
                                            <a title="[% t('Move action to top') %]" href="marc_modification_templates.pl?op=move_action&where=top&template_id=[% ActionsLoo.template_id %]&mmta_id=[% ActionsLoo.mmta_id %]">
105
                                                <i class="fa fa-arrow-up fa-lg overline order-control"></i>
106
                                                <i class="fa fa-arrow-up fa-lg overline order-control"></i>
106
                                            </a>
107
                                            </a>
107
108
108
                                            <a title="Move action to bottom" href="marc_modification_templates.pl?op=move_action&amp;where=bottom&amp;template_id=[% ActionsLoo.template_id %]&amp;mmta_id=[% ActionsLoo.mmta_id %]">
109
                                            <a title="[% t('Move action to bottom') %]" href="marc_modification_templates.pl?op=move_action&where=bottom&template_id=[% ActionsLoo.template_id %]&mmta_id=[% ActionsLoo.mmta_id %]">
109
                                                <i class="fa fa-arrow-down fa-lg underline order-control"></i>
110
                                                <i class="fa fa-arrow-down fa-lg underline order-control"></i>
110
                                            </a>
111
                                            </a>
111
112
112
                                            <a title="Move action down" href="marc_modification_templates.pl?op=move_action&amp;where=down&amp;template_id=[% ActionsLoo.template_id %]&amp;mmta_id=[% ActionsLoo.mmta_id %]">
113
                                            <a title="[% t('Move action down') %]" href="marc_modification_templates.pl?op=move_action&where=down&template_id=[% ActionsLoo.template_id %]&mmta_id=[% ActionsLoo.mmta_id %]">
113
                                                <i class="fa fa-arrow-down fa-lg order-control"></i>
114
                                                <i class="fa fa-arrow-down fa-lg order-control"></i>
114
                                            </a>
115
                                            </a>
115
                                        </td>
116
                                        </td>
116
117
117
                                        <td>[% ActionsLoo.ordering %]</td>
118
                                        <td>[% ActionsLoo.ordering %]</td>
118
                                        <td>
119
                                        <td>
119
                                            [% IF ( ActionsLoo.action_delete_field ) %] Delete [% END %]
120
                                            [% IF ( ActionsLoo.action_delete_field ) %] [% t('Delete') %] [% END %]
120
                                            [% IF ( ActionsLoo.action_update_field ) %] Update [% END %]
121
                                            [% IF ( ActionsLoo.action_update_field ) %] [% t('Update') %] [% END %]
121
                                            [% IF ( ActionsLoo.action_move_field ) %] Move [% END %]
122
                                            [% IF ( ActionsLoo.action_move_field ) %] [% t('Move') %] [% END %]
122
                                            [% IF ( ActionsLoo.action_copy_field ) %] Copy [% END %]
123
                                            [% IF ( ActionsLoo.action_copy_field ) %] [% t('Copy') %] [% END %]
123
                                            [% IF ( ActionsLoo.action_copy_and_replace_field ) %] Copy and replace [% END %]
124
                                            [% IF ( ActionsLoo.action_copy_and_replace_field ) %] [% t('Copy and replace') %] [% END %]
124
125
125
                                            [% UNLESS ( ActionsLoo.action_update_field ) %]
126
                                            [% UNLESS ( ActionsLoo.action_update_field ) %]
126
                                                [% IF ( ActionsLoo.field_number ) %]
127
                                                [% IF ( ActionsLoo.field_number ) %]
127
                                                    1st
128
                                                    [% t('1st') %]
128
                                                [% END %]
129
                                                [% END %]
129
                                            [% END %]
130
                                            [% END %]
130
131
131
                                            field
132
                                            [% t('field') %]
132
133
133
                                            [% ActionsLoo.from_field %][% IF ( ActionsLoo.from_subfield ) %]$[% ActionsLoo.from_subfield %][% END %]
134
                                            [% ActionsLoo.from_field %][% IF ( ActionsLoo.from_subfield ) %]$[% ActionsLoo.from_subfield %][% END %]
134
135
135
                                            [% IF ( ActionsLoo.field_value ) %]
136
                                            [% IF ( ActionsLoo.field_value ) %]
136
                                                with value <i>[% ActionsLoo.field_value %]</i>
137
                                                [% t('with value') %] <i>[% ActionsLoo.field_value %]</i>
137
                                            [% END %]
138
                                            [% END %]
138
139
139
                                            [% IF ( ActionsLoo.to_field ) %]
140
                                            [% IF ( ActionsLoo.to_field ) %]
140
                                                to [% ActionsLoo.to_field %][% IF ( ActionsLoo.to_subfield ) %]$[% ActionsLoo.to_subfield %][% END %]
141
                                                [% t('to') %] [% ActionsLoo.to_field %][% IF ( ActionsLoo.to_subfield ) %]$[% ActionsLoo.to_subfield %][% END %]
141
142
142
                                                [% IF ( ActionsLoo.to_regex_search ) %]
143
                                                [% IF ( ActionsLoo.to_regex_search ) %]
143
                                                     using RegEx s<strong>/[% ActionsLoo.to_regex_search %]/[% ActionsLoo.to_regex_replace %]/[% ActionsLoo.to_regex_modifiers %]</strong>
144
                                                     [% t('using RegEx s') %]<strong>/[% ActionsLoo.to_regex_search %]/[% ActionsLoo.to_regex_replace %]/[% ActionsLoo.to_regex_modifiers %]</strong>
144
                                                [% END %]
145
                                                [% END %]
145
                                            [% END %]
146
                                            [% END %]
146
147
147
                                            [% IF ( ActionsLoo.conditional ) %]
148
                                            [% IF ( ActionsLoo.conditional ) %]
148
                                                [% IF ( ActionsLoo.conditional_if ) %] if [% END %]
149
                                                [% IF ( ActionsLoo.conditional_if ) %] [% t('if') %] [% END %]
149
                                                [% IF ( ActionsLoo.conditional_unless ) %] unless [% END %]
150
                                                [% IF ( ActionsLoo.conditional_unless ) %] [% t('unless') %] [% END %]
150
151
151
                                                [% ActionsLoo.conditional_field %][% IF ( ActionsLoo.conditional_subfield ) %]$[% ActionsLoo.conditional_subfield %][% END %]
152
                                                [% ActionsLoo.conditional_field %][% IF ( ActionsLoo.conditional_subfield ) %]$[% ActionsLoo.conditional_subfield %][% END %]
152
153
153
                                                [% IF ( ActionsLoo.conditional_comparison_exists ) %] exists [% END %]
154
                                                [% IF ( ActionsLoo.conditional_comparison_exists ) %] [% t('exists') %] [% END %]
154
                                                [% IF ( ActionsLoo.conditional_comparison_not_exists ) %] does not exist [% END %]
155
                                                [% IF ( ActionsLoo.conditional_comparison_not_exists ) %] [% t('does not exist') %] [% END %]
155
                                                [% IF ( ActionsLoo.conditional_comparison_equals ) %] matches [% END %]
156
                                                [% IF ( ActionsLoo.conditional_comparison_equals ) %] [% t('matches') %] [% END %]
156
                                                [% IF ( ActionsLoo.conditional_comparison_not_equals ) %] does not match [% END %]
157
                                                [% IF ( ActionsLoo.conditional_comparison_not_equals ) %] [% t('does not match') %] [% END %]
157
158
158
                                                [% IF ( ActionsLoo.conditional_regex ) %] RegEx m/[% END %]
159
                                                [% IF ( ActionsLoo.conditional_regex ) %] [% t('RegEx m/') %][% END %]
159
                                                <strong>[% ActionsLoo.conditional_value %]</strong>
160
                                                <strong>[% ActionsLoo.conditional_value %]</strong>
160
                                                [% IF ( ActionsLoo.conditional_regex ) %]/[% END %]
161
                                                [% IF ( ActionsLoo.conditional_regex ) %]/[% END %]
161
                                            [% END %]
162
                                            [% END %]
Lines 181-187 Link Here
181
                                            [% conditional_value = BLOCK %][% ActionsLoo.conditional_value |replace('\\\\', '\\\\') |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %][% END %]
182
                                            [% conditional_value = BLOCK %][% ActionsLoo.conditional_value |replace('\\\\', '\\\\') |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %][% END %]
182
                                            [% conditional_regex = BLOCK %][% ActionsLoo.conditional_regex |replace('\\\\', '\\\\') |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %][% END %]
183
                                            [% conditional_regex = BLOCK %][% ActionsLoo.conditional_regex |replace('\\\\', '\\\\') |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %][% END %]
183
                                            [% description = BLOCK %][% ActionsLoo.description |replace('\\\\', '\\\\') |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %][% END %]
184
                                            [% description = BLOCK %][% ActionsLoo.description |replace('\\\\', '\\\\') |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %][% END %]
184
                                            <a class="btn btn-default btn-xs" href="#modaction" onclick='editAction(
185
                                            <a class="btn btn-default btn-xs" href="#modaction" onclick="editAction(
185
                                                            "[% mmta_id %]",
186
                                                            "[% mmta_id %]",
186
                                                            "[% ordering %]",
187
                                                            "[% ordering %]",
187
                                                            "[% action %]",
188
                                                            "[% action %]",
Lines 201-286 Link Here
201
                                                            "[% conditional_value %]",
202
                                                            "[% conditional_value %]",
202
                                                            "[% conditional_regex %]",
203
                                                            "[% conditional_regex %]",
203
                                                            "[% description %]"
204
                                                            "[% description %]"
204
                                                        );updateAllEvery();'><i class="fa fa-pencil"></i> Edit</a>
205
                                                        );updateAllEvery();"><i class="fa fa-pencil"></i> [% t('Edit') %]</a>
205
                                        </td>
206
                                        </td>
206
                                        <td>
207
                                        <td>
207
                                            <a class="btn btn-default btn-xs" href="marc_modification_templates.pl?template_id=[% ActionsLoo.template_id %]&op=delete_action&mmta_id=[% ActionsLoo.mmta_id %]" onclick="return confirmDeleteAction();"><i class="fa fa-trash"></i> Delete</a>
208
                                            <a class="btn btn-default btn-xs" href="marc_modification_templates.pl?template_id=[% ActionsLoo.template_id %]&op=delete_action&mmta_id=[% ActionsLoo.mmta_id %]" onclick="return confirmDeleteAction();"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
208
                                        </td>
209
                                        </td>
209
                                    </tr>
210
                                    </tr>
210
                                [% END # /FOREACH ActionsLoo %]
211
                                [% END # /FOREACH ActionsLoo %]
211
                            </tbody>
212
                            </tbody>
212
                        </table>
213
                        </table>
213
                    [% ELSE %]
214
                    [% ELSE %]
214
                        <div class="dialog message template_actions"><p>There are no defined actions for this template.</p></div>
215
                        <div class="dialog message template_actions"><p>[% t('There are no defined actions for this template.') %]</p></div>
215
                    [% END # /IF ActionsLoop %]
216
                    [% END # /IF ActionsLoop %]
216
217
217
                    <form method="post" action="/cgi-bin/koha/tools/marc_modification_templates.pl" id="add_action" >
218
                    <form method="post" action="/cgi-bin/koha/tools/marc_modification_templates.pl" id="add_action">
218
                        <a name="modaction"></a>
219
                        <a name="modaction"></a>
219
                        <fieldset>
220
                        <fieldset>
220
                            <legend id="modaction_legend">Add a new action</legend>
221
                            <legend id="modaction_legend">[% t('Add a new action') %]</legend>
221
                            <div id="warning_multivalued" style="color:red; display:none;">You have chosen a condition on the same field as the original field. If your records contain multivalued fields it is highly recommended not to do that.</div>
222
                            <div id="warning_multivalued" style="color:red; display:none;">[% t('You have chosen a condition on the same field as the original field. If your records contain multivalued fields it is highly recommended not to do that.') %]</div>
222
223
223
                            <select name="action" id="action" onchange="onActionChange(this);">
224
                            <select name="action" id="action" onchange="onActionChange(this);">
224
                                <option value="delete_field">Delete</option>
225
                                <option value="delete_field">[% t('Delete') %]</option>
225
                                <option value="update_field">Add/Update</option>
226
                                <option value="update_field">[% t('Add/Update') %]</option>
226
                                <option value="move_field">Move</option>
227
                                <option value="move_field">[% t('Move') %]</option>
227
                                <option value="copy_field">Copy</option>
228
                                <option value="copy_field">[% t('Copy') %]</option>
228
                                <option value="copy_and_replace_field">Copy and replace</option>
229
                                <option value="copy_and_replace_field">[% t('Copy and replace') %]</option>
229
                            </select>
230
                            </select>
230
231
231
                            <span id="field_number_block">
232
                            <span id="field_number_block">
232
                                <select name="field_number" id="field_number">
233
                                <select name="field_number" id="field_number">
233
                                    <option value="0">All</option>
234
                                    <option value="0">[% t('All') %]</option>
234
                                    <option value="1">1st</option>
235
                                    <option value="1">[% t('1st') %]</option>
235
                                </select>
236
                                </select>
236
                            </span>
237
                            </span>
237
238
238
                            field(s) <input type="text" name="from_field" id="from_field" size="3" maxlength="3" /> <input type="text" name="from_subfield" id="from_subfield" size="1" maxlength="1" title="let blank for the entire field" />
239
                            [% t('field(s)') %] <input type="text" name="from_field" id="from_field" size="3" maxlength="3" /> <input type="text" name="from_subfield" id="from_subfield" size="1" maxlength="1" title="[% t('let blank for the entire field') %]" />
239
240
240
                            <span name="with_value_block" id="with_value_block" style="display:none;">
241
                            <span name="with_value_block" id="with_value_block" style="display:none;">
241
                                with value <input type="text" name="field_value" id="field_value" />
242
                                [% t('with value') %] <input type="text" name="field_value" id="field_value" />
242
                            </span>
243
                            </span>
243
244
244
                            <span name="to_field_block" id="to_field_block" style="display:none;">
245
                            <span name="to_field_block" id="to_field_block" style="display:none;">
245
                                to field <input type="text" name="to_field" id="to_field" size="3" maxlength="3" /> <input type="text" name="to_subfield" id="to_subfield" size="1" maxlength="1" title="let blank for the entire field" />
246
                                [% t('to field') %] <input type="text" name="to_field" id="to_field" size="3" maxlength="3" /> <input type="text" name="to_subfield" id="to_subfield" size="1" maxlength="1" title="[% t('let blank for the entire field') %]" />
246
247
247
                                <span name="to_field_regex_block" id="to_field_regex_block">
248
                                <span name="to_field_regex_block" id="to_field_regex_block">
248
                                    <sup>
249
                                    <sup>
249
                                        <label for="to_field_regex">RegEx</label>
250
                                        <label for="to_field_regex">[% t('RegEx') %]</label>
250
                                        <input type="checkbox" name="to_field_regex" id="to_field_regex" onchange="onToFieldRegexChange(this);" />
251
                                        <input type="checkbox" name="to_field_regex" id="to_field_regex" onchange="onToFieldRegexChange(this);" />
251
252
252
                                        <span name="to_field_regex_value_block" id="to_field_regex_value_block" style="display:none;">
253
                                        <span name="to_field_regex_value_block" id="to_field_regex_value_block" style="display:none;">
253
                                            s/<input type="text" name="to_regex_search" id="to_regex_search" placeholder="regex pattern" />/<input type="text" name="to_regex_replace" id="to_regex_replace" placeholder="regex replacement" />/<input type="text" name="to_regex_modifiers" id="to_regex_modifiers" placeholder="ig" size="3" />
254
                                            [% t('s/') %]<input type="text" name="to_regex_search" id="to_regex_search" placeholder="[% t('regex pattern') %]" />/<input type="text" name="to_regex_replace" id="to_regex_replace" placeholder="[% t('regex replacement') %]" />/<input type="text" name="to_regex_modifiers" id="to_regex_modifiers" placeholder="[% t('ig') %]" size="3" />
254
                                        </span>
255
                                        </span>
255
                                    </sup>
256
                                    </sup>
256
                                </span>
257
                                </span>
257
                            </span>
258
                            </span>
258
259
259
                            <p/>
260
                            <p />
260
261
261
                            <select name="conditional" id="conditional" onchange="onConditionalChange(this);">
262
                            <select name="conditional" id="conditional" onchange="onConditionalChange(this);">
262
                                <option value="" selected="selected" />
263
                                <option value="" selected="selected" />
263
                                <option value="if">if</option>
264
                                <option value="if">[% t('if') %]</option>
264
                                <option value="unless">unless</option>
265
                                <option value="unless">[% t('unless') %]</option>
265
                            </select>
266
                            </select>
266
267
267
                            <span name="conditional_block" id="conditional_block" style="display:none;">
268
                            <span name="conditional_block" id="conditional_block" style="display:none;">
268
                                field <input type="text" name="conditional_field" id="conditional_field" size="3" maxlength="3" /> <input type="text" name="conditional_subfield" id="conditional_subfield" size="1" maxlength="1" />
269
                                [% t('field') %] <input type="text" name="conditional_field" id="conditional_field" size="3" maxlength="3" /> <input type="text" name="conditional_subfield" id="conditional_subfield" size="1" maxlength="1" />
269
270
270
                                <select name="conditional_comparison" id="conditional_comparison" onchange="onConditionalComparisonChange(this);">
271
                                <select name="conditional_comparison" id="conditional_comparison" onchange="onConditionalComparisonChange(this);">
271
                                    <option value="" />
272
                                    <option value="" />
272
                                    <option value="exists">exists</option>
273
                                    <option value="exists">[% t('exists') %]</option>
273
                                    <option value="not_exists">doesn't exist</option>
274
                                    <option value="not_exists">[% t('doesn\'t exist') %]</option>
274
                                    <option value="equals">matches</option>
275
                                    <option value="equals">[% t('matches') %]</option>
275
                                    <option value="not_equals">doesn't match</option>
276
                                    <option value="not_equals">[% t('doesn\'t match') %]</option>
276
                                </select>
277
                                </select>
277
278
278
                                <span name="conditional_comparison_block" id="conditional_comparison_block" style="display:none;">
279
                                <span name="conditional_comparison_block" id="conditional_comparison_block" style="display:none;">
279
280
280
                                    <span class="match_regex_prefix">m/</span><input type="text" id="conditional_value" name="conditional_value" /><span class="match_regex_suffix">/</span>
281
                                    <span class="match_regex_prefix">[% t('m/') %]</span><input type="text" id="conditional_value" name="conditional_value" /><span class="match_regex_suffix">/</span>
281
282
282
                                    <sup>
283
                                    <sup>
283
                                        <label for="conditional_regex">RegEx</label>
284
                                        <label for="conditional_regex">[% t('RegEx') %]</label>
284
                                        <input type="checkbox" name="conditional_regex" id="conditional_regex" onchange="onConditionalRegexChange(this);" />
285
                                        <input type="checkbox" name="conditional_regex" id="conditional_regex" onchange="onConditionalRegexChange(this);" />
285
                                    </sup>
286
                                    </sup>
286
287
Lines 291-302 Link Here
291
                            <input type="hidden" name="mmta_id" id="mmta_id" />
292
                            <input type="hidden" name="mmta_id" id="mmta_id" />
292
                            <input type="hidden" name="op" value="add_action" />
293
                            <input type="hidden" name="op" value="add_action" />
293
294
294
                            <br/><br/>
295
                            <br /><br />
295
                            <label for="description">Description:</label>
296
                            <label for="description">[% t('Description:') %]</label>
296
                            <input type="text" name="description" id="description" size="60" />
297
                            <input type="text" name="description" id="description" size="60" />
297
298
298
                            <br/><br/>
299
                            <br /><br />
299
                            <input id="action_submit" type="submit" value="Add action" /> <a href="#modaction" id="cancel_edit" onclick="cancelEditAction();">Cancel</a>
300
                            <input id="action_submit" type="submit" value="Add action" /> <a href="#modaction" id="cancel_edit" onclick="cancelEditAction();">[% t('Cancel') %]</a>
300
301
301
                        </fieldset>
302
                        </fieldset>
302
                    </form>
303
                    </form>
Lines 304-310 Link Here
304
                [% END %]
305
                [% END %]
305
306
306
            [% ELSE %]
307
            [% ELSE %]
307
                <div class="dialog message"><p>There are no defined templates. Please create a template first.</p></div>
308
                <div class="dialog message"><p>[% t('There are no defined templates. Please create a template first.') %]</p></div>
308
            [% END # /IF TemplatesLoop %]
309
            [% END # /IF TemplatesLoop %]
309
310
310
            <!-- Modal to create new template -->
311
            <!-- Modal to create new template -->
Lines 313-335 Link Here
313
                <div class="modal-content">
314
                <div class="modal-content">
314
                <div class="modal-header">
315
                <div class="modal-header">
315
                    <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
316
                    <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
316
                    <h3 id="LabelcreateTemplate">Create a new template</h3>
317
                    <h3 id="LabelcreateTemplate">[% t('Create a new template') %]</h3>
317
                </div>
318
                </div>
318
                <form method="post" action="/cgi-bin/koha/tools/marc_modification_templates.pl" id="add_template" class="validated">
319
                <form method="post" action="/cgi-bin/koha/tools/marc_modification_templates.pl" id="add_template" class="validated">
319
                    <div class="modal-body">
320
                    <div class="modal-body">
320
                        <fieldset>
321
                        <fieldset>
321
                            <p>
322
                            <p>
322
                                <label for="template_name" class="required">Name: </label>
323
                                <label for="template_name" class="required">[% t('Name:') %] </label>
323
                                <input name="template_name" id="template_name" type="text" size="30" required="required" class="required" />
324
                                <input name="template_name" id="template_name" type="text" size="30" required="required" class="required" />
324
                                <span class="required">Required</span>
325
                                <span class="required">[% t('Required') %]</span>
325
                            </p>
326
                            </p>
326
327
327
                            <input type="hidden" name="op" value="create_template" />
328
                            <input type="hidden" name="op" value="create_template" />
328
329
329
                            <p>
330
                            <p>
330
                                <label for="duplicate_a_template">Duplicate a template:</label>
331
                                <label for="duplicate_a_template">[% t('Duplicate a template:') %]</label>
331
                                <select name="template_id" id="duplicate_a_template">
332
                                <select name="template_id" id="duplicate_a_template">
332
                                    <option value=""> -- None --</option>
333
                                    <option value=""> [% t('-- None --') %]</option>
333
                                    [% FOREACH TemplatesLoo IN TemplatesLoop %]
334
                                    [% FOREACH TemplatesLoo IN TemplatesLoop %]
334
                                        <option value="[% TemplatesLoo.template_id %]"> [% TemplatesLoo.name %]</option>
335
                                        <option value="[% TemplatesLoo.template_id %]"> [% TemplatesLoo.name %]</option>
335
                                    [% END %]
336
                                    [% END %]
Lines 339-346 Link Here
339
                        </fieldset>
340
                        </fieldset>
340
                    </div>
341
                    </div>
341
                    <div class="modal-footer">
342
                    <div class="modal-footer">
342
                        <button type="submit" class="btn btn-default">Submit</button>
343
                        <button type="submit" class="btn btn-default">[% t('Submit') %]</button>
343
                        <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Cancel</button>
344
                        <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">[% t('Cancel') %]</button>
344
                    </div>
345
                    </div>
345
                </form>
346
                </form>
346
                </div>
347
                </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt (-65 / +66 lines)
Lines 1-10 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% USE KohaDates %]
4
[% USE KohaDates %]
4
[% USE Branches %]
5
[% USE Branches %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Koha &rsaquo; Tools &rsaquo; Batch patron modification</title>
8
<title>[% t('Koha › Tools › Batch patron modification') %]</title>
8
[% INCLUDE 'doc-head-close.inc' %]
9
[% INCLUDE 'doc-head-close.inc' %]
9
[% Asset.css("css/datatables.css") %]
10
[% Asset.css("css/datatables.css") %]
10
</head>
11
</head>
Lines 14-22 Link Here
14
[% INCLUDE 'cat-search.inc' %]
15
[% INCLUDE 'cat-search.inc' %]
15
16
16
<div id="breadcrumbs">
17
<div id="breadcrumbs">
17
    <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
18
    <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
18
    <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
19
    <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> ›
19
    <a href="/cgi-bin/koha/tools/modborrowers.pl">Batch patron modification</a>
20
    <a href="/cgi-bin/koha/tools/modborrowers.pl">[% t('Batch patron modification') %]</a>
20
</div>
21
</div>
21
22
22
<div id="doc3" class="yui-t2">
23
<div id="doc3" class="yui-t2">
Lines 24-44 Link Here
24
        <div id="yui-main">
25
        <div id="yui-main">
25
            <div class="yui-b">
26
            <div class="yui-b">
26
                [% IF ( op == 'show_form' ) %]
27
                [% IF ( op == 'show_form' ) %]
27
                <h1>Batch patron modification</h1>
28
                <h1>[% t('Batch patron modification') %]</h1>
28
                <form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/modborrowers.pl">
29
                <form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/modborrowers.pl">
29
                    <fieldset class="rows">
30
                    <fieldset class="rows">
30
                        <legend>Use a file</legend>
31
                        <legend>[% t('Use a file') %]</legend>
31
                        <ol>
32
                        <ol>
32
                            <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
33
                            <li><label for="uploadfile">[% t('File:') %] </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
33
                        </ol>
34
                        </ol>
34
                    </fieldset>
35
                    </fieldset>
35
36
36
                    [% IF patron_lists %]
37
                    [% IF patron_lists %]
37
                    <fieldset class="rows">
38
                    <fieldset class="rows">
38
                        <legend>Or use a patron list</legend>
39
                        <legend>[% t('Or use a patron list') %]</legend>
39
                        <ol>
40
                        <ol>
40
                            <li>
41
                            <li>
41
                                <label for="patron_list_id">Patron list: </label>
42
                                <label for="patron_list_id">[% t('Patron list:') %] </label>
42
                                <select id="patron_list_id" name="patron_list_id">
43
                                <select id="patron_list_id" name="patron_list_id">
43
                                    <option value=""></option>
44
                                    <option value=""></option>
44
                                    [% FOREACH pl IN patron_lists %]
45
                                    [% FOREACH pl IN patron_lists %]
Lines 51-60 Link Here
51
                    [% END %]
52
                    [% END %]
52
53
53
                    <fieldset class="rows">
54
                    <fieldset class="rows">
54
                        <legend>Or list cardnumbers one by one</legend>
55
                        <legend>[% t('Or list cardnumbers one by one') %]</legend>
55
                        <ol>
56
                        <ol>
56
                            <li>
57
                            <li>
57
                              <label for="cardnumberlist">Card number list (one cardnumber per line): </label>
58
                              <label for="cardnumberlist">[% t('Card number list (one cardnumber per line):') %] </label>
58
                              <textarea rows="10" cols="30" id="cardnumberlist" name="cardnumberlist">[% cardnumberlist %]</textarea>
59
                              <textarea rows="10" cols="30" id="cardnumberlist" name="cardnumberlist">[% cardnumberlist %]</textarea>
59
                            </li>
60
                            </li>
60
                        </ol>
61
                        </ol>
Lines 62-94 Link Here
62
                    <input type="hidden" name="op" value="show" />
63
                    <input type="hidden" name="op" value="show" />
63
                    <fieldset class="action">
64
                    <fieldset class="action">
64
                        <input type="submit" value="Continue" class="button" />
65
                        <input type="submit" value="Continue" class="button" />
65
                        <a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a>
66
                        <a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">[% t('Cancel') %]</a>
66
                    </fieldset>
67
                    </fieldset>
67
                </form>
68
                </form>
68
                [% END %]
69
                [% END %]
69
70
70
                [% IF ( op == 'show') && (!borrowers) && (!notfoundcardnumbers) # Alert if no patrons given%]
71
                [% IF ( op == 'show') && (!borrowers) && (!notfoundcardnumbers) # Alert if no patrons given%]
71
                    [% op = 'noshow' # Change op to prevent display in code below %]
72
                    [% op = 'noshow' # Change op to prevent display in code below %]
72
                    <h1>Batch patrons modification</h1>
73
                    <h1>[% t('Batch patrons modification') %]</h1>
73
                    <div class="dialog alert">
74
                    <div class="dialog alert">
74
                        <p>No patron card numbers given.</p>
75
                        <p>[% t('No patron card numbers given.') %]</p>
75
                        <form action="/cgi-bin/koha/tools/modborrowers.pl" method="get">
76
                        <form action="/cgi-bin/koha/tools/modborrowers.pl" method="get">
76
                         <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> OK</button>
77
                         <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> [% t('OK') %]</button>
77
                        </form>
78
                        </form>
78
                    </div>
79
                    </div>
79
                [% END #Alert if no patrons %]
80
                [% END #Alert if no patrons %]
80
81
81
                [% IF ( op == 'show' or op == 'show_results' ) %]
82
                [% IF ( op == 'show' or op == 'show_results' ) %]
82
                    [% IF ( op == 'show' ) %]
83
                    [% IF ( op == 'show' ) %]
83
                        <h1>Batch patrons modification</h1>
84
                        <h1>[% t('Batch patrons modification') %]</h1>
84
                    [% ELSE %]
85
                    [% ELSE %]
85
                        <h1>Batch patrons results</h1>
86
                        <h1>[% t('Batch patrons results') %]</h1>
86
                    [% END %]
87
                    [% END %]
87
                    [% IF ( notfoundcardnumbers ) %]
88
                    [% IF ( notfoundcardnumbers ) %]
88
                        <div class="dialog alert"><p>Warning, the following cardnumbers were not found:</p></div>
89
                        <div class="dialog alert"><p>[% t('Warning, the following cardnumbers were not found:') %]</p></div>
89
                        <table style="margin:auto;">
90
                        <table style="margin:auto;">
90
                            <thead>
91
                            <thead>
91
                                <tr><th>Cardnumbers not found</th></tr>
92
                                <tr><th>[% t('Cardnumbers not found') %]</th></tr>
92
                            </thead>
93
                            </thead>
93
                            <tbody>
94
                            <tbody>
94
                                [% FOREACH notfoundcardnumber IN notfoundcardnumbers %]
95
                                [% FOREACH notfoundcardnumber IN notfoundcardnumbers %]
Lines 101-113 Link Here
101
                    [% IF ( op == 'show_results' ) %]
102
                    [% IF ( op == 'show_results' ) %]
102
                        [% IF ( errors ) %]
103
                        [% IF ( errors ) %]
103
                            <div class="dialog alert">
104
                            <div class="dialog alert">
104
                            <h4>Errors occurred:</h4>
105
                            <h4>[% t('Errors occurred:') %]</h4>
105
                            <ul class="warnings">
106
                            <ul class="warnings">
106
                            [% FOREACH error IN errors %]
107
                            [% FOREACH error IN errors %]
107
                                [% IF ( error.error == 'can_not_update' ) %]
108
                                [% IF ( error.error == 'can_not_update' ) %]
108
                                    <li>Can not update patron.
109
                                    <li>[% t('Can not update patron.') %]
109
                                    [% IF ( error.cardnumber ) %] Cardnumber:  [% error.cardnumber %] [% END %]
110
                                    [% IF ( error.cardnumber ) %] [% t('Cardnumber:') %]  [% error.cardnumber %] [% END %]
110
                                    (Borrowernumber: [% error.borrowernumber %])
111
                                    [% t('(Borrowernumber:') %] [% error.borrowernumber %])
111
                                    </li>
112
                                    </li>
112
                                [% ELSE %]
113
                                [% ELSE %]
113
                                    <li>[% error.error %]</li>
114
                                    <li>[% error.error %]</li>
Lines 122-128 Link Here
122
                    <form name="f" action="modborrowers.pl" method="post">
123
                    <form name="f" action="modborrowers.pl" method="post">
123
                        <input type="hidden" name="op" value="do" />
124
                        <input type="hidden" name="op" value="do" />
124
                        [% IF ( borrowers ) %]
125
                        [% IF ( borrowers ) %]
125
                            <div id="toolbar"><a id="selectallbutton" href="#"><i class="fa fa-check"></i> Select all</a> | <a id="clearallbutton" href="#"><i class="fa fa-remove"></i> Clear all</a></div>
126
                            <div id="toolbar"><a id="selectallbutton" href="#"><i class="fa fa-check"></i> [% t('Select all') %]</a> | <a id="clearallbutton" href="#"><i class="fa fa-remove"></i> [% t('Clear all') %]</a></div>
126
                        [% END %]
127
                        [% END %]
127
                    [% END %]
128
                    [% END %]
128
                        [% IF borrowers %]
129
                        [% IF borrowers %]
Lines 132-152 Link Here
132
                                        <thead>
133
                                        <thead>
133
                                            <tr>
134
                                            <tr>
134
                                                [% IF ( op == 'show' ) %]
135
                                                [% IF ( op == 'show' ) %]
135
                                                    <th>&nbsp;</th>
136
                                                    <th> </th>
136
                                                [% END %]
137
                                                [% END %]
137
                                                <th>Card number</th>
138
                                                <th>[% t('Card number') %]</th>
138
                                                <th>Surname</th>
139
                                                <th>[% t('Surname') %]</th>
139
                                                <th>First name</th>
140
                                                <th>[% t('First name') %]</th>
140
                                                <th>Library</th>
141
                                                <th>[% t('Library') %]</th>
141
                                                <th>Category</th>
142
                                                <th>[% t('Category') %]</th>
142
                                                <th>City</th>
143
                                                <th>[% t('City') %]</th>
143
                                                <th>State</th>
144
                                                <th>[% t('State') %]</th>
144
                                                <th>ZIP/Postal code</th>
145
                                                <th>[% t('ZIP/Postal code') %]</th>
145
                                                <th>Country</th>
146
                                                <th>[% t('Country') %]</th>
146
                                                <th class="title-string">Registration date</th>
147
                                                <th class="title-string">[% t('Registration date') %]</th>
147
                                                <th class="title-string">Expiry date</th>
148
                                                <th class="title-string">[% t('Expiry date') %]</th>
148
                                                <th>Circulation note</th>
149
                                                <th>[% t('Circulation note') %]</th>
149
                                                <th>Opac Note</th>
150
                                                <th>[% t('Opac Note') %]</th>
150
                                                [% FOREACH attrh IN attributes_header %]
151
                                                [% FOREACH attrh IN attributes_header %]
151
                                                    <th>[% attrh.attribute %]</th>
152
                                                    <th>[% attrh.attribute %]</th>
152
                                                [% END %]
153
                                                [% END %]
Lines 187-194 Link Here
187
188
188
                            [% IF ( op == 'show' ) %]
189
                            [% IF ( op == 'show' ) %]
189
                            <div id="cataloguing_additem_newitem">
190
                            <div id="cataloguing_additem_newitem">
190
                                <h2>Edit patrons</h2>
191
                                <h2>[% t('Edit patrons') %]</h2>
191
                                <div class="hint">Checking the box right next to the label will disable the entry and delete the values of that field on all selected patrons</div>
192
                                <div class="hint">[% t('Checking the box right next to the label will disable the entry and delete the values of that field on all selected patrons') %]</div>
192
                                <fieldset class="rows" id="fields_list">
193
                                <fieldset class="rows" id="fields_list">
193
                                    <ol>
194
                                    <ol>
194
                                        [% FOREACH field IN fields %]
195
                                        [% FOREACH field IN fields %]
Lines 200-232 Link Here
200
                                            [% END %]
201
                                            [% END %]
201
                                            [% SWITCH ( field.name ) %]
202
                                            [% SWITCH ( field.name ) %]
202
                                                [% CASE 'surname' %]
203
                                                [% CASE 'surname' %]
203
                                                Surname:
204
                                                [% t('Surname:') %]
204
                                                [% CASE 'firstname' %]
205
                                                [% CASE 'firstname' %]
205
                                                First name:
206
                                                [% t('First name:') %]
206
                                                [% CASE 'branchcode' %]
207
                                                [% CASE 'branchcode' %]
207
                                                Library:
208
                                                [% t('Library:') %]
208
                                                [% CASE 'categorycode' %]
209
                                                [% CASE 'categorycode' %]
209
                                                Category
210
                                                [% t('Category') %]
210
                                                [% CASE 'city' %]
211
                                                [% CASE 'city' %]
211
                                                City
212
                                                [% t('City') %]
212
                                                [% CASE 'state' %]
213
                                                [% CASE 'state' %]
213
                                                State
214
                                                [% t('State') %]
214
                                                [% CASE 'zipcode' %]
215
                                                [% CASE 'zipcode' %]
215
                                                ZIP/Postal code
216
                                                [% t('ZIP/Postal code') %]
216
                                                [% CASE 'country' %]
217
                                                [% CASE 'country' %]
217
                                                Country
218
                                                [% t('Country') %]
218
                                                [% CASE 'sort1' %]
219
                                                [% CASE 'sort1' %]
219
                                                Sort 1:
220
                                                [% t('Sort 1:') %]
220
                                                [% CASE 'sort2' %]
221
                                                [% CASE 'sort2' %]
221
                                                Sort 2:
222
                                                [% t('Sort 2:') %]
222
                                                [% CASE 'dateenrolled' %]
223
                                                [% CASE 'dateenrolled' %]
223
                                                Registration date:
224
                                                [% t('Registration date:') %]
224
                                                [% CASE 'dateexpiry' %]
225
                                                [% CASE 'dateexpiry' %]
225
                                                Expiry date:
226
                                                [% t('Expiry date:') %]
226
                                                [% CASE 'borrowernotes' %]
227
                                                [% CASE 'borrowernotes' %]
227
                                                Circulation note:
228
                                                [% t('Circulation note:') %]
228
                                                [% CASE 'opacnote' %]
229
                                                [% CASE 'opacnote' %]
229
                                                OPAC note:
230
                                                [% t('OPAC note:') %]
230
                                            [% END %]
231
                                            [% END %]
231
                                            </label>
232
                                            </label>
232
                                            [% IF ( field.type == 'text' ) %]
233
                                            [% IF ( field.type == 'text' ) %]
Lines 234-263 Link Here
234
                                            [% END %]
235
                                            [% END %]
235
                                            [% IF ( field.type == 'select' ) %]
236
                                            [% IF ( field.type == 'select' ) %]
236
                                                [% IF field.option.size %]
237
                                                [% IF field.option.size %]
237
                                                    <select name="[% field.name %]" >
238
                                                    <select name="[% field.name %]">
238
                                                        [% FOREACH opt IN field.option %]
239
                                                        [% FOREACH opt IN field.option %]
239
                                                            <option value="[% opt.value %]">[% opt.lib %]</option>
240
                                                            <option value="[% opt.value %]">[% opt.lib %]</option>
240
                                                        [% END %]
241
                                                        [% END %]
241
                                                    </select>
242
                                                    </select>
242
                                                [% ELSE %]
243
                                                [% ELSE %]
243
                                                    There is no value defined for [% field.name %]
244
                                                    [% t('There is no value defined for') %] [% field.name %]
244
                                                [% END %]
245
                                                [% END %]
245
                                            [% END %]
246
                                            [% END %]
246
                                            [% IF ( field.type == 'date' ) %]
247
                                            [% IF ( field.type == 'date' ) %]
247
                                                <input type="text" name="[% field.name %]" id="[% field.name %]" value="" size="10" maxlength="10" class="datepicker" />
248
                                                <input type="text" name="[% field.name %]" id="[% field.name %]" value="" size="10" maxlength="10" class="datepicker" />
248
                                                <a href="#"  class="clear-date" id="clear-date-[% field.name %]" ><i class="fa fa-fw fa-trash"></i> Clear</a>
249
                                                <a href="#" class="clear-date" id="clear-date-[% field.name %]"><i class="fa fa-fw fa-trash"></i> [% t('Clear') %]</a>
249
                                            [% END %]
250
                                            [% END %]
250
                                            [% IF field.mandatory %]
251
                                            [% IF field.mandatory %]
251
                                                <input type="checkbox" title="This field is mandatory" name="disable_input" value="[% field.name %]" disabled="disabled" readonly="readonly" />
252
                                                <input type="checkbox" title="[% t('This field is mandatory') %]" name="disable_input" value="[% field.name %]" disabled="disabled" readonly="readonly" />
252
                                                <span class="required">Required fields cannot be cleared</span>
253
                                                <span class="required">[% t('Required fields cannot be cleared') %]</span>
253
                                            [% ELSE %]
254
                                            [% ELSE %]
254
                                                <input type="checkbox" title="Check to delete this field" name="disable_input" value="[% field.name %]" />
255
                                                <input type="checkbox" title="[% t('Check to delete this field') %]" name="disable_input" value="[% field.name %]" />
255
                                            [% END %]
256
                                            [% END %]
256
                                        </li>
257
                                        </li>
257
                                        [% END %]
258
                                        [% END %]
258
                                        [% IF ( patron_attributes_codes ) %]
259
                                        [% IF ( patron_attributes_codes ) %]
259
                                            <li class="attributes">
260
                                            <li class="attributes">
260
                                                <label style="width:auto;">Attribute:
261
                                                <label style="width:auto;">[% t('Attribute:') %]
261
                                                    <select name="patron_attributes">
262
                                                    <select name="patron_attributes">
262
                                                        <option value=""></option>
263
                                                        <option value=""></option>
263
                                                        [% FOREACH pac IN patron_attributes_codes %]
264
                                                        [% FOREACH pac IN patron_attributes_codes %]
Lines 265-273 Link Here
265
                                                        [% END %]
266
                                                        [% END %]
266
                                                    </select>
267
                                                    </select>
267
                                                </label>
268
                                                </label>
268
                                                <input type="checkbox" title="check to delete this field" name="disable_input" value="attr0_value" />
269
                                                <input type="checkbox" title="[% t('check to delete this field') %]" name="disable_input" value="attr0_value" />
269
                                                <span class="patron_attributes_value"></span>
270
                                                <span class="patron_attributes_value"></span>
270
                                                <a href="#" class="add_attributes" title="Add an attribute"><i class="fa fa-fw fa-plus"></i> New</a>
271
                                                <a href="#" class="add_attributes" title="[% t('Add an attribute') %]"><i class="fa fa-fw fa-plus"></i> [% t('New') %]</a>
271
                                                <span class="information_category hint" style="width:25%;float:right;"></span>
272
                                                <span class="information_category hint" style="width:25%;float:right;"></span>
272
                                            </li>
273
                                            </li>
273
                                        [% END %]
274
                                        [% END %]
Lines 275-281 Link Here
275
                                </fieldset>
276
                                </fieldset>
276
                                <fieldset class="action">
277
                                <fieldset class="action">
277
                                    <input type="submit" name="mainformsubmit" value="Save" />
278
                                    <input type="submit" name="mainformsubmit" value="Save" />
278
                                    <a href="/cgi-bin/koha/tools/modborrowers.pl" class="cancel">Cancel</a>
279
                                    <a href="/cgi-bin/koha/tools/modborrowers.pl" class="cancel">[% t('Cancel') %]</a>
279
                                </fieldset>
280
                                </fieldset>
280
                            </div>
281
                            </div>
281
                        </form>
282
                        </form>
Lines 284-290 Link Here
284
                [% END %]
285
                [% END %]
285
                [% IF ( op == 'show_results' ) %]
286
                [% IF ( op == 'show_results' ) %]
286
                <p>
287
                <p>
287
                    <a href="/cgi-bin/koha/tools/modborrowers.pl" title="New batch patrons modification">New batch patron modification</a>
288
                    <a href="/cgi-bin/koha/tools/modborrowers.pl" title="[% t('New batch patrons modification') %]">[% t('New batch patron modification') %]</a>
288
                </p>
289
                </p>
289
                [% END %]
290
                [% END %]
290
            </div>
291
            </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt (-27 / +28 lines)
Lines 1-9 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% USE Branches %]
4
[% USE Branches %]
4
[% SET footerjs = 1 %]
5
[% SET footerjs = 1 %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
<title>Koha &rsaquo; Tools &rsaquo; Overdue notice/status triggers</title>
7
<title>[% t('Koha › Tools › Overdue notice/status triggers') %]</title>
7
[% INCLUDE 'doc-head-close.inc' %]
8
[% INCLUDE 'doc-head-close.inc' %]
8
</head>
9
</head>
9
10
Lines 11-17 Link Here
11
[% INCLUDE 'header.inc' %]
12
[% INCLUDE 'header.inc' %]
12
[% INCLUDE 'cat-search.inc' %]
13
[% INCLUDE 'cat-search.inc' %]
13
14
14
<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; Overdue notice/status triggers</div>
15
<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('› Overdue notice/status triggers') %]</div>
15
16
16
<div id="doc3" class="yui-t2">
17
<div id="doc3" class="yui-t2">
17
   
18
   
Lines 19-51 Link Here
19
    <div id="yui-main">
20
    <div id="yui-main">
20
    <div class="yui-b">
21
    <div class="yui-b">
21
22
22
        <h1>Defining [% IF ( branch ) %]overdue actions for [% Branches.GetName( branch ) %][% ELSE %]default overdue actions[% END %]</h1>
23
        <h1>[% t('Defining') %] [% IF ( branch ) %][% t('overdue actions for') %] [% Branches.GetName( branch ) %][% ELSE %][% t('default overdue actions') %][% END %]</h1>
23
        <div class="help">
24
        <div class="help">
24
            <p>Delay is the number of days after a checkout is due before an action is triggered. </p>
25
            <p>[% t('Delay is the number of days after a checkout is due before an action is triggered.') %] </p>
25
            <p>If you want Koha to trigger an action (send a letter or restrict a member), a delay value is required.</p>
26
            <p>[% t('If you want Koha to trigger an action (send a letter or restrict a member), a delay value is required.') %]</p>
26
            <p>Columns must be filled left to right: if the first column is blank, other columns will be ignored. </p>
27
            <p>[% t('Columns must be filled left to right: if the first column is blank, other columns will be ignored.') %] </p>
27
        </div>
28
        </div>
28
            <form method="post" action="/cgi-bin/koha/tools/overduerules.pl" id="selectlibrary">
29
            <form method="post" action="/cgi-bin/koha/tools/overduerules.pl" id="selectlibrary">
29
            <label for="branch">Select a library:</label>
30
            <label for="branch">[% t('Select a library:') %]</label>
30
                <select id="branch" name="branch">
31
                <select id="branch" name="branch">
31
                    <option value="">Default</option>
32
                    <option value="">[% t('Default') %]</option>
32
                    [% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %]
33
                    [% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %]
33
                </select>
34
                </select>
34
                <input type="submit" value="Select" />
35
                <input type="submit" value="Select" />
35
            </form>
36
            </form>
36
            [% IF ( ERROR ) %]
37
            [% IF ( ERROR ) %]
37
            <div class="dialog alert">
38
            <div class="dialog alert">
38
                <h3>Data error</h3>
39
                <h3>[% t('Data error') %]</h3>
39
                <p>The following errors were found. Please correct them and submit again:</p>
40
                <p>[% t('The following errors were found. Please correct them and submit again:') %]</p>
40
                <ul>
41
                <ul>
41
                [% IF ( ERRORDELAY ) %]
42
                [% IF ( ERRORDELAY ) %]
42
                    <li>Delay [% ERRORDELAY %] for [% BORERR %] patron category has some unexpected characters. There should be only numerical characters. </li>
43
                    <li>[% t('Delay') %] [% ERRORDELAY %] [% t('for') %] [% BORERR %] [% t('patron category has some unexpected characters. There should be only numerical characters.') %] </li>
43
                [% END %]
44
                [% END %]
44
                [% IF ( ERRORUSELESSDELAY ) %]
45
                [% IF ( ERRORUSELESSDELAY ) %]
45
                    <li>No letter or restriction action specified for delay [% ERRORUSELESSDELAY %] for [% BORERR %] patron category.  If a delay is supplied, either a letter, restrict action, or both should be specified.</li>
46
                    <li>[% t('No letter or restriction action specified for delay') %] [% ERRORUSELESSDELAY %] [% t('for') %] [% BORERR %] [% t('patron category.') %]  [% t('If a delay is supplied, either a letter, restrict action, or both should be specified.') %]</li>
46
                [% END %]
47
                [% END %]
47
                [% IF ( ERRORORDER ) %]
48
                [% IF ( ERRORORDER ) %]
48
                    <li>The first notice's delay should be less than the second, which should be less than the third for the <strong>[% BORERR %]</strong> patron category </li>
49
                    <li>[% t('The first notice\'s delay should be less than the second, which should be less than the third for the') %] <strong>[% BORERR %]</strong> [% t('patron category') %] </li>
49
                [% END %]
50
                [% END %]
50
                </ul>
51
                </ul>
51
            </div>
52
            </div>
Lines 54-61 Link Here
54
            <form method="post" action="/cgi-bin/koha/tools/overduerules.pl">
55
            <form method="post" action="/cgi-bin/koha/tools/overduerules.pl">
55
                <input type="hidden" name="op" value="save" />
56
                <input type="hidden" name="op" value="save" />
56
                <input type="hidden" name="branch" value="[% branch %]" />
57
                <input type="hidden" name="branch" value="[% branch %]" />
57
                <h3>Rules for overdue actions: [% IF ( branch ) %][% Branches.GetName( branch ) %][% ELSE %] default library [% END %]</h3>
58
                <h3>[% t('Rules for overdue actions:') %] [% IF ( branch ) %][% Branches.GetName( branch ) %][% ELSE %] [% t('default library') %] [% END %]</h3>
58
                    [% IF ( datasaved ) %]<div class="dialog message">Changes saved.</div> [% END %]
59
                    [% IF ( datasaved ) %]<div class="dialog message">[% t('Changes saved.') %]</div> [% END %]
59
60
60
  <div id="rulestabs" class="toptabs">
61
  <div id="rulestabs" class="toptabs">
61
    <ul class="ui-tabs-nav">
62
    <ul class="ui-tabs-nav">
Lines 68-90 Link Here
68
        <table>
69
        <table>
69
          <thead>
70
          <thead>
70
            <tr>
71
            <tr>
71
              <th>&nbsp;</th>
72
              <th> </th>
72
              <th scope="col">Delay</th>
73
              <th scope="col">[% t('Delay') %]</th>
73
              <th scope="col">Letter</th>
74
              <th scope="col">[% t('Letter') %]</th>
74
              <th scope="col">Restrict</th>
75
              <th scope="col">[% t('Restrict') %]</th>
75
              [% FOREACH mtt IN message_transport_types %]
76
              [% FOREACH mtt IN message_transport_types %]
76
                <th scpre="col">
77
                <th scpre="col">
77
                  [% SWITCH mtt %]
78
                  [% SWITCH mtt %]
78
                  [% CASE 'email' %]
79
                  [% CASE 'email' %]
79
                    Email
80
                    [% t('Email') %]
80
                  [% CASE 'print' %]
81
                  [% CASE 'print' %]
81
                    Print
82
                    [% t('Print') %]
82
                  [% CASE 'sms' %]
83
                  [% CASE 'sms' %]
83
                    SMS
84
                    [% t('SMS') %]
84
                  [% CASE 'feed' %]
85
                  [% CASE 'feed' %]
85
                    Feed
86
                    [% t('Feed') %]
86
                  [% CASE 'phone' %]
87
                  [% CASE 'phone' %]
87
                    Phone
88
                    [% t('Phone') %]
88
                  [% CASE %]
89
                  [% CASE %]
89
                    [% mtt %]
90
                    [% mtt %]
90
                  [% END %]
91
                  [% END %]
Lines 101-107 Link Here
101
              </td>
102
              </td>
102
              <td>
103
              <td>
103
                <select name="letter[% tab.number %]-[% value.overduename %]">
104
                <select name="letter[% tab.number %]-[% value.overduename %]">
104
                  <option value="">No notice</option>
105
                  <option value="">[% t('No notice') %]</option>
105
                  [% FOREACH letter IN letters %]
106
                  [% FOREACH letter IN letters %]
106
                    [% IF letter.code == value.selected_lettercode %]
107
                    [% IF letter.code == value.selected_lettercode %]
107
                      <option value="[% letter.code %]" selected="selected">[% letter.name %]</option>
108
                      <option value="[% letter.code %]" selected="selected">[% letter.name %]</option>
Lines 146-153 Link Here
146
                <fieldset class="action"><input type="submit" value="Save changes" /></fieldset>
147
                <fieldset class="action"><input type="submit" value="Save changes" /></fieldset>
147
            </form>
148
            </form>
148
            [% ELSE %]
149
            [% ELSE %]
149
                <div class="warning">You don't have patron categories defined, or the patron categories are not set to receive overdue notices.</div>
150
                <div class="warning">[% t('You don\'t have patron categories defined, or the patron categories are not set to receive overdue notices.') %]</div>
150
                <div class="warning">If this is not what you were expecting, go to <a href="../admin/categories.pl">patron categories</p></div>
151
                <div class="warning">[% t('If this is not what you were expecting, go to') %] <a href="../admin/categories.pl">[% t('patron categories') %]</p></div>
151
            [% END %]
152
            [% END %]
152
    </div>
153
    </div>
153
    </div>
154
    </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/picture-upload.tt (-41 / +42 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Tools &rsaquo; Upload patron images</title>
5
<title>[% t('Koha › Tools › Upload patron images') %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
</head>
7
</head>
7
8
Lines 10-16 Link Here
10
[% INCLUDE 'header.inc' %]
11
[% INCLUDE 'header.inc' %]
11
[% INCLUDE 'patron-search.inc' %]
12
[% INCLUDE 'patron-search.inc' %]
12
13
13
<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; [% IF ( TOTAL ) %]<a href="/cgi-bin/koha/tools/picture-upload.pl">Upload patron images</a> &rsaquo; Results[% ELSE %]Upload patron images[% END %] </div>
14
<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> › [% IF ( TOTAL ) %]<a href="/cgi-bin/koha/tools/picture-upload.pl">[% t('Upload patron images') %]</a> [% t('› Results') %][% ELSE %][% t('Upload patron images') %][% END %] </div>
14
15
15
<div id="doc3" class="yui-t2">
16
<div id="doc3" class="yui-t2">
16
    <div id="bd">
17
    <div id="bd">
Lines 20-52 Link Here
20
            [% IF ( ERRORS ) %]
21
            [% IF ( ERRORS ) %]
21
				[% IF ( TCOUNTS ) %]
22
				[% IF ( TCOUNTS ) %]
22
					<div class="dialog alert">
23
					<div class="dialog alert">
23
                    <h3>Patron image(s) uploaded with some errors</h3>
24
                    <h3>[% t('Patron image(s) uploaded with some errors') %]</h3>
24
                    </div>
25
                    </div>
25
				[% ELSE %]
26
				[% ELSE %]
26
					<div class="dialog alert">
27
					<div class="dialog alert">
27
                    <h3>Patron image failed to upload</h3>
28
                    <h3>[% t('Patron image failed to upload') %]</h3>
28
                    </div>
29
                    </div>
29
				[% END %]
30
				[% END %]
30
            [% ELSE %]
31
            [% ELSE %]
31
                <div class="dialog message">
32
                <div class="dialog message">
32
                <h3>Patron image(s) successfully uploaded</h3>
33
                <h3>[% t('Patron image(s) successfully uploaded') %]</h3>
33
                </div>
34
                </div>
34
            [% END %]
35
            [% END %]
35
	        <ul class="data">
36
	        <ul class="data">
36
	            <li>Unpacking completed</li>
37
	            <li>[% t('Unpacking completed') %]</li>
37
                  <li>[% TOTAL %] directories scanned.</li>
38
                  <li>[% TOTAL %] [% t('directories scanned.') %]</li>
38
                    <li>[% HANDLED %] directories processed.</li>
39
                    <li>[% HANDLED %] [% t('directories processed.') %]</li>
39
                </ul>
40
                </ul>
40
41
41
                [% FOREACH COUNT IN COUNTS %]
42
                [% FOREACH COUNT IN COUNTS %]
42
                <div class="container">
43
                <div class="container">
43
                    <table>
44
                    <table>
44
                        <caption>Results</caption>
45
                        <caption>[% t('Results') %]</caption>
45
                        <thead>
46
                        <thead>
46
                            <tr><th>File name</th><th>Card number</th><th>Result</th></tr>
47
                            <tr><th>[% t('File name') %]</th><th>[% t('Card number') %]</th><th>[% t('Result') %]</th></tr>
47
                        </thead>
48
                        </thead>
48
                        <tbody>
49
                        <tbody>
49
                        [% IF ( COUNT.TCOUNTS ) %]<li>[% COUNT.TCOUNTS %] image(s) moved into the database:</li>[% END %]
50
                        [% IF ( COUNT.TCOUNTS ) %]<li>[% COUNT.TCOUNTS %] [% t('image(s) moved into the database:') %]</li>[% END %]
50
                            [% FOREACH filename IN COUNT.filenames %]
51
                            [% FOREACH filename IN COUNT.filenames %]
51
                                <tr>
52
                                <tr>
52
                                <td>[% filename.source | html %]</td>
53
                                <td>[% filename.source | html %]</td>
Lines 54-71 Link Here
54
                                <td>
55
                                <td>
55
                                    [% IF ( filename.filerrors ) %]
56
                                    [% IF ( filename.filerrors ) %]
56
                                    [% FOREACH filerror IN filename.filerrors %]
57
                                    [% FOREACH filerror IN filename.filerrors %]
57
                                        [% IF ( filerror.DBERR ) %]<b>ERROR:</b> Image not imported because the database returned an error. Please refer to the error log for more details.
58
                                        [% IF ( filerror.DBERR ) %]<b>[% t('ERROR:') %]</b> [% t('Image not imported because the database returned an error. Please refer to the error log for more details.') %]
58
                                        [% ELSIF ( filerror.IMGEXISTS ) %]<b>ERROR:</b> Image not imported because this patron does not exist in the database.
59
                                        [% ELSIF ( filerror.IMGEXISTS ) %]<b>[% t('ERROR:') %]</b> [% t('Image not imported because this patron does not exist in the database.') %]
59
                                        [% ELSIF ( filerror.MIMERR ) %]<b>ERROR:</b> Image not imported because the image format is unrecognized.
60
                                        [% ELSIF ( filerror.MIMERR ) %]<b>[% t('ERROR:') %]</b> [% t('Image not imported because the image format is unrecognized.') %]
60
                                        [% ELSIF ( filerror.CORERR ) %]<b>ERROR:</b> Image not imported because the image file is corrupted.
61
                                        [% ELSIF ( filerror.CORERR ) %]<b>[% t('ERROR:') %]</b> [% t('Image not imported because the image file is corrupted.') %]
61
                                        [% ELSIF ( filerror.OPNERR ) %]<b>ERROR:</b> Image not imported because Koha was unable to open the image for reading.
62
                                        [% ELSIF ( filerror.OPNERR ) %]<b>[% t('ERROR:') %]</b> [% t('Image not imported because Koha was unable to open the image for reading.') %]
62
                                        [% ELSIF ( filerror.OVRSIZ ) %]<b>ERROR:</b> Image not imported because the image file is too big (see online help for maximum size).
63
                                        [% ELSIF ( filerror.OVRSIZ ) %]<b>[% t('ERROR:') %]</b> [% t('Image not imported because the image file is too big (see online help for maximum size).') %]
63
                                        [% ELSIF ( filerror.CRDFIL ) %]<b>ERROR:</b> Image not imported ([% filerror.CRDFIL %] missing).
64
                                        [% ELSIF ( filerror.CRDFIL ) %]<b>[% t('ERROR:') %]</b> [% t('Image not imported (') %][% filerror.CRDFIL %] [% t('missing).') %]
64
                                        [% ELSIF ( filerror.CARDNUMBER_DOES_NOT_EXIST ) %]<b>ERROR:</b> Image not imported because this patron does not exist in the database.
65
                                        [% ELSIF ( filerror.CARDNUMBER_DOES_NOT_EXIST ) %]<b>[% t('ERROR:') %]</b> [% t('Image not imported because this patron does not exist in the database.') %]
65
                                        [% ELSE %]<b>ERROR:</b> Image not imported because of an unknown error. Please refer to the error log for more details.
66
                                        [% ELSE %]<b>[% t('ERROR:') %]</b> [% t('Image not imported because of an unknown error. Please refer to the error log for more details.') %]
66
                                        [% END %]
67
                                        [% END %]
67
                                    [% END %]
68
                                    [% END %]
68
                                [% ELSE %] imported successfully.
69
                                [% ELSE %] [% t('imported successfully.') %]
69
                                    [% END %]</td>
70
                                    [% END %]</td>
70
                                </tr>
71
                                </tr>
71
                        [% END %]
72
                        [% END %]
Lines 75-126 Link Here
75
                [% END %]
76
                [% END %]
76
<ul>
77
<ul>
77
                [% IF ( borrowernumber ) %]
78
                [% IF ( borrowernumber ) %]
78
                    <li><a id="member" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">Return to patron detail</a></li>
79
                    <li><a id="member" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% t('Return to patron detail') %]</a></li>
79
                [% ELSE %]
80
                [% ELSE %]
80
                    <li><a id="uploadmore" href="/cgi-bin/koha/tools/picture-upload.pl">Upload more images</a></li>
81
                    <li><a id="uploadmore" href="/cgi-bin/koha/tools/picture-upload.pl">[% t('Upload more images') %]</a></li>
81
                    <li><a id="doneupload" href="/cgi-bin/koha/tools/tools-home.pl">Return to tools</a></li>
82
                    <li><a id="doneupload" href="/cgi-bin/koha/tools/tools-home.pl">[% t('Return to tools') %]</a></li>
82
                [% END %]</ul>
83
                [% END %]</ul>
83
            </div>
84
            </div>
84
[% ELSE %]
85
[% ELSE %]
85
    <div class="yui-b">
86
    <div class="yui-b">
86
                <h1>Upload patron images</h1>
87
                <h1>[% t('Upload patron images') %]</h1>
87
                [% IF ( ERRORS ) %]
88
                [% IF ( ERRORS ) %]
88
                <div class="dialog alert">
89
                <div class="dialog alert">
89
                    [% FOREACH ERROR IN ERRORS %]
90
                    [% FOREACH ERROR IN ERRORS %]
90
                        [% IF ( ERROR.NOTZIP ) %]<li><b>The upload file does not appear to be a zip file.  The extension is not '.zip'.</b></li>
91
                        [% IF ( ERROR.NOTZIP ) %]<li><b>[% t('The upload file does not appear to be a zip file.') %]  [% t('The extension is not \'.zip\'.') %]</b></li>
91
                        [% ELSIF ( ERROR.NOWRITETEMP ) %]<li><b>This script is not able to create/write to the necessary temporary directory.</b></li>
92
                        [% ELSIF ( ERROR.NOWRITETEMP ) %]<li><b>[% t('This script is not able to create/write to the necessary temporary directory.') %]</b></li>
92
                        [% ELSIF ( ERROR.EMPTYUPLOAD ) %]<li><b>The upload file appears to be empty.</b></li>
93
                        [% ELSIF ( ERROR.EMPTYUPLOAD ) %]<li><b>[% t('The upload file appears to be empty.') %]</b></li>
93
                        [% ELSIF ( ERROR.OPNLINK ) %]<li><b>Cannot open [% ERROR.OPNLINK %] to read.<br />Please verify that it exists.</b></li>
94
                        [% ELSIF ( ERROR.OPNLINK ) %]<li><b>[% t('Cannot open') %] [% ERROR.OPNLINK %] [% t('to read.') %]<br />[% t('Please verify that it exists.') %]</b></li>
94
                        [% ELSIF ( ERROR.OPNIMG ) %]<li><b>Cannot open [% ERROR.OPNIMG %] to read.<br />Please verify that it exists.</b></li>
95
                        [% ELSIF ( ERROR.OPNIMG ) %]<li><b>[% t('Cannot open') %] [% ERROR.OPNIMG %] [% t('to read.') %]<br />[% t('Please verify that it exists.') %]</b></li>
95
                        [% ELSIF ( ERROR.DELERR ) %]<li><b>Unrecognized or missing field delimiter.<br />Please verify that you are using either a single quote or a tab.</b></li>
96
                        [% ELSIF ( ERROR.DELERR ) %]<li><b>[% t('Unrecognized or missing field delimiter.') %]<br />[% t('Please verify that you are using either a single quote or a tab.') %]</b></li>
96
                        [% ELSIF ( ERROR.UZIPFAIL ) %]<li><b>[% ERROR.UZIPFAIL %] failed to unpack.<br />Please verify the integrity of the ZIP file and retry.</b></li>
97
                        [% ELSIF ( ERROR.UZIPFAIL ) %]<li><b>[% ERROR.UZIPFAIL %] [% t('failed to unpack.') %]<br />[% t('Please verify the integrity of the ZIP file and retry.') %]</b></li>
97
                        [% ELSE %]<li><b>[% ERROR.CORERR %] An unknown error has occurred.<br />Please review the error log for more details.</b></li>[% END %]
98
                        [% ELSE %]<li><b>[% ERROR.CORERR %] [% t('An unknown error has occurred.') %]<br />[% t('Please review the error log for more details.') %]</b></li>[% END %]
98
                    [% END %]
99
                    [% END %]
99
                </div>
100
                </div>
100
                [% END %]
101
                [% END %]
101
            <form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data" id="upload_form">
102
            <form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data" id="upload_form">
102
                <fieldset class="rows">
103
                <fieldset class="rows">
103
                    <p><b>NOTE:</b> Only PNG, GIF, JPEG, XPM formats are supported.</p>
104
                    <p><b>[% t('NOTE:') %]</b> [% t('Only PNG, GIF, JPEG, XPM formats are supported.') %]</p>
104
                        <ol class="radio">
105
                        <ol class="radio">
105
                            <li>
106
                            <li>
106
                                <label for="zipfile"><input type="radio" id="zipfile" name="filetype" value="zip" checked="checked" /> Zip file</label></li>
107
                                <label for="zipfile"><input type="radio" id="zipfile" name="filetype" value="zip" checked="checked" /> [% t('Zip file') %]</label></li>
107
                            <li>
108
                            <li>
108
                                <label for="image">
109
                                <label for="image">
109
                                [% IF ( filetype == 'image' ) %]<input type="radio" id="image" name="filetype" value="image" checked="checked" />[% ELSE %]<input type="radio" id="image" name="filetype" value="image" />[% END %] Image file</label>
110
                                [% IF ( filetype == 'image' ) %]<input type="radio" id="image" name="filetype" value="image" checked="checked" />[% ELSE %]<input type="radio" id="image" name="filetype" value="image" />[% END %] [% t('Image file') %]</label>
110
                            </li>
111
                            </li>
111
                            [% IF ( filetype == 'image' ) %]
112
                            [% IF ( filetype == 'image' ) %]
112
                                <li id="cardnum">
113
                                <li id="cardnum">
113
                            [% ELSE %]
114
                            [% ELSE %]
114
                                <li id="cardnum" style="display: none">
115
                                <li id="cardnum" style="display: none">
115
                            [% END %]
116
                            [% END %]
116
                                <label for="cardnumber">Enter patron cardnumber: </label>
117
                                <label for="cardnumber">[% t('Enter patron cardnumber:') %] </label>
117
                                <input type="text" id="cardnumber" name="cardnumber" value="[% cardnumber %]" size="15" />
118
                                <input type="text" id="cardnumber" name="cardnumber" value="[% cardnumber %]" size="15" />
118
                                <span class="required">Required</span>
119
                                <span class="required">[% t('Required') %]</span>
119
                            </li>
120
                            </li>
120
                            <li class="required">
121
                            <li class="required">
121
                                <label for="uploadfile">Select the file to upload: </label>
122
                                <label for="uploadfile">[% t('Select the file to upload:') %] </label>
122
                                <input type="file" id="uploadfile" name="uploadfile" class="required" required="required" />
123
                                <input type="file" id="uploadfile" name="uploadfile" class="required" required="required" />
123
                                <span class="required">Required</span>
124
                                <span class="required">[% t('Required') %]</span>
124
                            </li>
125
                            </li>
125
                        </ol>
126
                        </ol>
126
	            </fieldset>
127
	            </fieldset>
Lines 128-134 Link Here
128
                        <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
129
                        <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
129
                        <input type="hidden" name="op" value="Upload" />
130
                        <input type="hidden" name="op" value="Upload" />
130
                        <input type="submit" value="Upload" class="submit" />
131
                        <input type="submit" value="Upload" class="submit" />
131
						<a href="/cgi-bin/koha/tools/tools-home.pl" class="cancel">Cancel</a>
132
						<a href="/cgi-bin/koha/tools/tools-home.pl" class="cancel">[% t('Cancel') %]</a>
132
                    </fieldset>
133
                    </fieldset>
133
                </form>
134
                </form>
134
	
135
	
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/preview_letter.tt (-14 / +15 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; Preview notice template</title>
3
<title>[% t('Koha › Tools › Preview notice template') %]</title>
3
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4
    </head>
5
    </head>
5
    <body id="preview_letter" class="catalog">
6
    <body id="preview_letter" class="catalog">
Lines 8-20 Link Here
8
                [%# FIXME The message block does not appear at the top of the modal! %]
9
                [%# FIXME The message block does not appear at the top of the modal! %]
9
                <div class="dialog [% m.type %]">
10
                <div class="dialog [% m.type %]">
10
                    [% SWITCH m.code %]
11
                    [% SWITCH m.code %]
11
                    [% CASE 'no_data_for_preview' %]You did not specify data for preview.
12
                    [% CASE 'no_data_for_preview' %][% t('You did not specify data for preview.') %]
12
                    [% CASE 'preview_not_available' %]Preview is not available for letters '[% m.letter_code %]'.
13
                    [% CASE 'preview_not_available' %][% t('Preview is not available for letters \'') %][% m.letter_code %]'.
13
                    [% CASE 'not_checked_in_yet' %]Do not forget that the issue has not been checked in yet.
14
                    [% CASE 'not_checked_in_yet' %][% t('Do not forget that the issue has not been checked in yet.') %]
14
                    [% CASE 'not_checked_out_yet' %]Do not forget that the issue has not been checked out yet.
15
                    [% CASE 'not_checked_out_yet' %][% t('Do not forget that the issue has not been checked out yet.') %]
15
                    [% CASE 'no_checkout' %]This item is not checked out.
16
                    [% CASE 'no_checkout' %][% t('This item is not checked out.') %]
16
                    [% CASE 'no_item_or_no_patron' %]The item or the patron does not exist.
17
                    [% CASE 'no_item_or_no_patron' %][% t('The item or the patron does not exist.') %]
17
                    [% CASE 'no_hold' %]No hold is placed by this patron on this bibliographic record.
18
                    [% CASE 'no_hold' %][% t('No hold is placed by this patron on this bibliographic record.') %]
18
                    [% CASE %][% m.code %]
19
                    [% CASE %][% m.code %]
19
                    [% END %]
20
                    [% END %]
20
                </div>
21
                </div>
Lines 22-37 Link Here
22
23
23
            [% IF rendered_tt_message %]
24
            [% IF rendered_tt_message %]
24
                [% IF messages_are_similar %]
25
                [% IF messages_are_similar %]
25
                    <div class="dialog message">The generated notices are exactly the same!</div>
26
                    <div class="dialog message">[% t('The generated notices are exactly the same!') %]</div>
26
                [% ELSE %]
27
                [% ELSE %]
27
                    <div class="dialog alert">The generated notices are different!</div>
28
                    <div class="dialog alert">[% t('The generated notices are different!') %]</div>
28
                [% END %]
29
                [% END %]
29
            [% END %]
30
            [% END %]
30
31
31
            [% IF rendered_message %]
32
            [% IF rendered_message %]
32
                <div class="yui-g">
33
                <div class="yui-g">
33
                    <div class="yui-u first">
34
                    <div class="yui-u first">
34
                        <h3>Original version</h3>
35
                        <h3>[% t('Original version') %]</h3>
35
                        <span style="font-family:monospace">
36
                        <span style="font-family:monospace">
36
                            [% FILTER html_line_break %]
37
                            [% FILTER html_line_break %]
37
                                [% original_content | html %]
38
                                [% original_content | html %]
Lines 39-45 Link Here
39
                        </span>
40
                        </span>
40
                    </div>
41
                    </div>
41
                    <div class="yui-u">
42
                    <div class="yui-u">
42
                        <h3>Original message, rendered:</h3>
43
                        <h3>[% t('Original message, rendered:') %]</h3>
43
                        <span style="font-family:monospace">
44
                        <span style="font-family:monospace">
44
                            [% FILTER html_line_break %]
45
                            [% FILTER html_line_break %]
45
                                [% rendered_message.content | html %]
46
                                [% rendered_message.content | html %]
Lines 54-60 Link Here
54
            <hr />
55
            <hr />
55
                <div class="yui-g">
56
                <div class="yui-g">
56
                    <div class="yui-u first">
57
                    <div class="yui-u first">
57
                        <h3>Converted version</h3>
58
                        <h3>[% t('Converted version') %]</h3>
58
                        <span style="font-family:monospace">
59
                        <span style="font-family:monospace">
59
                            [% FILTER html_line_break %]
60
                            [% FILTER html_line_break %]
60
                                [% tt_content | html %]
61
                                [% tt_content | html %]
Lines 62-68 Link Here
62
                        </span>
63
                        </span>
63
                    </div>
64
                    </div>
64
                    <div class="yui-u">
65
                    <div class="yui-u">
65
                        <h3>Converted message, rendered:</h3>
66
                        <h3>[% t('Converted message, rendered:') %]</h3>
66
                        <span style="font-family:monospace">
67
                        <span style="font-family:monospace">
67
                            [% FILTER html_line_break %]
68
                            [% FILTER html_line_break %]
68
                                [% rendered_tt_message.content | html %]
69
                                [% rendered_tt_message.content | html %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes-upload.tt (-17 / +18 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
    [% INCLUDE 'doc-head-open.inc' %]
4
    [% INCLUDE 'doc-head-open.inc' %]
4
    <title>Koha &rsaquo; Tools &rsaquo; Quote uploader</title>
5
    <title>[% t('Koha › Tools › Quote uploader') %]</title>
5
    [% INCLUDE 'doc-head-close.inc' %]
6
    [% INCLUDE 'doc-head-close.inc' %]
6
    [% Asset.css("css/uploader.css") %]
7
    [% Asset.css("css/uploader.css") %]
7
    [% Asset.css("css/quotes.css") %]
8
    [% Asset.css("css/quotes.css") %]
Lines 12-65 Link Here
12
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'cat-search.inc' %]
14
[% INCLUDE 'cat-search.inc' %]
14
15
15
<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; <a href="/cgi-bin/koha/tools/quotes.pl">Quote editor</a> &rsaquo; Quote uploader</div>
16
<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> › <a href="/cgi-bin/koha/tools/quotes.pl">[% t('Quote editor') %]</a> [% t('› Quote uploader') %]</div>
16
17
17
<div id="doc3" class="yui-t2">
18
<div id="doc3" class="yui-t2">
18
    <div id="bd">
19
    <div id="bd">
19
        <div id="yui-main">
20
        <div id="yui-main">
20
            <div class="yui-b">
21
            <div class="yui-b">
21
                [% INCLUDE 'quotes-upload-toolbar.inc' %]
22
                [% INCLUDE 'quotes-upload-toolbar.inc' %]
22
                <h2>Quote uploader</h2>
23
                <h2>[% t('Quote uploader') %]</h2>
23
                <div id="instructions">
24
                <div id="instructions">
24
                <fieldset id="file_uploader_help" class="rows">
25
                <fieldset id="file_uploader_help" class="rows">
25
                    <legend>Instructions</legend>
26
                    <legend>[% t('Instructions') %]</legend>
26
                    <div id="file_uploader_inst">
27
                    <div id="file_uploader_inst">
27
                        <ul>
28
                        <ul>
28
                        <li>The quote uploader accepts standard csv files with two columns: "source","text"</li>
29
                        <li>[% t('The quote uploader accepts standard csv files with two columns: &#34;source&#34;,&#34;text&#34;') %]</li>
29
                        <li>Click the "Choose File" button and select the csv file to be uploaded.</li>
30
                        <li>[% t('Click the &#34;Choose File&#34; button and select the csv file to be uploaded.') %]</li>
30
                        <li>The file will be imported into an editable table for review prior to saving.</li>
31
                        <li>[% t('The file will be imported into an editable table for review prior to saving.') %]</li>
31
                        </ul>
32
                        </ul>
32
                    </div>
33
                    </div>
33
                    <div id="file_editor_inst">
34
                    <div id="file_editor_inst">
34
                        <ul>
35
                        <ul>
35
                        <li>Click on any field to edit the contents; Press the &lt;Enter&gt; key to save edit.</li>
36
                        <li>[% t('Click on any field to edit the contents; Press the &lt;Enter&gt; key to save edit.') %]</li>
36
                        <li>Click on one or more quote numbers to select entire quotes for deletion; Click the 'Delete Quote(s)' button to delete selected quotes.</li>
37
                        <li>[% t('Click on one or more quote numbers to select entire quotes for deletion; Click the \'Delete Quote(s)\' button to delete selected quotes.') %]</li>
37
                        <li>Click the 'Save Quotes' button in the toolbar to save the entire batch of quotes.</li>
38
                        <li>[% t('Click the \'Save Quotes\' button in the toolbar to save the entire batch of quotes.') %]</li>
38
                        </ul>
39
                        </ul>
39
                    </div>
40
                    </div>
40
                </fieldset>
41
                </fieldset>
41
                </div>
42
                </div>
42
                <fieldset id="file_uploader" class="rows">
43
                <fieldset id="file_uploader" class="rows">
43
                    <legend>Upload quotes</legend>
44
                    <legend>[% t('Upload quotes') %]</legend>
44
                    <div id="file_upload">
45
                    <div id="file_upload">
45
                        <input type="file" name="file" />
46
                        <input type="file" name="file" />
46
                        <button id="cancel_upload" style="display:none">Cancel upload</button>
47
                        <button id="cancel_upload" style="display:none">[% t('Cancel upload') %]</button>
47
                        <div id="progress_bar"><div class="percent">0%</div></div>
48
                        <div id="progress_bar"><div class="percent">[% t('0%') %]</div></div>
48
                    </div>
49
                    </div>
49
                </fieldset>
50
                </fieldset>
50
                <table id="quotes_editor" style="visibility: hidden;">
51
                <table id="quotes_editor" style="visibility: hidden;">
51
                <thead>
52
                <thead>
52
                    <tr>
53
                    <tr>
53
                        <th>Source</th>
54
                        <th>[% t('Source') %]</th>
54
                        <th>Text</th>
55
                        <th>[% t('Text') %]</th>
55
                        <th>Actions</th>
56
                        <th>[% t('Actions') %]</th>
56
                    </tr>
57
                    </tr>
57
                </thead>
58
                </thead>
58
                <tbody>
59
                <tbody>
59
                    <!-- tbody content is generated by DataTables -->
60
                    <!-- tbody content is generated by DataTables -->
60
                    <tr>
61
                    <tr>
61
                        <td></td>
62
                        <td></td>
62
                        <td>Loading data...</td>
63
                        <td>[% t('Loading data...') %]</td>
63
                        <td></td>
64
                        <td></td>
64
                    </tr>
65
                    </tr>
65
                </tbody>
66
                </tbody>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt (-14 / +15 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
    [% INCLUDE 'doc-head-open.inc' %]
4
    [% INCLUDE 'doc-head-open.inc' %]
4
    <title>Koha &rsaquo; Tools &rsaquo; Quote editor</title>
5
    <title>[% t('Koha › Tools › Quote editor') %]</title>
5
    [% INCLUDE 'doc-head-close.inc' %]
6
    [% INCLUDE 'doc-head-close.inc' %]
6
    [% Asset.css("css/quotes.css") %]
7
    [% Asset.css("css/quotes.css") %]
7
    [% Asset.css("css/datatables.css") %]
8
    [% Asset.css("css/datatables.css") %]
Lines 11-34 Link Here
11
[% INCLUDE 'header.inc' %]
12
[% INCLUDE 'header.inc' %]
12
[% INCLUDE 'cat-search.inc' %]
13
[% INCLUDE 'cat-search.inc' %]
13
14
14
<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; Quote editor</div>
15
<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('› Quote editor') %]</div>
15
16
16
<div id="doc3" class="yui-t2">
17
<div id="doc3" class="yui-t2">
17
    <div id="bd">
18
    <div id="bd">
18
        <div id="yui-main">
19
        <div id="yui-main">
19
            <div class="yui-b">
20
            <div class="yui-b">
20
                [% INCLUDE 'quotes-toolbar.inc' %]
21
                [% INCLUDE 'quotes-toolbar.inc' %]
21
                <h2>Quote editor</h2>
22
                <h2>[% t('Quote editor') %]</h2>
22
                <div id="instructions">
23
                <div id="instructions">
23
                <fieldset id="quote_editor_help" class="rows">
24
                <fieldset id="quote_editor_help" class="rows">
24
                    <legend>Instructions</legend>
25
                    <legend>[% t('Instructions') %]</legend>
25
                    <div id="quote_editor_inst">
26
                    <div id="quote_editor_inst">
26
                        <ul>
27
                        <ul>
27
                        <li>Click on the 'Add quote' button to add a single quote; Press the &lt;Enter&gt; key to save the quote.<br />
28
                        <li>[% t('Click on the \'Add quote\' button to add a single quote; Press the &lt;Enter&gt; key to save the quote.') %]<br />
28
                            <b>Note: </b>Both the 'source' and 'text' fields must have content in order for the quote to be saved.</li>
29
                            <b>[% t('Note:') %] </b>[% t('Both the \'source\' and \'text\' fields must have content in order for the quote to be saved.') %]</li>
29
                        <li>Click on any field to edit the contents; Press the &lt;Enter&gt; key to save edit.</li>
30
                        <li>[% t('Click on any field to edit the contents; Press the &lt;Enter&gt; key to save edit.') %]</li>
30
                        <li>Click on one or more quote numbers to select entire quotes for deletion; Click the 'Delete quote(s)' button to delete selected quotes.</li>
31
                        <li>[% t('Click on one or more quote numbers to select entire quotes for deletion; Click the \'Delete quote(s)\' button to delete selected quotes.') %]</li>
31
                        <li>Click the 'Import quotes' button in the toolbar to import a CSV file of quotes.</li>
32
                        <li>[% t('Click the \'Import quotes\' button in the toolbar to import a CSV file of quotes.') %]</li>
32
                        </ul>
33
                        </ul>
33
                    </div>
34
                    </div>
34
                </fieldset>
35
                </fieldset>
Lines 36-45 Link Here
36
                <table id="quotes_editor">
37
                <table id="quotes_editor">
37
                <thead>
38
                <thead>
38
                    <tr>
39
                    <tr>
39
                        <th><span style="cursor: help" id="id_help">ID</span></th>
40
                        <th><span style="cursor: help" id="id_help">[% t('ID') %]</span></th>
40
                        <th>Source</th>
41
                        <th>[% t('Source') %]</th>
41
                        <th>Text</th>
42
                        <th>[% t('Text') %]</th>
42
                        <th>Last displayed</th>
43
                        <th>[% t('Last displayed') %]</th>
43
                    </tr>
44
                    </tr>
44
                </thead>
45
                </thead>
45
                <tbody>
46
                <tbody>
Lines 47-53 Link Here
47
                    <tr>
48
                    <tr>
48
                        <td></td>
49
                        <td></td>
49
                        <td></td>
50
                        <td></td>
50
                        <td>Loading data...</td>
51
                        <td>[% t('Loading data...') %]</td>
51
                        <td></td>
52
                        <td></td>
52
                    </tr>
53
                    </tr>
53
                </tbody>
54
                </tbody>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/scheduler.tt (-17 / +18 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Tools &rsaquo; Task scheduler</title>
5
<title>[% t('Koha › Tools › Task scheduler') %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
</head>
7
</head>
7
8
Lines 9-15 Link Here
9
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'circ-search.inc' %]
11
[% INCLUDE 'circ-search.inc' %]
11
12
12
<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; <strong>Task scheduler</strong></div>
13
<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> › <strong>[% t('Task scheduler') %]</strong></div>
13
14
14
<div id="doc3" class="yui-t2">
15
<div id="doc3" class="yui-t2">
15
16
Lines 20-41 Link Here
20
<div id="main">
21
<div id="main">
21
22
22
[% IF ( job_add_failed ) %]
23
[% IF ( job_add_failed ) %]
23
<div class="dialog message">Failed to add scheduled task</div>
24
<div class="dialog message">[% t('Failed to add scheduled task') %]</div>
24
[% END %]
25
[% END %]
25
26
26
<form name="form1" action="scheduler.pl" method="post">
27
<form name="form1" action="scheduler.pl" method="post">
27
<input type="hidden" name="mode" value="job_add" />
28
<input type="hidden" name="mode" value="job_add" />
28
29
29
<fieldset class="rows">
30
<fieldset class="rows">
30
<legend>Task scheduler</legend><ol>
31
<legend>[% t('Task scheduler') %]</legend><ol>
31
<li><span class="label">Current server time is:</span>
32
<li><span class="label">[% t('Current server time is:') %]</span>
32
[% time %]</li>
33
[% time %]</li>
33
<li><label for="starttime">Time:</label>
34
<li><label for="starttime">[% t('Time:') %]</label>
34
<input type="text" name="starttime" id="starttime" value="" maxlength="5" size="5" /></li>
35
<input type="text" name="starttime" id="starttime" value="" maxlength="5" size="5" /></li>
35
<li><label for="startdate">Date: </label> <input type="text" size="10" id="startdate" name="startdate" value="" />
36
<li><label for="startdate">[% t('Date:') %] </label> <input type="text" size="10" id="startdate" name="startdate" value="" />
36
<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
37
<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
37
</li>
38
</li>
38
<li><label for="report">Report:</label>
39
<li><label for="report">[% t('Report:') %]</label>
39
<select name="report" id="report">
40
<select name="report" id="report">
40
[% FOREACH savedreport IN savedreports %]
41
[% FOREACH savedreport IN savedreports %]
41
    [% IF ( savedreport.selected ) %]
42
    [% IF ( savedreport.selected ) %]
Lines 47-60 Link Here
47
</select>
48
</select>
48
</li>
49
</li>
49
<li>
50
<li>
50
    <label for="format">Output format:</label>
51
    <label for="format">[% t('Output format:') %]</label>
51
    <select name="format" id="format">
52
    <select name="format" id="format">
52
        <option value="text">Text (TSV)</option>
53
        <option value="text">[% t('Text (TSV)') %]</option>
53
        <option value="csv">CSV</option>
54
        <option value="csv">[% t('CSV') %]</option>
54
        <option value="html">HTML</option>
55
        <option value="html">[% t('HTML') %]</option>
55
    </select>
56
    </select>
56
</li>
57
</li>
57
<li><label for="email">Email:</label>
58
<li><label for="email">[% t('Email:') %]</label>
58
59
59
<input type="text" name="email" id="email" size="50" />
60
<input type="text" name="email" id="email" size="50" />
60
</li>
61
</li>
Lines 62-73 Link Here
62
<fieldset class="action"><input class="submit-button" type="submit" value="Save" /></fieldset>
63
<fieldset class="action"><input class="submit-button" type="submit" value="Save" /></fieldset>
63
</form>
64
</form>
64
65
65
[% IF ( JOBS ) %]<h2>Jobs already entered</h2>
66
[% IF ( JOBS ) %]<h2>[% t('Jobs already entered') %]</h2>
66
<table>
67
<table>
67
<tr>
68
<tr>
68
<th>Date/Time</th>
69
<th>[% t('Date/Time') %]</th>
69
<th>Action</th>
70
<th>[% t('Action') %]</th>
70
<th>&nbsp;</th>
71
<th> </th>
71
</tr>
72
</tr>
72
[% FOREACH JOB IN JOBS %]
73
[% FOREACH JOB IN JOBS %]
73
<form action="scheduler.pl" method="post">
74
<form action="scheduler.pl" method="post">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/showdiffmarc.tt (-7 / +8 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Tools &rsaquo; Manage staged MARC records &rsaquo; Compare matched records</title>
5
<title>[% t('Koha › Tools › Manage staged MARC records › Compare matched records') %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
<style type="text/css">
7
<style type="text/css">
7
    ins { background-color: #e6ffe6; }
8
    ins { background-color: #e6ffe6; }
Lines 16-31 Link Here
16
[% INCLUDE 'header.inc' %]
17
[% INCLUDE 'header.inc' %]
17
18
18
<div id="breadcrumbs">
19
<div id="breadcrumbs">
19
    <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; <a href="/cgi-bin/koha/tools/manage-marc-import.pl">Manage staged MARC records</a> &rsaquo; <a href="/cgi-bin/koha/tools/manage-marc-import.pl?import_batch_id=[% batchid %]">Batch [% batchid %]</a> &rsaquo; Compare matched records
20
    <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> › <a href="/cgi-bin/koha/tools/manage-marc-import.pl">[% t('Manage staged MARC records') %]</a> › <a href="/cgi-bin/koha/tools/manage-marc-import.pl?import_batch_id=[% batchid %]">[% t('Batch') %] [% batchid %]</a> [% t('› Compare matched records') %]
20
</div>
21
</div>
21
22
22
<div id="doc3">
23
<div id="doc3">
23
    <div class="yui-g">
24
    <div class="yui-g">
24
        <div id="col1" class="yui-u first">
25
        <div id="col1" class="yui-u first">
25
            <h1>Original</h1>
26
            <h1>[% t('Original') %]</h1>
26
            [% IF ( ERROR_FORMATTED1 ) %]
27
            [% IF ( ERROR_FORMATTED1 ) %]
27
                <div class="dialog alert">
28
                <div class="dialog alert">
28
                    <p>The biblionumber <em>[% BIBLIONUMBER %]</em> doesn't match any existing record.</p>
29
                    <p>[% t('The biblionumber') %] <em>[% BIBLIONUMBER %]</em> [% t('doesn\'t match any existing record.') %]</p>
29
                </div>
30
                </div>
30
            [% ELSE %]
31
            [% ELSE %]
31
                <h2>[% BIBLIOTITLE %]</h2>
32
                <h2>[% BIBLIOTITLE %]</h2>
Lines 33-42 Link Here
33
            [% END %]
34
            [% END %]
34
        </div>
35
        </div>
35
        <div id="col2" class="yui-u">
36
        <div id="col2" class="yui-u">
36
            <h1>Imported</h1>
37
            <h1>[% t('Imported') %]</h1>
37
            [% IF ( ERROR_FORMATTED2 ) %]
38
            [% IF ( ERROR_FORMATTED2 ) %]
38
                <div class="dialog alert">
39
                <div class="dialog alert">
39
                    <p>The import id number <em>[% IMPORTID %]</em> doesn't match any existing record.</p>
40
                    <p>[% t('The import id number') %] <em>[% IMPORTID %]</em> [% t('doesn\'t match any existing record.') %]</p>
40
                </div>
41
                </div>
41
            [% ELSE %]
42
            [% ELSE %]
42
                <h2>[% IMPORTTITLE %]</h2>
43
                <h2>[% IMPORTTITLE %]</h2>
Lines 45-51 Link Here
45
        </div>
46
        </div>
46
    </div>
47
    </div>
47
48
48
<p><a href="/cgi-bin/koha/tools/manage-marc-import.pl?import_batch_id=[% batchid %]">Return to staged MARC batch [% batchid %]</a></p>
49
<p><a href="/cgi-bin/koha/tools/manage-marc-import.pl?import_batch_id=[% batchid %]">[% t('Return to staged MARC batch') %] [% batchid %]</a></p>
49
50
50
[% MACRO jsinclude BLOCK %]
51
[% MACRO jsinclude BLOCK %]
51
    [% Asset.js("js/tools-menu.js") %]
52
    [% Asset.js("js/tools-menu.js") %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt (-55 / +56 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Tools &rsaquo; Stage MARC records for import</title>
5
<title>[% t('Koha › Tools › Stage MARC records for import') %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
<style type="text/css">
7
<style type="text/css">
7
    #fileuploadstatus,#fileuploadfailed,#fileuploadcancel,#jobpanel,#jobstatus,#jobfailed { display : none; }
8
    #fileuploadstatus,#fileuploadfailed,#fileuploadcancel,#jobpanel,#jobstatus,#jobfailed { display : none; }
Lines 12-18 Link Here
12
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'cat-search.inc' %]
14
[% INCLUDE 'cat-search.inc' %]
14
15
15
<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; [% IF ( uploadmarc ) %]<a href="/cgi-bin/koha/tools/stage-marc-import.pl">Stage MARC records for import</a> &rsaquo; Upload Results[% ELSE %]Stage MARC records for import[% END %]</div>
16
<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> › [% IF ( uploadmarc ) %]<a href="/cgi-bin/koha/tools/stage-marc-import.pl">[% t('Stage MARC records for import') %]</a> [% t('› Upload Results') %][% ELSE %][% t('Stage MARC records for import') %][% END %]</div>
16
17
17
<div id="doc3" class="yui-t2">
18
<div id="doc3" class="yui-t2">
18
   
19
   
Lines 22-88 Link Here
22
23
23
[% IF ( uploadmarc ) %]
24
[% IF ( uploadmarc ) %]
24
<div id="toolbar" class="btn-toolbar">
25
<div id="toolbar" class="btn-toolbar">
25
        <a class="btn btn-default btn-sm" href="/cgi-bin/koha/tools/stage-marc-import.pl"><i class="fa fa-plus"></i> Stage MARC records</a>
26
        <a class="btn btn-default btn-sm" href="/cgi-bin/koha/tools/stage-marc-import.pl"><i class="fa fa-plus"></i> [% t('Stage MARC records') %]</a>
26
        <a class="btn btn-default btn-sm" href="/cgi-bin/koha/tools/manage-marc-import.pl?import_batch_id=[% import_batch_id %]"><i class="fa fa-list-ul"></i> Manage staged records</a>
27
        <a class="btn btn-default btn-sm" href="/cgi-bin/koha/tools/manage-marc-import.pl?import_batch_id=[% import_batch_id %]"><i class="fa fa-list-ul"></i> [% t('Manage staged records') %]</a>
27
</div>
28
</div>
28
[% END %]
29
[% END %]
29
30
30
<h1>Stage MARC records for import</h1>
31
<h1>[% t('Stage MARC records for import') %]</h1>
31
[% IF ( uploadmarc ) %]
32
[% IF ( uploadmarc ) %]
32
<p>MARC staging results :</p>
33
<p>[% t('MARC staging results :') %]</p>
33
<ul>
34
<ul>
34
    [% SWITCH (record_type) %]
35
    [% SWITCH (record_type) %]
35
    [% CASE 'biblio' %]
36
    [% CASE 'biblio' %]
36
        <li>Processing bibliographic records</li>
37
        <li>[% t('Processing bibliographic records') %]</li>
37
    [% CASE 'auth' %]
38
    [% CASE 'auth' %]
38
        <li>Processing authority records</li>
39
        <li>[% t('Processing authority records') %]</li>
39
    [% END %]
40
    [% END %]
40
	<li>[% total %]  records in file</li>
41
	<li>[% total %]  [% t('records in file') %]</li>
41
	<li>[% import_errors %] records not staged because of MARC error</li>
42
	<li>[% import_errors %] [% t('records not staged because of MARC error') %]</li>
42
	<li>[% staged %] records staged</li>
43
	<li>[% staged %] [% t('records staged') %]</li>
43
    [% IF ( checked_matches ) %]
44
    [% IF ( checked_matches ) %]
44
	<li>[% matched %] records with at least one match in catalog per matching rule 
45
	<li>[% matched %] [% t('records with at least one match in catalog per matching rule') %] 
45
        &quot;[% matcher_code %]&quot;</li>
46
        "[% matcher_code %]"</li>
46
    [% ELSE %]
47
    [% ELSE %]
47
        [% IF ( matcher_failed ) %]
48
        [% IF ( matcher_failed ) %]
48
          <li>Record matching failed -- unable to retrieve selected matching rule.</li>
49
          <li>[% t('Record matching failed -- unable to retrieve selected matching rule.') %]</li>
49
        [% ELSE %]
50
        [% ELSE %]
50
          <li>Did not check for matches with existing records in catalog</li>
51
          <li>[% t('Did not check for matches with existing records in catalog') %]</li>
51
        [% END %]
52
        [% END %]
52
    [% END %]
53
    [% END %]
53
    [% IF record_type == 'biblio' %]
54
    [% IF record_type == 'biblio' %]
54
        <li>[% num_items %] item records found and staged</li>
55
        <li>[% num_items %] [% t('item records found and staged') %]</li>
55
    [% END %]
56
    [% END %]
56
	[% IF ( label_batch ) %]
57
	[% IF ( label_batch ) %]
57
	  <li>New label batch created: # [% label_batch %] </li>
58
	  <li>[% t('New label batch created: #') %] [% label_batch %] </li>
58
    [% END %]
59
    [% END %]
59
</ul>
60
</ul>
60
[% ELSE %]
61
[% ELSE %]
61
<ul>
62
<ul>
62
    <li>Select a MARC file to stage in the import reservoir.  It will be parsed, and each valid record staged for later import into the catalog.</li>
63
    <li>[% t('Select a MARC file to stage in the import reservoir.') %]  [% t('It will be parsed, and each valid record staged for later import into the catalog.') %]</li>
63
    <li>You can enter a name for this import. It may be useful, when creating a record, to remember where the suggested MARC data comes from!</li>
64
    <li>[% t('You can enter a name for this import. It may be useful, when creating a record, to remember where the suggested MARC data comes from!') %]</li>
64
</ul>
65
</ul>
65
<form method="post" action="[% SCRIPT_NAME %]" id="uploadfile" enctype="multipart/form-data">
66
<form method="post" action="[% SCRIPT_NAME %]" id="uploadfile" enctype="multipart/form-data">
66
<fieldset class="rows" id="uploadform">
67
<fieldset class="rows" id="uploadform">
67
<legend>Stage records into the reservoir</legend>
68
<legend>[% t('Stage records into the reservoir') %]</legend>
68
<ol>
69
<ol>
69
	<li>
70
	<li>
70
        <div id="fileuploadform">
71
        <div id="fileuploadform">
71
		<label for="fileToUpload">Select the file to stage: </label>
72
		<label for="fileToUpload">[% t('Select the file to stage:') %] </label>
72
		<input type="file" id="fileToUpload" name="fileToUpload" />
73
		<input type="file" id="fileToUpload" name="fileToUpload" />
73
        </div>	</li>
74
        </div>	</li>
74
</ol>
75
</ol>
75
    <fieldset class="action">
76
    <fieldset class="action">
76
        <button id="fileuploadbutton">Upload file</button>
77
        <button id="fileuploadbutton">[% t('Upload file') %]</button>
77
        <button id="fileuploadcancel">Cancel</button>
78
        <button id="fileuploadcancel">[% t('Cancel') %]</button>
78
    </fieldset>
79
    </fieldset>
79
</fieldset>
80
</fieldset>
80
		
81
		
81
    <div id="fileuploadpanel">
82
    <div id="fileuploadpanel">
82
        <div id="fileuploadstatus" class="progress_panel">Upload progress:
83
        <div id="fileuploadstatus" class="progress_panel">[% t('Upload progress:') %]
83
            <progress id="fileuploadprogress" max="100" value="0">
84
            <progress id="fileuploadprogress" max="100" value="0">
84
            </progress>
85
            </progress>
85
            <span class="fileuploadpercent">0</span>%
86
            <span class="fileuploadpercent">[% t('0') %]</span>%
86
        </div>
87
        </div>
87
        <div id="fileuploadfailed"></div>
88
        <div id="fileuploadfailed"></div>
88
    </div>
89
    </div>
Lines 94-128 Link Here
94
        <input type="hidden" name="runinbackground" id="runinbackground" value="" />
95
        <input type="hidden" name="runinbackground" id="runinbackground" value="" />
95
        <input type="hidden" name="completedJobID" id="completedJobID" value="" />
96
        <input type="hidden" name="completedJobID" id="completedJobID" value="" />
96
	<ol><li>
97
	<ol><li>
97
		<label for="comments">Comments about this file: </label>
98
		<label for="comments">[% t('Comments about this file:') %] </label>
98
		<input type="text" id="comments" name="comments" />
99
		<input type="text" id="comments" name="comments" />
99
		
100
		
100
	</li>
101
	</li>
101
    <li>
102
    <li>
102
        <label for='record_type'>Record type:</label>
103
        <label for="record_type">[% t('Record type:') %]</label>
103
        <select name='record_type' id='record_type'>
104
        <select name="record_type" id="record_type">
104
            <option value='biblio' selected='selected'>Bibliographic</option>
105
            <option value="biblio" selected="selected">[% t('Bibliographic') %]</option>
105
            <option value='auth'>Authority</option>
106
            <option value="auth">[% t('Authority') %]</option>
106
        </select>
107
        </select>
107
    </li>
108
    </li>
108
	<li>
109
	<li>
109
		<label for="encoding">Character encoding: </label>
110
		<label for="encoding">[% t('Character encoding:') %] </label>
110
            <select name="encoding" id="encoding">
111
            <select name="encoding" id="encoding">
111
                <option value="UTF-8" selected="selected">UTF-8 (Default)</option>
112
                <option value="UTF-8" selected="selected">[% t('UTF-8 (Default)') %]</option>
112
                <option value="MARC-8">MARC 8</option>
113
                <option value="MARC-8">[% t('MARC 8') %]</option>
113
                <option value="ISO_5426">ISO 5426</option>
114
                <option value="ISO_5426">[% t('ISO 5426') %]</option>
114
                <option value="ISO_6937">ISO 6937</option>
115
                <option value="ISO_6937">[% t('ISO 6937') %]</option>
115
                <option value="ISO_8859-1">ISO 8859-1</option>
116
                <option value="ISO_8859-1">[% t('ISO 8859-1') %]</option>
116
                <option value="EUC-KR">EUC-KR</option>
117
                <option value="EUC-KR">[% t('EUC-KR') %]</option>
117
            </select>
118
            </select>
118
	</li>
119
	</li>
119
    <li>
120
    <li>
120
        <label for='format'>Format:</label>
121
        <label for="format">[% t('Format:') %]</label>
121
        <select name='format' id='format'>
122
        <select name="format" id="format">
122
            <option value='ISO2709'>MARC</option>
123
            <option value="ISO2709">[% t('MARC') %]</option>
123
            <option value='MARCXML'>MARCXML</option>
124
            <option value="MARCXML">[% t('MARCXML') %]</option>
124
            [% FOREACH p IN plugins %]
125
            [% FOREACH p IN plugins %]
125
                <option value="[% p.metadata.class %]">[% p.metadata.name %] ( other format via plugin)</option>
126
                <option value="[% p.metadata.class %]">[% p.metadata.name %] [% t('( other format via plugin)') %]</option>
126
            [% END %]
127
            [% END %]
127
        </select>
128
        </select>
128
    </li>
129
    </li>
Lines 130-141 Link Here
130
131
131
  [% IF MarcModificationTemplatesLoop %]
132
  [% IF MarcModificationTemplatesLoop %]
132
    <fieldset class="rows">
133
    <fieldset class="rows">
133
      <legend>Use MARC Modification Template:</legend>
134
      <legend>[% t('Use MARC Modification Template:') %]</legend>
134
      <ol>
135
      <ol>
135
        <li>
136
        <li>
136
          <label for="comments">Modify record using the following template: </label>
137
          <label for="comments">[% t('Modify record using the following template:') %] </label>
137
          <select name="marc_modification_template_id" id="marc_modification_template_id">
138
          <select name="marc_modification_template_id" id="marc_modification_template_id">
138
            <option value="">Do not use.</option>
139
            <option value="">[% t('Do not use.') %]</option>
139
              [% FOREACH mmt IN MarcModificationTemplatesLoop %]
140
              [% FOREACH mmt IN MarcModificationTemplatesLoop %]
140
                <option value="[% mmt.template_id %]">[% mmt.name %]</option>
141
                <option value="[% mmt.template_id %]">[% mmt.name %]</option>
141
              [% END %]
142
              [% END %]
Lines 146-190 Link Here
146
  [% END %]
147
  [% END %]
147
148
148
  <fieldset class="rows">
149
  <fieldset class="rows">
149
    <legend>Look for existing records in catalog?</legend>
150
    <legend>[% t('Look for existing records in catalog?') %]</legend>
150
    <ol><li><label for="matcher">Record matching rule:</label>
151
    <ol><li><label for="matcher">[% t('Record matching rule:') %]</label>
151
    <select name="matcher" id="matcher">
152
    <select name="matcher" id="matcher">
152
       <option value="">Do not look for matching records</option> 
153
       <option value="">[% t('Do not look for matching records') %]</option> 
153
       [% FOREACH available_matcher IN available_matchers %]
154
       [% FOREACH available_matcher IN available_matchers %]
154
          <option value="[% available_matcher.matcher_id %]">[% available_matcher.code %] ([% available_matcher.description %])
155
          <option value="[% available_matcher.matcher_id %]">[% available_matcher.code %] ([% available_matcher.description %])
155
          </option>
156
          </option>
156
       [% END %]
157
       [% END %]
157
    </select>
158
    </select>
158
    </li>
159
    </li>
159
      <li><label for="overlay_action">Action if matching record found: </label>
160
      <li><label for="overlay_action">[% t('Action if matching record found:') %] </label>
160
           [% INCLUDE 'tools-overlay-action.inc' %]
161
           [% INCLUDE 'tools-overlay-action.inc' %]
161
      </li>
162
      </li>
162
      <li><label for="nomatch_action">Action if no match is found: </label>
163
      <li><label for="nomatch_action">[% t('Action if no match is found:') %] </label>
163
           [% INCLUDE 'tools-nomatch-action.inc' %]
164
           [% INCLUDE 'tools-nomatch-action.inc' %]
164
      </li>
165
      </li>
165
    </ol>
166
    </ol>
166
  </fieldset>
167
  </fieldset>
167
  <fieldset class="rows" id="items">
168
  <fieldset class="rows" id="items">
168
    <legend>Check for embedded item record data?</legend>
169
    <legend>[% t('Check for embedded item record data?') %]</legend>
169
    <ol>
170
    <ol>
170
      <li class="radio">
171
      <li class="radio">
171
        <input type="radio" id="parse_itemsyes" name="parse_items" value="1" checked="checked" />
172
        <input type="radio" id="parse_itemsyes" name="parse_items" value="1" checked="checked" />
172
        <label for="parse_itemsyes">Yes</label>
173
        <label for="parse_itemsyes">[% t('Yes') %]</label>
173
      </li>
174
      </li>
174
      <li class="radio">
175
      <li class="radio">
175
        <input type="radio" id="parse_itemsno" name="parse_items" value="0" />
176
        <input type="radio" id="parse_itemsno" name="parse_items" value="0" />
176
        <label for="parse_itemsno">No</label>
177
        <label for="parse_itemsno">[% t('No') %]</label>
177
      </li>
178
      </li>
178
    </ol>
179
    </ol>
179
    <ol>
180
    <ol>
180
      <li><label for="item_action">How to process items: </label>
181
      <li><label for="item_action">[% t('How to process items:') %] </label>
181
           [% INCLUDE 'tools-item-action.inc' %]
182
           [% INCLUDE 'tools-item-action.inc' %]
182
      </li>
183
      </li>
183
    </ol>
184
    </ol>
184
  </fieldset>
185
  </fieldset>
185
  <fieldset class="action"><input type="button" id="mainformsubmit" value="Stage for import" /></fieldset>
186
  <fieldset class="action"><input type="button" id="mainformsubmit" value="Stage for import" /></fieldset>
186
 
187
 
187
       <div id="jobpanel"><div id="jobstatus" class="progress_panel">Job progress: <div id="jobprogress"></div> <span id="jobprogresspercent">0</span>%</div>
188
       <div id="jobpanel"><div id="jobstatus" class="progress_panel">[% t('Job progress:') %] <div id="jobprogress"></div> <span id="jobprogresspercent">[% t('0') %]</span>%</div>
188
     <div id="jobfailed"></div></div>
189
     <div id="jobfailed"></div></div>
189
  
190
  
190
</form>
191
</form>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt (-73 / +74 lines)
Lines 1-198 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Tools</title>
3
<title>[% t('Koha › Tools') %]</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
</head>
5
</head>
5
<body id="tools_tools-home" class="tools">
6
<body id="tools_tools-home" class="tools">
6
[% INCLUDE 'header.inc' %]
7
[% INCLUDE 'header.inc' %]
7
[% INCLUDE 'cat-search.inc' %]
8
[% INCLUDE 'cat-search.inc' %]
8
9
9
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; Tools</div>
10
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> [% t('› Tools') %]</div>
10
11
11
<div id="doc3">
12
<div id="doc3">
12
<div id="bd">
13
<div id="bd">
13
	<div class="yui-gb">
14
	<div class="yui-gb">
14
15
15
<div class="yui-u first">
16
<div class="yui-u first">
16
<h3>Patrons and circulation</h3>
17
<h3>[% t('Patrons and circulation') %]</h3>
17
<dl>
18
<dl>
18
    [% IF (CAN_user_tools_manage_patron_lists) %]
19
    [% IF (CAN_user_tools_manage_patron_lists) %]
19
    <dt><a href="/cgi-bin/koha/patron_lists/lists.pl">Patron lists</a>
20
    <dt><a href="/cgi-bin/koha/patron_lists/lists.pl">[% t('Patron lists') %]</a>
20
    <dd>Manage lists of patrons.</dd>
21
    <dd>[% t('Manage lists of patrons.') %]</dd>
21
    [% END %]
22
    [% END %]
22
23
23
    [% IF (CAN_user_clubs) %]
24
    [% IF (CAN_user_clubs) %]
24
    <dt><a href="/cgi-bin/koha/clubs/clubs.pl">Patron clubs</a>
25
    <dt><a href="/cgi-bin/koha/clubs/clubs.pl">[% t('Patron clubs') %]</a>
25
    <dd>Manage patron clubs..</dd>
26
    <dd>[% t('Manage patron clubs..') %]</dd>
26
    [% END %]
27
    [% END %]
27
28
28
[% IF ( CAN_user_tools_moderate_comments ) %]
29
[% IF ( CAN_user_tools_moderate_comments ) %]
29
    <dt><a href="/cgi-bin/koha/reviews/reviewswaiting.pl">Comments</a> [% IF ( pendingcomments ) %]<span class="number_box"><a href="/cgi-bin/koha/reviews/reviewswaiting.pl">[% pendingcomments %]</a></span>[% END %]</dt>
30
    <dt><a href="/cgi-bin/koha/reviews/reviewswaiting.pl">[% t('Comments') %]</a> [% IF ( pendingcomments ) %]<span class="number_box"><a href="/cgi-bin/koha/reviews/reviewswaiting.pl">[% pendingcomments %]</a></span>[% END %]</dt>
30
	<dd>Moderate patron comments. </dd>
31
	<dd>[% t('Moderate patron comments.') %] </dd>
31
    [% END %]
32
    [% END %]
32
    
33
    
33
    [% IF ( CAN_user_tools_import_patrons ) %]
34
    [% IF ( CAN_user_tools_import_patrons ) %]
34
    <dt><a href="/cgi-bin/koha/tools/import_borrowers.pl">Import patrons</a></dt>
35
    <dt><a href="/cgi-bin/koha/tools/import_borrowers.pl">[% t('Import patrons') %]</a></dt>
35
    <dd>Import patron data</dd>
36
    <dd>[% t('Import patron data') %]</dd>
36
    [% END %]
37
    [% END %]
37
38
38
    [% IF ( CAN_user_tools_edit_notices ) %]
39
    [% IF ( CAN_user_tools_edit_notices ) %]
39
    <dt><a href="/cgi-bin/koha/tools/letter.pl">Notices &amp; slips</a></dt>
40
    <dt><a href="/cgi-bin/koha/tools/letter.pl">[% t('Notices &amp; slips') %]</a></dt>
40
    <dd>Define notices (print and email notification messages for overdues, etc.)</dd>
41
    <dd>[% t('Define notices (print and email notification messages for overdues, etc.)') %]</dd>
41
    [% END %]
42
    [% END %]
42
43
43
    [% IF ( CAN_user_tools_edit_notice_status_triggers ) %]
44
    [% IF ( CAN_user_tools_edit_notice_status_triggers ) %]
44
    <dt><a href="/cgi-bin/koha/tools/overduerules.pl">Overdue notice/status triggers</a></dt>
45
    <dt><a href="/cgi-bin/koha/tools/overduerules.pl">[% t('Overdue notice/status triggers') %]</a></dt>
45
    <dd>Set notice/status triggers for overdue items</dd>
46
    <dd>[% t('Set notice/status triggers for overdue items') %]</dd>
46
    [% END %]
47
    [% END %]
47
    
48
    
48
    [% IF ( CAN_user_tools_label_creator ) %]
49
    [% IF ( CAN_user_tools_label_creator ) %]
49
    <dt><a href="/cgi-bin/koha/patroncards/home.pl">Patron card creator</a></dt>
50
    <dt><a href="/cgi-bin/koha/patroncards/home.pl">[% t('Patron card creator') %]</a></dt>
50
    <dd>Create printable patron cards</dd>
51
    <dd>[% t('Create printable patron cards') %]</dd>
51
    [% END %]
52
    [% END %]
52
53
53
    [% IF ( CAN_user_tools_delete_anonymize_patrons ) %]
54
    [% IF ( CAN_user_tools_delete_anonymize_patrons ) %]
54
    <dt><a href="/cgi-bin/koha/tools/cleanborrowers.pl">Batch patron deletion/anonymization</a></dt>
55
    <dt><a href="/cgi-bin/koha/tools/cleanborrowers.pl">[% t('Batch patron deletion/anonymization') %]</a></dt>
55
    <dd>Batch delete patrons and delete patron circulation history</dd>
56
    <dd>[% t('Batch delete patrons and delete patron circulation history') %]</dd>
56
    [% END %]
57
    [% END %]
57
58
58
    [% IF ( CAN_user_tools_edit_patrons ) %]
59
    [% IF ( CAN_user_tools_edit_patrons ) %]
59
    <dt><a href="/cgi-bin/koha/tools/modborrowers.pl">Batch patron modification</a></dt>
60
    <dt><a href="/cgi-bin/koha/tools/modborrowers.pl">[% t('Batch patron modification') %]</a></dt>
60
    <dd>Modify patrons in batch</dd>
61
    <dd>[% t('Modify patrons in batch') %]</dd>
61
    [% END %]
62
    [% END %]
62
63
63
    [% IF ( CAN_user_tools_moderate_tags ) %]
64
    [% IF ( CAN_user_tools_moderate_tags ) %]
64
    <dt><a href="/cgi-bin/koha/tags/review.pl">Tags</a> [% IF ( pendingtags ) %]<span class="number_box"><a href="/cgi-bin/koha/tags/review.pl">[% pendingtags %]</a></span>[% END %]</dt>
65
    <dt><a href="/cgi-bin/koha/tags/review.pl">[% t('Tags') %]</a> [% IF ( pendingtags ) %]<span class="number_box"><a href="/cgi-bin/koha/tags/review.pl">[% pendingtags %]</a></span>[% END %]</dt>
65
	<dd>Moderate patron tags</dd>
66
	<dd>[% t('Moderate patron tags') %]</dd>
66
    [% END %]
67
    [% END %]
67
68
68
    [% IF ( CAN_user_tools_batch_upload_patron_images ) %]
69
    [% IF ( CAN_user_tools_batch_upload_patron_images ) %]
69
    <dt><a href="/cgi-bin/koha/tools/picture-upload.pl">Upload patron images</a></dt>
70
    <dt><a href="/cgi-bin/koha/tools/picture-upload.pl">[% t('Upload patron images') %]</a></dt>
70
	<dd>Upload patron images in a batch or one at a time</dd>
71
	<dd>[% t('Upload patron images in a batch or one at a time') %]</dd>
71
    [% END %]
72
    [% END %]
72
	</dl>
73
	</dl>
73
</div>
74
</div>
74
<div class="yui-u">
75
<div class="yui-u">
75
<h3>Additional tools</h3>
76
<h3>[% t('Additional tools') %]</h3>
76
<dl>
77
<dl>
77
    [% IF ( CAN_user_tools_edit_calendar ) %]
78
    [% IF ( CAN_user_tools_edit_calendar ) %]
78
    <dt><a href="/cgi-bin/koha/tools/holidays.pl">Calendar</a></dt>
79
    <dt><a href="/cgi-bin/koha/tools/holidays.pl">[% t('Calendar') %]</a></dt>
79
    <dd>Define days when the library is closed</dd>
80
    <dd>[% t('Define days when the library is closed') %]</dd>
80
    [% END %]
81
    [% END %]
81
82
82
    [% IF ( CAN_user_tools_manage_csv_profiles ) %]
83
    [% IF ( CAN_user_tools_manage_csv_profiles ) %]
83
    <dt><a href="/cgi-bin/koha/tools/csv-profiles.pl">CSV profiles</a></dt>
84
    <dt><a href="/cgi-bin/koha/tools/csv-profiles.pl">[% t('CSV profiles') %]</a></dt>
84
	<dd>Manage CSV export profiles</dd>
85
	<dd>[% t('Manage CSV export profiles') %]</dd>
85
    [% END %]
86
    [% END %]
86
87
87
    [% IF ( CAN_user_tools_view_system_logs ) %]
88
    [% IF ( CAN_user_tools_view_system_logs ) %]
88
	<dt><a href="/cgi-bin/koha/tools/viewlog.pl">Log viewer</a></dt>
89
	<dt><a href="/cgi-bin/koha/tools/viewlog.pl">[% t('Log viewer') %]</a></dt>
89
    <dd>Browse the system logs</dd>
90
    <dd>[% t('Browse the system logs') %]</dd>
90
    [% END %]
91
    [% END %]
91
92
92
    [% IF ( CAN_user_tools_edit_news ) %]
93
    [% IF ( CAN_user_tools_edit_news ) %]
93
    <dt><a href="/cgi-bin/koha/tools/koha-news.pl">News</a></dt>
94
    <dt><a href="/cgi-bin/koha/tools/koha-news.pl">[% t('News') %]</a></dt>
94
    <dd>Write news for the OPAC and staff interfaces</dd>
95
    <dd>[% t('Write news for the OPAC and staff interfaces') %]</dd>
95
    [% END %]
96
    [% END %]
96
97
97
    [% IF ( CAN_user_tools_schedule_tasks ) %]
98
    [% IF ( CAN_user_tools_schedule_tasks ) %]
98
    <dt><a href="/cgi-bin/koha/tools/scheduler.pl">Task scheduler</a></dt>
99
    <dt><a href="/cgi-bin/koha/tools/scheduler.pl">[% t('Task scheduler') %]</a></dt>
99
    <dd>Schedule tasks to run</dd>
100
    <dd>[% t('Schedule tasks to run') %]</dd>
100
    [% END %]
101
    [% END %]
101
	
102
	
102
    [% IF ( CAN_user_tools_edit_quotes ) %]
103
    [% IF ( CAN_user_tools_edit_quotes ) %]
103
    <dt><a href="/cgi-bin/koha/tools/quotes.pl">Edit quotes for QOTD feature</a></dt>
104
    <dt><a href="/cgi-bin/koha/tools/quotes.pl">[% t('Edit quotes for QOTD feature') %]</a></dt>
104
    <dd>Quote editor for Quote-of-the-day feature in OPAC</dd>
105
    <dd>[% t('Quote editor for Quote-of-the-day feature in OPAC') %]</dd>
105
    [% END %]
106
    [% END %]
106
107
107
    [% IF ( UseKohaPlugins && CAN_user_plugins_tool ) %]
108
    [% IF ( UseKohaPlugins && CAN_user_plugins_tool ) %]
108
    <dt><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=tool">Tool plugins</a></dt>
109
    <dt><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=tool">[% t('Tool plugins') %]</a></dt>
109
    <dd>Use tool plugins</dd>
110
    <dd>[% t('Use tool plugins') %]</dd>
110
    [% END %]
111
    [% END %]
111
112
112
    [% IF ( CAN_user_tools_upload_general_files ) %]
113
    [% IF ( CAN_user_tools_upload_general_files ) %]
113
    <dt><a href="/cgi-bin/koha/tools/upload.pl">Upload</a></dt>
114
    <dt><a href="/cgi-bin/koha/tools/upload.pl">[% t('Upload') %]</a></dt>
114
    <dd>Upload any type of file, manage uploads</dd>
115
    <dd>[% t('Upload any type of file, manage uploads') %]</dd>
115
    [% END %]
116
    [% END %]
116
117
117
    [% IF CAN_user_tools_access_files %]
118
    [% IF CAN_user_tools_access_files %]
118
    <dt><a href="/cgi-bin/koha/tools/access_files.pl">Access files</a></dt>
119
    <dt><a href="/cgi-bin/koha/tools/access_files.pl">[% t('Access files') %]</a></dt>
119
    <dd>Access files stored on the server, like log files or reports</dd>
120
    <dd>[% t('Access files stored on the server, like log files or reports') %]</dd>
120
    [% END %]
121
    [% END %]
121
122
122
</dl>
123
</dl>
123
</div>
124
</div>
124
125
125
<div class="yui-u">
126
<div class="yui-u">
126
<h3>Catalog</h3>
127
<h3>[% t('Catalog') %]</h3>
127
<dl>
128
<dl>
128
    [% IF ( CAN_user_tools_items_batchdel ) %]
129
    [% IF ( CAN_user_tools_items_batchdel ) %]
129
    <dt><a href="/cgi-bin/koha/tools/batchMod.pl?del=1">Batch item deletion</a></dt>
130
    <dt><a href="/cgi-bin/koha/tools/batchMod.pl?del=1">[% t('Batch item deletion') %]</a></dt>
130
    <dd>Delete a batch of items</dd>
131
    <dd>[% t('Delete a batch of items') %]</dd>
131
    [% END %]
132
    [% END %]
132
    
133
    
133
    [% IF ( CAN_user_tools_items_batchmod ) %]
134
    [% IF ( CAN_user_tools_items_batchmod ) %]
134
    <dt><a href="/cgi-bin/koha/tools/batchMod.pl">Batch item modification</a></dt>
135
    <dt><a href="/cgi-bin/koha/tools/batchMod.pl">[% t('Batch item modification') %]</a></dt>
135
    <dd>Modify items in a batch</dd>
136
    <dd>[% t('Modify items in a batch') %]</dd>
136
    [% END %]
137
    [% END %]
137
138
138
    [% IF CAN_user_tools_records_batchdel %]
139
    [% IF CAN_user_tools_records_batchdel %]
139
      <dt><a href="/cgi-bin/koha/tools/batch_delete_records.pl">Batch record deletion</a></dt>
140
      <dt><a href="/cgi-bin/koha/tools/batch_delete_records.pl">[% t('Batch record deletion') %]</a></dt>
140
      <dd>Delete a batch of records (bibliographic or authority)</dd>
141
      <dd>[% t('Delete a batch of records (bibliographic or authority)') %]</dd>
141
    [% END %]
142
    [% END %]
142
143
143
    [% IF CAN_user_tools_records_batchmod %]
144
    [% IF CAN_user_tools_records_batchmod %]
144
      <dt><a href="/cgi-bin/koha/tools/batch_record_modification.pl">Batch record modification</a></dt>
145
      <dt><a href="/cgi-bin/koha/tools/batch_record_modification.pl">[% t('Batch record modification') %]</a></dt>
145
      <dd>Modify a batch of records (biblios or authorities)</dd>
146
      <dd>[% t('Modify a batch of records (biblios or authorities)') %]</dd>
146
    [% END %]
147
    [% END %]
147
148
148
    [% IF ( CAN_user_tools_items_batchmod ) %]
149
    [% IF ( CAN_user_tools_items_batchmod ) %]
149
      <dt><a href="/cgi-bin/koha/tools/automatic_item_modification_by_age.pl">Automatic item modifications by age</a></dt>
150
      <dt><a href="/cgi-bin/koha/tools/automatic_item_modification_by_age.pl">[% t('Automatic item modifications by age') %]</a></dt>
150
      <dd>Define rules to modify items by age</dd>
151
      <dd>[% t('Define rules to modify items by age') %]</dd>
151
    [% END %]
152
    [% END %]
152
153
153
    [% IF ( CAN_user_tools_export_catalog ) %]
154
    [% IF ( CAN_user_tools_export_catalog ) %]
154
    <dt><a href="/cgi-bin/koha/tools/export.pl">Export data</a></dt>
155
    <dt><a href="/cgi-bin/koha/tools/export.pl">[% t('Export data') %]</a></dt>
155
    <dd>Export bibliographic, holdings, and authority records</dd>
156
    <dd>[% t('Export bibliographic, holdings, and authority records') %]</dd>
156
    [% END %]
157
    [% END %]
157
158
158
    [% IF ( CAN_user_tools_inventory ) %]
159
    [% IF ( CAN_user_tools_inventory ) %]
159
    <dt><a href="/cgi-bin/koha/tools/inventory.pl">Inventory</a></dt>
160
    <dt><a href="/cgi-bin/koha/tools/inventory.pl">[% t('Inventory') %]</a></dt>
160
    <dd>Perform inventory of your catalog</dd>
161
    <dd>[% t('Perform inventory of your catalog') %]</dd>
161
    [% END %]
162
    [% END %]
162
163
163
    [% IF ( CAN_user_tools_label_creator ) %]
164
    [% IF ( CAN_user_tools_label_creator ) %]
164
    <dt><a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a></dt>
165
    <dt><a href="/cgi-bin/koha/labels/label-home.pl">[% t('Label creator') %]</a></dt>
165
    <dd>Create printable labels and barcodes from catalog data</dd>
166
    <dd>[% t('Create printable labels and barcodes from catalog data') %]</dd>
166
    [% END %]
167
    [% END %]
167
    
168
    
168
    [% IF ( CAN_user_tools_label_creator ) %]
169
    [% IF ( CAN_user_tools_label_creator ) %]
169
    <dt><a href="/cgi-bin/koha/labels/spinelabel-home.pl">Quick spine label creator</a></dt>
170
    <dt><a href="/cgi-bin/koha/labels/spinelabel-home.pl">[% t('Quick spine label creator') %]</a></dt>
170
    <dd>Enter a barcode to generate a printable spine label. For use with dedicated label printers</dd>
171
    <dd>[% t('Enter a barcode to generate a printable spine label. For use with dedicated label printers') %]</dd>
171
    [% END %]
172
    [% END %]
172
173
173
    [% IF ( CAN_user_tools_rotating_collections ) %]
174
    [% IF ( CAN_user_tools_rotating_collections ) %]
174
    <dt><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Rotating collections</a></dt>
175
    <dt><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">[% t('Rotating collections') %]</a></dt>
175
    <dd>Manage rotating collections</dd>
176
    <dd>[% t('Manage rotating collections') %]</dd>
176
    [% END %]
177
    [% END %]
177
178
178
    [% IF ( CAN_user_tools_marc_modification_templates ) %]
179
    [% IF ( CAN_user_tools_marc_modification_templates ) %]
179
    <dt><a href="/cgi-bin/koha/tools/marc_modification_templates.pl">MARC modification templates</a></dt>
180
    <dt><a href="/cgi-bin/koha/tools/marc_modification_templates.pl">[% t('MARC modification templates') %]</a></dt>
180
    <dd>Manage templates for modifying MARC records during import.</dd>
181
    <dd>[% t('Manage templates for modifying MARC records during import.') %]</dd>
181
    [% END %]
182
    [% END %]
182
183
183
    [% IF ( CAN_user_tools_stage_marc_import ) %]
184
    [% IF ( CAN_user_tools_stage_marc_import ) %]
184
    <dt><a href="/cgi-bin/koha/tools/stage-marc-import.pl">Stage MARC records for import</a></dt>
185
    <dt><a href="/cgi-bin/koha/tools/stage-marc-import.pl">[% t('Stage MARC records for import') %]</a></dt>
185
    <dd>Stage MARC records into the reservoir.</dd>
186
    <dd>[% t('Stage MARC records into the reservoir.') %]</dd>
186
    [% END %]
187
    [% END %]
187
188
188
    [% IF ( CAN_user_tools_manage_staged_marc ) %]
189
    [% IF ( CAN_user_tools_manage_staged_marc ) %]
189
    <dt><a href="/cgi-bin/koha/tools/manage-marc-import.pl">Staged MARC record management</a></dt>
190
    <dt><a href="/cgi-bin/koha/tools/manage-marc-import.pl">[% t('Staged MARC record management') %]</a></dt>
190
    <dd>Managed staged MARC records, including completing and reversing imports</dd>
191
    <dd>[% t('Managed staged MARC records, including completing and reversing imports') %]</dd>
191
    [% END %]
192
    [% END %]
192
193
193
    [% IF ( CAN_user_tools_upload_local_cover_images ) %]
194
    [% IF ( CAN_user_tools_upload_local_cover_images ) %]
194
    <dt><a href="/cgi-bin/koha/tools/upload-cover-image.pl">Upload local cover image</a></dt>
195
    <dt><a href="/cgi-bin/koha/tools/upload-cover-image.pl">[% t('Upload local cover image') %]</a></dt>
195
    <dd>Utility to upload scanned cover images for display in OPAC</dd>
196
    <dd>[% t('Utility to upload scanned cover images for display in OPAC') %]</dd>
196
    [% END %]
197
    [% END %]
197
198
198
</dl>
199
</dl>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload-images.tt (-27 / +28 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Tools &rsaquo; Upload images</title>
5
<title>[% t('Koha › Tools › Upload images') %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
<style type="text/css">
7
<style type="text/css">
7
    #fileuploadstatus,#fileuploadfailed,#jobpanel,#jobstatus,#jobfailed { display : none; }
8
    #fileuploadstatus,#fileuploadfailed,#jobpanel,#jobstatus,#jobfailed { display : none; }
Lines 12-18 Link Here
12
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'cat-search.inc' %]
14
[% INCLUDE 'cat-search.inc' %]
14
15
15
<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; [% IF ( uploadimage ) %]<a href="/cgi-bin/koha/tools/upload-cover-image.pl">Upload local cover image</a> &rsaquo; Upload results[% ELSE %]Upload local cover image[% END %]</div>
16
<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> › [% IF ( uploadimage ) %]<a href="/cgi-bin/koha/tools/upload-cover-image.pl">[% t('Upload local cover image') %]</a> [% t('› Upload results') %][% ELSE %][% t('Upload local cover image') %][% END %]</div>
16
17
17
<div id="doc3" class="yui-t2">
18
<div id="doc3" class="yui-t2">
18
19
Lines 20-68 Link Here
20
	<div id="yui-main">
21
	<div id="yui-main">
21
	<div class="yui-b">
22
	<div class="yui-b">
22
23
23
<h1>Upload local cover image</h1>
24
<h1>[% t('Upload local cover image') %]</h1>
24
[% IF ( uploadimage ) %]
25
[% IF ( uploadimage ) %]
25
<p>Image upload results :</p>
26
<p>[% t('Image upload results :') %]</p>
26
<ul>
27
<ul>
27
    <li>[% total %] images found</li>
28
    <li>[% total %] [% t('images found') %]</li>
28
    [% IF ( error ) %]
29
    [% IF ( error ) %]
29
    <div class="dialog alert">
30
    <div class="dialog alert">
30
    [% IF ( error == 'UZIPFAIL' ) %]<p><b>Failed to unzip archive.<br />Please ensure you are uploading a valid zip file and try again.</b></p>
31
    [% IF ( error == 'UZIPFAIL' ) %]<p><b>[% t('Failed to unzip archive.') %]<br />[% t('Please ensure you are uploading a valid zip file and try again.') %]</b></p>
31
    [% ELSIF ( error == 'OPNLINK' ) %]<p><b>Cannot open folder index (idlink.txt or datalink.txt) to read.<br />Please verify that it exists.</b></p>
32
    [% ELSIF ( error == 'OPNLINK' ) %]<p><b>[% t('Cannot open folder index (idlink.txt or datalink.txt) to read.') %]<br />[% t('Please verify that it exists.') %]</b></p>
32
    [% ELSIF ( error == 'OPNIMG' ) %]<p><b>Cannot process file as an image.<br />Please ensure you only upload GIF, JPEG, PNG, or XPM images.</b></p>
33
    [% ELSIF ( error == 'OPNIMG' ) %]<p><b>[% t('Cannot process file as an image.') %]<br />[% t('Please ensure you only upload GIF, JPEG, PNG, or XPM images.') %]</b></p>
33
    [% ELSIF ( error == 'DELERR' ) %]<p><b>Unrecognized or missing field delimiter.<br />Please verify that you are using either a single quote or a tab.</b></p>
34
    [% ELSIF ( error == 'DELERR' ) %]<p><b>[% t('Unrecognized or missing field delimiter.') %]<br />[% t('Please verify that you are using either a single quote or a tab.') %]</b></p>
34
    [% ELSIF ( error == 'DBERR' ) %]<p><b>Unable to save image to database.</b></p>
35
    [% ELSIF ( error == 'DBERR' ) %]<p><b>[% t('Unable to save image to database.') %]</b></p>
35
    [% ELSE %]<p><b>An unknown error has occurred.<br />Please review the error log for more details.</b></p>[% END %]
36
    [% ELSE %]<p><b>[% t('An unknown error has occurred.') %]<br />[% t('Please review the error log for more details.') %]</b></p>[% END %]
36
    </div>
37
    </div>
37
    </li>
38
    </li>
38
    [% END %]
39
    [% END %]
39
    <li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]">View final record</a></li>
40
    <li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]">[% t('View final record') %]</a></li>
40
	<li><a href="/cgi-bin/koha/tools/tools-home.pl">Back</a></li>
41
	<li><a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Back') %]</a></li>
41
</ul>
42
</ul>
42
<hr />
43
<hr />
43
[% END %]
44
[% END %]
44
<ul>
45
<ul>
45
	<li>Select an image file or ZIP file to upload. The tool will accept images in GIF, JPEG, PNG, and XPM formats.</li>
46
	<li>[% t('Select an image file or ZIP file to upload. The tool will accept images in GIF, JPEG, PNG, and XPM formats.') %]</li>
46
</ul>
47
</ul>
47
<form method="post" action="/cgi-bin/koha/tools/upload-cover-image.pl" id="uploadfile" enctype="multipart/form-data">
48
<form method="post" action="/cgi-bin/koha/tools/upload-cover-image.pl" id="uploadfile" enctype="multipart/form-data">
48
<fieldset class="rows" id="uploadform">
49
<fieldset class="rows" id="uploadform">
49
<legend>Upload images</legend>
50
<legend>[% t('Upload images') %]</legend>
50
<ol>
51
<ol>
51
	<li>
52
	<li>
52
        <div id="fileuploadform">
53
        <div id="fileuploadform">
53
        <label for="fileToUpload" class="required">Select the file to upload: </label>
54
        <label for="fileToUpload" class="required">[% t('Select the file to upload:') %] </label>
54
        <input type="file" id="fileToUpload" name="fileToUpload" required="required" class="required" />
55
        <input type="file" id="fileToUpload" name="fileToUpload" required="required" class="required" />
55
    <span class="required">Required</span>
56
    <span class="required">[% t('Required') %]</span>
56
        </div>	</li>
57
        </div>	</li>
57
</ol>
58
</ol>
58
    <fieldset class="action"><button class="submit btn btn-default btn-sm">Upload file</button></fieldset>
59
    <fieldset class="action"><button class="submit btn btn-default btn-sm">[% t('Upload file') %]</button></fieldset>
59
</fieldset>
60
</fieldset>
60
61
61
    <div id="uploadpanel">
62
    <div id="uploadpanel">
62
        <div id="fileuploadstatus" class="progress_panel">Upload progress:
63
        <div id="fileuploadstatus" class="progress_panel">[% t('Upload progress:') %]
63
            <progress max="100" value="0" id="fileuploadprogress">
64
            <progress max="100" value="0" id="fileuploadprogress">
64
            </progress>
65
            </progress>
65
            <span class="fileuploadpercent">0</span>%
66
            <span class="fileuploadpercent">[% t('0') %]</span>%
66
        </div>
67
        </div>
67
        <div id="fileuploadfailed"></div>
68
        <div id="fileuploadfailed"></div>
68
    </div>
69
    </div>
Lines 75-105 Link Here
75
        <input type="hidden" name="completedJobID" id="completedJobID" value="" />
76
        <input type="hidden" name="completedJobID" id="completedJobID" value="" />
76
	</fieldset>
77
	</fieldset>
77
  <fieldset class="rows">
78
  <fieldset class="rows">
78
    <legend>File type</legend>
79
    <legend>[% t('File type') %]</legend>
79
    <ol>
80
    <ol>
80
      <li class="radio">
81
      <li class="radio">
81
        [% IF (filetype != 'image' ) %]<input type="radio" id="zipfile" name="filetype" value="zip" checked="checked" />[% ELSE %]<input type="radio" id="zipfile" name="filetype" value="zip" />[% END %]
82
        [% IF (filetype != 'image' ) %]<input type="radio" id="zipfile" name="filetype" value="zip" checked="checked" />[% ELSE %]<input type="radio" id="zipfile" name="filetype" value="zip" />[% END %]
82
        <label for="zipfile">ZIP file</label>
83
        <label for="zipfile">[% t('ZIP file') %]</label>
83
      </li>
84
      </li>
84
      <li class="radio">
85
      <li class="radio">
85
        [% IF (filetype == 'image' ) %]<input type="radio" id="image" name="filetype" value="image" checked="checked" />[% ELSE %]<input type="radio" id="image" name="filetype" value="image" />[% END %]
86
        [% IF (filetype == 'image' ) %]<input type="radio" id="image" name="filetype" value="image" checked="checked" />[% ELSE %]<input type="radio" id="image" name="filetype" value="image" />[% END %]
86
        <label for="image">Image file</label>
87
        <label for="image">[% t('Image file') %]</label>
87
      </li>
88
      </li>
88
      <li class="radio">
89
      <li class="radio">
89
        [% IF ( filetype == 'image' ) %]<span id="bibnum">[% ELSE %]<span id="bibnum" style="display: none">[% END %]<label for="biblionumber">Enter cover biblionumber: </label><input type="text" id="biblionumber" name="biblionumber" value="[% biblionumber %]" size="15" /></span>
90
        [% IF ( filetype == 'image' ) %]<span id="bibnum">[% ELSE %]<span id="bibnum" style="display: none">[% END %]<label for="biblionumber">[% t('Enter cover biblionumber:') %] </label><input type="text" id="biblionumber" name="biblionumber" value="[% biblionumber %]" size="15" /></span>
90
      </li>
91
      </li>
91
    </ol>
92
    </ol>
92
  </fieldset>
93
  </fieldset>
93
  <fieldset class="rows">
94
  <fieldset class="rows">
94
    <legend>Options</legend>
95
    <legend>[% t('Options') %]</legend>
95
    <ol>
96
    <ol>
96
      <li class="checkbox">
97
      <li class="checkbox">
97
        [% IF AllowMultipleCovers == 0 %]<input type="checkbox" id="replace" name="replace" checked="checked" disabled="disabled" value="1" />[% ELSE %]<input type="checkbox" id="replace" name="replace" value="1" />[% END %]
98
        [% IF AllowMultipleCovers == 0 %]<input type="checkbox" id="replace" name="replace" checked="checked" disabled="disabled" value="1" />[% ELSE %]<input type="checkbox" id="replace" name="replace" value="1" />[% END %]
98
        <label for="replace">Replace existing covers</label>
99
        <label for="replace">[% t('Replace existing covers') %]</label>
99
      </li>
100
      </li>
100
    </ol>
101
    </ol>
101
  </fieldset>
102
  </fieldset>
102
  <fieldset class="action"><button type="submit" class="btn btn-default btn-sm">Process images</button></fieldset>
103
  <fieldset class="action"><button type="submit" class="btn btn-default btn-sm">[% t('Process images') %]</button></fieldset>
103
</form>
104
</form>
104
105
105
</div>
106
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt (-47 / +48 lines)
Lines 1-11 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
[% IF plugin %]
6
[% IF plugin %]
6
    <title>Upload plugin</title>
7
    <title>[% t('Upload plugin') %]</title>
7
[% ELSE %]
8
[% ELSE %]
8
    <title>Koha &rsaquo; Tools &rsaquo; Upload</title>
9
    <title>[% t('Koha › Tools › Upload') %]</title>
9
[% END %]
10
[% END %]
10
[% INCLUDE 'doc-head-close.inc' %]
11
[% INCLUDE 'doc-head-close.inc' %]
11
[% Asset.css("css/datatables.css") %]
12
[% Asset.css("css/datatables.css") %]
Lines 19-35 Link Here
19
20
20
[% BLOCK breadcrumbs %]
21
[% BLOCK breadcrumbs %]
21
    <div id="breadcrumbs">
22
    <div id="breadcrumbs">
22
        <a href="/cgi-bin/koha/mainpage.pl">Home</a>
23
        <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a>
23
        &rsaquo;
24
24
        <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
25
        <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a>
25
        &rsaquo;
26
26
        <a href="/cgi-bin/koha/tools/upload.pl">Upload</a>
27
        <a href="/cgi-bin/koha/tools/upload.pl">[% t('Upload') %]</a>
27
        &rsaquo;
28
28
        <span id="lastbreadcrumb">
29
        <span id="lastbreadcrumb">
29
        [% IF mode=='new' || mode =='deleted'%]
30
        [% IF mode=='new' || mode =='deleted'%]
30
            Add new upload or search
31
            [% t('Add new upload or search') %]
31
        [% ELSE %]
32
        [% ELSE %]
32
            Results
33
            [% t('Results') %]
33
        [% END %]
34
        [% END %]
34
        </span>
35
        </span>
35
    </div>
36
    </div>
Lines 39-55 Link Here
39
    <form method="post" action="/cgi-bin/koha/tools/upload.pl" id="uploadfile" enctype="multipart/form-data">
40
    <form method="post" action="/cgi-bin/koha/tools/upload.pl" id="uploadfile" enctype="multipart/form-data">
40
        [% PROCESS plugin_pars %]
41
        [% PROCESS plugin_pars %]
41
        <fieldset class="rows" id="uploadform">
42
        <fieldset class="rows" id="uploadform">
42
        <legend>Upload new files</legend>
43
        <legend>[% t('Upload new files') %]</legend>
43
        <ol>
44
        <ol>
44
        <li>
45
        <li>
45
        <div id="fileuploadform">
46
        <div id="fileuploadform">
46
            <label for="fileToUpload">Select files: </label>
47
            <label for="fileToUpload">[% t('Select files:') %] </label>
47
            <input type="file" id="fileToUpload" name="fileToUpload" multiple/>
48
            <input type="file" id="fileToUpload" name="fileToUpload" multiple="" />
48
        </div>
49
        </div>
49
        </li>
50
        </li>
50
        [% IF uploadcategories %]
51
        [% IF uploadcategories %]
51
            <li>
52
            <li>
52
                <label for="uploadcategory">Category: </label>
53
                <label for="uploadcategory">[% t('Category:') %] </label>
53
                <select id="uploadcategory" name="uploadcategory">
54
                <select id="uploadcategory" name="uploadcategory">
54
                [% IF !plugin %]
55
                [% IF !plugin %]
55
                    <option value=""></option>
56
                    <option value=""></option>
Lines 63-93 Link Here
63
        [% IF !plugin %]
64
        [% IF !plugin %]
64
            <li>
65
            <li>
65
            [% IF uploadcategories %]
66
            [% IF uploadcategories %]
66
                <div class="hint">Note: For temporary uploads do not select a category.</div>
67
                <div class="hint">[% t('Note: For temporary uploads do not select a category.') %]</div>
67
            [% ELSE %]
68
            [% ELSE %]
68
                <div class="hint">Note: No upload categories are defined. Add values to the UPLOAD authorized value category otherwise all uploads will be marked as temporary.</div>
69
                <div class="hint">[% t('Note: No upload categories are defined. Add values to the UPLOAD authorized value category otherwise all uploads will be marked as temporary.') %]</div>
69
            [% END %]
70
            [% END %]
70
            </li>
71
            </li>
71
        [% END %]
72
        [% END %]
72
        <li>
73
        <li>
73
            [% IF plugin %]
74
            [% IF plugin %]
74
                <input type="hidden" id="public" name="public" value="1"/>
75
                <input type="hidden" id="public" name="public" value="1" />
75
            [% ELSE %]
76
            [% ELSE %]
76
                <label id="public_cb">Allow public downloads:</label>
77
                <label id="public_cb">[% t('Allow public downloads:') %]</label>
77
                <input type="checkbox" id="public" name="public" />
78
                <input type="checkbox" id="public" name="public" />
78
            [% END %]
79
            [% END %]
79
        </li>
80
        </li>
80
        </ol>
81
        </ol>
81
        <fieldset class="action">
82
        <fieldset class="action">
82
            <button id="fileuploadbutton">Upload</button>
83
            <button id="fileuploadbutton">[% t('Upload') %]</button>
83
            <button id="fileuploadcancel">Cancel</button>
84
            <button id="fileuploadcancel">[% t('Cancel') %]</button>
84
        </fieldset>
85
        </fieldset>
85
        </fieldset>
86
        </fieldset>
86
        <div id="fileuploadpanel">
87
        <div id="fileuploadpanel">
87
            <div id="fileuploadstatus" class="progress_panel">Upload progress:
88
            <div id="fileuploadstatus" class="progress_panel">[% t('Upload progress:') %]
88
            <progress id="fileuploadprogress" max="100" value="0">
89
            <progress id="fileuploadprogress" max="100" value="0">
89
            </progress>
90
            </progress>
90
            <span class="fileuploadpercent">0</span>%
91
            <span class="fileuploadpercent">[% t('0') %]</span>%
91
            </div>
92
            </div>
92
            <div id="fileuploadfailed"></div>
93
            <div id="fileuploadfailed"></div>
93
        </div>
94
        </div>
Lines 97-113 Link Here
97
[% BLOCK form_search %]
98
[% BLOCK form_search %]
98
    <form method="post" id="searchfile" action="/cgi-bin/koha/tools/upload.pl" enctype="multipart/form-data">
99
    <form method="post" id="searchfile" action="/cgi-bin/koha/tools/upload.pl" enctype="multipart/form-data">
99
        [% PROCESS plugin_pars %]
100
        [% PROCESS plugin_pars %]
100
        <input type="hidden" name="op" value="search"/>
101
        <input type="hidden" name="op" value="search" />
101
        <fieldset class="rows">
102
        <fieldset class="rows">
102
        <legend>Search uploads by name or hashvalue</legend>
103
        <legend>[% t('Search uploads by name or hashvalue') %]</legend>
103
        <ol>
104
        <ol>
104
        <li>
105
        <li>
105
            <label for="term">Search term: </label>
106
            <label for="term">[% t('Search term:') %] </label>
106
            <input type="text" id="term" name="term" value=""/>
107
            <input type="text" id="term" name="term" value="" />
107
        </li>
108
        </li>
108
        </ol>
109
        </ol>
109
        <fieldset class="action">
110
        <fieldset class="action">
110
            <button id="searchbutton" class="submit">Search</button>
111
            <button id="searchbutton" class="submit">[% t('Search') %]</button>
111
        </fieldset>
112
        </fieldset>
112
        </fieldset>
113
        </fieldset>
113
    </form>
114
    </form>
Lines 116-122 Link Here
116
[% BLOCK submitter %]
117
[% BLOCK submitter %]
117
    <form id="submitter" style="display:none;" method="post">
118
    <form id="submitter" style="display:none;" method="post">
118
        [% PROCESS plugin_pars %]
119
        [% PROCESS plugin_pars %]
119
        <input type="hidden" name="op" id="op" value=""/>
120
        <input type="hidden" name="op" id="op" value="" />
120
        <input type="hidden" name="id" id="id" value="" />
121
        <input type="hidden" name="id" id="id" value="" />
121
        <input type="hidden" name="msg" id="msg" value="" />
122
        <input type="hidden" name="msg" id="msg" value="" />
122
    </form>
123
    </form>
Lines 124-130 Link Here
124
125
125
[% BLOCK closer %]
126
[% BLOCK closer %]
126
    [% IF plugin %]
127
    [% IF plugin %]
127
        <div id="closewindow"><a class="btn btn-default btn-default close" href="#">Close</a></div>
128
        <div id="closewindow"><a class="btn btn-default btn-default close" href="#">[% t('Close') %]</a></div>
128
    [% END %]
129
    [% END %]
129
[% END %]
130
[% END %]
130
131
Lines 132-138 Link Here
132
    [% IF !plugin %]
133
    [% IF !plugin %]
133
        <form id="back">
134
        <form id="back">
134
            <fieldset class="action">
135
            <fieldset class="action">
135
                <button class="submit">Back</button>
136
                <button class="submit">[% t('Back') %]</button>
136
            </fieldset>
137
            </fieldset>
137
        </form>
138
        </form>
138
    [% END %]
139
    [% END %]
Lines 141-151 Link Here
141
[% BLOCK newsearch %]
142
[% BLOCK newsearch %]
142
    <form id="newsearch">
143
    <form id="newsearch">
143
        <fieldset class="action">
144
        <fieldset class="action">
144
            <button id="new_search">New search</button>
145
            <button id="new_search">[% t('New search') %]</button>
145
        </fieldset>
146
        </fieldset>
146
    </form>
147
    </form>
147
    [% IF plugin %]
148
    [% IF plugin %]
148
        <div id="closewindow"><a class="btn btn-default btn-default close" href="#">Close</a></div>
149
        <div id="closewindow"><a class="btn btn-default btn-default close" href="#">[% t('Close') %]</a></div>
149
    [% END %]
150
    [% END %]
150
[% END %]
151
[% END %]
151
152
Lines 153-165 Link Here
153
    <table id="uploadresults">
154
    <table id="uploadresults">
154
    <thead>
155
    <thead>
155
    <tr>
156
    <tr>
156
        <th>Filename</th>
157
        <th>[% t('Filename') %]</th>
157
        <th>Size</th>
158
        <th>[% t('Size') %]</th>
158
        <th>Hashvalue</th>
159
        <th>[% t('Hashvalue') %]</th>
159
        <th>Category</th>
160
        <th>[% t('Category') %]</th>
160
        [% IF !plugin %]<th>Public</th>[% END %]
161
        [% IF !plugin %]<th>[% t('Public') %]</th>[% END %]
161
        [% IF !plugin %]<th>Temporary</th>[% END %]
162
        [% IF !plugin %]<th>[% t('Temporary') %]</th>[% END %]
162
        <th class="nosort">Actions</th>
163
        <th class="nosort">[% t('Actions') %]</th>
163
    </tr>
164
    </tr>
164
    </thead>
165
    </thead>
165
    <tbody>
166
    <tbody>
Lines 170-185 Link Here
170
        <td>[% record.hashvalue %]</td>
171
        <td>[% record.hashvalue %]</td>
171
        <td>[% record.uploadcategorycode %]</td>
172
        <td>[% record.uploadcategorycode %]</td>
172
        [% IF !plugin %]
173
        [% IF !plugin %]
173
            <td>[% IF record.public %]Yes[% ELSE %]No[% END %]</td>
174
            <td>[% IF record.public %][% t('Yes') %][% ELSE %][% t('No') %][% END %]</td>
174
            <td>[% IF record.permanent %]No[% ELSE %]Yes[% END %]</td>
175
            <td>[% IF record.permanent %][% t('No') %][% ELSE %][% t('Yes') %][% END %]</td>
175
        [% END %]
176
        [% END %]
176
        <td class="actions">
177
        <td class="actions">
177
            [% IF plugin %]
178
            [% IF plugin %]
178
                <button class="btn btn-default btn-xs choose_entry" data-record-hashvalue="[% record.hashvalue %]"><i class="fa fa-plus"></i> Choose</button>
179
                <button class="btn btn-default btn-xs choose_entry" data-record-hashvalue="[% record.hashvalue %]"><i class="fa fa-plus"></i> [% t('Choose') %]</button>
179
            [% END %]
180
            [% END %]
180
            <button class="btn btn-default btn-xs download_entry" data-record-id="[% record.id %]"><i class="fa fa-download"></i> Download</button>
181
            <button class="btn btn-default btn-xs download_entry" data-record-id="[% record.id %]"><i class="fa fa-download"></i> [% t('Download') %]</button>
181
            [% IF record.owner == owner || CAN_user_tools_upload_manage %]
182
            [% IF record.owner == owner || CAN_user_tools_upload_manage %]
182
                <button class="btn btn-default btn-xs delete_entry" data-record-id="[% record.id %]"><i class="fa fa-trash"></i> Delete</button>
183
                <button class="btn btn-default btn-xs delete_entry" data-record-id="[% record.id %]"><i class="fa fa-trash"></i> [% t('Delete') %]</button>
183
            [% END %]
184
            [% END %]
184
        </td>
185
        </td>
185
   </tr>
186
   </tr>
Lines 215-221 Link Here
215
216
216
217
217
218
218
<h1>Upload</h1>
219
<h1>[% t('Upload') %]</h1>
219
<div class="dialog alert" id="myalerts" style="display:none;"></div>
220
<div class="dialog alert" id="myalerts" style="display:none;"></div>
220
221
221
[% PROCESS submitter %]
222
[% PROCESS submitter %]
Lines 225-236 Link Here
225
    [% PROCESS closer %]
226
    [% PROCESS closer %]
226
[% ELSIF mode == 'report' %]
227
[% ELSIF mode == 'report' %]
227
    [% IF uploads %]
228
    [% IF uploads %]
228
        <h3>Your request gave the following results:</h3>
229
        <h3>[% t('Your request gave the following results:') %]</h3>
229
        [% PROCESS table_results %]
230
        [% PROCESS table_results %]
230
        [% PROCESS closer %]
231
        [% PROCESS closer %]
231
        [% PROCESS back %]
232
        [% PROCESS back %]
232
    [% ELSE %]
233
    [% ELSE %]
233
        <h4>Sorry, your request had no results.</h4>
234
        <h4>[% t('Sorry, your request had no results.') %]</h4>
234
        [% PROCESS newsearch %]
235
        [% PROCESS newsearch %]
235
    [% END %]
236
    [% END %]
236
[% END %]
237
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt (-74 / +74 lines)
Lines 1-3 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% USE AuthorisedValues %]
4
[% USE AuthorisedValues %]
Lines 5-15 Link Here
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>
8
<title>
8
	Koha &rsaquo; Tools &rsaquo;
9
	[% t('Koha › Tools ›') %]
9
	[% IF ( do_it ) %]
10
	[% IF ( do_it ) %]
10
		Logs &rsaquo; Results
11
		[% t('Logs › Results') %]
11
	[% ELSE %]
12
	[% ELSE %]
12
		Logs
13
		[% t('Logs') %]
13
	[% END %]
14
	[% END %]
14
</title>
15
</title>
15
[% INCLUDE 'doc-head-close.inc' %]
16
[% INCLUDE 'doc-head-close.inc' %]
Lines 21-78 Link Here
21
22
22
[% BLOCK translate_log_module %]
23
[% BLOCK translate_log_module %]
23
[%    SWITCH module %]
24
[%    SWITCH module %]
24
[%        CASE 'CATALOGUING'  %]Catalog
25
[%        CASE 'CATALOGUING'  %][% t('Catalog') %]
25
[%        CASE 'AUTHORITIES'  %]Authorities
26
[%        CASE 'AUTHORITIES'  %][% t('Authorities') %]
26
[%        CASE 'MEMBERS'      %]Patrons
27
[%        CASE 'MEMBERS'      %][% t('Patrons') %]
27
[%        CASE 'ACQUISITIONS' %]Acquisitions
28
[%        CASE 'ACQUISITIONS' %][% t('Acquisitions') %]
28
[%        CASE 'SERIAL'       %]Serials
29
[%        CASE 'SERIAL'       %][% t('Serials') %]
29
[%        CASE 'HOLDS'        %]Holds
30
[%        CASE 'HOLDS'        %][% t('Holds') %]
30
[%        CASE 'CIRCULATION'  %]Circulation
31
[%        CASE 'CIRCULATION'  %][% t('Circulation') %]
31
[%        CASE 'LETTER'       %]Letter
32
[%        CASE 'LETTER'       %][% t('Letter') %]
32
[%        CASE 'FINES'        %]Fines
33
[%        CASE 'FINES'        %][% t('Fines') %]
33
[%        CASE 'SYSTEMPREFERENCE' %]System prefs
34
[%        CASE 'SYSTEMPREFERENCE' %][% t('System prefs') %]
34
[%        CASE 'CRONJOBS' %]Cron jobs
35
[%        CASE 'CRONJOBS' %][% t('Cron jobs') %]
35
[%        CASE 'REPORTS'      %]Reports
36
[%        CASE 'REPORTS'      %][% t('Reports') %]
36
[%        CASE %][% module %]
37
[%        CASE %][% module %]
37
[%    END %]
38
[%    END %]
38
[% END %]
39
[% END %]
39
40
40
[% BLOCK translate_log_action %]
41
[% BLOCK translate_log_action %]
41
[%    SWITCH action %]
42
[%    SWITCH action %]
42
[%        CASE 'ADD'    %]Add
43
[%        CASE 'ADD'    %][% t('Add') %]
43
[%        CASE 'DELETE' %]Delete
44
[%        CASE 'DELETE' %][% t('Delete') %]
44
[%        CASE 'MODIFY' %]Modify
45
[%        CASE 'MODIFY' %][% t('Modify') %]
45
[%        CASE 'ISSUE'  %]Checkout
46
[%        CASE 'ISSUE'  %][% t('Checkout') %]
46
[%        CASE 'RETURN' %]Return
47
[%        CASE 'RETURN' %][% t('Return') %]
47
[%        CASE 'CREATE' %]Create
48
[%        CASE 'CREATE' %][% t('Create') %]
48
[%        CASE 'CANCEL' %]Cancel
49
[%        CASE 'CANCEL' %][% t('Cancel') %]
49
[%        CASE 'RESUME' %]Resume
50
[%        CASE 'RESUME' %][% t('Resume') %]
50
[%        CASE 'SUSPEND' %]Suspend
51
[%        CASE 'SUSPEND' %][% t('Suspend') %]
51
[%        CASE 'RENEW'  %]Renew
52
[%        CASE 'RENEW'  %][% t('Renew') %]
52
[%        CASE 'CHANGE PASS' %]Change password
53
[%        CASE 'CHANGE PASS' %][% t('Change password') %]
53
[%        CASE 'ADDCIRCMESSAGE' %]Add circulation message
54
[%        CASE 'ADDCIRCMESSAGE' %][% t('Add circulation message') %]
54
[%        CASE 'DELCIRCMESSAGE' %]Delete circulation message
55
[%        CASE 'DELCIRCMESSAGE' %][% t('Delete circulation message') %]
55
[%        CASE 'Run'    %]Run
56
[%        CASE 'Run'    %][% t('Run') %]
56
[%        CASE %][% action %]
57
[%        CASE %][% action %]
57
[%    END %]
58
[%    END %]
58
[% END %]
59
[% END %]
59
60
60
[% BLOCK translate_log_interface %]
61
[% BLOCK translate_log_interface %]
61
[%    SWITCH log_interface %]
62
[%    SWITCH log_interface %]
62
[%        CASE 'INTRANET'    %]Intranet
63
[%        CASE 'INTRANET'    %][% t('Intranet') %]
63
[%        CASE 'OPAC'        %]OPAC
64
[%        CASE 'OPAC'        %][% t('OPAC') %]
64
[%        CASE 'SIP'         %]SIP
65
[%        CASE 'SIP'         %][% t('SIP') %]
65
[%        CASE 'COMMANDLINE' %]Command-line
66
[%        CASE 'COMMANDLINE' %][% t('Command-line') %]
66
[%        CASE %][% log_interface %]
67
[%        CASE %][% log_interface %]
67
[%    END %]
68
[%    END %]
68
[% END %]
69
[% END %]
69
70
70
<div id="breadcrumbs">
71
<div id="breadcrumbs">
71
	<a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
72
	<a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> ›
72
	[% IF ( do_it ) %]
73
	[% IF ( do_it ) %]
73
		<a href="/cgi-bin/koha/tools/viewlog.pl">Logs</a> &rsaquo; Results
74
		<a href="/cgi-bin/koha/tools/viewlog.pl">[% t('Logs') %]</a> [% t('› Results') %]
74
	[% ELSE %]
75
	[% ELSE %]
75
		Logs
76
		[% t('Logs') %]
76
	[% END %]
77
	[% END %]
77
</div>
78
</div>
78
79
Lines 81-87 Link Here
81
		<div id="yui-main">
82
		<div id="yui-main">
82
			<div class="yui-b">
83
			<div class="yui-b">
83
                [% IF ( CAN_user_reports ) %]
84
                [% IF ( CAN_user_reports ) %]
84
				<h1>Browse system logs</h1>
85
				<h1>[% t('Browse system logs') %]</h1>
85
				<form method="post" action="/cgi-bin/koha/tools/viewlog.pl">
86
				<form method="post" action="/cgi-bin/koha/tools/viewlog.pl">
86
					[% IF ( do_it ) %]
87
					[% IF ( do_it ) %]
87
						<input type="hidden" name="do_it" value="[% do_it %]" />
88
						<input type="hidden" name="do_it" value="[% do_it %]" />
Lines 90-105 Link Here
90
					<fieldset class="rows">
91
					<fieldset class="rows">
91
						<ol>
92
						<ol>
92
							<li>
93
							<li>
93
								<label for="user">Librarian:</label>
94
								<label for="user">[% t('Librarian:') %]</label>
94
                                <input type="text" name="user" id="user" value="[% user | html %]" />
95
                                <input type="text" name="user" id="user" value="[% user | html %]" />
95
							</li>
96
							</li>
96
                        <li>
97
                        <li>
97
                                <label for="modules">Modules:</label>
98
                                <label for="modules">[% t('Modules:') %]</label>
98
                                <select name="modules" id="modules" multiple="multiple">
99
                                <select name="modules" id="modules" multiple="multiple">
99
                                    [% UNLESS modules %]
100
                                    [% UNLESS modules %]
100
                                        <option value="" selected="selected">All</option>
101
                                        <option value="" selected="selected">[% t('All') %]</option>
101
                                    [% ELSE %]
102
                                    [% ELSE %]
102
                                        <option value="">All</option>
103
                                        <option value="">[% t('All') %]</option>
103
                                    [% END %]
104
                                    [% END %]
104
                                    [% FOREACH modx IN [ 'CATALOGUING' 'AUTHORITIES' 'MEMBERS' 'ACQUISITIONS' 'SERIAL' 'HOLDS' 'CIRCULATION' 'LETTER' 'FINES' 'SYSTEMPREFERENCE' 'CRONJOBS', 'REPORTS' ] %]
105
                                    [% FOREACH modx IN [ 'CATALOGUING' 'AUTHORITIES' 'MEMBERS' 'ACQUISITIONS' 'SERIAL' 'HOLDS' 'CIRCULATION' 'LETTER' 'FINES' 'SYSTEMPREFERENCE' 'CRONJOBS', 'REPORTS' ] %]
105
                                        [% IF modules.grep(modx).size %]
106
                                        [% IF modules.grep(modx).size %]
Lines 111-122 Link Here
111
                                </select>
112
                                </select>
112
                            </li>
113
                            </li>
113
                            <li>
114
                            <li>
114
                                <label for="actions">Actions:</label>
115
                                <label for="actions">[% t('Actions:') %]</label>
115
                                <select name="actions" id="actions" multiple="multiple">
116
                                <select name="actions" id="actions" multiple="multiple">
116
                                    [% UNLESS actions %]
117
                                    [% UNLESS actions %]
117
                                        <option value="" selected="selected">All</option>
118
                                        <option value="" selected="selected">[% t('All') %]</option>
118
                                    [% ELSE %]
119
                                    [% ELSE %]
119
                                        <option value="">All</option>
120
                                        <option value="">[% t('All') %]</option>
120
                                    [% END %]
121
                                    [% END %]
121
122
122
                                    [% FOREACH actx IN [ 'ADD' 'DELETE' 'MODIFY' 'ISSUE' 'RETURN' 'RENEW' 'CREATE' 'CANCEL' 'SUSPEND' 'RESUME' 'ADDCIRCMESSAGE' 'DELCIRCMESSAGE' 'CHANGE PASS' 'Run' ] %]
123
                                    [% FOREACH actx IN [ 'ADD' 'DELETE' 'MODIFY' 'ISSUE' 'RETURN' 'RENEW' 'CREATE' 'CANCEL' 'SUSPEND' 'RESUME' 'ADDCIRCMESSAGE' 'DELCIRCMESSAGE' 'CHANGE PASS' 'Run' ] %]
Lines 129-148 Link Here
129
                                </select>
130
                                </select>
130
                            </li>
131
                            </li>
131
							<li>
132
							<li>
132
								<label for="object">Object: </label>
133
								<label for="object">[% t('Object:') %] </label>
133
                                <input type="text" id="object" name="object" value="[% object | html %]" />
134
                                <input type="text" id="object" name="object" value="[% object | html %]" />
134
							</li>
135
							</li>
135
							<li>
136
							<li>
136
								<label for="info">Info:</label>
137
								<label for="info">[% t('Info:') %]</label>
137
                                <input type="text" id="info" name="info" value="[% info | html %]" />
138
                                <input type="text" id="info" name="info" value="[% info | html %]" />
138
							</li>
139
							</li>
139
                            <li>
140
                            <li>
140
                                <label for="interfaces">Interface:</label>
141
                                <label for="interfaces">[% t('Interface:') %]</label>
141
                                <select name="interfaces" id="interfaces" multiple="multiple">
142
                                <select name="interfaces" id="interfaces" multiple="multiple">
142
                                    [% UNLESS interfaces %]
143
                                    [% UNLESS interfaces %]
143
                                        <option value="" selected="selected">All</option>
144
                                        <option value="" selected="selected">[% t('All') %]</option>
144
                                    [% ELSE %]
145
                                    [% ELSE %]
145
                                        <option value="">All</option>
146
                                        <option value="">[% t('All') %]</option>
146
                                    [% END %]
147
                                    [% END %]
147
148
148
                                    [% FOREACH interf IN [ 'INTRANET' 'OPAC' 'SIP' 'COMMANDLINE' ] %]
149
                                    [% FOREACH interf IN [ 'INTRANET' 'OPAC' 'SIP' 'COMMANDLINE' ] %]
Lines 155-179 Link Here
155
                                </select>
156
                                </select>
156
                            </li>
157
                            </li>
157
							<li>
158
							<li>
158
                                <label for="from"> Display from: </label> <input type="text" size="10" id="from" name="from" value="[% datefrom | html %]" class="datepickerfrom" />
159
                                <label for="from"> [% t('Display from:') %] </label> <input type="text" size="10" id="from" name="from" value="[% datefrom | html %]" class="datepickerfrom" />
159
				<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
160
				<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
160
							</li>
161
							</li>
161
							<li>
162
							<li>
162
                                <label for="to">Display to: </label> <input size="10" id="to" name="to" type="text" value="[% dateto | html %]" class="datepickerto" />
163
                                <label for="to">[% t('Display to:') %] </label> <input size="10" id="to" name="to" type="text" value="[% dateto | html %]" class="datepickerto" />
163
				<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
164
				<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
164
							</li>
165
							</li>
165
						</ol>
166
						</ol>
166
					</fieldset>
167
					</fieldset>
167
					<fieldset class="rows">
168
					<fieldset class="rows">
168
						<legend>Output</legend>
169
						<legend>[% t('Output') %]</legend>
169
						<ol>
170
						<ol>
170
							<li>
171
							<li>
171
								<label for="screen" >To screen in the browser:</label> <input id="screen" type="radio" checked="checked" name="output" value="screen" />
172
								<label for="screen">[% t('To screen in the browser:') %]</label> <input id="screen" type="radio" checked="checked" name="output" value="screen" />
172
							</li>
173
							</li>
173
							<li>
174
							<li>
174
								<label for="file">To a file:</label>
175
								<label for="file">[% t('To a file:') %]</label>
175
								<input id="file" type="radio" name="output" value="file" />
176
								<input id="file" type="radio" name="output" value="file" />
176
								<label class="inline" for="basename">Named:</label>
177
								<label class="inline" for="basename">[% t('Named:') %]</label>
177
								<input type="text" name="basename" id="basename" value="Export" />
178
								<input type="text" name="basename" id="basename" value="Export" />
178
								<!--
179
								<!--
179
									<label for="MIME" class="inline">Into an application:</label>
180
									<label for="MIME" class="inline">Into an application:</label>
Lines 192-208 Link Here
192
                [% END %]
193
                [% END %]
193
                [% IF ( do_it ) %]
194
                [% IF ( do_it ) %]
194
                    [% IF ( total ) %]
195
                    [% IF ( total ) %]
195
                        <h4>[% total %] lines found.</h4>
196
                        <h4>[% total %] [% t('lines found.') %]</h4>
196
                        <table>
197
                        <table>
197
                            <thead>
198
                            <thead>
198
                                <tr>
199
                                <tr>
199
                                    <th>Date</th>
200
                                    <th>[% t('Date') %]</th>
200
                                    <th>Librarian</th>
201
                                    <th>[% t('Librarian') %]</th>
201
                                    <th>Module</th>
202
                                    <th>[% t('Module') %]</th>
202
                                    <th>Action</th>
203
                                    <th>[% t('Action') %]</th>
203
                                    <th>Object</th>
204
                                    <th>[% t('Object') %]</th>
204
                                    <th>Info</th>
205
                                    <th>[% t('Info') %]</th>
205
                                    <th>Interface</th>
206
                                    <th>[% t('Interface') %]</th>
206
                                </tr>
207
                                </tr>
207
                            </thead>
208
                            </thead>
208
                            <tbody>
209
                            <tbody>
Lines 211-217 Link Here
211
                                    <td>[% loopro.timestamp %]</td>
212
                                    <td>[% loopro.timestamp %]</td>
212
                                    <td>
213
                                    <td>
213
                                        [% IF loopro.librarian %]
214
                                        [% IF loopro.librarian %]
214
                                            <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopro.librarian.borrowernumber %]" title="display detail for this librarian."> [% IF ( loopro.librarian.firstname ) || ( loopro.librarian.surname ) %][% loopro.librarian.firstname %] [% loopro.librarian.surname %] ([% loopro.librarian.borrowernumber %]) [% ELSE %][% loopro.librarian.borrowernumber %][% END %]</a>
215
                                            <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopro.librarian.borrowernumber %]" title="[% t('display detail for this librarian.') %]"> [% IF ( loopro.librarian.firstname ) || ( loopro.librarian.surname ) %][% loopro.librarian.firstname %] [% loopro.librarian.surname %] ([% loopro.librarian.borrowernumber %]) [% ELSE %][% loopro.librarian.borrowernumber %][% END %]</a>
215
                                        [% ELSE %]
216
                                        [% ELSE %]
216
                                            [% loopro.user %]
217
                                            [% loopro.user %]
217
                                        [% END %]
218
                                        [% END %]
Lines 221-245 Link Here
221
                                    <td>
222
                                    <td>
222
                                        [% IF ( loopro.module == 'MEMBERS' ) || ( loopro.module == 'CIRCULATION' ) || ( loopro.module == 'FINES' ) %]
223
                                        [% IF ( loopro.module == 'MEMBERS' ) || ( loopro.module == 'CIRCULATION' ) || ( loopro.module == 'FINES' ) %]
223
                                            [% IF loopro.patron %]
224
                                            [% IF loopro.patron %]
224
                                                <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopro.object %]" title="Display member details."> [% IF ( loopro.object ) %][% IF ( loopro.patron.firstname ) || ( loopro.patron.surname ) %][% loopro.patron.firstname %] [% loopro.patron.surname %] ([% loopro.object %]) [% ELSE %]Member [% loopro.object %][% END %][% END %] </a>
225
                                                <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopro.object %]" title="[% t('Display member details.') %]"> [% IF ( loopro.object ) %][% IF ( loopro.patron.firstname ) || ( loopro.patron.surname ) %][% loopro.patron.firstname %] [% loopro.patron.surname %] ([% loopro.object %]) [% ELSE %][% t('Member') %] [% loopro.object %][% END %][% END %] </a>
225
                                            [% ELSE %]
226
                                            [% ELSE %]
226
                                                [% loopro.object %]
227
                                                [% loopro.object %]
227
                                            [% END %]
228
                                            [% END %]
228
                                        [% ELSE %]
229
                                        [% ELSE %]
229
                                                [% IF ( loopro.module == 'CATALOGUING' ) %]
230
                                                [% IF ( loopro.module == 'CATALOGUING' ) %]
230
                                                    [% IF ( loopro.info.substr(0, 4) == 'item' ) %]
231
                                                    [% IF ( loopro.info.substr(0, 4) == 'item' ) %]
231
                                                        <a href="/cgi-bin/koha/catalogue/moredetail.pl?item=[% loopro.object %]&amp;biblionumber=[% loopro.biblionumber %]&amp;bi=[% loopro.biblioitemnumber %]#item[% loopro.object %]">Item [% loopro.object %]</a>
232
                                                        <a href="/cgi-bin/koha/catalogue/moredetail.pl?item=[% loopro.object %]&biblionumber=[% loopro.biblionumber %]&bi=[% loopro.biblioitemnumber %]#item[% loopro.object %]">[% t('Item') %] [% loopro.object %]</a>
232
                                                    [% ELSIF ( loopro.info.substr(0, 6) == 'biblio' ) %]
233
                                                    [% ELSIF ( loopro.info.substr(0, 6) == 'biblio' ) %]
233
                                                        <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.object %]" title="Display detail for this biblio">Biblio [% loopro.object %]</a>
234
                                                        <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.object %]" title="[% t('Display detail for this biblio') %]">[% t('Biblio') %] [% loopro.object %]</a>
234
                                                    [% ELSE %]
235
                                                    [% ELSE %]
235
                                                        [% loopro.object %]
236
                                                        [% loopro.object %]
236
                                                    [% END %]
237
                                                    [% END %]
237
                                                [% ELSE %]
238
                                                [% ELSE %]
238
                                                    [% IF ( loopro.module == 'SERIAL' ) %]
239
                                                    [% IF ( loopro.module == 'SERIAL' ) %]
239
                                                        <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% loopro.object %]">Subscription [% loopro.object %] </a>
240
                                                        <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% loopro.object %]">[% t('Subscription') %] [% loopro.object %] </a>
240
                                                    [% ELSE %]
241
                                                    [% ELSE %]
241
                                                        [% IF ( loopro.module == 'AUTHORITIES' ) %]
242
                                                        [% IF ( loopro.module == 'AUTHORITIES' ) %]
242
                                                            <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% loopro.object %]" title="Display detail for this authority">Authority [% loopro.object %]</a>
243
                                                            <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% loopro.object %]" title="[% t('Display detail for this authority') %]">[% t('Authority') %] [% loopro.object %]</a>
243
                                                        [% ELSE %]
244
                                                        [% ELSE %]
244
                                                            [% loopro.object %]
245
                                                            [% loopro.object %]
245
                                                        [% END %]
246
                                                        [% END %]
Lines 249-255 Link Here
249
                                    </td>
250
                                    </td>
250
                                    <td>
251
                                    <td>
251
                                        [% IF ( loopro.module == 'CIRCULATION' ) %]
252
                                        [% IF ( loopro.module == 'CIRCULATION' ) %]
252
                                            <a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% loopro.info %]&amp;biblionumber=[% loopro.biblionumber %]&amp;bi=[% loopro.biblioitemnumber %]#item[% loopro.info %]" title="Display detail for this item">Item [% loopro.barcode |html %]</a>
253
                                            <a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% loopro.info %]&biblionumber=[% loopro.biblionumber %]&bi=[% loopro.biblioitemnumber %]#item[% loopro.info %]" title="[% t('Display detail for this item') %]">[% t('Item') %] [% loopro.barcode |html %]</a>
253
                                        [% ELSE %]
254
                                        [% ELSE %]
254
                                            [% loopro.info |html %]
255
                                            [% loopro.info |html %]
255
                                        [% END %]
256
                                        [% END %]
Lines 261-272 Link Here
261
                        </table>
262
                        </table>
262
                    [% ELSE %]
263
                    [% ELSE %]
263
                        <div class="dialog alert">
264
                        <div class="dialog alert">
264
                            No log found
265
                            [% t('No log found') %]
265
                            [% IF ( CATALOGUING ) %]
266
                            [% IF ( CATALOGUING ) %]
266
                                for <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% object | url %]">Bibliographic record [% object | html %]</a>
267
                                [% t('for') %] <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% object | url %]">[% t('Bibliographic record') %] [% object | html %]</a>
267
                            [% END %]
268
                            [% END %]
268
                            [% IF ( MEMBERS ) %]
269
                            [% IF ( MEMBERS ) %]
269
                                for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% object | url %]">[% INCLUDE 'patron-title.inc' %]</a>
270
                                [% t('for') %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% object | url %]">[% INCLUDE 'patron-title.inc' %]</a>
270
                            [% END %]
271
                            [% END %]
271
                            .
272
                            .
272
                        </div>
273
                        </div>
273
- 

Return to bug 20988