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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt (-232 / +240 lines)
Lines 49-300 Link Here
49
[% END %]
49
[% END %]
50
50
51
<div id="exporttype" class="toptabs">
51
<div id="exporttype" class="toptabs">
52
<ul>
52
    <ul class="nav nav-tabs" role="tablist">
53
<li><a href="#bibs">Export bibliographic records</a></li>
53
        <li role="presentation" class="active">
54
<li><a href="#auths">Export authority records</a></li>
54
            <a href="#bibs" aria-controls="bibs" role="tab" data-toggle="tab">Export bibliographic records</a>
55
[% IF ( allow_db_export ) %]
56
<li><a href="#db">Export database</a></li>
57
[% END %]
58
[% IF ( allow_conf_export ) %]
59
<li><a href="#conf">Export configuration</a></li>
60
[% END %]
61
</ul>
62
<div id="bibs">
63
<p>
64
    <strong>Note : The items are exported by this tool unless specified.</strong>
65
</p>
66
67
<form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/export.pl">
68
    <fieldset class="rows">
69
    <legend> Select records to export </legend>
70
        <ol>
71
        <li>
72
            <label for="start">From biblionumber: </label>
73
            <input id="start" type="text" name="StartingBiblionumber" size="5" />
74
        </li>
75
        <li>
76
            <label for="end">To biblionumber: </label>
77
            <input id="end" type="text" name="EndingBiblionumber" size="5" />
78
        </li>
55
        </li>
79
        
56
        <li role="presentation">
80
        <li>
57
            <a href="#auths" aria-controls="auths" role="tab" data-toggle="tab">Export authority records</a>
81
            <label for="itemtype">Item type: </label>
82
            <select name="itemtype" id="itemtype">
83
                <option value="">-- All --</option>
84
                [% FOREACH itemtype IN itemtypes %]
85
                    <option value="[% itemtype.itemtype | html %]">[% itemtype.translated_description | html %]</option>
86
                [% END %]
87
            </select>
88
        </li>
89
        
90
        <li>
91
            <label>With items owned by the following libraries: </label>
92
            [% INCLUDE 'branch-selector.inc' branches = libraries %]
93
        </li>
58
        </li>
94
    </ol>
59
        [% IF ( allow_db_export ) %]
95
60
            <li role="presentation">
96
    <fieldset class="rows">
61
                <a href="#db" aria-controls="db" role="tab" data-toggle="tab">Export database</a>
97
        <legend>Call number range</legend>
98
        <ol>
99
            <li>
100
                <label for="startcn">From item call number: </label>
101
                <input id="startcn" type="text" name="start_callnumber" size="15" />
102
            </li>
62
            </li>
103
            <li>
63
        [% END %]
104
                <label for="endcn">To item call number: </label>
64
        [% IF ( allow_conf_export ) %]
105
                <input id="endcn" type="text" name="end_callnumber" size="15" />
65
            <li role="presentation">
66
                <a href="#conf" aria-controls="conf" role="tab" data-toggle="tab">Export configuration</a>
106
            </li>
67
            </li>
107
        </ol>
68
        [% END %]
108
    </fieldset>
69
    </ul>
70
    <div class="tab-content">
71
        <div id="bibs" role="tabpanel" class="tab-pane active">
72
        <p>
73
            <strong>Note : The items are exported by this tool unless specified.</strong>
74
        </p>
109
75
110
    <fieldset class="rows">
76
        <form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/export.pl">
111
        <legend>Accession date (inclusive)</legend>
77
            <fieldset class="rows">
112
        <ol>
78
            <legend> Select records to export </legend>
113
            <li>
79
                <ol>
114
                    <label for="from">Start date:</label>
80
                <li>
115
                    <input type="text" size="10" id="from" name="start_accession" value="[% from | html %]" class="flatpickr" data-date_to="to" />
81
                    <label for="start">From biblionumber: </label>
116
            </li>
82
                    <input id="start" type="text" name="StartingBiblionumber" size="5" />
117
            <li>
83
                </li>
118
                <label for="to">End date:</label>
84
                <li>
119
                <input size="10" id="to" name="end_accession" value="[% end_accession | html %]" type="text" class="flatpickr" />
85
                    <label for="end">To biblionumber: </label>
120
            </li>
86
                    <input id="end" type="text" name="EndingBiblionumber" size="5" />
121
        </ol>
87
                </li>
122
    </fieldset>
123
88
124
    </fieldset>
89
                <li>
125
    <fieldset class="rows">
90
                    <label for="itemtype">Item type: </label>
126
    <legend>
91
                    <select name="itemtype" id="itemtype">
127
        Use a file
92
                        <option value="">-- All --</option>
128
    </legend>
93
                        [% FOREACH itemtype IN itemtypes %]
129
        <ol>
94
                            <option value="[% itemtype.itemtype | html %]">[% itemtype.translated_description | html %]</option>
130
        <li>File containing a list of biblionumbers with one biblionumber per line. This list works as a filter: it is compatible with other parameters. (File types accepted: .csv and .txt)</li>
