Class: ISI_record
- Inherits:
-
Object
- Object
- ISI_record
- Defined in:
- lib/isi.rb
Constant Summary collapse
- @@order =
0
Instance Method Summary collapse
-
#initialize(hash) ⇒ ISI_record
constructor
A new instance of ISI_record.
- #to_bibtex ⇒ Object
- #to_tohoku_DB(id, name) ⇒ Object
Constructor Details
#initialize(hash) ⇒ ISI_record
Returns a new instance of ISI_record.
10 11 12 13 |
# File 'lib/isi.rb', line 10 def initialize(hash) @hash = hash @@order += 1 end |
Instance Method Details
#to_bibtex ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/isi.rb', line 43 def to_bibtex return nil if self==nil "@ARTICLE{#{ref_name}, Author = {#{fmt()}}, Title = {#{fmt('TI')}}, Journal = {#{ji2journal}}, JournalFull= {#{@hash['SO']}}, Year = {#{@hash['PY']}}, Month = {#{month}}, Volume = {#{@hash['VL']}}, Number = {#{@hash['IS']}}, Pages = {#{pages}}, Keywords = {#{fmt('DE')}}, NewKeywords= {#{fmt('ID')}}, Abstract = {#{fmt('AB')}}, ReprintURL = {#{fmt('UR')}}, MyComment = {}, WhereIFiledIt= {}}\n\n" end |
#to_tohoku_DB(id, name) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/isi.rb', line 15 def to_tohoku_DB(id, name) "#{id}\t" + # A ID "#{name}\t" + # B Name "#{@hash['TI']}\t" + # C Title "#{@hash['TI']}\t" + # D Title in English "01\t" + # E Language "2\t" + # F The number of Author(s) 1:1, 2:not 1 (default) "1\t" + # G Kind - 1:regular paper "1\t" + # H Refereep - 0:nil 1:t "0\t" + # I Invitedp - 0:nil 1:t "Greatly\t" + # J Contribution "#{@hash['JI']}\t" + # K Journal "#{@hash['JI']}\t" + # L Journal in English "#{@hash['VL']}\t" + # M Vol. "#{@hash['IS']}\t" + # N No. "#{@hash['AR'] or @hash['BP']}\t" + "\t" + # P Page END "#{@hash['PY']}\t" + # Q Year "#{month_in_number}\t" + # R Month "\t" + # S Date "#{.gsub(" and ",", ")}\t" + "#{.gsub(" and ",", ")}\t" + "#{@hash['UR']}\t" + # V URL of online journal "\t" + # W Other "#{@hash['PY']-2000}#{sprintf("%.2d",@@order)}\t" + "1\n" end |