Sha256: 8472191b8a3213c2ceedace9784f3f547f1c47a6465b2c88a939fcfca9db9436
Contents?: true
Size: 887 Bytes
Versions: 4
Compression:
Stored size: 887 Bytes
Contents
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../lib') require 'cacofonix' #reader = Cacofonix::Reader.new(File.join(File.dirname(__FILE__),"..","data","Bookwise_July_2008.xml"), ::Cacofonix::APAProduct) #reader = Cacofonix::Reader.new(File.join(File.dirname(__FILE__),"..","data","Ashgate Other.xml"), ::Cacofonix::APAProduct) #reader = Cacofonix::Reader.new(File.join(File.dirname(__FILE__),"..","data","9780194351898.xml"), ::Cacofonix::APAProduct) reader = Cacofonix::Reader.new(File.join(File.dirname(__FILE__),"..","data","jul.xml"), ::Cacofonix::APAProduct) #reader = Cacofonix::Reader.new(File.join(File.dirname(__FILE__),"..","data","rba_FANT.xml")) counter = 0 # display header info puts reader.header.from_company reader.each do |item| puts "#{item.record_reference} - #{item.cover_url}" puts item.title puts counter += 1 end puts "total of ##{counter} products"
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cacofonix-0.10.3 | examples/reader_apa.rb |
cacofonix-0.10.2 | examples/reader_apa.rb |
cacofonix-0.10.1 | examples/reader_apa.rb |
cacofonix-0.10.0 | examples/reader_apa.rb |