Class: Relaton::Render::Template::Cite
- Defined in:
- lib/relaton/render/template/subclasses.rb
Instance Attribute Summary
Attributes inherited from General
#authorcitetemplate, #citeshorttemplate, #citetemplate, #config, #date, #dateklass, #edition, #extenttemplate, #fieldsklass, #i18n, #journaltemplate, #lang, #nametemplate, #script, #seriestemplate, #sizetemplate, #template
Instance Method Summary collapse
Methods inherited from General
#access_url, #add_date_accessed, #also_pub_as, #citation_renderers, #citations1, #citerenderers, #config_override, #default_template, #enhance_data, #esc_cleanup, #extentrenderers, #fmtref, #i18n_default_strs, #i18n_initialize, #i18n_klass, inherited, #init_misc, #init_options, #initialize, #klass_initialize, #liquid, #parse, #read_config, #render, #render1, #render_all, #render_initialize, #render_single_bibitem, #renderer, #renderers, #root_initalize, #sanitise_citations_input, #sanitise_citations_input_string, #sizerenderers, subclass, #url_exist?, #url_exist_async?, #url_head, #url_warn, #urls_exist_concurrent, #valid_parse, #xml2relaton, #xml_string2noko
Constructor Details
This class inherits a constructor from Relaton::Render::General
Instance Method Details
#citation_styles ⇒ Object
117 118 119 |
# File 'lib/relaton/render/template/subclasses.rb', line 117 def citation_styles @template.keys end |
#template_select(hash) ⇒ Object
109 110 111 112 113 114 115 |
# File 'lib/relaton/render/template/subclasses.rb', line 109 def template_select(hash) if hash[:citestyle].to_sym == :short @template[hash[:type].to_sym] else @template[hash[:citestyle].to_sym] end end |