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

(-)a/Koha/Item.pm (+44 lines)
Lines 26-31 use Koha::Database; Link Here
26
use Koha::Patrons;
26
use Koha::Patrons;
27
use Koha::Libraries;
27
use Koha::Libraries;
28
28
29
use C4::Circulation qw( GetTransfers );
30
29
use base qw(Koha::Object);
31
use base qw(Koha::Object);
30
32
31
=head1 NAME
33
=head1 NAME
Lines 107-112 sub last_returned_by { Link Here
107
    }
109
    }
108
}
110
}
109
111
112
=head3 is_in_transit
113
114
my $transfer_date = $item->is_in_transit();
115
116
=cut
117
118
sub is_in_transit {
119
    my ($self) = @_;
120
121
    my ($when) = GetTransfers( $self->id );
122
123
    return $when;
124
}
125
126
=head3 in_transit_to
127
128
my $library_id = $item->in_transit_to();
129
130
=cut
131
132
sub in_transit_to {
133
    my ($self) = @_;
134
135
    my ( undef, undef, $to ) = GetTransfers( $self->id );
136
137
    return $to;
138
}
139
140
=head3 in_transit_from
141
142
my $library_id = $item->in_transit_from();
143
144
=cut
145
146
sub in_transit_from {
147
    my ($self) = @_;
148
149
    my ( undef, $from ) = GetTransfers( $self->id );
150
151
    return $from;
152
}
153
110
=head3 type
154
=head3 type
111
155
112
=cut
156
=cut
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (-2 / +1 lines)
Lines 604-610 Link Here
604
                                                    [% END %]
604
                                                    [% END %]
605
                                                [% ELSE %]
605
                                                [% ELSE %]
606
                                                    [% IF ( RESERVE.is_in_transit ) %]
606
                                                    [% IF ( RESERVE.is_in_transit ) %]
607
                                                        Item in transit from <b> [% RESERVE.frombranch %]</b> since
607
                                                        Item in transit from <b> [% Branches.GetName( RESERVE.item.in_transit_from ) %]</b> since
608
                                                        [% RESERVE.datesent | $KohaDates %]
608
                                                        [% RESERVE.datesent | $KohaDates %]
609
                                                    [% ELSIF ( RESERVE.suspend ) %]
609
                                                    [% ELSIF ( RESERVE.suspend ) %]
610
                                                        Suspended [% IF ( RESERVE.suspend_until ) %] until [% RESERVE.suspend_until %] [% END %]
610
                                                        Suspended [% IF ( RESERVE.suspend_until ) %] until [% RESERVE.suspend_until %] [% END %]
611
- 

Return to bug 16686