95
                        [% END %]
131
        <li><label for="id_list_file">File: </label> <input type="file" id="id_list_file" name="id_list_file" /></li>
96
                    </select>
132
        </ol>
97
                </li>
133
    </fieldset>
134
    <fieldset class="rows">
135
    <legend> Options</legend>
136
<ol>        <li>
137
        <label for="dont_export_item">Don't export items:</label>
138
        <input id="dont_export_item" type="checkbox" name="dont_export_item" />
139
        </li>
140
        <li>
141
        <label for="strip_items_not_from_libraries">Remove items not owned by selected libraries:</label>
142
        <input id="strip_items_not_from_libraries" type="checkbox" name="strip_items_not_from_libraries" />
143
        </li>
144
        <li>
145
        <label for="export_remove_fields">Don't export fields:</label>
146
        <input id="export_remove_fields" type="text" name="export_remove_fields" value="[% export_remove_fields | html %]" />
147
        separate by a blank. (e.g., 100a 200 606)
148
        </li></ol>
149
    </fieldset>
150
    <fieldset class="rows">
151
    <legend>
152
        Output format
153
    </legend>
154
        <ol><li>
155
            <label for="output_format">File format: </label>
156
            <select id="output_format" name="output_format">
157
                <option value="iso2709">MARC</option>
158
                <option value="xml">XML</option>
159
                [% IF csv_profiles %]
160
                    <option value="csv">CSV</option>
161
                [% ELSE %]
162
                    <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>
163
                [% END %]
164
            </select>
165
        </li>
166
        <li class="csv_profiles">
167
            <label for="bibs_csv_profile">CSV profile: </label>
168
            <select id="bibs_csv_profile" name="csv_profile_id">
169
                [% FOR csv_profile IN csv_profiles %]
170
                    <option value="[% csv_profile.export_format_id | html %]">[% csv_profile.profile | html %]</option>
171
                [% END %]
172
            </select>
173
        </li>
174
        <li>
175
        <label for="filename">File name:</label><input id="filename" type="text" name="filename" value="koha.mrc" />
176
        </li></ol>
177
    </fieldset>
178
    <input type="hidden" name="op" value="export" />
179
    <input type="hidden" name="record_type" value="bibs" />
180
98
181
    <fieldset class="action"><input type="submit" value="Export bibliographic records" class="button" /></fieldset>
99
                <li>
182
</form>
100
                    <label>With items owned by the following libraries: </label>
183
</div>
101
                    [% INCLUDE 'branch-selector.inc' branches = libraries %]
102
                </li>
103
            </ol>
184
104
185
<div id="auths">
105
            <fieldset class="rows">
186
<form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/export.pl">
106
                <legend>Call number range</legend>
187
    <fieldset class="rows">
107
                <ol>
188
    <legend> Select records to export </legend>
108
                    <li>
189
        <ol><li>
109
                        <label for="startcn">From item call number: </label>
190
            <label for="start">From authid: </label>
110
                        <input id="startcn" type="text" name="start_callnumber" size="15" />
191
            <input id="start" type="text" name="starting_authid" size="6" />
111
                    </li>
192
        </li>
112
                    <li>
193
        <li>
113
                        <label for="endcn">To item call number: </label>
194
            <label for="end">To authid: </label>
114
                        <input id="endcn" type="text" name="end_callnumber" size="15" />
195
            <input id="end" type="text" name="ending_authid" size="6" />
115
                    </li>
196
        </li>
116
                </ol>
197
        <li>
117
            </fieldset>
198
            <label for="authtype">Authority type: </label>
199
            <select name="authtype" id="authtype">
200
                <option value="">-- All --</option>
201
                [% FOREACH authority_type IN authority_types %]
202
                    <option value="[% authority_type.authtypecode | html %]">[% authority_type.authtypetext | html %]</option>
203
                [% END %]
204
            </select>
205
        </li>
206
        </ol>
207
    </fieldset>
208
    <fieldset class="rows">
209
    <legend>
210
        Use a file
211
    </legend>
212
        <ol>
213
        <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>
214
        <li><label for="id_list_file">File:</label> <input type="file" id="id_list_file" name="id_list_file" /></li>
215
        </ol>
216
    </fieldset>
217
    <fieldset class="rows">
218
    <legend>Options</legend>
219
        <ol>
220
        <li>
221
            <label for="export_remove_fields">Don't export fields:</label>
222
            <input id="export_remove_fields" type="text" name="export_remove_fields" />
223
            separate by a blank. (e.g., 100a 200 606)
224
        </li></ol>
225
    </fieldset>
226
    <fieldset class="rows">
227
    <legend>Output format</legend>
228
        <ol><li>
229
            <label for="output_format">File format: </label>
230
            <select id="output_format_auth" name="output_format">
231
                <option value="marc">MARC</option>
232
                <option value="xml">XML</option>
233
            </select>
234
        </li>
235
        <li>
236
        <label for="filename_auth">File name:</label><input id="filename_auth" type="text" name="filename_auth" value="koha.mrc" />
