Closed dazza-codes closed 8 years ago
Found a fix for this, using:
CSL_STYLE_CHICAGO = CSL::Style.load('chicago-author-date')
CSL_STYLE_CHICAGO_ET_AL = begin
# Modify the bibliography attributes so it uses 'et al.' after 5 authors
style_et_al = CSL::Style.load('chicago-author-date')
style_et_al.bibliography.attributes['et-al-min'] = 1
style_et_al.bibliography.attributes['et-al-use-first'] = 5
style_et_al
end
When generating a Chicago style citation, we want to truncate long author lists with
, et al.
after 5 authors, when using thechicago-author-name
style from the csl-styles gem. For example, given this citeproc-ruby input:We want to get back a truncated author list, i.e.