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 (-1 / +7 lines)
Lines 55-60 Interlibrary loans: Link Here
55
                  0: "Don't allow"
55
                  0: "Don't allow"
56
                  1: Allow
56
                  1: Allow
57
            - OPAC users to place ILL requests without having to be logged in.
57
            - OPAC users to place ILL requests without having to be logged in.
58
        -
59
            - "ILL request metadata displayed in the OPAC request table:"
60
            - pref: ILLOpacMetadataFields
61
              class: multi
62
            - (separated with |). Defaults to "author|title".
63
            - 'Customize the displayed name by putting its display name in brackets, like: "part_title(Chapter/Article title)".'
58
    Workflow:
64
    Workflow:
59
        -
65
        -
60
            - pref: ILLCheckAvailability
66
            - pref: ILLCheckAvailability
Lines 96-99 Interlibrary loans: Link Here
96
            - "Select which backends will be queried for availability and in what order of priority. The first available backend will be suggested to place the request with.<br>"
102
            - "Select which backends will be queried for availability and in what order of priority. The first available backend will be suggested to place the request with.<br>"
97
            - "If no backend is selected, automatic backend selection will not take place."
103
            - "If no backend is selected, automatic backend selection will not take place."
98
            - pref: AutoILLBackendPriority
104
            - pref: AutoILLBackendPriority
99
              type: ill-backends
105
              type: ill-backends
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt (-11 / +7 lines)
Lines 141-148 Link Here
141
                                <thead>
141
                                <thead>
142
                                    <tr>
142
                                    <tr>
143
                                        <th>Request ID</th>
143
                                        <th>Request ID</th>
144
                                        <th>Author</th>
144
                                        [% FOR field IN metadata_fields %]
145
                                        <th>Title</th>
145
                                            <th>[% field.name | html %] </th>
146
                                        [% END %]
146
                                        <th>Requested from</th>
147
                                        <th>Requested from</th>
147
                                        <th>Request type</th>
148
                                        <th>Request type</th>
148
                                        <th>Status</th>
149
                                        <th>Status</th>
Lines 438-457 Link Here
438
                    data: 'ill_request_id',
439
                    data: 'ill_request_id',
439
                    sortable: true
440
                    sortable: true
440
                },
441
                },
442
                [% FOR field IN metadata_fields %]
441
                {
443
                {
442
                    data: 'author',
444
                    data: '[% field.key | html %]',
443
                    sortable: false,
445
                    sortable: false,
444
                    render: (data, type, row, meta) => {
446
                    render: (data, type, row, meta) => {
445
                        return display_extended_attribute(row, 'author');
447
                        return display_extended_attribute(row, '[% field.key | html %]');
446
                    },
447
                },
448
                {
449
                    data: 'title',
450
                    sortable: false,
451
                    render: (data, type, row, meta) => {
452
                        return display_extended_attribute(row, 'title');
453
                    },
448
                    },
454
                },
449
                },
450
                [% END %]
455
                {
451
                {
456
                    data: 'ill_backend_id',
452
                    data: 'ill_backend_id',
457
                    sortable: true
453
                    sortable: true
(-)a/opac/opac-illrequests.pl (-2 / +8 lines)
Lines 95-101 if ( ( $op eq 'cud-create' || $op eq 'cancreq' || $op eq 'cud-update' ) && !$can Link Here
95
}
95
}
96
96
97
if ( $op eq 'list' ) {
97
if ( $op eq 'list' ) {
98
    $template->param( backends => $backends );
98
    my @metadata_fields =
99
        map { / ^ ( [^\(]+ ) \( ([^\)]+) \) $ /x ? { key => $1, name => $2 } : { key => $_, name => ucfirst $_ } }
100
        split /\|/, ( C4::Context->preference('ILLOpacMetadataFields') || 'author|title' );
101
102
    $template->param(
103
        backends        => $backends,
104
        metadata_fields => \@metadata_fields,
105
    );
99
} elsif ( $op eq 'view' ) {
106
} elsif ( $op eq 'view' ) {
100
    $template->param( request => $request );
107
    $template->param( request => $request );
101
} elsif ( $op eq 'cud-update' ) {
108
} elsif ( $op eq 'cud-update' ) {
102
- 

Return to bug 39610