# frozen_string_literal: true xml.item do xml.title(index_presenter(document).heading || (document.to_semantic_values[:title].first if document.to_semantic_values.key?(:title))) xml.link(polymorphic_url(url_for_document(document))) xml.author( document.to_semantic_values[:author].first ) if document.to_semantic_values.key? :author end