237
        </li></ol>
238
    </fieldset>
239
    <input type="hidden" name="op" value="export" />
240
    <input type="hidden" name="record_type" value="auths" />
241
118
242
    <fieldset class="action"><input type="submit" value="Export authority records" class="button" /></fieldset>
119
            <fieldset class="rows">
243
</form>
120
                <legend>Accession date (inclusive)</legend>
244
</div>
121
                <ol>
122
                    <li>
123
                            <label for="from">Start date:</label>
124
                            <input type="text" size="10" id="from" name="start_accession" value="[% from | html %]" class="flatpickr" data-date_to="to" />
125
                    </li>
126
                    <li>
127
                        <label for="to">End date:</label>
128
                        <input size="10" id="to" name="end_accession" value="[% end_accession | html %]" type="text" class="flatpickr" />
129
                    </li>
130
                </ol>
131
            </fieldset>
245
132
246
[% IF ( allow_db_export ) %]
133
            </fieldset>
247
<div id="db">
134
            <fieldset class="rows">
248
<form method="post" action="/cgi-bin/koha/tools/export.pl">
135
            <legend>
249
    <p><strong>Note : This export file will be very large, and is generated nightly.</strong></p>
136
                Use a file
250
    <fieldset class="rows">
137
            </legend>
251
    <legend> Choose a file </legend>
138
                <ol>
252
    [% IF ( dbfiles && (dbfiles.size > 0) ) %]
139
                <li>File containing a list of biblionumbers with one biblionumber per line. This list works as a filter: it is compatible with other parameters. (File types accepted: .csv and .txt)</li>
253
        <ul>
140
                <li><label for="id_list_file">File: </label> <input type="file" id="id_list_file" name="id_list_file" /></li>
254
        [% FOREACH dbfile IN dbfiles %]
141
                </ol>
255
            <li><input type="radio" name="filename" value="[% dbfile | html %]">[% dbfile | html %]</input></li>
142
            </fieldset>
256
        [% END %]
143
            <fieldset class="rows">
257
        </ul>
144
            <legend> Options</legend>
258
    [% ELSE %]
145
        <ol>        <li>
259
        <p>Unfortunately, no backups are available.</p>
146
                <label for="dont_export_item">Don't export items:</label>
260
    [% END %]
147
                <input id="dont_export_item" type="checkbox" name="dont_export_item" />
261
    </fieldset>
148
                </li>
149
                <li>
150
                <label for="strip_items_not_from_libraries">Remove items not owned by selected libraries:</label>
151
                <input id="strip_items_not_from_libraries" type="checkbox" name="strip_items_not_from_libraries" />
152
                </li>
153
                <li>
154
                <label for="export_remove_fields">Don't export fields:</label>
155
                <input id="export_remove_fields" type="text" name="export_remove_fields" value="[% export_remove_fields | html %]" />
156
                separate by a blank. (e.g., 100a 200 606)
157
                </li></ol>
158
            </fieldset>
159
            <fieldset class="rows">
160
            <legend>
161
                Output format
162
            </legend>
163
                <ol><li>
164
                    <label for="output_format">File format: </label>
165
                    <select id="output_format" name="output_format">
166
                        <option value="iso2709">MARC</option>
167
                        <option value="xml">XML</option>
168
                        [% IF csv_profiles %]
169
                            <option value="csv">CSV</option>
170
                        [% ELSE %]
171
                            <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>
172
                        [% END %]
173
                    </select>
174
                </li>
175
                <li class="csv_profiles">
176
                    <label for="bibs_csv_profile">CSV profile: </label>
177
                    <select id="bibs_csv_profile" name="csv_profile_id">
178
                        [% FOR csv_profile IN csv_profiles %]
179
                            <option value="[% csv_profile.export_format_id | html %]">[% csv_profile.profile | html %]</option>
180
                        [% END %]
181
                    </select>
182
                </li>
183
                <li>
184
                <label for="filename">File name:</label><input id="filename" type="text" name="filename" value="koha.mrc" />
185
                </li></ol>
186
            </fieldset>
187
            <input type="hidden" name="op" value="export" />
188
            <input type="hidden" name="record_type" value="bibs" />
262
189
263
    [% IF ( dbfiles && (dbfiles.size > 0) ) %]
190
            <fieldset class="action"><input type="submit" value="Export bibliographic records" class="button" /></fieldset>
264
        <input type="hidden" name="op" value="export" />
191
        </form>
265
        <input type="hidden" name="record_type" value="db" />
192
        </div>
266
        <fieldset class="action"><input type="submit" value="Download database" class="button" /></fieldset>
267
    [% END %]
268
</form>
269
</div>
270
[% END %]
271
193
272
[% IF ( allow_conf_export ) %]
194
        <div id="auths" role="tabpanel" class="tab-pane">
273
<div id="conf">
195
        <form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/export.pl">
274
<form method="post" action="/cgi-bin/koha/tools/export.pl">
196
            <fieldset class="rows">
