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

(-)a/catalogue/detail.pl (-1 / +8 lines)
Lines 270-276 foreach my $item (@items) { Link Here
270
        $item->{CheckedOutFor} = $checkout->patron;
270
        $item->{CheckedOutFor} = $checkout->patron;
271
    }
271
    }
272
272
273
	# Check the transit status
273
    # checking for rotating collection
274
    my $rotating_collection = $item_object->rotating_collection;
275
    if ( $rotating_collection ) {
276
        $item->{rotating_collection} = $rotating_collection;
277
        $item->{IsInRotatingCollection} = 1;
278
    }
279
280
    # Check the transit status
274
    my ( $transfertwhen, $transfertfrom, $transfertto ) = GetTransfers($item->{itemnumber});
281
    my ( $transfertwhen, $transfertfrom, $transfertto ) = GetTransfers($item->{itemnumber});
275
    if ( defined( $transfertwhen ) && ( $transfertwhen ne '' ) ) {
282
    if ( defined( $transfertwhen ) && ( $transfertwhen ne '' ) ) {
276
        $item->{transfertwhen} = $transfertwhen;
283
        $item->{transfertwhen} = $transfertwhen;
(-)a/catalogue/moredetail.pl (+5 lines)
Lines 133-138 foreach ( keys %{$data} ) { Link Here
133
foreach my $item (@items){
133
foreach my $item (@items){
134
    $item->{object} = Koha::Items->find( $item->{itemnumber} );
134
    $item->{object} = Koha::Items->find( $item->{itemnumber} );
135
    $item->{'collection'}              = $ccodes->{ $item->{ccode} } if ($ccodes);
135
    $item->{'collection'}              = $ccodes->{ $item->{ccode} } if ($ccodes);
136
    my $rotating_collection = $item->{object}->rotating_collection;
137
    if ( $rotating_collection ) {
138
        $item->{rotating_collection} = $rotating_collection;
139
        $item->{IsInRotatingCollection} = 1;
140
    }
136
    $item->{'itype'}                   = $itemtypes->{ $item->{'itype'} }->{'translated_description'};
141
    $item->{'itype'}                   = $itemtypes->{ $item->{'itype'} }->{'translated_description'};
137
    $item->{'replacementprice'}        = sprintf( "%.2f", $item->{'replacementprice'} );
142
    $item->{'replacementprice'}        = sprintf( "%.2f", $item->{'replacementprice'} );
138
    if ( defined $item->{'copynumber'} ) {
143
    if ( defined $item->{'copynumber'} ) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (+4 lines)
Lines 447-452 Link Here
447
                            <span class="restricted">([% item.restricted %])</span>
447
                            <span class="restricted">([% item.restricted %])</span>
448
                        [% END %]
448
                        [% END %]
449
449
450
                        [% IF (item.IsInRotatingCollection) %]
451
                            <br />Item is part of rotating collection <a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% item.rotating_collection.colId %]"><span class="rotating_collection">[% item.rotating_collection.colTitle %]</span></a>
452
                        [% END %]
453
450
                    </td>
454
                    </td>
451
                    <td class="datelastseen">[% item.datelastseen | $KohaDates %]</td>
455
                    <td class="datelastseen">[% item.datelastseen | $KohaDates %]</td>
452
                    <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>
456
                    <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>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt (-1 / +4 lines)
Lines 189-194 Link Here
189
                [% IF ITEM_DAT.withdrawn != "" && ITEM_DAT.withdrawn_on %]
189
                [% IF ITEM_DAT.withdrawn != "" && ITEM_DAT.withdrawn_on %]
190
                    <li><span class="label">Withdrawn on:</span>[% ITEM_DAT.withdrawn_on | $KohaDates %] &nbsp;</li>
190
                    <li><span class="label">Withdrawn on:</span>[% ITEM_DAT.withdrawn_on | $KohaDates %] &nbsp;</li>
191
                [% END %]
191
                [% END %]
192
193
                [% IF ITEM_DAT.IsInRotatingCollection %]
194
                    <li><span class="label">Rotating collection:</span><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% ITEM_DAT.rotating_collection.colId %]">[% ITEM_DAT.rotating_collection.colTitle %]</a></li>
195
                [% END %]
192
            [% END %]
196
            [% END %]
193
197
194
            </ol></div>
198
            </ol></div>
195
- 

Return to bug 19470