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 328-389 $(document).ready(function () { Link Here
328
                    },
328
                    },
329
                },
329
                },
330
                {
330
                {
331
                    data: "", // author
331
                    data: "", // Request details
332
                    orderable: false,
332
                    orderable: false,
333
                    render: function (data, type, row, meta) {
333
                    render: function (data, type, row, meta) {
334
                        const author = display_extended_attribute(
334
                        let display = "";
335
                            row,
335
                        if (
336
                            "author"
336
                            display_extended_attribute(row, "article_title") !==
337
                        );
337
                            ""
338
                        if (author) return author;
338
                        ) {
339
                        const articleAuthor = display_extended_attribute(
339
                            display +=
340
                            row,
340
                                '<span style="display:block"> Article: ' +
341
                            "article_author"
341
                                display_extended_attribute(
342
                        );
342
                                    row,
343
                        if (articleAuthor) return articleAuthor;
343
                                    "article_title"
344
                        return "";
344
                                ) +
345
                    },
345
                                "</span>";
346
                },
346
                        }
347
                {
347
                        if (display_extended_attribute(row, "title") !== "") {
348
                    data: "", // title
348
                            display +=
349
                    orderable: false,
349
                                '<span style="display:block"> Title: ' +
350
                    render: function (data, type, row, meta) {
350
                                display_extended_attribute(row, "title") +
351
                        return display_extended_attribute(row, "title");
351
                                "</span>";
352
                    },
352
                        }
353
                },
353
                        if (
354
                {
354
                            display_extended_attribute(
355
                    data: "", // article_title
355
                                row,
356
                    orderable: false,
356
                                "article_author"
357
                    render: function (data, type, row, meta) {
357
                            ) !== ""
358
                        return display_extended_attribute(row, "article_title");
358
                        ) {
359
                    },
359
                            display +=
360
                },
360
                                '<span style="display:block"> Article author: ' +
361
                {
361
                                display_extended_attribue(
362
                    data: "", // issue
362
                                    row,
363
                    orderable: false,
363
                                    "article_author"
364
                    render: function (data, type, row, meta) {
364
                                ) +
365
                        return display_extended_attribute(row, "issue");
365
                                "</span>";
366
                    },
366
                        }
367
                },
367
                        if (display_extended_attribute(row, "author") !== "") {
368
                {
368
                            display +=
369
                    data: "", // volume
369
                                '<span style="display:block"> Author: ' +
370
                    orderable: false,
370
                                display_extended_attribute(row, "author") +
371
                    render: function (data, type, row, meta) {
371
                                "</span>";
372
                        return display_extended_attribute(row, "volume");
372
                        }
373
                    },
373
                        if (display_extended_attribute(row, "issue") !== "") {
374
                },
374
                            display +=
375
                {
375
                                '<span style="display:block"> Issue: ' +
376
                    data: "", // year
376
                                display_extended_attribute(row, "issue") +
377
                    orderable: false,
377
                                "</span>";
378
                    render: function (data, type, row, meta) {
378
                        }
379
                        return display_extended_attribute(row, "year");
379
                        if (display_extended_attribute(row, "volume") !== "") {
380
                    },
380
                            display +=
381
                },
381
                                '<span style="display:block"> Volume: ' +
382
                {
382
                                display_extended_attribute(row, "volume") +
383
                    data: "", // pages
383
                                "</span>";
384
                    orderable: false,
384
                        }
385
                    render: function (data, type, row, meta) {
385
                        if (display_extended_attribute(row, "year") !== "") {
386
                        return display_extended_attribute(row, "pages");
386
                            display +=
387
                                '<span style="display:block"> Year: ' +
388
                                display_extended_attribute(row, "year") +
389
                                "</span>";
390
                        }
391
                        if (display_extended_attribute(row, "pages") !== "") {
392
                            display +=
393
                                '<span style="display:block"> Pages: ' +
394
                                display_extended_attribute(row, "pages") +
395
                                "</span>";
396
                        }
397
                        return display;
387
                    },
398
                    },
388
                },
399
                },
389
                {
400
                {
390
- 

Return to bug 33544