275
    <p><strong>Note : This export file will be very large, and is generated nightly.</strong></p>
197
            <legend> Select records to export </legend>
276
    <fieldset class="rows">
198
                <ol><li>
277
    <legend> Choose a file </legend>
199
                    <label for="start">From authid: </label>
278
    [% IF ( conffiles && (conffiles.size > 0) ) %]
200
                    <input id="start" type="text" name="starting_authid" size="6" />
279
        <ul>
201
                </li>
280
        [% FOREACH conffile IN conffiles %]
202
                <li>
281
            <li><input type="radio" name="filename" value="[% conffile | html %]">[% conffile | html %]</input></li>
203
                    <label for="end">To authid: </label>
204
                    <input id="end" type="text" name="ending_authid" size="6" />
205
                </li>
206
                <li>
207
                    <label for="authtype">Authority type: </label>
208
                    <select name="authtype" id="authtype">
209
                        <option value="">-- All --</option>
210
                        [% FOREACH authority_type IN authority_types %]
211
                            <option value="[% authority_type.authtypecode | html %]">[% authority_type.authtypetext | html %]</option>
212
                        [% END %]
213
                    </select>
214
                </li>
215
                </ol>
216
            </fieldset>
217
            <fieldset class="rows">
218
            <legend>
219
                Use a file
220
            </legend>
221
                <ol>
222
                <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>
223
                <li><label for="id_list_file">File:</label> <input type="file" id="id_list_file" name="id_list_file" /></li>
224
                </ol>
225
            </fieldset>
226
            <fieldset class="rows">
227
            <legend>Options</legend>
228
                <ol>
229
                <li>
230
                    <label for="export_remove_fields">Don't export fields:</label>
231
                    <input id="export_remove_fields" type="text" name="export_remove_fields" />
232
                    separate by a blank. (e.g., 100a 200 606)
233
                </li></ol>
234
            </fieldset>
235
            <fieldset class="rows">
236
            <legend>Output format</legend>
237
                <ol><li>
238
                    <label for="output_format">File format: </label>
239
                    <select id="output_format_auth" name="output_format">
240
                        <option value="marc">MARC</option>
241
                        <option value="xml">XML</option>
242
                    </select>
243
                </li>
244
                <li>
245
                <label for="filename_auth">File name:</label><input id="filename_auth" type="text" name="filename_auth" value="koha.mrc" />
246
                </li></ol>
247
            </fieldset>
248
            <input type="hidden" name="op" value="export" />
249
            <input type="hidden" name="record_type" value="auths" />
250
251
            <fieldset class="action"><input type="submit" value="Export authority records" class="button" /></fieldset>
252
        </form>
253
        </div>
254
255
        [% IF ( allow_db_export ) %]
256
        <div id="db" role="tabpanel" class="tab-pane">
257
        <form method="post" action="/cgi-bin/koha/tools/export.pl">
258
            <p><strong>Note : This export file will be very large, and is generated nightly.</strong></p>
259
            <fieldset class="rows">
260
            <legend> Choose a file </legend>
261
            [% IF ( dbfiles && (dbfiles.size > 0) ) %]
262
                <ul>
263
                [% FOREACH dbfile IN dbfiles %]
264
                    <li><input type="radio" name="filename" value="[% dbfile | html %]">[% dbfile | html %]</input></li>
265
                [% END %]
266
                </ul>
267
            [% ELSE %]
268
                <p>Unfortunately, no backups are available.</p>
269
            [% END %]
270
            </fieldset>
271
272
            [% IF ( dbfiles && (dbfiles.size > 0) ) %]
273
                <input type="hidden" name="op" value="export" />
274
                <input type="hidden" name="record_type" value="db" />
275
                <fieldset class="action"><input type="submit" value="Download database" class="button" /></fieldset>
276
            [% END %]
277
        </form>
278
        </div>
282
        [% END %]
279
        [% END %]
283
        </ul>
284
    [% ELSE %]
285
        <p>Unfortunately, no backups are available.</p>
286
    [% END %]
287
    </fieldset>
288
280
289
    [% IF ( conffiles && (conffiles.size > 0) ) %]
281
        [% IF ( allow_conf_export ) %]
290
        <input type="hidden" name="op" value="export" />
282
        <div id="conf" role="tabpanel" class="tab-pane">
291
        <input type="hidden" name="record_type" value="conf" />
283
        <form method="post" action="/cgi-bin/koha/tools/export.pl">
292
        <fieldset class="action"><input type="submit" value="Download configuration" class="button" /></fieldset>
284
            <p><strong>Note : This export file will be very large, and is generated nightly.</strong></p>
293
    [% END %]
285
            <fieldset class="rows">
294
</form>
286
            <legend> Choose a file </legend>
295
</div>
287
            [% IF ( conffiles && (conffiles.size > 0) ) %]
296
[% END %]
288
                <ul>
289
                [% FOREACH conffile IN conffiles %]
290
                    <li><input type="radio" name="filename" value="[% conffile | html %]">[% conffile | html %]</input></li>
