8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# File 'app/helpers/sufia/citations_behaviors/formatters/chicago_formatter.rb', line 8
def format(work)
text = ""
authors_list = all_authors(work)
text << format_authors(authors_list)
unless text.blank?
text = "<span class=\"citation-author\">#{text}</span>"
end
pub_date = setup_pub_date(work)
text << " #{pub_date}." unless pub_date.nil?
text << "." unless text.blank? || text =~ /\.$/
text << format_title(work.to_s)
pub_info = setup_pub_info(work, false)
text << " #{pub_info}." unless pub_info.blank?
text.html_safe
end
|