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(tohoku_id, name) ⇒ Object
Constructor Details
#initialize(hash) ⇒ ISI_record
Returns a new instance of ISI_record.
18 19 20 21 |
# File 'lib/isi.rb', line 18 def initialize(hash) @hash = hash @@order += 1 end |
Instance Method Details
#to_bibtex ⇒ Object
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/isi.rb', line 52 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}}, NumPages = {#{@hash['PG']}}, Keywords = {#{fmt('DE')}}, NewKeywords= {#{fmt('ID')}}, Abstract = {#{fmt('AB')}}, ReprintURL = {#{fmt('UR')}}, DOI = {#{@hash['DI']}}, MyComment = {}, WhereIFiledIt= {}}\n\n" end |
#to_tohoku_DB(tohoku_id, name) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/isi.rb', line 23 def to_tohoku_DB(tohoku_id, name) "#{tohoku_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 Single author(1) or not(2) "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 "#{ji2journal}\t" + # K Journal "#{ji2journal}\t" + # L Journal in English "#{@hash['VL']}\t" + # M Vol. "#{@hash['IS']}\t" + # N No. "#{@hash['AP'] or @hash['AR'] or @hash['BP']}\t" + # O Page BEGIN "\t" + # P Page END "#{@hash['PY']}\t" + # Q Year "#{month_in_number}\t" + # R Month "\t" + # S Date "#{.gsub(" and ",", ")}\t" + # T Authors original "#{.gsub(" and ",", ")}\t" + # U Authors in English "#{@hash['UR']}\t" + # V URL of online journal "#{@hash['DI']}\t" + # W DOI "\t" + # X Bikou "\t" + # Y Display order "1\n" # Z Status end |