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

(-)a/Koha/Illrequest.pm (+14 lines)
Lines 736-741 sub getPrefix { Link Here
736
        || "";                  # "the empty prefix"
736
        || "";                  # "the empty prefix"
737
}
737
}
738
738
739
=head3 getType
740
741
    my $type = $abstract->getType();
742
743
Return a string representing the material type of this request
744
745
=cut
746
747
sub getType {
748
    my ($self) = @_;
749
    my $attr = $self->illrequestattributes->find({ type => 'type'});
750
    return $attr ? $attr->value : '<span>N/A</span>';
751
};
752
739
#### Illrequests Imports
753
#### Illrequests Imports
740
754
741
=head3 check_limits
755
=head3 check_limits
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt (-2 / +2 lines)
Lines 461-467 Link Here
461
                                </li>
461
                                </li>
462
                                <li class="medium">
462
                                <li class="medium">
463
                                    <label class="medium">Request type:</label>
463
                                    <label class="medium">Request type:</label>
464
                                    [% request.medium | html %]
464
                                    [% request.getType | html %]
465
                                </li>
465
                                </li>
466
                                <li class="cost">
466
                                <li class="cost">
467
                                    <label class="cost">Cost:</label>
467
                                    <label class="cost">Cost:</label>
Lines 570-576 Link Here
570
                                </div>
570
                                </div>
571
                                <div class="medium">
571
                                <div class="medium">
572
                                    <span class="label medium">Request type:</span>
572
                                    <span class="label medium">Request type:</span>
573
                                    [% request.medium | html %]
573
                                    [% request.getType | html %]
574
                                </div>
574
                                </div>
575
                                <div class="cost">
575
                                <div class="cost">
576
                                    <span class="label cost">Cost:</span>
576
                                    <span class="label cost">Cost:</span>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt (-3 / +2 lines)
Lines 134-140 Link Here
134
                                        [% IF request.metadata.Title %][% request.metadata.Title | html %][% ELSE %]<span>N/A</span>[% END %]
134
                                        [% IF request.metadata.Title %][% request.metadata.Title | html %][% ELSE %]<span>N/A</span>[% END %]
135
                                    </td>
135
                                    </td>
136
                                    <td>[% request.backend | html %]</td>
136
                                    <td>[% request.backend | html %]</td>
137
                                    <td>[% request.medium | html %]</td>
137
                                    <td>[% request.getType | html %]</td>
138
                                    <td>[% request.capabilities.$status.name | html %]</td>
138
                                    <td>[% request.capabilities.$status.name | html %]</td>
139
                                    <td>[% request.placed | html %]</td>
139
                                    <td>[% request.placed | html %]</td>
140
                                    <td>[% request.updated | html %]</td>
140
                                    <td>[% request.updated | html %]</td>
Lines 177-183 Link Here
177
                                    </li>
177
                                    </li>
178
                                    <li>
178
                                    <li>
179
                                        <label for="medium">Request type:</label>
179
                                        <label for="medium">Request type:</label>
180
                                        [% request.medium | html %]
180
                                        [% request.getType | html %]
181
                                    </li>
181
                                    </li>
182
                                    <li>
182
                                    <li>
183
                                        <label for="placed">Request placed:</label>
183
                                        <label for="placed">Request placed:</label>
184
- 

Return to bug 20941