Method: BibSonomy::CSL#initialize
- Defined in:
- lib/bibsonomy/csl.rb
#initialize(user_name, api_key) ⇒ CSL
Create a new BibSonomy instance Params:
user_name-
BibSonomy user name
api_key-
API key of the given user (get at www.bibsonomy.org/settings?selTab=1)
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/bibsonomy/csl.rb', line 84 def initialize(user_name, api_key) super() @bibsonomy = BibSonomy::API.new(user_name, api_key, 'csl') # setting some defaults @style = 'apa.csl' @pdf_dir = nil @css_class = 'publications' @year_headings = true @public_doc_postfix = '_oa.pdf' # optional parts to be rendered (or not) @doi_link = true @url_link = true @bibtex_link = true @bibsonomy_link = true @opt_sep = ' | ' end |