Module: Hyrax::CitationsBehavior
- Includes:
- Hyrax::CitationsBehaviors::CommonBehavior, Hyrax::CitationsBehaviors::Formatters, Hyrax::CitationsBehaviors::NameBehavior, Hyrax::CitationsBehaviors::PublicationBehavior, Hyrax::CitationsBehaviors::TitleBehavior
- Included in:
- HyraxHelperBehavior
- Defined in:
- app/helpers/hyrax/citations_behavior.rb
Constant Summary
Constants included from Hyrax::CitationsBehaviors::TitleBehavior
Hyrax::CitationsBehaviors::TitleBehavior::EXPANDED_NOCAPS, Hyrax::CitationsBehaviors::TitleBehavior::TITLE_NOCAPS
Instance Method Summary collapse
- #export_as_apa_citation(work) ⇒ Object
- #export_as_chicago_citation(work) ⇒ Object
- #export_as_mla_citation(work) ⇒ Object
-
#export_as_openurl_ctx_kev(work) ⇒ Object
MIME type: ‘application/x-openurl-ctx-kev’.
Methods included from Hyrax::CitationsBehaviors::TitleBehavior
#chicago_citation_title, #mla_citation_title, #process_title_parts, #setup_title_info
Methods included from Hyrax::CitationsBehaviors::CommonBehavior
#clean_end_punctuation, #persistent_url
Methods included from Hyrax::CitationsBehaviors::NameBehavior
#abbreviate_name, #all_authors, #author_list, #given_name_first, #surname_first
Methods included from Hyrax::CitationsBehaviors::PublicationBehavior
#setup_pub_date, #setup_pub_info, #setup_pub_place, #setup_pub_publisher
Instance Method Details
#export_as_apa_citation(work) ⇒ Object
9 10 11 |
# File 'app/helpers/hyrax/citations_behavior.rb', line 9 def export_as_apa_citation(work) Hyrax::CitationsBehaviors::Formatters::ApaFormatter.new(self).format(work) end |
#export_as_chicago_citation(work) ⇒ Object
13 14 15 |
# File 'app/helpers/hyrax/citations_behavior.rb', line 13 def export_as_chicago_citation(work) Hyrax::CitationsBehaviors::Formatters::ChicagoFormatter.new(self).format(work) end |
#export_as_mla_citation(work) ⇒ Object
17 18 19 |
# File 'app/helpers/hyrax/citations_behavior.rb', line 17 def export_as_mla_citation(work) Hyrax::CitationsBehaviors::Formatters::MlaFormatter.new(self).format(work) end |
#export_as_openurl_ctx_kev(work) ⇒ Object
MIME type: ‘application/x-openurl-ctx-kev’
22 23 24 |
# File 'app/helpers/hyrax/citations_behavior.rb', line 22 def export_as_openurl_ctx_kev(work) Hyrax::CitationsBehaviors::Formatters::OpenUrlFormatter.new(self).format(work) end |