291
                [% END %]
292
                </ul>
293
            [% ELSE %]
294
                <p>Unfortunately, no backups are available.</p>
295
            [% END %]
296
            </fieldset>
297
297
298
            [% IF ( conffiles && (conffiles.size > 0) ) %]
299
                <input type="hidden" name="op" value="export" />
300
                <input type="hidden" name="record_type" value="conf" />
301
                <fieldset class="action"><input type="submit" value="Download configuration" class="button" /></fieldset>
302
            [% END %]
303
        </form>
304
        </div>
305
        [% END %]
306
    </div> <!-- /.tab-content -->
298
</div>
307
</div>
299
308
300
            </main>
309
            </main>
Lines 312-318 Link Here
312
    [% INCLUDE 'calendar.inc' %]
321
    [% INCLUDE 'calendar.inc' %]
313
    <script>
322
    <script>
314
        $(document).ready(function() {
323
        $(document).ready(function() {
315
            $('#exporttype').tabs();
316
324
317
            $("li.csv_profiles").hide();
325
            $("li.csv_profiles").hide();
318
326
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt (-72 / +78 lines)
Lines 39-127 Link Here
39
                <form id="patron_batchmod_form" method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/modborrowers.pl">
39
                <form id="patron_batchmod_form" method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/modborrowers.pl">
40
                    <input type="hidden" name="op" value="show" />
40
                    <input type="hidden" name="op" value="show" />
41
                    <div id="batch_patron_options" class="toptabs">
41
                    <div id="batch_patron_options" class="toptabs">
42
                        <ul>
42
                        <ul class="nav nav-tabs" role="tablist">
43
                            <li>
43
                            <li role="presentation" class="active">
44
                                <a href="#usecardnumber">By card number</a>
44
                                <a href="#usecardnumber" aria-controls="usecardnumber" role="tab" data-toggle="tab">By card number</a>
45
                            </li>
45
                            </li>
46
                            <li>
46
                            <li role="presentation">
47
                                <a href="#useborrowernumber">By borrowernumber</a>
47
                                <a href="#useborrowernumber" aria-controls="useborrowernumber" role="tab" data-toggle="tab">By borrowernumber</a>
48
                            </li>
48
                            </li>
49
                            [% IF patron_lists %]
49
                            [% IF patron_lists %]
50
                                <li>
50
                                <li role="presentation">
51
                                    <a href="#uselist">By patron list</a>
51
                                    <a href="#uselist" aria-controls="uselist" role="tab" data-toggle="tab">By patron list</a>
52
                                </li>
52
                                </li>
53
                            [% END %]
53
                            [% END %]
54
                        </ul>
54
                        </ul>
55
                        <div id="usecardnumber">
55
                        <div class="tab-content">
56
                            <fieldset class="rows">
56
                            <div id="usecardnumber" role="tabpanel" class="tab-pane active">
57
                                <legend>Use a file of card numbers</legend>
58
                                <ol>
59
                                    <li>
60
                                        <label for="cardnumberuploadfile">File: </label> <input type="file" id="cardnumberuploadfile" name="cardnumberuploadfile" />
61
                                        <div class="hint">File must contain one card number per line.</div>
62
                                    </li>
63
                                </ol>
64
                            </fieldset>
65
                            <fieldset class="rows">
66
                                <legend>Or list card numbers one by one</legend>
67
                                <ol>
68
                                    <li>
69
                                    <label for="cardnumberlist">Card number list (one card number per line): </label>
70
                                    <textarea rows="10" cols="30" id="cardnumberlist" name="cardnumberlist">[% cardnumberlist | html %]</textarea>
71
                                    </li>
72
                                </ol>
73
                            </fieldset>
74
                    <fieldset class="action">
75
                        <input type="submit" value="Continue" class="button" />
76
                        <a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a>
77
                    </fieldset>
78
                        </div>
79
                        <div id="useborrowernumber">
80
                            <fieldset class="rows">
81
                                <legend>Use a file of borrowernumbers</legend>
82
                                <ol>
83
                                    <li>
84
                                        <label for="borrowernumberuploadfile">File: </label> <input type="file" id="borrowernumberuploadfile" name="borrowernumberuploadfile" />
85
                                        <div class="hint">File must contain one borrowernumber per line.</div>
86
                                    </li>
87
                                </ol>
88
                            </fieldset>
89
                            <fieldset class="rows">
90
                                <legend>List borrowernumbers one by one</legend>
91
                                <ol>
92
                                    <li>
93
                                    <label for="borrowernumberlist">Borrowernumber list (one number per line): </label>
94
                                    <textarea rows="10" cols="30" id="borrowernumberlist" name="borrowernumberlist">[% borrowernumberlist | html %]</textarea>
95
                                    </li>
96
                                </ol>
97
                            </fieldset>
98
                    <fieldset class="action">
99
                        <input type="submit" value="Continue" class="button" />
100
                        <a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a>
101
                    </fieldset>
102
                        </div>
103
                        [% IF patron_lists %]
104
                            <div id="uselist">
105
                                <fieldset class="rows">
57
                                <fieldset class="rows">
106
                                    <legend>Use a patron list</legend>
58
                                    <legend>Use a file of card numbers</legend>
107
                                    <ol>
59
                                    <ol>
108
                                        <li>
60
                                        <li>
109
                                            <label for="patron_list_id">Patron list: </label>
61
                                            <label for="cardnumberuploadfile">File: </label> <input type="file"
110
                                            <select id="patron_list_id" name="patron_list_id">
62
                                                id="cardnumberuploadfile" name="cardnumberuploadfile" />
111
                                                <option value=""> -- Choose a patron list -- </option>
63
                                            <div class="hint">File must contain one card number per line.</div>
112
                                                [% FOREACH pl IN patron_lists %]
113
                                                    <option value="[% pl.patron_list_id | html %]">[% pl.name | html %]</option>
114
                                                [% END %]
115
                                            </select>
116
                                        </li>
64
                                        </li>
117
                                    </ol>
65
                                    </ol>
118
                                </fieldset>
66
                                </fieldset>
119
                    <fieldset class="action">
67
                                <fieldset class="rows">
120
                        <input type="submit" value="Continue" class="button" />
68
                                    <legend>Or list card numbers one by one</legend>
121
                        <a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a>
69
                                    <ol>
122
                    </fieldset>
70
                                        <li>
71
                                            <label for="cardnumberlist">Card number list (one card number per line):
72
                                            </label>
73
                                            <textarea rows="10" cols="30" id="cardnumberlist"
74
                                                name="cardnumberlist">[% cardnumberlist | html %]</textarea>
75
                                        </li>
76
                                    </ol>
77
                                </fieldset>
78
                                <fieldset class="action">
79
                                    <input type="submit" value="Continue" class="button" />
80
                                    <a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a>
81
                                </fieldset>
123
                            </div>
82
                            </div>
124
                        [% END %]
83
                            <div id="useborrowernumber" role="tabpanel" class="tab-pane">
84
                                <fieldset class="rows">
85
                                    <legend>Use a file of borrowernumbers</legend>
86
                                    <ol>
87
                                        <li>
88
                                            <label for="borrowernumberuploadfile">File: </label> <input type="file"
89
                                                id="borrowernumberuploadfile" name="borrowernumberuploadfile" />
90
                                            <div class="hint">File must contain one borrowernumber per line.</div>
91
                                        </li>
92
                                    </ol>
93
                                </fieldset>
94
                                <fieldset class="rows">
95
                                    <legend>List borrowernumbers one by one</legend>
96
                                    <ol>
97
                                        <li>
98
                                            <label for="borrowernumberlist">Borrowernumber list (one number per line):
99
                                            </label>
100
                                            <textarea rows="10" cols="30" id="borrowernumberlist"
101
                                                name="borrowernumberlist">[% borrowernumberlist | html %]</textarea>
102
                                        </li>
103
                                    </ol>
104
                                </fieldset>
105
                                <fieldset class="action">
106
                                    <input type="submit" value="Continue" class="button" />
107
                                    <a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a>
108
                                </fieldset>
109
                            </div>
110
                            [% IF patron_lists %]
111
                                <div id="uselist" role="tabpanel" class="tab-pane">
112
                                    <fieldset class="rows">
113
                                        <legend>Use a patron list</legend>
114
                                        <ol>
115
                                            <li>
116
                                                <label for="patron_list_id">Patron list: </label>
117
                                                <select id="patron_list_id" name="patron_list_id">
118
                                                    <option value=""> -- Choose a patron list -- </option>
119
                                                    [% FOREACH pl IN patron_lists %]
120
                                                    <option value="[% pl.patron_list_id | html %]">[% pl.name | html %]</option>
121
                                                    [% END %]
122
                                                </select>
123
                                            </li>
124
                                        </ol>
125
                                    </fieldset>
126
                                    <fieldset class="action">
127
                                        <input type="submit" value="Continue" class="button" />
128
                                        <a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a>
129
                                    </fieldset>
130
                                </div>
131
                            [% END %]
132
                        </div> <!-- /.tab-content -->
125
                    </div><!-- /#batch_patron_options -->
133
                    </div><!-- /#batch_patron_options -->
126
                </form>
134
                </form>
127
                [% END %]
135
                [% END %]
Lines 419-426 Link Here
419
                    });
427
                    });
