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

(-)a/Koha/Illrequest.pm (+14 lines)
Lines 724-729 sub getPrefix { Link Here
724
        || "";                  # "the empty prefix"
724
        || "";                  # "the empty prefix"
725
}
725
}
726
726
727
=head3 getType
728
729
    my $type = $abstract->getType();
730
731
Return a string representing the material type of this request
732
733
=cut
734
735
sub getType {
736
    my ($self) = @_;
737
    my $attr = $self->illrequestattributes->find({ type => 'type'});
738
    return $attr ? $attr->value : '<span>N/A</span>';
739
};
740
727
#### Illrequests Imports
741
#### Illrequests Imports
728
742
729
=head3 check_limits
743
=head3 check_limits
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt (-2 / +2 lines)
Lines 437-443 Link Here
437
                                </li>
437
                                </li>
438
                                <li class="medium">
438
                                <li class="medium">
439
                                    <label class="medium">Request type:</label>
439
                                    <label class="medium">Request type:</label>
440
                                    [% request.medium | html %]
440
                                    [% request.getType | html %]
441
                                </li>
441
                                </li>
442
                                <li class="cost">
442
                                <li class="cost">
443
                                    <label class="cost">Cost:</label>
443
                                    <label class="cost">Cost:</label>
Lines 537-543 Link Here
537
                                </div>
537
                                </div>
538
                                <div class="medium">
538
                                <div class="medium">
539
                                    <span class="label medium">Request type:</span>
539
                                    <span class="label medium">Request type:</span>
540
                                    [% request.medium | html %]
540
                                    [% request.getType | html %]
541
                                </div>
541
                                </div>
542
                                <div class="cost">
542
                                <div class="cost">
543
                                    <span class="label cost">Cost:</span>
543
                                    <span class="label cost">Cost:</span>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt (-3 / +2 lines)
Lines 128-134 Link Here
128
                                    <td>[% request.metadata.Author || 'N/A' | html %]</td>
128
                                    <td>[% request.metadata.Author || 'N/A' | html %]</td>
129
                                    <td>[% request.metadata.Title || 'N/A' | html %]</td>
129
                                    <td>[% request.metadata.Title || 'N/A' | html %]</td>
130
                                    <td>[% request.backend | html %]</td>
130
                                    <td>[% request.backend | html %]</td>
131
                                    <td>[% request.medium | html %]</td>
131
                                    <td>[% request.getType | html %]</td>
132
                                    <td>[% request.capabilities.$status.name | html %]</td>
132
                                    <td>[% request.capabilities.$status.name | html %]</td>
133
                                    <td>[% request.placed | html %]</td>
133
                                    <td>[% request.placed | html %]</td>
134
                                    <td>[% request.updated | html %]</td>
134
                                    <td>[% request.updated | html %]</td>
Lines 167-173 Link Here
167
                                    </li>
167
                                    </li>
168
                                    <li>
168
                                    <li>
169
                                        <label for="medium">Request type:</label>
169
                                        <label for="medium">Request type:</label>
170
                                        [% request.medium | html %]
170
                                        [% request.getType | html %]
171
                                    </li>
171
                                    </li>
172
                                    <li>
172
                                    <li>
173
                                        <label for="placed">Request placed:</label>
173
                                        <label for="placed">Request placed:</label>
174
- 

Return to bug 20941