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

(-)a/C4/Search.pm (+3 lines)
Lines 1870-1875 sub searchResults { Link Here
1870
                $onloan_items->{$key}->{description}    = $item->{description};
1870
                $onloan_items->{$key}->{description}    = $item->{description};
1871
                $onloan_items->{$key}->{imageurl} =
1871
                $onloan_items->{$key}->{imageurl} =
1872
                  getitemtypeimagelocation( $search_context->{'interface'}, $itemtypes{ $item->{itype} }->{imageurl} );
1872
                  getitemtypeimagelocation( $search_context->{'interface'}, $itemtypes{ $item->{itype} }->{imageurl} );
1873
                $onloan_items->{$key}->{collectioncode} = GetAuthorisedValueDesc('','',$item->{ccode},'','','CCODE');
1873
1874
1874
                # if something's checked out and lost, mark it as 'long overdue'
1875
                # if something's checked out and lost, mark it as 'long overdue'
1875
                if ( $item->{itemlost} ) {
1876
                if ( $item->{itemlost} ) {
Lines 1969-1974 sub searchResults { Link Here
1969
                    $other_items->{$key}->{location} = $shelflocations->{ $item->{location} } if $item->{location};
1970
                    $other_items->{$key}->{location} = $shelflocations->{ $item->{location} } if $item->{location};
1970
                    $other_items->{$key}->{description} = $item->{description};
1971
                    $other_items->{$key}->{description} = $item->{description};
1971
                    $other_items->{$key}->{imageurl} = getitemtypeimagelocation( $search_context->{'interface'}, $itemtypes{ $item->{itype}//q{} }->{imageurl} );
1972
                    $other_items->{$key}->{imageurl} = getitemtypeimagelocation( $search_context->{'interface'}, $itemtypes{ $item->{itype}//q{} }->{imageurl} );
1973
                    $other_items->{$key}->{collectioncode} = GetAuthorisedValueDesc('','',$item->{ccode},'','','CCODE');
1972
                }
1974
                }
1973
                # item is available
1975
                # item is available
1974
                else {
1976
                else {
Lines 1979-1984 sub searchResults { Link Here
1979
                    }
1981
                    }
1980
                    $available_items->{$prefix}->{location} = $shelflocations->{ $item->{location} } if $item->{location};
1982
                    $available_items->{$prefix}->{location} = $shelflocations->{ $item->{location} } if $item->{location};
1981
                    $available_items->{$prefix}->{imageurl} = getitemtypeimagelocation( $search_context->{'interface'}, $itemtypes{ $item->{itype}//q{} }->{imageurl} );
1983
                    $available_items->{$prefix}->{imageurl} = getitemtypeimagelocation( $search_context->{'interface'}, $itemtypes{ $item->{itype}//q{} }->{imageurl} );
1984
                    $available_items->{$prefix}->{collectioncode} = GetAuthorisedValueDesc('','',$item->{ccode},'','','CCODE');
1982
                }
1985
                }
1983
            }
1986
            }
1984
        }    # notforloan, item level and biblioitem level
1987
        }    # notforloan, item level and biblioitem level
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-1 / +3 lines)
Lines 626-631 Link Here
626
                                                                        [% IF ( items_loo.location ) %]
626
                                                                        [% IF ( items_loo.location ) %]
627
                                                                            <span class="shelvingloc">[% items_loo.location | html %]</span>
627
                                                                            <span class="shelvingloc">[% items_loo.location | html %]</span>
628
                                                                        [% END %]
628
                                                                        [% END %]
629
                                                                        [% IF ( items_loo.collectioncode ) %]
630
                                                                            <span class="ccode">[% items_loo.collectioncode | html %]</span>
631
                                                                        [% END %]
629
632
630
                                                                            [% IF ( items_loo.itemcallnumber ) %]
633
                                                                            [% IF ( items_loo.itemcallnumber ) %]
631
                                                                                <a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&amp;q=%22[% items_loo.itemcallnumber |uri %]%22">[% items_loo.itemcallnumber | html %]</a>
634
                                                                                <a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&amp;q=%22[% items_loo.itemcallnumber |uri %]%22">[% items_loo.itemcallnumber | html %]</a>
632
- 

Return to bug 33725