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

(-)a/catalogue/detail.pl (-1 / +3 lines)
Lines 254-260 foreach my $item (@items) { Link Here
254
    #get shelf location and collection code description if they are authorised value.
254
    #get shelf location and collection code description if they are authorised value.
255
    # same thing for copy number
255
    # same thing for copy number
256
    my $shelfcode = $item->{'location'};
256
    my $shelfcode = $item->{'location'};
257
    $item->{'location'} = $shelflocations->{$shelfcode} if ( defined( $shelfcode ) && defined($shelflocations) && exists( $shelflocations->{$shelfcode} ) );
257
    my $permshelfcode = $item->{'permanent_location'};
258
    $item->{'location'} = ( $shelflocations->{$permshelfcode} ne '' ) ? $shelflocations->{$permshelfcode} : ( $permshelfcode ) ? $permshelfcode : undef;
259
    $item->{'location'} .= ( ( $shelflocations->{$shelfcode} ne '' ) && ( $shelfcode ne $permshelfcode ) ) ? ' (' . $shelflocations->{$shelfcode} . ')' : ( ( $shelfcode ) && ( $shelfcode ne $permshelfcode ) ) ? ' (' . $shelfcode . ')' : undef;
258
    my $ccode = $item->{'ccode'};
260
    my $ccode = $item->{'ccode'};
259
    $item->{'ccode'} = $collections->{$ccode} if ( defined( $ccode ) && defined($collections) && exists( $collections->{$ccode} ) );
261
    $item->{'ccode'} = $collections->{$ccode} if ( defined( $ccode ) && defined($collections) && exists( $collections->{$ccode} ) );
260
    my $copynumber = $item->{'copynumber'};
262
    my $copynumber = $item->{'copynumber'};
(-)a/opac/opac-detail.pl (-4 / +4 lines)
Lines 682-690 if ( not $viewallitems and @items > $max_items_to_display ) { Link Here
682
    $itm->{'ccode'} = $collections->{$ccode} if defined($ccode) && $collections && exists( $collections->{$ccode} );
682
    $itm->{'ccode'} = $collections->{$ccode} if defined($ccode) && $collections && exists( $collections->{$ccode} );
683
    my $copynumber = $itm->{'copynumber'};
683
    my $copynumber = $itm->{'copynumber'};
684
    $itm->{'copynumber'} = $copynumbers->{$copynumber} if ( defined($copynumbers) && defined($copynumber) && exists( $copynumbers->{$copynumber} ) );
684
    $itm->{'copynumber'} = $copynumbers->{$copynumber} if ( defined($copynumbers) && defined($copynumber) && exists( $copynumbers->{$copynumber} ) );
685
    if ( defined $itm->{'location'} ) {
685
    my $shelfcode = $itm->{'location'};
686
        $itm->{'location_description'} = $shelflocations->{ $itm->{'location'} };
686
    my $permshelfcode = $itm->{'permanent_location'};
687
    }
687
    $itm->{'location_description'} = ( $shelflocations->{$permshelfcode} ne '' ) ? $shelflocations->{$permshelfcode} : ( $permshelfcode ) ? $permshelfcode : undef;$itm->{'location_description'} = ( $shelflocations->{$permshelfcode} ne '' ) ? $shelflocations->{$permshelfcode} : ( $permshelfcode ) ? $permshelfcode : undef;
688
    $itm->{'location_description'} .= ( ( $shelflocations->{$shelfcode} ne '' ) && ( $shelfcode ne $permshelfcode ) ) ? ' (' . $shelflocations->{$shelfcode} . ')' : ( ( $shelfcode ) && ( $shelfcode ne $permshelfcode ) ) ? ' (' . $shelfcode . ')' : undef;
688
    if (exists $itm->{itype} && defined($itm->{itype}) && exists $itemtypes->{ $itm->{itype} }) {
689
    if (exists $itm->{itype} && defined($itm->{itype}) && exists $itemtypes->{ $itm->{itype} }) {
689
        $itm->{'imageurl'}    = getitemtypeimagelocation( 'opac', $itemtypes->{ $itm->{itype} }->{'imageurl'} );
690
        $itm->{'imageurl'}    = getitemtypeimagelocation( 'opac', $itemtypes->{ $itm->{itype} }->{'imageurl'} );
690
        $itm->{'description'} = $itemtypes->{ $itm->{itype} }->{translated_description};
691
        $itm->{'description'} = $itemtypes->{ $itm->{itype} }->{translated_description};
691
- 

Return to bug 18355