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

(-)a/C4/Search.pm (-9 / +11 lines)
Lines 2106-2112 sub searchResults { Link Here
2106
                $onloan_items->{$key} = { %$item };
2106
                $onloan_items->{$key} = { %$item };
2107
                $onloan_items->{$key}->{due_date} = format_date( $item->{onloan} );
2107
                $onloan_items->{$key}->{due_date} = format_date( $item->{onloan} );
2108
                $onloan_items->{$key}->{count}++ if $item->{$hbranch};
2108
                $onloan_items->{$key}->{count}++ if $item->{$hbranch};
2109
                $onloan_items->{$key}->{location}       = $shelflocations->{ $item->{location} };
2109
                $onloan_items->{$key}->{location} = $shelflocations->{ $item->{location} };
2110
                $onloan_items->{$key}->{imageurl} =
2110
                $onloan_items->{$key}->{imageurl} =
2111
                  getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} );
2111
                  getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} );
2112
2112
Lines 2194-2212 sub searchResults { Link Here
2194
                    $other_items->{$key} = { %$item };
2194
                    $other_items->{$key} = { %$item };
2195
                    $other_items->{$key}->{intransit} = ( $transfertwhen ne '' ) ? 1 : 0;
2195
                    $other_items->{$key}->{intransit} = ( $transfertwhen ne '' ) ? 1 : 0;
2196
                    $other_items->{$key}->{onhold} = ($reservestatus) ? 1 : 0;
2196
                    $other_items->{$key}->{onhold} = ($reservestatus) ? 1 : 0;
2197
                    $other_items->{$key}->{notforloan} = GetAuthorisedValueDesc('','',$item->{notforloan},'','',$notforloan_authorised_value) if $notforloan_authorised_value and $item->{notforloan};
2197
                    $other_items->{$key}->{notforloan} = GetAuthorisedValueDesc('','',$item->{notforloan},'','',$notforloan_authorised_value)
2198
					$other_items->{$key}->{count}++ if $item->{$hbranch};
2198
                      if $notforloan_authorised_value and $item->{notforloan};
2199
					$other_items->{$key}->{location} = $shelflocations->{ $item->{location} };
2199
                    $other_items->{$key}->{count}++
2200
					$other_items->{$key}->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} );
2200
                      if $item->{$hbranch};
2201
                    $other_items->{$key}->{location} = $shelflocations->{ $item->{location} };
2202
                    $other_items->{$key}->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} );
2201
                }
2203
                }
2202
                # item is available
2204
                # item is available
2203
                else {
2205
                else {
2204
                    $can_place_holds = 1;
2206
                    $can_place_holds = 1;
2205
                    $available_count++;
2207
                    $available_count++;
2206
                    $available_items->{$prefix} = { %$item };
2208
                    $available_items->{$prefix} = { %$item };
2207
					$available_items->{$prefix}->{count}++ if $item->{$hbranch};
2209
                    $available_items->{$prefix}->{count}++
2208
					$available_items->{$prefix}->{location} = $shelflocations->{ $item->{location} };
2210
                      if $item->{$hbranch};
2209
					$available_items->{$prefix}->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} );
2211
                    $available_items->{$prefix}->{location} = $shelflocations->{ $item->{location} };
2212
                    $available_items->{$prefix}->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} );
2210
                }
2213
                }
2211
            }
2214
            }
2212
        }    # notforloan, item level and biblioitem level
2215
        }    # notforloan, item level and biblioitem level
2213
- 

Return to bug 11213