# File scripts/ad.rb, line 91
    def get_items
      items = Array.new
      items[0] = Hash.new
      items[1] = Hash.new
      item_ind=1
      @atts.keys.sort.each do |i|
        @atts[i].each do |name,val|
          # Certain fields belong to the ad, and not the items within the ad.
          if AD_FIELDS.include?(name)
            # Use the first occurence of a field.  Toss out duplicates for these fields.
            items[0][name] = val unless items[0][name]
          else
            # If a duplicate field is found, it is probably a duplicate
            if items[item_ind].has_key?(name)
              item_ind += 1
              items[item_ind] = Hash.new
            end
            items[item_ind][name] = val
          end
        end
      end
      return multiply_items(items)
    end