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 73-78 Interlibrary loans: Link Here
73
                  0: "Don't allow"
73
                  0: "Don't allow"
74
                  1: Allow
74
                  1: Allow
75
            - OPAC users to place ILL requests without having to be logged in.
75
            - OPAC users to place ILL requests without having to be logged in.
76
        -
77
            - "ILL request metadata displayed in the OPAC request table:"
78
            - pref: ILLOpacMetadataFields
79
              class: multi
80
            - (separated with |). Defaults to "author|title".
81
            - 'Customize the displayed name by putting its display name in brackets, like: "part_title(Chapter/Article title)".'
76
    Workflow:
82
    Workflow:
77
        -
83
        -
78
            - pref: ILLCheckAvailability
84
            - pref: ILLCheckAvailability
Lines 114-117 Interlibrary loans: Link Here
114
            - "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>"
120
            - "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>"
115
            - "If no backend is selected, automatic backend selection will not take place."
121
            - "If no backend is selected, automatic backend selection will not take place."
116
            - pref: AutoILLBackendPriority
122
            - pref: AutoILLBackendPriority
117
              type: ill-backends
123
              type: ill-backends
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt (-11 / +7 lines)
Lines 143-150 Link Here
143
                                <thead>
143
                                <thead>
144
                                    <tr>
144
                                    <tr>
145
                                        <th>Request ID</th>
145
                                        <th>Request ID</th>
146
                                        <th>Author</th>
146
                                        [% FOR field IN metadata_fields %]
147
                                        <th>Title</th>
147
                                            <th>[% field.name | html %] </th>
148
                                        [% END %]
148
                                        <th>Requested from</th>
149
                                        <th>Requested from</th>
149
                                        <th>Request type</th>
150
                                        <th>Request type</th>
150
                                        <th>Status</th>
151
                                        <th>Status</th>
Lines 440-459 Link Here
440
                    data: 'ill_request_id',
441
                    data: 'ill_request_id',
441
                    sortable: true
442
                    sortable: true
442
                },
443
                },
444
                [% FOR field IN metadata_fields %]
443
                {
445
                {
444
                    data: 'author',
446
                    data: '[% field.key | html %]',
445
                    sortable: false,
447
                    sortable: false,
446
                    render: (data, type, row, meta) => {
448
                    render: (data, type, row, meta) => {
447
                        return display_extended_attribute(row, 'author');
449
                        return display_extended_attribute(row, '[% field.key | html %]');
448
                    },
449
                },
450
                {
451
                    data: 'title',
452
                    sortable: false,
453
                    render: (data, type, row, meta) => {
454
                        return display_extended_attribute(row, 'title');
455
                    },
450
                    },
456
                },
451
                },
452
                [% END %]
457
                {
453
                {
458
                    data: 'ill_backend_id',
454
                    data: 'ill_backend_id',
459
                    sortable: true
455
                    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