def power_search(query, mode='books', weight=HEAVY, page=1,
sort_type=nil, offerings=nil, editions=SINGLE_EDITION,
&block)
url = AWS_PREFIX + "?t=%s&PowerSearch=%s&mode=%s&f=xml" +
"&type=%s&dev-t=%s&page=%s"
url << "&variations=yes" if editions == ALL_EDITIONS
url << get_offer_string(offerings)
sort_string = get_sort_string(sort_type, mode)
@type = WEIGHT[weight]
query = url_encode(query)
raise ModeError, 'mode must be books' unless mode == 'books'
mode = localise_mode(mode)
url = url % [@id, query, mode, @type, @token, page] << sort_string
search(url, &block)
end