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

(-)a/catalogue/detail.pl (-5 / +2 lines)
Lines 205-213 foreach my $item (@items) { Link Here
205
    $item->{imageurl} = defined $item->{itype} ? getitemtypeimagelocation('intranet', $itemtypes->{ $item->{itype} }{imageurl})
205
    $item->{imageurl} = defined $item->{itype} ? getitemtypeimagelocation('intranet', $itemtypes->{ $item->{itype} }{imageurl})
206
                                               : '';
206
                                               : '';
207
207
208
    foreach (qw(datelastseen onloan)) {
209
        $item->{$_} = output_pref({ dt => dt_from_string( $item->{$_} ), dateonly => 1 });
210
    }
211
    $item->{datedue} = format_sqldatetime($item->{datedue});
208
    $item->{datedue} = format_sqldatetime($item->{datedue});
212
    # item damaged, lost, withdrawn loops
209
    # item damaged, lost, withdrawn loops
213
    $item->{itemlostloop} = GetAuthorisedValues($authvalcode_items_itemlost, $item->{itemlost}) if $authvalcode_items_itemlost;
210
    $item->{itemlostloop} = GetAuthorisedValues($authvalcode_items_itemlost, $item->{itemlost}) if $authvalcode_items_itemlost;
Lines 236-242 foreach my $item (@items) { Link Here
236
233
237
    if ( defined $reservedate ) {
234
    if ( defined $reservedate ) {
238
        $item->{backgroundcolor} = 'reserved';
235
        $item->{backgroundcolor} = 'reserved';
239
        $item->{reservedate}     = output_pref({ dt => dt_from_string($reservedate ), dateonly => 1 });
236
        $item->{reservedate}     = $reservedate;
240
        $item->{ReservedForBorrowernumber}     = $reservedfor;
237
        $item->{ReservedForBorrowernumber}     = $reservedfor;
241
        $item->{ReservedForSurname}     = $ItemBorrowerReserveInfo->{'surname'};
238
        $item->{ReservedForSurname}     = $ItemBorrowerReserveInfo->{'surname'};
242
        $item->{ReservedForFirstname}   = $ItemBorrowerReserveInfo->{'firstname'};
239
        $item->{ReservedForFirstname}   = $ItemBorrowerReserveInfo->{'firstname'};
Lines 250-256 foreach my $item (@items) { Link Here
250
	# Check the transit status
247
	# Check the transit status
251
    my ( $transfertwhen, $transfertfrom, $transfertto ) = GetTransfers($item->{itemnumber});
248
    my ( $transfertwhen, $transfertfrom, $transfertto ) = GetTransfers($item->{itemnumber});
252
    if ( defined( $transfertwhen ) && ( $transfertwhen ne '' ) ) {
249
    if ( defined( $transfertwhen ) && ( $transfertwhen ne '' ) ) {
253
        $item->{transfertwhen} = output_pref({ dt => dt_from_string($transfertwhen ), dateonly => 1 });
250
        $item->{transfertwhen} = $transfertwhen;
254
        $item->{transfertfrom} = $branches->{$transfertfrom}{branchname};
251
        $item->{transfertfrom} = $branches->{$transfertfrom}{branchname};
255
        $item->{transfertto}   = $branches->{$transfertto}{branchname};
252
        $item->{transfertto}   = $branches->{$transfertto}{branchname};
256
        $item->{nocancel} = 1;
253
        $item->{nocancel} = 1;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-4 / +3 lines)
Lines 652-658 function verify_images() { Link Here
652
                                : due [% item.datedue %]
652
                                : due [% item.datedue %]
653
                            </span>
653
                            </span>
654
                        [% ELSIF ( item.transfertwhen ) %]
654
                        [% ELSIF ( item.transfertwhen ) %]
655
                            <span class="intransit">In transit from [% item.transfertfrom %] to [% item.transfertto %] since [% item.transfertwhen %]</span>
655
                            <span class="intransit">In transit from [% item.transfertfrom %] to [% item.transfertto %] since [% item.transfertwhen | $KohaDates %]</span>
656
                        [% END %]
656
                        [% END %]
657
657
658
                        [% IF ( item.itemlost ) %]
658
                        [% IF ( item.itemlost ) %]
Lines 713-719 function verify_images() { Link Here
713
                                since [% item.waitingdate | $KohaDates %]
713
                                since [% item.waitingdate | $KohaDates %]
714
                            [% ELSE %]
714
                            [% ELSE %]
715
                                [% IF ( item.reservedate ) %]
715
                                [% IF ( item.reservedate ) %]
716
                                    (placed [% item.reservedate %])
716
                                    (placed [% item.reservedate | $KohaDates %])
717
                                [% END %]
717
                                [% END %]
718
                            [% END %]
718
                            [% END %]
719
                        [% END %]
719
                        [% END %]
Lines 735-741 function verify_images() { Link Here
735
                        [% END %]
735
                        [% END %]
736
736
737
                    </td>
737
                    </td>
738
                    <td class="datelastseen">[% item.datelastseen %]</td>
738
                    <td class="datelastseen">[% item.datelastseen | $KohaDates %]</td>
739
                    <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?type=[% item.type %]&amp;itemnumber=[% item.itemnumber %]&amp;biblionumber=[% item.biblionumber %]&amp;bi=[% item.biblioitemnumber %]#item[% item.itemnumber %]">[% item.barcode %]</a></td>
739
                    <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?type=[% item.type %]&amp;itemnumber=[% item.itemnumber %]&amp;biblionumber=[% item.biblionumber %]&amp;bi=[% item.biblioitemnumber %]#item[% item.itemnumber %]">[% item.barcode %]</a></td>
740
                    [% IF ( volinfo ) %]
740
                    [% IF ( volinfo ) %]
741
                        <td class="enumchron">
741
                        <td class="enumchron">
742
- 

Return to bug 14879