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

(-)a/Koha/Illrequest.pm (+14 lines)
Lines 737-742 sub getPrefix { Link Here
737
        || "";                  # "the empty prefix"
737
        || "";                  # "the empty prefix"
738
}
738
}
739
739
740
=head3 getType
741
742
    my $type = $abstract->getType();
743
744
Return a string representing the material type of this request
745
746
=cut
747
748
sub getType {
749
    my ($self) = @_;
750
    my $attr = $self->illrequestattributes->find({ type => 'type'});
751
    return $attr ? $attr->value : '<span>N/A</span>';
752
};
753
740
#### Illrequests Imports
754
#### Illrequests Imports
741
755
742
=head3 check_limits
756
=head3 check_limits
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt (-2 / +2 lines)
Lines 449-455 Link Here
449
                                </li>
449
                                </li>
450
                                <li class="medium">
450
                                <li class="medium">
451
                                    <label class="medium">Request type:</label>
451
                                    <label class="medium">Request type:</label>
452
                                    [% request.medium | html %]
452
                                    [% request.getType | html %]
453
                                </li>
453
                                </li>
454
                                <li class="cost">
454
                                <li class="cost">
455
                                    <label class="cost">Cost:</label>
455
                                    <label class="cost">Cost:</label>
Lines 558-564 Link Here
558
                                </div>
558
                                </div>
559
                                <div class="medium">
559
                                <div class="medium">
560
                                    <span class="label medium">Request type:</span>
560
                                    <span class="label medium">Request type:</span>
561
                                    [% request.medium | html %]
561
                                    [% request.getType | html %]
562
                                </div>
562
                                </div>
563
                                <div class="cost">
563
                                <div class="cost">
564
                                    <span class="label cost">Cost:</span>
564
                                    <span class="label cost">Cost:</span>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt (-3 / +2 lines)
Lines 135-141 Link Here
135
                                        [% IF request.metadata.Title %][% request.metadata.Title | html %][% ELSE %]<span>N/A</span>[% END %]
135
                                        [% IF request.metadata.Title %][% request.metadata.Title | html %][% ELSE %]<span>N/A</span>[% END %]
136
                                    </td>
136
                                    </td>
137
                                    <td>[% request.backend | html %]</td>
137
                                    <td>[% request.backend | html %]</td>
138
                                    <td>[% request.medium | html %]</td>
138
                                    <td>[% request.getType | html %]</td>
139
                                    <td>[% request.capabilities.$status.name | html %]</td>
139
                                    <td>[% request.capabilities.$status.name | html %]</td>
140
                                    <td><span title="[% request.placed | html %]">[% request.placed | $KohaDates %]</span></td>
140
                                    <td><span title="[% request.placed | html %]">[% request.placed | $KohaDates %]</span></td>
141
                                    <td><span title="[% request.updated | html %]">[% request.updated | $KohaDates %]</span></td>
141
                                    <td><span title="[% request.updated | html %]">[% request.updated | $KohaDates %]</span></td>
Lines 178-184 Link Here
178
                                    </li>
178
                                    </li>
179
                                    <li>
179
                                    <li>
180
                                        <label for="medium">Request type:</label>
180
                                        <label for="medium">Request type:</label>
181
                                        [% request.medium | html %]
181
                                        [% request.getType | html %]
182
                                    </li>
182
                                    </li>
183
                                    <li>
183
                                    <li>
184
                                        <label for="placed">Request placed:</label>
184
                                        <label for="placed">Request placed:</label>
185
- 

Return to bug 20941