420
                    return false;
428
                    return false;
421
                });
429
                });
422
            [% ELSE %]
423
                $("#batch_patron_options").tabs();
424
            [% END %]
430
            [% END %]
425
431
426
            var values = new Array();
432
            var values = new Array();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt (-84 / +87 lines)
Lines 71-158 Link Here
71
                <h3>Rules for overdue actions: [% IF ( branch ) %][% Branches.GetName( branch ) | html %][% ELSE %] default library [% END %]</h3>
71
                <h3>Rules for overdue actions: [% IF ( branch ) %][% Branches.GetName( branch ) | html %][% ELSE %] default library [% END %]</h3>
72
                    [% IF ( datasaved ) %]<div class="dialog message">Changes saved.</div> [% END %]
72
                    [% IF ( datasaved ) %]<div class="dialog message">Changes saved.</div> [% END %]
73
73
74
  <div id="rulestabs" class="toptabs">
74
                <div id="rulestabs" class="toptabs">
75
    <ul class="ui-tabs-nav">
75
                    <ul class="nav nav-tabs" role="tablist">
76
      [% FOR tab IN tabs %]
76
                        [% FOR tab IN tabs %]
77
          <li><a href="#[% tab.id | uri %]" class="tab [% tab.id | html %]" data-number="[% tab.number | html %]"></a></li>
