Sha256: 23b0d118193a1e2a8c990cf79a0e8b18b28139af7e1dbea44a76dc96b5050caa

Contents?: true

Size: 890 Bytes

Versions: 58

Compression:

Stored size: 890 Bytes

Contents

module Hyrax
  module CitationsBehavior
    include Hyrax::CitationsBehaviors::CommonBehavior
    include Hyrax::CitationsBehaviors::Formatters
    include Hyrax::CitationsBehaviors::PublicationBehavior
    include Hyrax::CitationsBehaviors::NameBehavior
    include Hyrax::CitationsBehaviors::TitleBehavior

    def export_as_apa_citation(work)
      Hyrax::CitationsBehaviors::Formatters::ApaFormatter.new(self).format(work)
    end

    def export_as_chicago_citation(work)
      Hyrax::CitationsBehaviors::Formatters::ChicagoFormatter.new(self).format(work)
    end

    def export_as_mla_citation(work)
      Hyrax::CitationsBehaviors::Formatters::MlaFormatter.new(self).format(work)
    end

    # MIME type: 'application/x-openurl-ctx-kev'
    def export_as_openurl_ctx_kev(work)
      Hyrax::CitationsBehaviors::Formatters::OpenUrlFormatter.new(self).format(work)
    end
  end
end

Version data entries

58 entries across 58 versions & 2 rubygems

Version Path
hyrax-2.9.6 app/helpers/hyrax/citations_behavior.rb
hyrax-2.9.5 app/helpers/hyrax/citations_behavior.rb
hyrax-2.9.4 app/helpers/hyrax/citations_behavior.rb
hyrax-2.9.3 app/helpers/hyrax/citations_behavior.rb
hyrax-2.9.2 app/helpers/hyrax/citations_behavior.rb
hyrax-2.9.1 app/helpers/hyrax/citations_behavior.rb
hyrax-2.9.0 app/helpers/hyrax/citations_behavior.rb
hyrax-2.8.0 app/helpers/hyrax/citations_behavior.rb
hyrax-2.7.2 app/helpers/hyrax/citations_behavior.rb
hyrax-2.7.1 app/helpers/hyrax/citations_behavior.rb
hyrax-2.7.0 app/helpers/hyrax/citations_behavior.rb
hyrax-2.6.0 app/helpers/hyrax/citations_behavior.rb
hyrax-3.0.0.pre.rc1 app/helpers/hyrax/citations_behavior.rb
hyrax-3.0.0.pre.beta3 app/helpers/hyrax/citations_behavior.rb
hyrax-2.5.1 app/helpers/hyrax/citations_behavior.rb
hyrax-2.5.0 app/helpers/hyrax/citations_behavior.rb
hyrax-3.0.0.pre.beta2 app/helpers/hyrax/citations_behavior.rb
hyrax-2.4.1 app/helpers/hyrax/citations_behavior.rb
hyrax-3.0.0.pre.beta1 app/helpers/hyrax/citations_behavior.rb
hyrax-2.4.0 app/helpers/hyrax/citations_behavior.rb