lib/whedon/bibtex.rb
# Returns a more complex <citation> XML snippet with keys for each of the
# bibtex fields
Returns a more complex  XML snippet with keys for each of the
bibtex fields
Returns a more complex XML snippet with keys for each of the bibtex fields
def general_citation(entry)
      citation = "<citation key=\"ref#{@ref_count}\"><unstructured_citation>"
      values = []
      entry.each_pair do |name, value|
        values << value.encode(:xml => :text)
      end
      citation << values.join(', ')
      citation << "</unstructured_citation></citation>"
      return citation
    end
def general_citation ( entry ) citation = "<citation key=\"ref#{@ref_count}\"><unstructured_citation>" values = [ ] entry . each_pair do | name , value | values << value . encode ( :xml => :text ) end citation << values . join ( ', ' ) citation << "</unstructured_citation></citation>" return citation end
Returns a more complex <citation> XML snippet with keys for each of the
bibtex fields
Returns a more complex <citation > XML snippet with keys for each of the bibtex fields
entry
<not_specific>