def manufacturer_search(director, mode='electronics', weight=HEAVY,
page=1, sort_type=nil, offerings=nil,
keyword=nil, price=nil, &block)
url = AWS_PREFIX + "?t=%s&ManufacturerSearch=%s&mode=%s" +
"&f=xml&type=%s&dev-t=%s&page=%s"
url << "&price=" << price unless price.nil?
url << get_offer_string(offerings)
@type = WEIGHT[weight]
sort_string = get_sort_string(sort_type, mode)
director = url_encode(director)
modes = %w[electronics kitchen videogames software
photo pc-hardware]
unless modes.include? mode
raise ModeError, "mode must be one of %s" % modes.join(', ')
end
mode = localise_mode(mode)
url = url % [@id, director, mode, @type, @token, page] << sort_string
url << "&keywords=" << url_encode(keyword) unless keyword.nil?
search(url, &block)
end