# File library_solution.rb, line 35
                def get_avail(ids, type, detail=1)
                        if ids.class == Array
                                if type == :isbn
                                        ids.each_with_index do |isbn, i|
                                                ids[i] = clean(isbn)
                                        end
                                end
                                ids = ids.join(",")
                        else
                                if type == :isbn
                                        ids = clean(ids)
                                end
                        end
                        qs = "#{@avail_url}#{ids}&detail=#{detail.to_s}" + if type == :isbn then "&type=isbn" else "" end
                        
                        xml = Net::HTTP.get(@web_server_address, qs)
                        doc = REXML::Document.new(xml)
                        return doc
                end