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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc (-3 / +15 lines)
Lines 43-52 Link Here
43
    [% IF !item.isa('Koha::Item') AND item.avail_for_recall %]<a href="/cgi-bin/koha/opac-recall.pl?biblionumber=[% item.biblionumber | uri %]" class="btn btn-default btn-xs">Recall</a>[% END %]
43
    [% IF !item.isa('Koha::Item') AND item.avail_for_recall %]<a href="/cgi-bin/koha/opac-recall.pl?biblionumber=[% item.biblionumber | uri %]" class="btn btn-default btn-xs">Recall</a>[% END %]
44
[% END %]
44
[% END %]
45
45
46
[% IF NOT ( item.isa('Koha::Item') ) AND item.transfertwhen %] [%# transfertwhen is set in C4::Search, do not have it for course reserves %]
46
[% IF item.isa('Koha::Item') %]
47
    [% SET transfer = item.get_transfer %]
48
    [% IF transfer AND transfer.in_transit %]
49
        [% SET transfertwhen = transfer.datesent %]
50
        [% SET transfertfrom = transfer.frombranch %]
51
        [% SET transfertto = transfer.tobranch %]
52
    [% END %]
53
[% ELSE %]
54
        [% SET transfertwhen = item.transfertwhen %]
55
        [% SET transfertfrom = item.transfertfrom %]
56
        [% SET transfertto = item.transfertto %]
57
[% END %]
58
[% IF transfertwhen %] [%# transfertwhen is set in C4::Search, do not have it for course reserves %]
47
    [% SET itemavailable = 0 %]
59
    [% SET itemavailable = 0 %]
48
    <span class="item-status intransit">In transit from [% Branches.GetName( item.transfertfrom ) | html %]
60
    <span class="item-status intransit">In transit from [% Branches.GetName( transfertfrom ) | html %]
49
    to [% Branches.GetName( item.transfertto ) | html %] since [% item.transfertwhen | $KohaDates %]</span>
61
    to [% Branches.GetName( transfertto ) | html %] since [% transfertwhen | $KohaDates %]</span>
50
[% END %]
62
[% END %]
51
63
52
[% IF (item.isa('Koha::Item') AND item.holds.waiting.count) OR (NOT item.isa('Koha::Item') AND item.waiting) %]
64
[% IF (item.isa('Koha::Item') AND item.holds.waiting.count) OR (NOT item.isa('Koha::Item') AND item.waiting) %]
(-)a/opac/opac-detail.pl (-10 lines)
Lines 45-51 use C4::Biblio qw( Link Here
45
    GetMarcSubjects
45
    GetMarcSubjects
46
    GetMarcUrls
46
    GetMarcUrls
47
);
47
);
48
use C4::Circulation qw( GetTransfers );
49
use C4::Tags qw( get_tags );
48
use C4::Tags qw( get_tags );
50
use C4::XISBN qw( get_xisbns );
49
use C4::XISBN qw( get_xisbns );
51
use C4::External::Amazon qw( get_amazon_tld );
50
use C4::External::Amazon qw( get_amazon_tld );
Lines 729-742 else { Link Here
729
        $item_info->{checkout} = $item->checkout;
728
        $item_info->{checkout} = $item->checkout;
730
        $item_info->{object} = $item;
729
        $item_info->{object} = $item;
731
730
732
        my ( $transfertwhen, $transfertfrom, $transfertto ) =
733
          GetTransfers( $item->itemnumber );
734
        if ( defined($transfertwhen) && $transfertwhen ne '' ) {
735
            $item_info->{transfertwhen} = $transfertwhen;
736
            $item_info->{transfertfrom} = $transfertfrom;
737
            $item_info->{transfertto}   = $transfertto;
738
        }
739
740
        if ( C4::Context->preference('OPACAcquisitionDetails') ) {
731
        if ( C4::Context->preference('OPACAcquisitionDetails') ) {
741
            $item_info->{on_order} = 1
732
            $item_info->{on_order} = 1
742
              if grep { $_ eq $item->itemnumber } @itemnumbers_on_order;
733
              if grep { $_ eq $item->itemnumber } @itemnumbers_on_order;
743
- 

Return to bug 31313