Commit 35e38e07 authored by Hiren Patel's avatar Hiren Patel

remove puts

parent 69e788c4
......@@ -16,7 +16,10 @@ module Jekyll
set_context_to context
year_section = ''
references = public_entries.map do |entry|
opts = ['@*[public!=no]']
#references = public_entries.map do |entry|
references = get_entries(opts).map do |entry|
reference = ''
ref = ''
......@@ -45,13 +48,22 @@ module Jekyll
end
if entry.field?(:pdflink1)
reference << "<a href=\"" + entry[:pdflink1].to_s + "\">PDF</a>"
#if config['pdf_logo']
# puts "pdf_logo"
# reference << "<img class=\"alignleft\" title=\"pdf\" src=" + config['pdf_logo'] + "alt=\"\" width=\"50\" height=\"30\" />"
# else
reference << "<a href=\"" + entry[:pdflink1].to_s + "\">PDF</a>"
# end
end
if entry.field?(:slides)
reference << "<a href=\"" + entry[:slides].to_s + "\">, Slides</a>"
# if config['ppt_logo']
# puts "ppt_logo"
# reference << "<img class=\"alignleft\" title=\"ppt\" src=" + config['ppt_logo'] + "alt=\"\" width=\"50\" height=\"30\" />"
# else
reference << "<a href=\"" + entry[:slides].to_s + "\">, Slides</a>"
# end
end
content_tag :br, reference
......
......@@ -22,7 +22,7 @@ module Jekyll
and_list.each { |t|
b = bibliography[t] & b
}
puts b.length
#puts b.length
unless config['sort_by'] == 'none'
b.sort_by! { |e| e[config['sort_by']].to_s }
......@@ -36,10 +36,10 @@ module Jekyll
bart = bibliography['@article']
bpub = bibliography['@*[public!=no]']
b = bart & bpub
puts b.class
puts bart.length
puts bpub.length
puts b.length
#puts b.class
#puts bart.length
#puts bpub.length
#puts b.length
unless config['sort_by'] == 'none'
b.sort_by! { |e| e[config['sort_by']].to_s }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment