def author_display(author)
      if (author.first.present? && author.last.present?)
        "#{author.last}, #{author.first.slice(0,1)}"
      elsif author.display.present?
        author.display
      elsif author.last.present?
        author.last
      else
        nil
      end
    end
def author_display(author)
      if (author.first.present? && author.last.present?)
        "#{author.last}, #{author.first.slice(0,1)}"
      elsif author.display.present?
        author.display
      elsif author.last.present?
        author.last
      else
        nil
      end
    end
How to display a BentoSearch::Author object as a name