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

(-)a/C4/Search.pm (-9 / +11 lines)
Lines 2055-2061 sub searchResults { Link Here
2055
                $onloan_items->{$key} = { %$item };
2055
                $onloan_items->{$key} = { %$item };
2056
                $onloan_items->{$key}->{due_date} = output_pref( { dt => dt_from_string( $item->{onloan} ), dateonly => 1 } );
2056
                $onloan_items->{$key}->{due_date} = output_pref( { dt => dt_from_string( $item->{onloan} ), dateonly => 1 } );
2057
                $onloan_items->{$key}->{count}++ if $item->{$hbranch};
2057
                $onloan_items->{$key}->{count}++ if $item->{$hbranch};
2058
                $onloan_items->{$key}->{location}       = $shelflocations->{ $item->{location} };
2058
                $onloan_items->{$key}->{location} = $shelflocations->{ $item->{location} };
2059
                $onloan_items->{$key}->{imageurl} =
2059
                $onloan_items->{$key}->{imageurl} =
2060
                  getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} );
2060
                  getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} );
2061
2061
Lines 2144-2162 sub searchResults { Link Here
2144
                    $other_items->{$key} = { %$item };
2144
                    $other_items->{$key} = { %$item };
2145
                    $other_items->{$key}->{intransit} = ( $transfertwhen ne '' ) ? 1 : 0;
2145
                    $other_items->{$key}->{intransit} = ( $transfertwhen ne '' ) ? 1 : 0;
2146
                    $other_items->{$key}->{onhold} = ($reservestatus) ? 1 : 0;
2146
                    $other_items->{$key}->{onhold} = ($reservestatus) ? 1 : 0;
2147
                    $other_items->{$key}->{notforloan} = GetAuthorisedValueDesc('','',$item->{notforloan},'','',$notforloan_authorised_value) if $notforloan_authorised_value and $item->{notforloan};
2147
                    $other_items->{$key}->{notforloan} = GetAuthorisedValueDesc('','',$item->{notforloan},'','',$notforloan_authorised_value)
2148
					$other_items->{$key}->{count}++ if $item->{$hbranch};
2148
                      if $notforloan_authorised_value and $item->{notforloan};
2149
					$other_items->{$key}->{location} = $shelflocations->{ $item->{location} };
2149
                    $other_items->{$key}->{count}++
2150
					$other_items->{$key}->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} );
2150
                      if $item->{$hbranch};
2151
                    $other_items->{$key}->{location} = $shelflocations->{ $item->{location} };
2152
                    $other_items->{$key}->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} );
2151
                }
2153
                }
2152
                # item is available
2154
                # item is available
2153
                else {
2155
                else {
2154
                    $can_place_holds = 1;
2156
                    $can_place_holds = 1;
2155
                    $available_count++;
2157
                    $available_count++;
2156
                    $available_items->{$prefix} = { %$item };
2158
                    $available_items->{$prefix} = { %$item };
2157
					$available_items->{$prefix}->{count}++ if $item->{$hbranch};
2159
                    $available_items->{$prefix}->{count}++
2158
					$available_items->{$prefix}->{location} = $shelflocations->{ $item->{location} };
2160
                      if $item->{$hbranch};
2159
					$available_items->{$prefix}->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} );
2161
                    $available_items->{$prefix}->{location} = $shelflocations->{ $item->{location} };
2162
                    $available_items->{$prefix}->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} );
2160
                }
2163
                }
2161
            }
2164
            }
2162
        }    # notforloan, item level and biblioitem level
2165
        }    # notforloan, item level and biblioitem level
2163
- 

Return to bug 11213