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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/interlibrary_loans.pref (+6 lines)
Lines 48-53 Interlibrary loans: Link Here
48
            - pref: ILLOpacbackends
48
            - pref: ILLOpacbackends
49
              class: multi
49
              class: multi
50
            - (separated with |). If left empty, all installed backends will be enabled.
50
            - (separated with |). If left empty, all installed backends will be enabled.
51
        -
52
            - "ILL request metadata displayed in the OPAC request table:"
53
            - pref: ILLOpacMetadataFields
54
              class: multi
55
            - (separated with |). Defaults to "author|title".
56
            - 'Customize the displayed name by putting its display name in brackets, like: "part_title(Chapter/Article title)".'
51
    Workflow:
57
    Workflow:
52
        -
58
        -
53
            - pref: ILLCheckAvailability
59
            - pref: ILLCheckAvailability
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt (-11 / +7 lines)
Lines 135-142 Link Here
135
                                <thead>
135
                                <thead>
136
                                    <tr>
136
                                    <tr>
137
                                        <th>Request ID</th>
137
                                        <th>Request ID</th>
138
                                        <th>Author</th>
138
                                        [% FOR field IN metadata_fields %]
139
                                        <th>Title</th>
139
                                            <th>[% field.name | html %] </th>
140
                                        [% END %]
140
                                        <th>Requested from</th>
141
                                        <th>Requested from</th>
141
                                        <th>Request type</th>
142
                                        <th>Request type</th>
142
                                        <th>Status</th>
143
                                        <th>Status</th>
Lines 346-365 Link Here
346
                        return data;
347
                        return data;
347
                    },
348
                    },
348
                },
349
                },
350
                [% FOR field IN metadata_fields %]
349
                {
351
                {
350
                    data: 'author',
352
                    data: '[% field.key | html %]',
351
                    sortable: false,
353
                    sortable: false,
352
                    render: (data, type, row, meta) => {
354
                    render: (data, type, row, meta) => {
353
                        return display_extended_attribute(row, 'author');
355
                        return display_extended_attribute(row, '[% field.key | html %]');
354
                    },
355
                },
356
                {
357
                    data: 'title',
358
                    sortable: false,
359
                    render: (data, type, row, meta) => {
360
                        return display_extended_attribute(row, 'title');
361
                    },
356
                    },
362
                },
357
                },
358
                [% END %]
363
                {
359
                {
364
                    data: 'ill_backend_id',
360
                    data: 'ill_backend_id',
365
                    sortable: true,
361
                    sortable: true,
(-)a/opac/opac-illrequests.pl (-2 / +8 lines)
Lines 83-89 if ( ( $op eq 'cud-create' || $op eq 'cancreq' || $op eq 'cud-update' ) && !$can Link Here
83
}
83
}
84
84
85
if ( $op eq 'list' ) {
85
if ( $op eq 'list' ) {
86
    $template->param( backends => $backends );
86
    my @metadata_fields =
87
        map { / ^ ( [^\(]+ ) \( ([^\)]+) \) $ /x ? { key => $1, name => $2 } : { key => $_, name => ucfirst $_ } }
88
        split /\|/, ( C4::Context->preference('ILLOpacMetadataFields') || 'author|title' );
89
90
    $template->param(
91
        backends        => $backends,
92
        metadata_fields => \@metadata_fields,
93
    );
87
} elsif ( $op eq 'view' ) {
94
} elsif ( $op eq 'view' ) {
88
    $template->param( request => $request );
95
    $template->param( request => $request );
89
} elsif ( $op eq 'cud-update' ) {
96
} elsif ( $op eq 'cud-update' ) {
90
- 

Return to bug 39610