77
                            <li role="presentation">
78
      [% END %]
78
                                <a href="#[% tab.id | uri %]" class="tab [% tab.id | html %]" data-number="[% tab.number | html %]" aria-controls="[% tab.id | uri %]" role="tab" data-toggle="tab"></a>
79
    </ul>
79
                            </li>
80
    [% FOR tab IN tabs %]
80
                        [% END %]
81
      <div id="[% tab.id | html %]">
81
                    </ul>
82
        <table>
82
                    <div class="tab-content">
83
          <thead>
83
                        [% FOR tab IN tabs %]
84
            <tr>
84
                            <div id="[% tab.id | html %]" role="tabpanel" class="tab-pane">
85
              <th>&nbsp;</th>
85
                                <table>
86
              <th scope="col">Delay</th>
86
                                    <thead>
87
              <th scope="col">Letter</th>
87
                                        <tr>
88
              <th scope="col">Restrict</th>
88
                                        <th>&nbsp;</th>
89
              [% FOREACH mtt IN message_transport_types %]
89
                                        <th scope="col">Delay</th>
90
                [% NEXT IF mtt == 'itiva' AND !Koha.Preference('TalkingTechItivaPhoneNotification') %]
90
                                        <th scope="col">Letter</th>
91
                [% NEXT IF mtt == 'phone' AND !Koha.Preference('PhoneNotification') %]
91
                                        <th scope="col">Restrict</th>
92
                <th scpre="col">
92
                                            [% FOREACH mtt IN message_transport_types %]
93
                  [% SWITCH mtt %]
93
                                                [% NEXT IF mtt == 'itiva' AND !Koha.Preference('TalkingTechItivaPhoneNotification') %]
94
                  [% CASE 'email' %]<span>Email</span>
94
                                                [% NEXT IF mtt == 'phone' AND !Koha.Preference('PhoneNotification') %]
95
                  [% CASE 'print' %]<span>Print</span>
95
                                                <th scope="col">
96
                  [% CASE 'sms' %]<span>SMS</span>
96
                                                    [% SWITCH mtt %]
97
                  [% CASE 'feed' %]<span>Feed</span>
97
                                                    [% CASE 'email' %]<span>Email</span>
98
                  [% CASE 'itiva' %]<span>Phone (i-tiva)</span>
98
                                                    [% CASE 'print' %]<span>Print</span>
99
                  [% CASE 'phone' %]<span>Phone</span>
99
                                                    [% CASE 'sms' %]<span>SMS</span>
100
                  [% CASE %]<span>[% mtt | html %]</span>
100
                                                    [% CASE 'feed' %]<span>Feed</span>
101
                  [% END %]
101
                                                    [% CASE 'itiva' %]<span>Phone (i-tiva)</span>
102
                </th>
102
                                                    [% CASE 'phone' %]<span>Phone</span>
103
              [% END %]
103
                                                    [% CASE %]<span>[% mtt | html %]</span>
104
            </tr>
104
                                                    [% END %]
105
          </thead>
105
                                                </th>
106
          <tbody>
106
                                            [% END %]
107
          [% FOREACH value IN tab.values %]
107
                                        </tr>
108
            <tr>
108
                                    </thead>
109
              <th scope="row">[% value.line | html %]</th>
109
                                    <tbody>
110
              <td>
110
                                        [% FOREACH value IN tab.values %]
111
              <input type="text" inputmode="numeric" pattern="[0-9]*" name="delay[% tab.number | html %]-[% value.overduename | html %]" value="[% value.delay | html %]" />
111
                                            <tr>
112
              </td>
112
                                                <th scope="row">[% value.line | html %]</th>
113
              <td>
113
                                                <td>
114
                <select name="letter[% tab.number | html %]-[% value.overduename | html %]">
114
                                                    <input type="text" inputmode="numeric" pattern="[0-9]*" name="delay[% tab.number | html %]-[% value.overduename | html %]" value="[% value.delay | html %]" />
115
                  <option value="">No notice</option>
115
                                                </td>
116
                  [% FOREACH letter IN letters %]
116
                                                <td>
117
                    [% IF letter.code == value.selected_lettercode %]
117
                                                    <select name="letter[% tab.number | html %]-[% value.overduename | html %]">
118
                      <option value="[% letter.code | html %]" selected="selected">[% letter.name | html %]</option>
