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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/ill-list-table.inc (-9 / +3 lines)
Lines 6-19 Link Here
6
    <thead>
6
    <thead>
7
        <tr id="ill_requests_header">
7
        <tr id="ill_requests_header">
8
            <th scope="col">Request ID</th>
8
            <th scope="col">Request ID</th>
9
            <th scope="col" data-datatype="related-object" data-related="extended_attributes" data-related-key="type" data-related-value="author"         data-related-search-on="value">Author</th>
9
            <th scope="col">Request details</th>
10
            <th scope="col" data-datatype="related-object" data-related="extended_attributes" data-related-key="type" data-related-value="title"         data-related-search-on="value">Title</th>
10
            <th scope="col" data-datatype="related-object" data-related="extended_attributes" data-related-key="type" data-related-value="type" data-related-search-on="value">Request type</th>
11
            <th scope="col" data-datatype="related-object" data-related="extended_attributes" data-related-key="type" data-related-value="article_title" data-related-search-on="value">Article title</th>
12
            <th scope="col" data-datatype="related-object" data-related="extended_attributes" data-related-key="type" data-related-value="issue"         data-related-search-on="value">Issue</th>
13
            <th scope="col" data-datatype="related-object" data-related="extended_attributes" data-related-key="type" data-related-value="volume"        data-related-search-on="value">Volume</th>
14
            <th scope="col" data-datatype="related-object" data-related="extended_attributes" data-related-key="type" data-related-value="year"          data-related-search-on="value">Year</th>
15
            <th scope="col" data-datatype="related-object" data-related="extended_attributes" data-related-key="type" data-related-value="pages"         data-related-search-on="value">Pages</th>
16
            <th scope="col" data-datatype="related-object" data-related="extended_attributes" data-related-key="type" data-related-value="type"          data-related-search-on="value">Request type</th>
17
            <th scope="col">Order ID</th>
11
            <th scope="col">Order ID</th>
18
            <th scope="col">Patron</th>
12
            <th scope="col">Patron</th>
19
            <th scope="col">Bibliographic record ID</th>
13
            <th scope="col">Bibliographic record ID</th>
Lines 35-38 Link Here
35
    </thead>
29
    </thead>
36
    <tbody id="illview-body">
30
    <tbody id="illview-body">
37
    </tbody>
31
    </tbody>
38
</table>
32
</table>
(-)a/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js (-45 / +24 lines)
Lines 206-257 $(document).ready(function() { Link Here
206
                }
206
                }
207
            },
207
            },
208
            {
208
            {
209
                "data": "", // author
209
                "data": "", // Request details
210
                "orderable": false,
210
                "orderable": false,
211
                "render": function(data, type, row, meta) {
211
                "render": function(data, type, row, meta) {
212
                    return display_extended_attribute(row, 'author');
212
                    let display = '';
213
                }
213
                    if ( display_extended_attribute(row, 'article_title') !== "" ) {
214
            },
214
                        display += '<span style="display:block"> Article: ' + display_extended_attribute(row, 'article_title') + '</span>';
215
            {
215
                    }
216
                "data": "", // title
216
                    if ( display_extended_attribute(row, 'title') !== "" ) {
217
                "orderable": false,
217
                        display += '<span style="display:block"> Title: ' + display_extended_attribute(row, 'title') + '</span>';
218
                "render": function(data, type, row, meta) {
218
                    }
219
                    return display_extended_attribute(row, 'title');
219
                    if ( display_extended_attribute(row, 'author') !== "" ) {
220
                }
220
                        display += '<span style="display:block"> Author: ' + display_extended_attribute(row, 'author') + '</span>';
221
            },
221
                    }
222
            {
222
                    if ( display_extended_attribute(row, 'issue') !== "" ) {
223
                "data": "", // article_title
223
                        display += '<span style="display:block"> Issue: ' + display_extended_attribute(row, 'issue') + '</span>';
224
                "orderable": false,
224
                    }
225
                "render": function(data, type, row, meta) {
225
                    if ( display_extended_attribute(row, 'volume') !== "" ) {
226
                    return display_extended_attribute(row, 'article_title');
226
                        display += '<span style="display:block"> Volume: ' + display_extended_attribute(row, 'volume') + '</span>';
227
                }
227
                    }
228
            },
228
                    if ( display_extended_attribute(row, 'year') !== "" ) {
229
            {
229
                        display += '<span style="display:block"> Year: ' + display_extended_attribute(row, 'year') + '</span>';
230
                "data": "", // issue
230
                    }
231
                "orderable": false,
231
                    if ( display_extended_attribute(row, 'pages') !== "" ) {
232
                "render": function(data, type, row, meta) {
232
                        display += '<span style="display:block"> Pages: ' + display_extended_attribute(row, 'pages') + '</span>';
233
                    return display_extended_attribute(row, 'issue');
233
                    }
234
                }
234
                    return display;
235
            },
236
            {
237
                "data": "", // volume
238
                "orderable": false,
239
                "render": function(data, type, row, meta) {
240
                    return display_extended_attribute(row, 'volume');
241
                }
242
            },
243
            {
244
                "data": "",  // year
245
                "orderable": false,
246
                "render": function(data, type, row, meta) {
247
                    return display_extended_attribute(row, 'year');
248
                }
249
            },
250
            {
251
                "data": "", // pages
252
                "orderable": false,
253
                "render": function(data, type, row, meta) {
254
                    return display_extended_attribute(row, 'pages');
255
                }
235
                }
256
            },
236
            },
257
            {
237
            {
258
- 

Return to bug 33544