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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/ill-list-table.inc (-7 / +1 lines)
Lines 9-21 Link Here
9
        <tr id="ill_requests_header">
9
        <tr id="ill_requests_header">
10
            <th scope="col">Request ID</th>
10
            <th scope="col">Request ID</th>
11
            <th scope="col">Batch</th>
11
            <th scope="col">Batch</th>
12
            <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>
12
            <th scope="col">Request details</th>
13
            <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>
14
            <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>
15
            <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>
16
            <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>
17
            <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>
18
            <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>
19
            <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>
13
            <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>
20
            <th scope="col">Order ID</th>
14
            <th scope="col">Order ID</th>
21
            <th scope="col">Patron</th>
15
            <th scope="col">Patron</th>
(-)a/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js (-55 / +65 lines)
Lines 270-331 $(document).ready(function () { Link Here
270
                    },
270
                    },
271
                },
271
                },
272
                {
272
                {
273
                    data: "", // author
273
                    data: "", // Request details
274
                    orderable: false,
274
                    orderable: false,
275
                    render: function (data, type, row, meta) {
275
                    render: function (data, type, row, meta) {
276
                        const author = display_extended_attribute(
276
                        let display = "";
277
                            row,
277
                        if (
278
                            "author"
278
                            display_extended_attribute(row, "article_title") !==
279
                        );
279
                            ""
280
                        if (author) return author;
280
                        ) {
281
                        const articleAuthor = display_extended_attribute(
281
                            display +=
282
                            row,
282
                                '<span style="display:block"> Article: ' +
283
                            "article_author"
283
                                display_extended_attribute(
284
                        );
284
                                    row,
285
                        if (articleAuthor) return articleAuthor;
285
                                    "article_title"
286
                        return "";
286
                                ) +
287
                    },
287
                                "</span>";
288
                },
288
                        }
289
                {
289
                        if (display_extended_attribute(row, "title") !== "") {
290
                    data: "", // title
290
                            display +=
291
                    orderable: false,
291
                                '<span style="display:block"> Title: ' +
292
                    render: function (data, type, row, meta) {
292
                                display_extended_attribute(row, "title") +
293
                        return display_extended_attribute(row, "title");
293
                                "</span>";
294
                    },
294
                        }
295
                },
295
                        if (
296
                {
296
                            display_extended_attribute(
297
                    data: "", // article_title
297
                                row,
298
                    orderable: false,
298
                                "article_author"
299
                    render: function (data, type, row, meta) {
299
                            ) !== ""
300
                        return display_extended_attribute(row, "article_title");
300
                        ) {
301
                    },
301
                            display +=
302
                },
302
                                '<span style="display:block"> Article author: ' +
303
                {
303
                                display_extended_attribue(
304
                    data: "", // issue
304
                                    row,
305
                    orderable: false,
305
                                    "article_author"
306
                    render: function (data, type, row, meta) {
306
                                ) +
307
                        return display_extended_attribute(row, "issue");
307
                                "</span>";
308
                    },
308
                        }
309
                },
309
                        if (display_extended_attribute(row, "author") !== "") {
310
                {
310
                            display +=
311
                    data: "", // volume
311
                                '<span style="display:block"> Author: ' +
312
                    orderable: false,
312
                                display_extended_attribute(row, "author") +
313
                    render: function (data, type, row, meta) {
313
                                "</span>";
314
                        return display_extended_attribute(row, "volume");
314
                        }
315
                    },
315
                        if (display_extended_attribute(row, "issue") !== "") {
316
                },
316
                            display +=
317
                {
317
                                '<span style="display:block"> Issue: ' +
318
                    data: "", // year
318
                                display_extended_attribute(row, "issue") +
319
                    orderable: false,
319
                                "</span>";
320
                    render: function (data, type, row, meta) {
320
                        }
321
                        return display_extended_attribute(row, "year");
321
                        if (display_extended_attribute(row, "volume") !== "") {
322
                    },
322
                            display +=
323
                },
323
                                '<span style="display:block"> Volume: ' +
324
                {
324
                                display_extended_attribute(row, "volume") +
325
                    data: "", // pages
325
                                "</span>";
326
                    orderable: false,
326
                        }
327
                    render: function (data, type, row, meta) {
327
                        if (display_extended_attribute(row, "year") !== "") {
328
                        return display_extended_attribute(row, "pages");
328
                            display +=
329
                                '<span style="display:block"> Year: ' +
330
                                display_extended_attribute(row, "year") +
331
                                "</span>";
332
                        }
333
                        if (display_extended_attribute(row, "pages") !== "") {
334
                            display +=
335
                                '<span style="display:block"> Pages: ' +
336
                                display_extended_attribute(row, "pages") +
337
                                "</span>";
338
                        }
339
                        return display;
329
                    },
340
                    },
330
                },
341
                },
331
                {
342
                {
332
- 

Return to bug 33544