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

(-)a/catalogue/detail.pl (-1 / +3 lines)
Lines 242-248 foreach my $item (@items) { Link Here
242
    #get shelf location and collection code description if they are authorised value.
242
    #get shelf location and collection code description if they are authorised value.
243
    # same thing for copy number
243
    # same thing for copy number
244
    my $shelfcode = $item->{'location'};
244
    my $shelfcode = $item->{'location'};
245
    $item->{'location'} = $shelflocations->{$shelfcode} if ( defined( $shelfcode ) && defined($shelflocations) && exists( $shelflocations->{$shelfcode} ) );
245
    my $permshelfcode = $item->{'permanent_location'};
246
    $item->{'location'} = $shelflocations->{$permshelfcode} if ( defined( $permshelfcode ) && defined($shelflocations) && exists( $shelflocations->{$permshelfcode} ) );
247
    $item->{'location'} .= ' (' . $shelflocations->{$shelfcode} . ')' if ( defined( $shelfcode ) && defined($shelflocations) && exists($shelflocations->{$shelfcode} ) && ($shelfcode ne $permshelfcode) );
246
    my $ccode = $item->{'ccode'};
248
    my $ccode = $item->{'ccode'};
247
    $item->{'ccode'} = $collections->{$ccode} if ( defined( $ccode ) && defined($collections) && exists( $collections->{$ccode} ) );
249
    $item->{'ccode'} = $collections->{$ccode} if ( defined( $ccode ) && defined($collections) && exists( $collections->{$ccode} ) );
248
    my $copynumber = $item->{'copynumber'};
250
    my $copynumber = $item->{'copynumber'};
(-)a/opac/opac-detail.pl (-3 / +5 lines)
Lines 666-673 if ( not $viewallitems and @items > $max_items_to_display ) { Link Here
666
    $itm->{'ccode'} = $collections->{$ccode} if defined($ccode) && $collections && exists( $collections->{$ccode} );
666
    $itm->{'ccode'} = $collections->{$ccode} if defined($ccode) && $collections && exists( $collections->{$ccode} );
667
    my $copynumber = $itm->{'copynumber'};
667
    my $copynumber = $itm->{'copynumber'};
668
    $itm->{'copynumber'} = $copynumbers->{$copynumber} if ( defined($copynumbers) && defined($copynumber) && exists( $copynumbers->{$copynumber} ) );
668
    $itm->{'copynumber'} = $copynumbers->{$copynumber} if ( defined($copynumbers) && defined($copynumber) && exists( $copynumbers->{$copynumber} ) );
669
    if ( defined $itm->{'location'} ) {
669
    if ( defined $itm->{'permanent_location'} ) {
670
        $itm->{'location_description'} = $shelflocations->{ $itm->{'location'} };
670
        $itm->{'location_description'} = $shelflocations->{ $itm->{'permanent_location'} };
671
    }
672
    if ( ( defined $itm->{'location'} ) && ( $itm->{'location'} ne $itm->{'permanent_location'} ) ) {
673
        $itm->{'location_description'} .= ' (' . $shelflocations->{ $itm->{'location'} } . ')';
671
    }
674
    }
672
    if (exists $itm->{itype} && defined($itm->{itype}) && exists $itemtypes->{ $itm->{itype} }) {
675
    if (exists $itm->{itype} && defined($itm->{itype}) && exists $itemtypes->{ $itm->{itype} }) {
673
        $itm->{'imageurl'}    = getitemtypeimagelocation( 'opac', $itemtypes->{ $itm->{itype} }->{'imageurl'} );
676
        $itm->{'imageurl'}    = getitemtypeimagelocation( 'opac', $itemtypes->{ $itm->{itype} }->{'imageurl'} );
674
- 

Return to bug 18355