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

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

Return to bug 11213