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

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

Return to bug 33725