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

(-)a/C4/Search.pm (-9 / +11 lines)
Lines 2099-2105 sub searchResults { Link Here
2099
                $onloan_items->{$key} = { %$item };
2099
                $onloan_items->{$key} = { %$item };
2100
                $onloan_items->{$key}->{due_date} = $item->{onloan};
2100
                $onloan_items->{$key}->{due_date} = $item->{onloan};
2101
                $onloan_items->{$key}->{count}++ if $item->{$hbranch};
2101
                $onloan_items->{$key}->{count}++ if $item->{$hbranch};
2102
                $onloan_items->{$key}->{location}       = $shelflocations->{ $item->{location} };
2102
                $onloan_items->{$key}->{location} = $shelflocations->{ $item->{location} };
2103
                $onloan_items->{$key}->{imageurl} =
2103
                $onloan_items->{$key}->{imageurl} =
2104
                  getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} );
2104
                  getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} );
2105
2105
Lines 2188-2206 sub searchResults { Link Here
2188
                    $other_items->{$key} = { %$item };
2188
                    $other_items->{$key} = { %$item };
2189
                    $other_items->{$key}->{intransit} = ( $transfertwhen ne '' ) ? 1 : 0;
2189
                    $other_items->{$key}->{intransit} = ( $transfertwhen ne '' ) ? 1 : 0;
2190
                    $other_items->{$key}->{onhold} = ($reservestatus) ? 1 : 0;
2190
                    $other_items->{$key}->{onhold} = ($reservestatus) ? 1 : 0;
2191
                    $other_items->{$key}->{notforloan} = GetAuthorisedValueDesc('','',$item->{notforloan},'','',$notforloan_authorised_value) if $notforloan_authorised_value and $item->{notforloan};
2191
                    $other_items->{$key}->{notforloan} = GetAuthorisedValueDesc('','',$item->{notforloan},'','',$notforloan_authorised_value)
2192
					$other_items->{$key}->{count}++ if $item->{$hbranch};
2192
                      if $notforloan_authorised_value and $item->{notforloan};
2193
					$other_items->{$key}->{location} = $shelflocations->{ $item->{location} };
2193
                    $other_items->{$key}->{count}++
2194
					$other_items->{$key}->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} );
2194
                      if $item->{$hbranch};
2195
                    $other_items->{$key}->{location} = $shelflocations->{ $item->{location} };
2196
                    $other_items->{$key}->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} );
2195
                }
2197
                }
2196
                # item is available
2198
                # item is available
2197
                else {
2199
                else {
2198
                    $can_place_holds = 1;
2200
                    $can_place_holds = 1;
2199
                    $available_count++;
2201
                    $available_count++;
2200
                    $available_items->{$prefix} = { %$item };
2202
                    $available_items->{$prefix} = { %$item };
2201
					$available_items->{$prefix}->{count}++ if $item->{$hbranch};
2203
                    $available_items->{$prefix}->{count}++
2202
					$available_items->{$prefix}->{location} = $shelflocations->{ $item->{location} };
2204
                      if $item->{$hbranch};
2203
					$available_items->{$prefix}->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} );
2205
                    $available_items->{$prefix}->{location} = $shelflocations->{ $item->{location} };
2206
                    $available_items->{$prefix}->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} );
2204
                }
2207
                }
2205
            }
2208
            }
2206
        }    # notforloan, item level and biblioitem level
2209
        }    # notforloan, item level and biblioitem level
2207
- 

Return to bug 11213