118
                                                        <option value="">No notice</option>
119
                    [% ELSE %]
119
                                                        [% FOREACH letter IN letters %]
120
                      <option value="[% letter.code | html %]">[% letter.name | html %]</option>
120
                                                            [% IF letter.code == value.selected_lettercode %]
121
                    [% END %]
121
                                                            <option value="[% letter.code | html %]" selected="selected">[% letter.name | html %]</option>
122
                  [% END %]
122
                                                            [% ELSE %]
123
                </select>
123
                                                            <option value="[% letter.code | html %]">[% letter.name | html %]</option>
124
              </td>
124
                                                            [% END %]
125
              <td>
125
                                                        [% END %]
126
              [% IF ( value.debarred ) %]
126
                                                    </select>
127
                <input type="checkbox" name="debarred[% tab.number | html %]-[% value.overduename | html %]" checked="checked" value="1" />
127
                                                </td>
128
              [% ELSE %]
128
                                                <td>
129
                <input type="checkbox" name="debarred[% tab.number | html %]-[% value.overduename | html %]" value="1" />
129
                                                    [% IF ( value.debarred ) %]
130
              [% END %]
130
                                                        <input type="checkbox" name="debarred[% tab.number | html %]-[% value.overduename | html %]" checked="checked" value="1" />
131
              </td>
131
                                                    [% ELSE %]
132
              [% FOREACH mtt IN value.message_transport_types %]
132
                                                        <input type="checkbox" name="debarred[% tab.number | html %]-[% value.overduename | html %]" value="1" />
133
                [% NEXT IF mtt.value == 'itiva' AND !Koha.Preference('TalkingTechItivaPhoneNotification') %]
133
                                                    [% END %]
134
                [% NEXT IF mtt.value == 'phone' AND !Koha.Preference('PhoneNotification') %]
134
                                                </td>
135
                <td>
135
                                                [% FOREACH mtt IN value.message_transport_types %]
136
                  [% IF mtt.selected %]
136
                                                    [% NEXT IF mtt.value == 'itiva' AND !Koha.Preference('TalkingTechItivaPhoneNotification') %]
137
                    <input type="checkbox" name="mtt[% tab.number | html %]-[% value.overduename | html %]" value="[% mtt.value | html %]" checked="checked" />
137
                                                    [% NEXT IF mtt.value == 'phone' AND !Koha.Preference('PhoneNotification') %]
138
                  [% ELSE %]
138
                                                    <td>
139
                    [% IF mtt.value == "sms" and not Koha.Preference("SMSSendDriver") %]
139
                                                        [% IF mtt.selected %]
140
                      <input type="checkbox" name="mtt[% tab.number | html %]-[% value.overduename | html %]" value="[% mtt.value | html %]" disabled="disabled" />
140
                                                            <input type="checkbox" name="mtt[% tab.number | html %]-[% value.overduename | html %]" value="[% mtt.value | html %]" checked="checked" />
141
                    [% ELSE %]
141
                                                        [% ELSE %]
142
                      <input type="checkbox" name="mtt[% tab.number | html %]-[% value.overduename | html %]" value="[% mtt.value | html %]" />
142
                                                            [% IF mtt.value == "sms" and not Koha.Preference("SMSSendDriver") %]
143
                    [% END %]
143
                                                                <input type="checkbox" name="mtt[% tab.number | html %]-[% value.overduename | html %]" value="[% mtt.value | html %]" disabled="disabled" />
144
                  [% END %]
144
                                                            [% ELSE %]
145
                </td>
145
                                                                <input type="checkbox" name="mtt[% tab.number | html %]-[% value.overduename | html %]" value="[% mtt.value | html %]" />
146
              [% END %]
146
                                                            [% END %]
147
            </tr>
147
                                                        [% END %]
148
          [% END %]
148
                                                    </td>
149
          </tbody>
149
                                                [% END # /FOREACH mtt %]
150
        </table>
150
                                            </tr>
151
      </div>
151
                                        [% END # /FOREACH value %]
152
    [% END %]
152
                                    </tbody>
153
153
                                </table>
154
154
                            </div> <!-- /.tab-pane -->
155
</div>
155
                        [% END # /FOR tabs %]
156
                    </div> <!-- /.tab-content -->
157
                </div>
156
158
157
                <fieldset class="action"><input type="submit" value="Save changes" /></fieldset>
159
                <fieldset class="action"><input type="submit" value="Save changes" /></fieldset>
158
            </form>
160
            </form>
Lines 184-190 Link Here
184
                var id = $(this).attr("data-number");
186
                var id = $(this).attr("data-number");
185
                $(this).html(tab_map[id]);
187
                $(this).html(tab_map[id]);
186
            });
188
            });
187
            $('#rulestabs').tabs();
189
            if( $("#rulestabs .tab-pane.active").length < 1 ){
190
                $("#rulestabs a:first").tab("show");
191
            }
188
        });
192
        });
189
    </script>
193
    </script>
190
[% END %]
194
[% END %]
191
- 

Return to bug 30475