def get_resource_type(resource_type)
      if $resource_types_bookmark.include? resource_type.downcase()
        return "bookmark"
      end

      if $resource_types_bibtex.include? resource_type.downcase()
        return "bibtex"
      end

      raise ArgumentError.new("Unknown resource type:  #{resource_type}. Supported resource types are ")
    end
def get_resource_type(resource_type)
      if $resource_types_bookmark.include? resource_type.downcase()
        return "bookmark"
      end

      if $resource_types_bibtex.include? resource_type.downcase()
        return "bibtex"
      end

      raise ArgumentError.new("Unknown resource type:  #{resource_type}. Supported resource types are ")
    end
Convenience method to allow sloppy specification of the resource
 type.