inukshuk / citeproc-ruby

A Citation Style Language (CSL) Cite Processor
101 stars 22 forks source link

Get output for a footnote style? #67

Closed retorquere closed 5 years ago

retorquere commented 5 years ago

I'm currently assembling a sample rendering using

result = ''
cp = CiteProc::Processor.new(style: style, format: 'html')
cp.import(items)

items.each_slice(2){|citation|
  result += cp.process(citation.map{|i| { 'id' => i['id'] } }) + "<br/>\n"
}

result += "<hr/>\n"

cp.bibliography.each{|line| result += line + "<br/>\n" }

but for acta-naturae.csl I'm getting [,] for the results from cp.process. I think this may be a footnote style -- should I get the footnote text differently? I realize this sample may be too sparse, I'll be glad to elaborate where required.

inukshuk commented 5 years ago

You're likely just missing a citation-number in your CitationItem.

retorquere commented 5 years ago

That was it, thanks!