Module: Blacklight::Marc::Citation

Included in:
Document
Defined in:
vendor/plugins/blacklight/lib/blacklight/marc/citation.rb

Overview

This module is DEPRECATED, and will go away. It has been replaced by code using the new document extension framework. See Blacklight::Solr::Document::Marc and Blacklight::Solr::Document::MarcExport This code should not really be changed, or used anymore. It is frozen and deprecated until removed.

Instance Method Summary (collapse)

Instance Method Details

- (Object) to_apa



8
9
10
11
# File 'vendor/plugins/blacklight/lib/blacklight/marc/citation.rb', line 8

def to_apa
  return nil if self.marc.blank?
  apa_citation(self.marc)
end

- (Object) to_mla



13
14
15
16
# File 'vendor/plugins/blacklight/lib/blacklight/marc/citation.rb', line 13

def to_mla
  return nil if self.marc.blank?
  mla_citation(self.marc)
end

- (Object) to_zotero(format)



18
19
20
21
# File 'vendor/plugins/blacklight/lib/blacklight/marc/citation.rb', line 18

def to_zotero(format)
  return nil if self.marc.blank?
  z3988_span(self.marc, format)
end