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

(-)a/catalogue/detail.pl (-1 / +7 lines)
Lines 274-281 foreach my $item (@items) { Link Here
274
        $item->{waitingdate} = $first_hold->waitingdate;
274
        $item->{waitingdate} = $first_hold->waitingdate;
275
    }
275
    }
276
276
277
    # checking for rotating collection
278
    my $rotating_collection = $item_object->rotating_collection;
279
    if ( $rotating_collection ) {
280
        $item->{rotating_collection} = $rotating_collection;
281
        $item->{IsInRotatingCollection} = 1;
282
    }
277
283
278
	# Check the transit status
284
    # Check the transit status
279
    my ( $transfertwhen, $transfertfrom, $transfertto ) = GetTransfers($item->{itemnumber});
285
    my ( $transfertwhen, $transfertfrom, $transfertto ) = GetTransfers($item->{itemnumber});
280
    if ( defined( $transfertwhen ) && ( $transfertwhen ne '' ) ) {
286
    if ( defined( $transfertwhen ) && ( $transfertwhen ne '' ) ) {
281
        $item->{transfertwhen} = $transfertwhen;
287
        $item->{transfertwhen} = $transfertwhen;
(-)a/catalogue/moredetail.pl (+5 lines)
Lines 136-141 foreach ( keys %{$data} ) { Link Here
136
foreach my $item (@items){
136
foreach my $item (@items){
137
    $item->{object} = Koha::Items->find( $item->{itemnumber} );
137
    $item->{object} = Koha::Items->find( $item->{itemnumber} );
138
    $item->{'collection'}              = $ccodes->{ $item->{ccode} } if ($ccodes);
138
    $item->{'collection'}              = $ccodes->{ $item->{ccode} } if ($ccodes);
139
    my $rotating_collection = $item->{object}->rotating_collection;
140
    if ( $rotating_collection ) {
141
        $item->{rotating_collection} = $rotating_collection;
142
        $item->{IsInRotatingCollection} = 1;
143
    }
139
    $item->{'itype'}                   = $itemtypes->{ $item->{'itype'} }->{'translated_description'};
144
    $item->{'itype'}                   = $itemtypes->{ $item->{'itype'} }->{'translated_description'};
140
    $item->{'replacementprice'}        = sprintf( "%.2f", $item->{'replacementprice'} );
145
    $item->{'replacementprice'}        = sprintf( "%.2f", $item->{'replacementprice'} );
141
    if ( defined $item->{'copynumber'} ) {
146
    if ( defined $item->{'copynumber'} ) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (+4 lines)
Lines 457-462 Link Here
457
                            <span class="restricted">([% item.restricted %])</span>
457
                            <span class="restricted">([% item.restricted %])</span>
458
                        [% END %]
458
                        [% END %]
459
459
460
                        [% IF (item.IsInRotatingCollection) %]
461
                            <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>
462
                        [% END %]
463
460
                    </td>
464
                    </td>
461
                    <td class="datelastseen">[% item.datelastseen | $KohaDates %]</td>
465
                    <td class="datelastseen">[% item.datelastseen | $KohaDates %]</td>
462
                    <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>
466
                    <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 186-191 Link Here
186
                [% IF ITEM_DAT.withdrawn != "" && ITEM_DAT.withdrawn_on %]
186
                [% IF ITEM_DAT.withdrawn != "" && ITEM_DAT.withdrawn_on %]
187
                    <li><span class="label">Withdrawn on:</span>[% ITEM_DAT.withdrawn_on | $KohaDates %] &nbsp;</li>
187
                    <li><span class="label">Withdrawn on:</span>[% ITEM_DAT.withdrawn_on | $KohaDates %] &nbsp;</li>
188
                [% END %]
188
                [% END %]
189
190
                [% IF ITEM_DAT.IsInRotatingCollection %]
191
                    <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>
192
                [% END %]
189
            [% END %]
193
            [% END %]
190
194
191
            </ol></div>
195
            </ol></div>
192
- 

Return to bug 19470