Sha256: c0e8c6c851ee30717bbe188eb03ae78eafbd123b0343d1cc33fdbc30024fdc98
Contents?: true
Size: 1.5 KB
Versions: 16
Compression:
Stored size: 1.5 KB
Contents
:ruby container_parts = [] container_parts << "Edited by #{list_names(contributors.editors)}" if contributors.editors.any? container_parts << "Compiled by #{list_names(contributors.compilers)}" if contributors.compilers.any? container_parts << "Translated by #{list_names(contributors.translators)}" if contributors.translators.any? container_parts << citation.media if citation.media.present? container_parts << citation.edition if citation.edition.present? container_parts << citation.volume if citation.volume.present? container_parts << citation.number if citation.number.present? container_parts << citation.publisher if citation.publisher.present? container_parts << citation.year if citation.year.present? container_parts << citation.published_at.mla_date if citation.published_at.present? container_parts << citation.pages if citation.pages.present? container_parts << content_tag(:em, citation.online_database) if citation.online_database.present? container_parts << citation.doi if citation.doi.present? container_parts << link_to(citation.url.gsub(%r{https?://}, ''), citation.url).html_safe if citation.url.present? - if contributors.authors.any? = "#{list_names(contributors.authors)}." - if citation.container_title.present? = succeed '."' do = succeed citation.title do = '"' %em= "#{citation.container_title}," - else %em= citation.title + '.' = "#{container_parts.join(', ')}.".html_safe - if citation.accessed_at.present? = "Accessed #{citation.accessed_at.mla_date}."
Version data entries
16 entries across 16 versions & 1 rubygems