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

(-)a/Koha/ILL/Request.pm (+15 lines)
Lines 1235-1240 sub getPrefix { Link Here
1235
    return $brn_prefixes->{ $params->{branch} } || "";    # "the empty prefix"
1235
    return $brn_prefixes->{ $params->{branch} } || "";    # "the empty prefix"
1236
}
1236
}
1237
1237
1238
=head3 get_extended_attribute_value
1239
1240
    my $type = $request->get_extended_attribute_value('title');
1241
1242
Return the Koha::ILL::Request::Attribute->value for the requested attribute type
1243
1244
=cut
1245
1246
sub get_extended_attribute_value {
1247
    my ( $self, $type ) = @_;
1248
    my $attr = $self->extended_attributes->find( { type => $type } );
1249
    return if !$attr;
1250
    return $attr->value;
1251
}
1252
1238
=head3 get_type
1253
=head3 get_type
1239
1254
1240
    my $type = $abstract->get_type();
1255
    my $type = $abstract->get_type();
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt (-3 / +2 lines)
Lines 151-158 Link Here
151
                                        [% type = request.get_type %]
151
                                        [% type = request.get_type %]
152
                                        <tr>
152
                                        <tr>
153
                                            <td>[% request.id | html %]</td>
153
                                            <td>[% request.id | html %]</td>
154
                                            <td> [% IF request.metadata.Author %][% request.metadata.Author | html %][% ELSE %]<span>N/A</span>[% END %] </td>
154
                                            <td> [% IF request.get_extended_attribute_value('author') %][% request.get_extended_attribute_value('author') | html %][% ELSE %]<span>N/A</span>[% END %] </td>
155
                                            <td> [% IF request.metadata.Title %][% request.metadata.Title | html %][% ELSE %]<span>N/A</span>[% END %] </td>
155
                                            <td> [% IF request.get_extended_attribute_value('title') %][% request.get_extended_attribute_value('title') | html %][% ELSE %]<span>N/A</span>[% END %] </td>
156
                                            <td>[% request.backend | html %]</td>
156
                                            <td>[% request.backend | html %]</td>
157
                                            <td> [% IF type %][% type | html %][% ELSE %]<span>N/A</span>[% END %] </td>
157
                                            <td> [% IF type %][% type | html %][% ELSE %]<span>N/A</span>[% END %] </td>
158
                                            <td>[% request.status_alias ? request.statusalias.lib_opac : request.capabilities.$status.name | html %]</td>
158
                                            <td>[% request.status_alias ? request.statusalias.lib_opac : request.capabilities.$status.name | html %]</td>
159
- 

Return to bug 38339