Module: Sufia::CitationsBehavior
- Includes:
- Sufia::CitationsBehaviors::CommonBehavior, Sufia::CitationsBehaviors::Formatters, Sufia::CitationsBehaviors::NameBehavior, Sufia::CitationsBehaviors::PublicationBehavior, Sufia::CitationsBehaviors::TitleBehavior
- Included in:
- SufiaHelperBehavior
- Defined in:
- app/helpers/sufia/citations_behavior.rb
Constant Summary
Constants included from Sufia::CitationsBehaviors::TitleBehavior
Sufia::CitationsBehaviors::TitleBehavior::EXPANDED_NOCAPS, Sufia::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 Sufia::CitationsBehaviors::TitleBehavior
#chicago_citation_title, #mla_citation_title, #process_title_parts, #setup_title_info
Methods included from Sufia::CitationsBehaviors::CommonBehavior
#clean_end_punctuation, #persistent_url
Methods included from Sufia::CitationsBehaviors::NameBehavior
#abbreviate_name, #all_authors, #author_list, #given_name_first, #surname_first
Methods included from Sufia::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/sufia/citations_behavior.rb', line 9 def export_as_apa_citation(work) Sufia::CitationsBehaviors::Formatters::ApaFormatter.new(self).format(work) end |
#export_as_chicago_citation(work) ⇒ Object
13 14 15 |
# File 'app/helpers/sufia/citations_behavior.rb', line 13 def export_as_chicago_citation(work) Sufia::CitationsBehaviors::Formatters::ChicagoFormatter.new(self).format(work) end |
#export_as_mla_citation(work) ⇒ Object
17 18 19 |
# File 'app/helpers/sufia/citations_behavior.rb', line 17 def export_as_mla_citation(work) Sufia::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/sufia/citations_behavior.rb', line 22 def export_as_openurl_ctx_kev(work) Sufia::CitationsBehaviors::Formatters::OpenUrlFormatter.new(self).format(work) end |