isi 1.1.5 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README CHANGED
@@ -4,10 +4,9 @@
4
4
  isi is an ISI Export Format to BibTeX Format converter written in
5
5
  Ruby script language. You can use isi as a library, too.
6
6
 
7
- ISI Web of Science (go to http://isiknowledge.com , click [Select a Database] tab,
8
- then click "Web of Science (R)") provides their bibliographic information in
9
- ISI Export Format. You can get the tagged Marked List in Web of Science by
10
- clicking the [SAVE TO FILE] button.
7
+ ISI Web of Science (http://isiknowledge.com) provides their bibliographic
8
+ information in ISI Export Format. You can get the tagged Marked List in
9
+ Web of Science by clicking the [SAVE TO FILE] button.
11
10
 
12
11
  == Where is the homepage of isi?
13
12
  http://isi-rb.rubyforge.org
@@ -38,7 +37,9 @@ lib/journaltitleabbreviation.rb (journaltitleabbreviation-X.Y.Z.rb)
38
37
  into your working directory which contains your saved "Marked List",
39
38
  e.g. savedrecs.txt.
40
39
  $ cp lib/isi.rb lib/journaltitleabbreviation.rb ~/your/working/directory/
41
- ($ cp isi-X.Y.Z.rb journaltitleabbreviation-X.Y.Z.rb ~/your/working/directory/isi.rb)
40
+ ($ cp isi-X.Y.Z.rb ~/your/working/directory/isi.rb)
41
+ $ cp lib/journaltitleabbreviation.rb ~/your/working/directory/
42
+ ($ cp journaltitleabbreviation-X.Y.Z.rb ~/your/working/directory/journaltitleabbreviation.rb)
42
43
  $ cd ~/your/working/directory/
43
44
  $ ruby isi.rb savedrecs1.txt savedrecs2.txt
44
45
  $ ruby isi.rb < savedrecs.txt > savedrecs.bib
@@ -65,13 +66,9 @@ For KakenhiLaTeX http://osksn2.hep.sci.osaka-u.ac.jp/~taku/kakenhiLaTeX/
65
66
  For the database of "Academic Research Staff at Tohoku University" http://db.tohoku.ac.jp/whois/TunvTopE.html
66
67
  $ isi2tohoku --help
67
68
  $ isi2tohoku --id 12345678 --name 'Example Name' savedrecs.txt
68
- For summing the number of times cited
69
- $ isi2timescited MyAllPapers.isi
70
- 1997 10
71
- :
72
- 2007 0
73
- total 88
74
- WARNING: isi2timescited is OBSOLETE. Try the [CITATION REPORT] button in the right column of ISI Web of Science.
69
+ To convert ISI Export Format to HTML
70
+ $ isi2html --help
71
+ $ isi2html --full-name='Hideki Yukawa' --name-regexp='(H\. Yukawa|Hideki Yukawa)' savedrecs.txt > index.html
75
72
  === You can use isi as a library.
76
73
  Here is an example:
77
74
  #!/usr/bin/env ruby
@@ -131,15 +128,25 @@ See http://isibasic.com/help/helpprn.html .
131
128
  AP: Article number of new APS journals (in ISI Web of Knowledge, 2008-)
132
129
  AR: Article number of new APS journals
133
130
  AU: Authors
131
+ BN: ISBN
134
132
  BP: Beginning page
135
133
  C1: Research addresses
134
+ CA: Group authors
135
+ CL: Conference location
136
136
  CR: Cited references
137
+ CT: Conference title
138
+ CY: Conference Date
137
139
  DE: Original keywords
138
140
  DI: DOI
139
141
  DT: Document type
142
+ ED: Editors
143
+ EM: E-mail address
140
144
  EP: Ending page
141
145
  ER: end of a record
142
- GA: ISI document delivery number
146
+ FN: File name
147
+ FU: Funding agency and grant number
148
+ FX: Funding text
149
+ GA: IDS number (ISI original)
143
150
  ID: New keywords given by ISI
144
151
  IS: issue
145
152
  J9: 29-character journal title abbreviation
@@ -147,6 +154,7 @@ See http://isibasic.com/help/helpprn.html .
147
154
  LA: Language
148
155
  NR: Cited reference count
149
156
  PD: Publication date e.g. "JUN 8" or "JUL"
157
+ PA: Publisher Address
150
158
  PG: the number of pages
151
159
  PI: Publisher city
152
160
  PN: Part number
@@ -158,6 +166,7 @@ See http://isibasic.com/help/helpprn.html .
158
166
  SI: Special issue
159
167
  SN: ISSN
160
168
  SO: journal title, in full
169
+ SP: Conference Sponsors
161
170
  SU: Supplement
162
171
  TC: Times cited
163
172
  TI: Title
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  #! /usr/bin/env rake
2
2
  # -*-Ruby-*-
3
- # Time-stamp: <2008-02-20 10:31:23 takeshi>
3
+ # Time-stamp: <2009-04-21 20:45:04 takeshi>
4
4
  # Author: Takeshi Nishimatsu
5
5
  ##
6
6
  $LOAD_PATH.unshift('lib')
@@ -12,7 +12,6 @@ require 'rake/rdoctask'
12
12
  require 'rake/clean'
13
13
  require 'rake/contrib/rubyforgepublisher'
14
14
  require 'isi.rb'
15
- require 'archive/tar/minitar'
16
15
  require 'zlib'
17
16
 
18
17
  spec = eval(File.read("isi.gemspec"))
File without changes
@@ -0,0 +1,81 @@
1
+ #!/usr/bin/env ruby
2
+ # isi2html -*-Ruby-*-
3
+ # Time-stamp: <2009-04-21 21:08:56 takeshi>
4
+ # Description: isi2html is an ISI Export Format to HTML Format converter.
5
+ # Project homepage: http://isi-rb.rubyforge.org/
6
+ # Usage: isi2html --name-regexp='(H\. Yukawa|Hideki Yukawa)' savedrecs.txt > index.html
7
+ # Author: Takeshi Nishimatsu
8
+ ##
9
+ require "isi"
10
+ require "optparse"
11
+
12
+ class ISI_record
13
+ def to_html(name_regexp)
14
+ " <li>
15
+ #{comma_and_separated_authors.sub(name_regexp,'<u>\1</u>')}:
16
+ \"#{@hash['TI']}\",
17
+ #{ji2journal} <b>#{@hash['VL']}</b>, #{pages} (#{@hash['PY']})#{', ' + doi_html_link if doi_html_link},
18
+ <i>N</i><sub>tc</sub>=#{@hash['TC']}.
19
+ </li>\n"
20
+ end
21
+ end
22
+
23
+ name_regexp=/(T\. Nishimatsu|Takeshi Nishimatsu)/
24
+ full_name="Takeshi Nshimatsu"
25
+
26
+ opts = OptionParser.new
27
+ def opts.usage
28
+ return to_s.sub(/options/,'options] [filename(s)')
29
+ end
30
+ opts.on("-n YOUR_NAME_REGEXP","--name-regexp YOUR_NAME_REGEXP",
31
+ "Regular expression of your name. Example: --name-regexp='(H\\. Yukawa|Hideki Yukawa)'"){|v| name_regexp=Regexp.new(v)}
32
+ opts.on("-f YOUR_FULL_NAME","--full-name YOUR_FULL_NAME",
33
+ "Your full name for the title: --full-name='Hideki Yukawa'"){|v| full_name=v}
34
+ opts.on_tail("-h", "--help", "Show this message"){puts opts.usage; exit}
35
+
36
+ opts.parse!(ARGV)
37
+
38
+
39
+ print "<?xml version=\"1.0\" encoding=\"utf-8\"?>
40
+ <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"
41
+ \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
42
+
43
+ <html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">
44
+ <head>
45
+ <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />
46
+ <title>#{full_name} Publication List</title>
47
+ <meta name=\"author\" content=\"#{full_name}\" />
48
+ <meta name=\"copyright\" content=\"Copyright &#169; 2008 #{full_name}\" />
49
+ <link rel=\"stylesheet\" href=\"publication.css\" type=\"text/css\" />
50
+ <link rel=\"shortcut icon\" href=\"favicon.ico\" />
51
+
52
+ </head>
53
+ <body>
54
+ <h1 id=\"TITLE\">#{full_name} Publication List</h1>
55
+
56
+ <p>
57
+ <i>N</i><sub>tc</sub>: The number of times cited before #{Time.now.strftime("%B %Y")}.
58
+ </p>
59
+
60
+ <ol>
61
+ "
62
+
63
+ while rec = ARGF.read_an_ISI_record
64
+ print rec.to_html(name_regexp)
65
+ end
66
+
67
+ print "</ol>
68
+
69
+ <hr />
70
+
71
+ <p>
72
+ This publication list was semi-automatically generated by <a href=\"http://isi-rb.rubyforge.org/\">isi2html</a> from a searched result in <a href=\"http://isiknowledge.com/\">Web of Science</a>.
73
+ </p>
74
+
75
+ </body>
76
+ </html>
77
+ "
78
+
79
+ #Local variables:
80
+ # compile-command: "ruby -r rubygems -I ../lib isi2html ~/references/isi/TakeshiNishimatsuAll-with-DOI.isi > ../examples/publication.html"
81
+ #End:
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # isi2kakenhi -*-Ruby-*-
3
- # Time-stamp: <2007-10-11 20:46:11 takeshi>
3
+ # Time-stamp: <2008-09-14 16:05:57 takeshi>
4
4
  # Description: isi2kakenhi is an ISI Export Format to KakenhiLaTeX Format converter.
5
5
  # Project homepage: http://isi-rb.rubyforge.org/
6
6
  # KakenhiLaTeX homepage: http://osksn2.hep.sci.osaka-u.ac.jp/~taku/kakenhiLaTeX/
@@ -24,7 +24,7 @@ opts = OptionParser.new
24
24
  def opts.usage
25
25
  return to_s.sub(/options/,'options] [filename(s)')
26
26
  end
27
- opts.on("-n YOUR_NAME","--name-regexp YOUR_NAME_REGEXP",
27
+ opts.on("-n YOUR_NAME_REGEXP","--name-regexp YOUR_NAME_REGEXP",
28
28
  "Regular expression of your name. Example: --name-regexp='(H\\. Yukawa|Hideki Yukawa)'"){|v| name_regexp=Regexp.new(v)}
29
29
  opts.on_tail("-h", "--help", "Show this message"){puts opts.usage; exit}
30
30
 
File without changes
@@ -1,12 +1,9 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
6
3
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
4
  <head>
8
- <title>Module: ARGF</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
5
+ <title>Module: ARGF [isi]</title>
6
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
10
7
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
8
  <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
9
  <script type="text/javascript">
@@ -25,7 +22,7 @@
25
22
  return false;
26
23
 
27
24
  elemStyle = elem.style;
28
-
25
+
29
26
  if ( elemStyle.display != "block" ) {
30
27
  elemStyle.display = "block"
31
28
  } else {
@@ -34,10 +31,10 @@
34
31
 
35
32
  return true;
36
33
  }
37
-
34
+
38
35
  // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
36
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )
37
+
41
38
  // ]]>
42
39
  </script>
43
40
 
@@ -45,7 +42,6 @@
45
42
  <body>
46
43
 
47
44
 
48
-
49
45
  <div id="classHeader">
50
46
  <table class="header-table">
51
47
  <tr class="top-aligned-row">
@@ -55,34 +51,44 @@
55
51
  <tr class="top-aligned-row">
56
52
  <td><strong>In:</strong></td>
57
53
  <td>
54
+
55
+
56
+ <a href="../files/lib/isi_rb.html">
57
+
58
+ lib/isi.rb
59
+
60
+ </a>
61
+
62
+
63
+ <br />
64
+
58
65
  </td>
59
66
  </tr>
60
67
 
68
+
61
69
  </table>
62
70
  </div>
63
71
  <!-- banner header -->
64
72
 
65
73
  <div id="bodyContent">
66
74
 
67
-
68
-
69
75
  <div id="contextContent">
70
76
 
71
-
72
-
73
77
  </div>
74
78
 
79
+
75
80
  <div id="method-list">
76
81
  <h3 class="section-bar">Methods</h3>
77
82
 
78
83
  <div class="name-list">
79
- <a href="#M000005">read_an_ISI_record</a>&nbsp;&nbsp;
84
+
85
+ <a href="#M000005">read_an_ISI_record</a>&nbsp;&nbsp;
86
+
80
87
  </div>
81
88
  </div>
82
89
 
83
90
  </div>
84
91
 
85
-
86
92
  <!-- if includes -->
87
93
 
88
94
  <div id="section">
@@ -90,38 +96,44 @@
90
96
 
91
97
 
92
98
 
93
-
94
-
95
-
96
-
97
99
  <!-- if method_list -->
100
+
98
101
  <div id="methods">
102
+
99
103
  <h3 class="section-bar">Public Class methods</h3>
100
104
 
105
+
101
106
  <div id="method-M000005" class="method-detail">
102
107
  <a name="M000005"></a>
103
108
 
104
109
  <div class="method-heading">
110
+
105
111
  <a href="ARGF.src/M000005.html" target="Code" class="method-signature"
106
112
  onclick="popupCode('ARGF.src/M000005.html');return false;">
113
+
107
114
  <span class="method-name">read_an_ISI_record</span><span class="method-args">()</span>
115
+
108
116
  </a>
117
+
109
118
  </div>
110
-
119
+
111
120
  <div class="method-description">
121
+
112
122
  </div>
113
123
  </div>
114
124
 
115
125
 
126
+
116
127
  </div>
117
128
 
118
129
 
119
- </div>
120
130
 
121
131
 
132
+ </div>
133
+
122
134
  <div id="validator-badges">
123
135
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
124
136
  </div>
125
137
 
126
138
  </body>
127
- </html>
139
+ </html>
@@ -1,53 +1,50 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
4
  <head>
8
5
  <title>read_an_ISI_record (ARGF)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
6
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
10
7
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
8
  </head>
12
9
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/isi.rb, line 200</span>
14
- 200: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">ARGF</span>.<span class="ruby-identifier">read_an_ISI_record</span>
15
- 201: <span class="ruby-comment cmt"># singleton method (instance method associated only with ARGF)</span>
16
- 202: <span class="ruby-identifier">hash</span> = {}
17
- 203: <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">line</span> = <span class="ruby-identifier">gets</span>
18
- 204: <span class="ruby-comment cmt">#===== a few special cases</span>
19
- 205: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">ISI_record</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">hash</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">line</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^ER/</span>
20
- 206: <span class="ruby-keyword kw">next</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">line</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^(EF|FN|VR)/</span> <span class="ruby-comment cmt"># ignore file-unique tags</span>
21
- 207: <span class="ruby-keyword kw">next</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">line</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^\s*$/</span> <span class="ruby-comment cmt"># ignore blank lines</span>
22
- 208: <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">line</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/\!$/</span>
23
- 209: <span class="ruby-identifier">line</span>.<span class="ruby-identifier">chomp!</span>.<span class="ruby-identifier">chop!</span> <span class="ruby-comment cmt"># continued to next line if the line ends with &quot;!&quot;</span>
24
- 210: <span class="ruby-identifier">line</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">gets</span>
25
- 211: <span class="ruby-keyword kw">end</span>
26
- 212: <span class="ruby-comment cmt">#===== Normal tags</span>
27
- 213: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">line</span>
28
- 214: <span class="ruby-keyword kw">when</span> <span class="ruby-regexp re">/^(AU|AF|CR) /</span>
29
- 215: <span class="ruby-identifier">tag</span> = <span class="ruby-identifier">$1</span>
30
- 216: <span class="ruby-identifier">authors</span> = [<span class="ruby-identifier">line</span>.<span class="ruby-identifier">chomp</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-regexp re">/^(AU|AF|CR) /</span>,<span class="ruby-value str">''</span>)]
31
- 217: <span class="ruby-keyword kw">while</span> (<span class="ruby-identifier">line</span> = <span class="ruby-identifier">gets</span>) <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^ /</span>
32
- 218: <span class="ruby-identifier">authors</span>.<span class="ruby-identifier">push</span>(<span class="ruby-identifier">line</span>.<span class="ruby-identifier">chomp</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-regexp re">/^\s+/</span>,<span class="ruby-value str">''</span>))
33
- 219: <span class="ruby-keyword kw">end</span>
34
- 220: <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">tag</span>] = <span class="ruby-identifier">authors</span>
35
- 221: <span class="ruby-keyword kw">redo</span>
36
- 222: <span class="ruby-keyword kw">when</span> <span class="ruby-regexp re">/^(NR|PG|PY|TC) (.*)$/</span>
37
- 223: <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">$1</span>] = <span class="ruby-identifier">$2</span>.<span class="ruby-identifier">to_i</span>
38
- 224: <span class="ruby-keyword kw">when</span> <span class="ruby-regexp re">/^(TI|AB|DE|ID|SO|PT|JI|BP|EP|AP|AR|PD|VL|IS|GA|PI|PU|PN|PA|J9|UT|DT|C1|RP|SI|SE|SN|SU|LA|DI|SC) (.*)$/</span>
39
- 225: <span class="ruby-identifier">tag</span> = <span class="ruby-identifier">$1</span>
40
- 226: <span class="ruby-identifier">str</span> = <span class="ruby-identifier">$2</span>
41
- 227: <span class="ruby-keyword kw">while</span> (<span class="ruby-identifier">line</span> = <span class="ruby-identifier">gets</span>) <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^ /</span>
42
- 228: <span class="ruby-identifier">str</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">line</span>.<span class="ruby-identifier">chomp</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-regexp re">/^ /</span>,<span class="ruby-value str">''</span>)
43
- 229: <span class="ruby-keyword kw">end</span>
44
- 230: <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">tag</span>] = <span class="ruby-identifier">str</span>
45
- 231: <span class="ruby-keyword kw">redo</span>
46
- 232: <span class="ruby-keyword kw">else</span>
47
- 233: <span class="ruby-constant">STDERR</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{$FILENAME}:#{file.lineno}: Unknown tag: #{line}&quot;</span>
48
- 234: <span class="ruby-keyword kw">end</span>
49
- 235: <span class="ruby-keyword kw">end</span>
50
- 236: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
51
- 237: <span class="ruby-keyword kw">end</span></pre>
10
+ <pre> <span class="ruby-comment cmt"># File lib/isi.rb, line 208</span>
11
+ 208: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">ARGF</span>.<span class="ruby-identifier">read_an_ISI_record</span>
12
+ 209: <span class="ruby-comment cmt"># singleton method (instance method associated only with ARGF)</span>
13
+ 210: <span class="ruby-identifier">hash</span> = {}
14
+ 211: <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">line</span> = <span class="ruby-identifier">gets</span>
15
+ 212: <span class="ruby-comment cmt">#===== a few special cases</span>
16
+ 213: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">ISI_record</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">hash</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">line</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^ER/</span>
17
+ 214: <span class="ruby-keyword kw">next</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">line</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^(EF|FN|VR)/</span> <span class="ruby-comment cmt"># ignore file-unique tags</span>
18
+ 215: <span class="ruby-keyword kw">next</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">line</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^\s*$/</span> <span class="ruby-comment cmt"># ignore blank lines</span>
19
+ 216: <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">line</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/\!$/</span>
20
+ 217: <span class="ruby-identifier">line</span>.<span class="ruby-identifier">chomp!</span>.<span class="ruby-identifier">chop!</span> <span class="ruby-comment cmt"># continued to next line if the line ends with &quot;!&quot;</span>
21
+ 218: <span class="ruby-identifier">line</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">gets</span>
22
+ 219: <span class="ruby-keyword kw">end</span>
23
+ 220: <span class="ruby-comment cmt">#===== Normal tags</span>
24
+ 221: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">line</span>
25
+ 222: <span class="ruby-keyword kw">when</span> <span class="ruby-regexp re">/^(AU|AF|CR) /</span>
26
+ 223: <span class="ruby-identifier">tag</span> = <span class="ruby-identifier">$1</span>
27
+ 224: <span class="ruby-identifier">authors</span> = [<span class="ruby-identifier">line</span>.<span class="ruby-identifier">chomp</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-regexp re">/^(AU|AF|CR) /</span>,<span class="ruby-value str">''</span>)]
28
+ 225: <span class="ruby-keyword kw">while</span> (<span class="ruby-identifier">line</span> = <span class="ruby-identifier">gets</span>) <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^ /</span>
29
+ 226: <span class="ruby-identifier">authors</span>.<span class="ruby-identifier">push</span>(<span class="ruby-identifier">line</span>.<span class="ruby-identifier">chomp</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-regexp re">/^\s+/</span>,<span class="ruby-value str">''</span>))
30
+ 227: <span class="ruby-keyword kw">end</span>
31
+ 228: <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">tag</span>] = <span class="ruby-identifier">authors</span>
32
+ 229: <span class="ruby-keyword kw">redo</span>
33
+ 230: <span class="ruby-keyword kw">when</span> <span class="ruby-regexp re">/^(NR|PG|PY|TC) (.*)$/</span>
34
+ 231: <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">$1</span>] = <span class="ruby-identifier">$2</span>.<span class="ruby-identifier">to_i</span>
35
+ 232: <span class="ruby-keyword kw">when</span> <span class="ruby-regexp re">/^(AB|AP|AR|BN|BP|C1|CA|CL|CT|CY|DE|DI|DT|ED|EM|EP|FN|FU|FX|GA|ID|IS|J9|JI|LA|PA|PD|PI|PN|PT|PU|RP|SC|SE|SI|SN|SO|SP|SU|TI|UT|VL) (.*)$/</span>
36
+ 233: <span class="ruby-identifier">tag</span> = <span class="ruby-identifier">$1</span>
37
+ 234: <span class="ruby-identifier">str</span> = <span class="ruby-identifier">$2</span>
38
+ 235: <span class="ruby-keyword kw">while</span> (<span class="ruby-identifier">line</span> = <span class="ruby-identifier">gets</span>) <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^ /</span>
39
+ 236: <span class="ruby-identifier">str</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">line</span>.<span class="ruby-identifier">chomp</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-regexp re">/^ /</span>,<span class="ruby-value str">''</span>)
40
+ 237: <span class="ruby-keyword kw">end</span>
41
+ 238: <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">tag</span>] = <span class="ruby-identifier">str</span>
42
+ 239: <span class="ruby-keyword kw">redo</span>
43
+ 240: <span class="ruby-keyword kw">else</span>
44
+ 241: <span class="ruby-constant">STDERR</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{$FILENAME}:#{file.lineno}: Unknown tag: #{line}&quot;</span>
45
+ 242: <span class="ruby-keyword kw">end</span>
46
+ 243: <span class="ruby-keyword kw">end</span>
47
+ 244: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
48
+ 245: <span class="ruby-keyword kw">end</span></pre>
52
49
  </body>
53
- </html>
50
+ </html>
@@ -1,12 +1,9 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
6
3
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
4
  <head>
8
- <title>Class: ISI_record</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
5
+ <title>Class: ISI_record [isi]</title>
6
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
10
7
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
8
  <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
9
  <script type="text/javascript">
@@ -25,7 +22,7 @@
25
22
  return false;
26
23
 
27
24
  elemStyle = elem.style;
28
-
25
+
29
26
  if ( elemStyle.display != "block" ) {
30
27
  elemStyle.display = "block"
31
28
  } else {
@@ -34,10 +31,10 @@
34
31
 
35
32
  return true;
36
33
  }
37
-
34
+
38
35
  // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
36
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )
37
+
41
38
  // ]]>
42
39
  </script>
43
40
 
@@ -45,7 +42,6 @@
45
42
  <body>
46
43
 
47
44
 
48
-
49
45
  <div id="classHeader">
50
46
  <table class="header-table">
51
47
  <tr class="top-aligned-row">
@@ -55,128 +51,162 @@
55
51
  <tr class="top-aligned-row">
56
52
  <td><strong>In:</strong></td>
57
53
  <td>
54
+
55
+
58
56
  <a href="../files/lib/isi_rb.html">
57
+
59
58
  lib/isi.rb
59
+
60
60
  </a>
61
+
62
+
61
63
  <br />
64
+
62
65
  </td>
63
66
  </tr>
64
67
 
68
+
65
69
  <tr class="top-aligned-row">
66
70
  <td><strong>Parent:</strong></td>
67
71
  <td>
72
+
68
73
  Object
74
+
69
75
  </td>
70
76
  </tr>
77
+
71
78
  </table>
72
79
  </div>
73
80
  <!-- banner header -->
74
81
 
75
82
  <div id="bodyContent">
76
83
 
77
-
78
-
79
84
  <div id="contextContent">
80
85
 
81
-
82
-
83
86
  </div>
84
87
 
88
+
85
89
  <div id="method-list">
86
90
  <h3 class="section-bar">Methods</h3>
87
91
 
88
92
  <div class="name-list">
89
- <a href="#M000001">new</a>&nbsp;&nbsp;
90
- <a href="#M000003">to_bibtex</a>&nbsp;&nbsp;
91
- <a href="#M000002">to_tohoku_DB</a>&nbsp;&nbsp;
93
+
94
+ <a href="#M000002">new</a>&nbsp;&nbsp;
95
+
96
+ <a href="#M000004">to_bibtex</a>&nbsp;&nbsp;
97
+
98
+ <a href="#M000003">to_tohoku_DB</a>&nbsp;&nbsp;
99
+
92
100
  </div>
93
101
  </div>
94
102
 
95
103
  </div>
96
104
 
97
-
98
105
  <!-- if includes -->
99
106
 
100
107
  <div id="section">
101
108
 
102
-
103
109
  <div id="constants-list">
104
110
  <h3 class="section-bar">Constants</h3>
105
111
 
106
112
  <div class="name-list">
107
113
  <table summary="Constants">
114
+
108
115
  <tr class="top-aligned-row context-row">
109
116
  <td class="context-item-name">FMT</td>
110
117
  <td>=</td>
111
118
  <td class="context-item-value">Text::Format.new(:columns =&gt; 80, :first_indent =&gt; 1, :left_margin =&gt; 22)</td>
119
+
112
120
  </tr>
121
+
113
122
  </table>
114
123
  </div>
115
124
  </div>
116
125
 
117
126
 
118
127
 
119
-
120
-
121
128
 
122
129
  <!-- if method_list -->
130
+
123
131
  <div id="methods">
132
+
124
133
  <h3 class="section-bar">Public Class methods</h3>
125
134
 
126
- <div id="method-M000001" class="method-detail">
127
- <a name="M000001"></a>
135
+
136
+ <div id="method-M000002" class="method-detail">
137
+ <a name="M000002"></a>
128
138
 
129
139
  <div class="method-heading">
130
- <a href="ISI_record.src/M000001.html" target="Code" class="method-signature"
131
- onclick="popupCode('ISI_record.src/M000001.html');return false;">
140
+
141
+ <a href="ISI_record.src/M000002.html" target="Code" class="method-signature"
142
+ onclick="popupCode('ISI_record.src/M000002.html');return false;">
143
+
132
144
  <span class="method-name">new</span><span class="method-args">(hash)</span>
145
+
133
146
  </a>
147
+
134
148
  </div>
135
-
149
+
136
150
  <div class="method-description">
151
+
137
152
  </div>
138
153
  </div>
139
154
 
155
+
140
156
  <h3 class="section-bar">Public Instance methods</h3>
141
157
 
142
- <div id="method-M000003" class="method-detail">
143
- <a name="M000003"></a>
158
+
159
+ <div id="method-M000004" class="method-detail">
160
+ <a name="M000004"></a>
144
161
 
145
162
  <div class="method-heading">
146
- <a href="ISI_record.src/M000003.html" target="Code" class="method-signature"
147
- onclick="popupCode('ISI_record.src/M000003.html');return false;">
163
+
164
+ <a href="ISI_record.src/M000004.html" target="Code" class="method-signature"
165
+ onclick="popupCode('ISI_record.src/M000004.html');return false;">
166
+
148
167
  <span class="method-name">to_bibtex</span><span class="method-args">()</span>
168
+
149
169
  </a>
170
+
150
171
  </div>
151
-
172
+
152
173
  <div class="method-description">
174
+
153
175
  </div>
154
176
  </div>
155
177
 
156
- <div id="method-M000002" class="method-detail">
157
- <a name="M000002"></a>
178
+
179
+ <div id="method-M000003" class="method-detail">
180
+ <a name="M000003"></a>
158
181
 
159
182
  <div class="method-heading">
160
- <a href="ISI_record.src/M000002.html" target="Code" class="method-signature"
161
- onclick="popupCode('ISI_record.src/M000002.html');return false;">
183
+
184
+ <a href="ISI_record.src/M000003.html" target="Code" class="method-signature"
185
+ onclick="popupCode('ISI_record.src/M000003.html');return false;">
186
+
162
187
  <span class="method-name">to_tohoku_DB</span><span class="method-args">(tohoku_id, name)</span>
188
+
163
189
  </a>
190
+
164
191
  </div>
165
-
192
+
166
193
  <div class="method-description">
194
+
167
195
  </div>
168
196
  </div>
169
197
 
170
198
 
199
+
171
200
  </div>
172
201
 
173
202
 
174
- </div>
175
203
 
176
204
 
205
+ </div>
206
+
177
207
  <div id="validator-badges">
178
208
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
179
209
  </div>
180
210
 
181
211
  </body>
182
- </html>
212
+ </html>