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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt (-36 / +20 lines)
Lines 2-22 Link Here
2
[% USE Koha %]
2
[% USE Koha %]
3
[% USE KohaDates %]
3
[% USE KohaDates %]
4
4
5
[% columns = [ 'metadata_Author', 'metadata_Title', 'borrowername', 'biblio_id', 'library', 'status', 'updated', 'illrequest_id', 'action' ] %]
6
7
[% BLOCK translate_column %]
8
[%-  SWITCH column -%]
9
[%-  CASE 'metadata_Author' -%]Author
10
[%-  CASE 'metadata_Title'  -%]Title
11
[%-  CASE 'borrowername'    -%]Patron
12
[%-  CASE 'biblio_id'       -%]Biblio ID
13
[%-  CASE 'library'         -%]Library
14
[%-  CASE 'status'          -%]Status
15
[%-  CASE 'updated'         -%]Updated on
16
[%-  CASE 'illrequest_id'   -%]Request number
17
[%-  END -%]
18
[% END %]
19
20
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
21
<title>Koha &rsaquo; ILL requests  &rsaquo;</title>
6
<title>Koha &rsaquo; ILL requests  &rsaquo;</title>
22
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
Lines 67-75 Link Here
67
            'action'
52
            'action'
68
        ];
53
        ];
69
54
70
        // Extra fields that we need to tack on to the end
71
        var extra = [ 'action' ];
72
73
        // Remove any fields we're ignoring
55
        // Remove any fields we're ignoring
74
        var removeIgnore = function(dataObj) {
56
        var removeIgnore = function(dataObj) {
75
            dataObj.forEach(function(thisRow) {
57
            dataObj.forEach(function(thisRow) {
Lines 250-262 Link Here
250
                    expandExpand(row);
232
                    expandExpand(row);
251
                });
233
                });
252
234
253
                // Append any extra columns we need to tag on
254
                if (extra.length > 0) {
255
                    extra.forEach(function(thisExtra) {
256
                        allCols[thisExtra] = 1;
257
                    });
258
                }
259
260
                // Assemble an array of column definitions for passing
235
                // Assemble an array of column definitions for passing
261
                // to datatables
236
                // to datatables
262
                var colData = [];
237
                var colData = [];
Lines 283-289 Link Here
283
                $('#ill-requests').DataTable($.extend(true, {}, dataTablesDefaults, {
258
                $('#ill-requests').DataTable($.extend(true, {}, dataTablesDefaults, {
284
                    'aoColumnDefs': [  // Last column shouldn't be sortable or searchable
259
                    'aoColumnDefs': [  // Last column shouldn't be sortable or searchable
285
                        {
260
                        {
286
                            'aTargets': [ 'action' ],
261
                            'aTargets': [ 'actions' ],
287
                            'bSortable': false,
262
                            'bSortable': false,
288
                            'bSearchable': false
263
                            'bSearchable': false
289
                        },
264
                        },
Lines 365-380 Link Here
365
                [% ELSIF query_type == 'generic_confirm' %]
340
                [% ELSIF query_type == 'generic_confirm' %]
366
                    <h1>Place request with partner libraries</h1>
341
                    <h1>Place request with partner libraries</h1>
367
                  [% IF error %]
342
                  [% IF error %]
368
                      <div class="alert">
369
                    [% IF error == 'no_target_email' %]
343
                    [% IF error == 'no_target_email' %]
370
                          No target email addresses found. Either select at least
344
                        <div class="alert">
371
                          one partner or check your ILL partner library records.
345
                            No target email addresses found. Either select at least
346
                            one partner or check your ILL partner library records.
347
                        </div>
372
                    [% ELSIF error == 'no_library_email' %]
348
                    [% ELSIF error == 'no_library_email' %]
373
                          Your library has no usable email address. Please set it.
349
                        <div class="alert">
350
                            Your library has no usable email address. Please set it.
351
                        </div>
374
                    [% ELSIF error == 'unkown_error' %]
352
                    [% ELSIF error == 'unkown_error' %]
375
                          Unknown error processing your request. Contact your administrator.
353
                        <div class="alert">
354
                            Unknown error processing your request. Contact your administrator.
355
                        </div>
376
                    [% END %]
356
                    [% END %]
377
                      </div>
378
                  [% END %]
357
                  [% END %]
379
                    <!-- Start of GENERIC_EMAIL case -->
358
                    <!-- Start of GENERIC_EMAIL case -->
380
                    [% IF whole.value.partners %]
359
                    [% IF whole.value.partners %]
Lines 617-625 Link Here
617
                        <table id="ill-requests">
596
                        <table id="ill-requests">
618
                            <thead>
597
                            <thead>
619
                                <tr id="illview-header">
598
                                <tr id="illview-header">
620
                                [% FOR column IN columns %]
599
                                    <th>Author</th>
621
                                    <th>[% PROCESS translate_column column=column %]</th>
600
                                    <th>Title</th>
622
                                [% END %]
601
                                    <th>Patron</th>
602
                                    <th>Biblio ID</th>
603
                                    <th>Library</th>
604
                                    <th>Status</th>
605
                                    <th>Updated on</th>
606
                                    <th>Request number</th>
607
                                    <th class="actions"></th>
623
                                </tr>
608
                                </tr>
624
                            </thead>
609
                            </thead>
625
                            <tbody id="illview-body">
610
                            <tbody id="illview-body">
626
- 

Return to bug 7317