isi 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +20 -0
- data/README +14 -8
- data/Rakefile +2 -1
- data/bin/isi2timescited +5 -1
- data/html/classes/ARGF.html +5 -5
- data/html/classes/ARGF.src/{M000004.html → M000005.html} +39 -39
- data/html/classes/ISI_record.src/M000001.html +5 -5
- data/html/classes/ISI_record.src/M000002.html +27 -27
- data/html/classes/ISI_record.src/M000003.html +21 -20
- data/html/classes/String.html +163 -0
- data/html/classes/String.src/M000004.html +18 -0
- data/html/created.rid +1 -1
- data/html/files/README.html +18 -9
- data/html/files/lib/isi_rb.html +5 -4
- data/html/files/lib/journaltitleabbreviation_rb.html +114 -0
- data/html/fr_class_index.html +1 -0
- data/html/fr_file_index.html +1 -0
- data/html/fr_method_index.html +2 -1
- data/isi.gemspec +2 -2
- data/lib/isi.rb +15 -9
- data/lib/journaltitleabbreviation.rb +81 -0
- metadata +8 -3
data/ChangeLog
CHANGED
@@ -1,3 +1,23 @@
|
|
1
|
+
2008-02-20 Takeshi Nishimatsu <takeshi@physics.rutgers.edu>
|
2
|
+
|
3
|
+
* isi-1.1.5.gem: r26
|
4
|
+
|
5
|
+
* README (http): How to go to <Web of Science> form <ISI Web of Knowledge>
|
6
|
+
|
7
|
+
* lib/isi.rb (ARGF.read_an_ISI_record): AP
|
8
|
+
|
9
|
+
2007-11-07 Takeshi Nishimatsu <takeshi@physics.rutgers.edu>
|
10
|
+
|
11
|
+
* lib/isi.rb (ISI_record::to_bibtex): DOI
|
12
|
+
|
13
|
+
2007-10-12 Takeshi Nishimatsu <takeshi@physics.rutgers.edu>
|
14
|
+
|
15
|
+
* lib/isi.rb (ISI_record::comma_and_separated_authors): for bin/isi2kakenhi
|
16
|
+
|
17
|
+
* bin/isi2kakenhi: New file
|
18
|
+
|
19
|
+
* isi-1.1.4.gem: r16
|
20
|
+
|
1
21
|
2007-08-21 NISHIMATSU Takeshi <takeshi@physics.rutgers.edu>
|
2
22
|
|
3
23
|
* isi-1.1.3.gem: release!
|
data/README
CHANGED
@@ -4,9 +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
|
8
|
-
provides their bibliographic information in
|
9
|
-
You can get the tagged Marked List in Web of Science by
|
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
10
|
clicking the [SAVE TO FILE] button.
|
11
11
|
|
12
12
|
== Where is the homepage of isi?
|
@@ -32,11 +32,13 @@ If you do not have the text-format library, gem will download and install the li
|
|
32
32
|
automatically. The gem server is busy sometimes. If you fail in downloading, please
|
33
33
|
try again.
|
34
34
|
|
35
|
-
=== III. Simple way; just copy isi.rb
|
36
|
-
Just copy lib/isi.rb (isi-X.Y.Z.rb)
|
37
|
-
|
38
|
-
|
39
|
-
|
35
|
+
=== III. Simple way; just copy isi.rb and journaltitleabbreviation.rb
|
36
|
+
Just copy lib/isi.rb (isi-X.Y.Z.rb) and
|
37
|
+
lib/journaltitleabbreviation.rb (journaltitleabbreviation-X.Y.Z.rb)
|
38
|
+
into your working directory which contains your saved "Marked List",
|
39
|
+
e.g. savedrecs.txt.
|
40
|
+
$ 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
42
|
$ cd ~/your/working/directory/
|
41
43
|
$ ruby isi.rb savedrecs1.txt savedrecs2.txt
|
42
44
|
$ ruby isi.rb < savedrecs.txt > savedrecs.bib
|
@@ -69,6 +71,7 @@ For summing the number of times cited
|
|
69
71
|
:
|
70
72
|
2007 0
|
71
73
|
total 88
|
74
|
+
WARNING: isi2timescited is OBSOLETE. Try the [CITATION REPORT] button in the right column of ISI Web of Science.
|
72
75
|
=== You can use isi as a library.
|
73
76
|
Here is an example:
|
74
77
|
#!/usr/bin/env ruby
|
@@ -125,6 +128,7 @@ See http://isibasic.com/help/helpprn.html .
|
|
125
128
|
=== normal tags
|
126
129
|
AB: Abstract
|
127
130
|
AF: Authors Full (AU Foo, BAR -> AF Foo, B. A. R.; AU Nishimatsu, T -> AF Nishimatsu Takeshi)
|
131
|
+
AP: Article number of new APS journals (in ISI Web of Knowledge, 2008-)
|
128
132
|
AR: Article number of new APS journals
|
129
133
|
AU: Authors
|
130
134
|
BP: Beginning page
|
@@ -167,5 +171,7 @@ See http://isibasic.com/help/helpprn.html .
|
|
167
171
|
* none.
|
168
172
|
|
169
173
|
== TODO
|
174
|
+
* lib/isi.rb combine ISI_record#and_separated_authors() and ISI_record#comma_and_separated_authors()
|
175
|
+
into ISI_record#separated_authors()
|
170
176
|
* Write papers, not tools for writing papers.
|
171
177
|
* tests/isi_test.rb
|
data/Rakefile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#! /usr/bin/env rake
|
2
2
|
# -*-Ruby-*-
|
3
|
-
# Time-stamp: <
|
3
|
+
# Time-stamp: <2008-02-20 10:31:23 takeshi>
|
4
4
|
# Author: Takeshi Nishimatsu
|
5
5
|
##
|
6
6
|
$LOAD_PATH.unshift('lib')
|
@@ -61,4 +61,5 @@ end
|
|
61
61
|
desc "Copy lib/isi.rb ../isi-X.Y.Z.rb"
|
62
62
|
task :isi_version_rb do
|
63
63
|
FileUtils.copy_file('lib/isi.rb', ISI_PACKAGE_DIR + '/isi-' + ISI_RB_VERSION + '.rb')
|
64
|
+
FileUtils.copy_file('lib/journaltitleabbreviation.rb', ISI_PACKAGE_DIR + '/journaltitleabbreviation-' + ISI_RB_VERSION + '.rb')
|
64
65
|
end
|
data/bin/isi2timescited
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# isi2timescited -*-Ruby-*-
|
3
|
-
# Time-stamp: <2007-
|
3
|
+
# Time-stamp: <2007-10-31 18:32:00 takeshi>
|
4
4
|
# Author: Takeshi Nishimatsu
|
5
5
|
# Usage: isi2timescited MyAllPapers.isi
|
6
6
|
##
|
@@ -31,6 +31,10 @@ total=0
|
|
31
31
|
end
|
32
32
|
printf("total%5i\n", total)
|
33
33
|
|
34
|
+
STDERR << "WARNING: " << __FILE__ <<
|
35
|
+
" is OBSOLETE. Try the [CITATION REPORT] button in the right column of ISI Web of Science.\n"
|
36
|
+
|
37
|
+
|
34
38
|
#Local variables:
|
35
39
|
# compile-command: "ruby -r 'rubygems' isi2timescited /home/takeshi/references/isi/TakeshiNishimatsuAll.isi"
|
36
40
|
#End:
|
data/html/classes/ARGF.html
CHANGED
@@ -76,7 +76,7 @@
|
|
76
76
|
<h3 class="section-bar">Methods</h3>
|
77
77
|
|
78
78
|
<div class="name-list">
|
79
|
-
<a href="#
|
79
|
+
<a href="#M000005">read_an_ISI_record</a>
|
80
80
|
</div>
|
81
81
|
</div>
|
82
82
|
|
@@ -98,12 +98,12 @@
|
|
98
98
|
<div id="methods">
|
99
99
|
<h3 class="section-bar">Public Class methods</h3>
|
100
100
|
|
101
|
-
<div id="method-
|
102
|
-
<a name="
|
101
|
+
<div id="method-M000005" class="method-detail">
|
102
|
+
<a name="M000005"></a>
|
103
103
|
|
104
104
|
<div class="method-heading">
|
105
|
-
<a href="ARGF.src/
|
106
|
-
onclick="popupCode('ARGF.src/
|
105
|
+
<a href="ARGF.src/M000005.html" target="Code" class="method-signature"
|
106
|
+
onclick="popupCode('ARGF.src/M000005.html');return false;">
|
107
107
|
<span class="method-name">read_an_ISI_record</span><span class="method-args">()</span>
|
108
108
|
</a>
|
109
109
|
</div>
|
@@ -10,44 +10,44 @@
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/isi.rb, line
|
14
|
-
|
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
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
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 "!"</span>
|
24
|
+
210: <span class="ruby-identifier">line</span> <span class="ruby-operator"><<</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"><<</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"><<</span> <span class="ruby-node">"#{$FILENAME}:#{file.lineno}: Unknown tag: #{line}"</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>
|
52
52
|
</body>
|
53
53
|
</html>
|
@@ -10,10 +10,10 @@
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/isi.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/isi.rb, line 13</span>
|
14
|
+
13: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">hash</span>)
|
15
|
+
14: <span class="ruby-ivar">@hash</span> = <span class="ruby-identifier">hash</span>
|
16
|
+
15: <span class="ruby-ivar">@@order</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
|
17
|
+
16: <span class="ruby-keyword kw">end</span></pre>
|
18
18
|
</body>
|
19
19
|
</html>
|
@@ -10,33 +10,33 @@
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/isi.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
37: <span class="ruby-node">"#{and_separated_authors.gsub(" and ",", ")}\t"</span> <span class="ruby-operator">+</span>
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/isi.rb, line 18</span>
|
14
|
+
18: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_tohoku_DB</span>(<span class="ruby-identifier">tohoku_id</span>, <span class="ruby-identifier">name</span>)
|
15
|
+
19: <span class="ruby-node">"#{tohoku_id}\t"</span> <span class="ruby-operator">+</span> <span class="ruby-comment cmt"># A ID</span>
|
16
|
+
20: <span class="ruby-node">"#{name}\t"</span> <span class="ruby-operator">+</span> <span class="ruby-comment cmt"># B Name</span>
|
17
|
+
21: <span class="ruby-node">"#{@hash['TI']}\t"</span> <span class="ruby-operator">+</span> <span class="ruby-comment cmt"># C Title</span>
|
18
|
+
22: <span class="ruby-node">"#{@hash['TI']}\t"</span> <span class="ruby-operator">+</span> <span class="ruby-comment cmt"># D Title in English</span>
|
19
|
+
23: <span class="ruby-value str">"01\t"</span> <span class="ruby-operator">+</span> <span class="ruby-comment cmt"># E Language</span>
|
20
|
+
24: <span class="ruby-value str">"2\t"</span> <span class="ruby-operator">+</span> <span class="ruby-comment cmt"># F The number of Author(s) 1:1, 2:not 1 (default)</span>
|
21
|
+
25: <span class="ruby-value str">"1\t"</span> <span class="ruby-operator">+</span> <span class="ruby-comment cmt"># G Kind - 1:regular paper</span>
|
22
|
+
26: <span class="ruby-value str">"1\t"</span> <span class="ruby-operator">+</span> <span class="ruby-comment cmt"># H Refereep - 0:nil 1:t</span>
|
23
|
+
27: <span class="ruby-value str">"0\t"</span> <span class="ruby-operator">+</span> <span class="ruby-comment cmt"># I Invitedp - 0:nil 1:t</span>
|
24
|
+
28: <span class="ruby-value str">"Greatly\t"</span> <span class="ruby-operator">+</span> <span class="ruby-comment cmt"># J Contribution</span>
|
25
|
+
29: <span class="ruby-node">"#{ji2journal}\t"</span> <span class="ruby-operator">+</span> <span class="ruby-comment cmt"># K Journal</span>
|
26
|
+
30: <span class="ruby-node">"#{ji2journal}\t"</span> <span class="ruby-operator">+</span> <span class="ruby-comment cmt"># L Journal in English</span>
|
27
|
+
31: <span class="ruby-node">"#{@hash['VL']}\t"</span> <span class="ruby-operator">+</span> <span class="ruby-comment cmt"># M Vol.</span>
|
28
|
+
32: <span class="ruby-node">"#{@hash['IS']}\t"</span> <span class="ruby-operator">+</span> <span class="ruby-comment cmt"># N No.</span>
|
29
|
+
33: <span class="ruby-node">"#{@hash['AP'] or @hash['AR'] or @hash['BP']}\t"</span> <span class="ruby-operator">+</span>
|
30
|
+
34: <span class="ruby-value str">"\t"</span> <span class="ruby-operator">+</span> <span class="ruby-comment cmt"># P Page END</span>
|
31
|
+
35: <span class="ruby-node">"#{@hash['PY']}\t"</span> <span class="ruby-operator">+</span> <span class="ruby-comment cmt"># Q Year</span>
|
32
|
+
36: <span class="ruby-node">"#{month_in_number}\t"</span> <span class="ruby-operator">+</span> <span class="ruby-comment cmt"># R Month</span>
|
33
|
+
37: <span class="ruby-value str">"\t"</span> <span class="ruby-operator">+</span> <span class="ruby-comment cmt"># S Date</span>
|
35
34
|
38: <span class="ruby-node">"#{and_separated_authors.gsub(" and ",", ")}\t"</span> <span class="ruby-operator">+</span>
|
36
|
-
39: <span class="ruby-node">"#{
|
37
|
-
40: <span class="ruby-
|
38
|
-
41: <span class="ruby-
|
39
|
-
42: <span class="ruby-
|
40
|
-
43:
|
35
|
+
39: <span class="ruby-node">"#{and_separated_authors.gsub(" and ",", ")}\t"</span> <span class="ruby-operator">+</span>
|
36
|
+
40: <span class="ruby-node">"#{@hash['UR']}\t"</span> <span class="ruby-operator">+</span> <span class="ruby-comment cmt"># V URL of online journal</span>
|
37
|
+
41: <span class="ruby-value str">"\t"</span> <span class="ruby-operator">+</span> <span class="ruby-comment cmt"># W Other</span>
|
38
|
+
42: <span class="ruby-node">"#{@hash['PY']-2000}#{sprintf("%.2d",@@order)}\t"</span> <span class="ruby-operator">+</span>
|
39
|
+
43: <span class="ruby-value str">"1\n"</span>
|
40
|
+
44: <span class="ruby-keyword kw">end</span></pre>
|
41
41
|
</body>
|
42
42
|
</html>
|
@@ -10,25 +10,26 @@
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/isi.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/isi.rb, line 46</span>
|
14
|
+
46: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_bibtex</span>
|
15
|
+
47: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span><span class="ruby-operator">==</span><span class="ruby-keyword kw">nil</span>
|
16
|
+
48: <span class="ruby-node">"@ARTICLE{#{ref_name},
|
17
|
+
49: Author = {#{fmt(and_separated_authors)}},
|
18
|
+
50: Title = {#{fmt('TI')}},
|
19
|
+
51: Journal = {#{ji2journal}},
|
20
|
+
52: JournalFull= {#{@hash['SO']}},
|
21
|
+
53: Year = {#{@hash['PY']}},
|
22
|
+
54: Month = {#{month}},
|
23
|
+
55: Volume = {#{@hash['VL']}},
|
24
|
+
56: Number = {#{@hash['IS']}},
|
25
|
+
57: Pages = {#{pages}},
|
26
|
+
58: Keywords = {#{fmt('DE')}},
|
27
|
+
59: NewKeywords= {#{fmt('ID')}},
|
28
|
+
60: Abstract = {#{fmt('AB')}},
|
29
|
+
61: ReprintURL = {#{fmt('UR')}},
|
30
|
+
62: DOI = {},
|
31
|
+
63: MyComment = {},
|
32
|
+
64: WhereIFiledIt= {}}\n\n"</span>
|
33
|
+
65: <span class="ruby-keyword kw">end</span></pre>
|
33
34
|
</body>
|
34
35
|
</html>
|
@@ -0,0 +1,163 @@
|
|
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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>Class: String</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="classHeader">
|
50
|
+
<table class="header-table">
|
51
|
+
<tr class="top-aligned-row">
|
52
|
+
<td><strong>Class</strong></td>
|
53
|
+
<td class="class-name-in-header">String</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../files/lib/journaltitleabbreviation_rb.html">
|
59
|
+
lib/journaltitleabbreviation.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
<tr class="top-aligned-row">
|
66
|
+
<td><strong>Parent:</strong></td>
|
67
|
+
<td>
|
68
|
+
Object
|
69
|
+
</td>
|
70
|
+
</tr>
|
71
|
+
</table>
|
72
|
+
</div>
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<div id="contextContent">
|
80
|
+
|
81
|
+
<div id="description">
|
82
|
+
<p>
|
83
|
+
journaltitleabbreviation.rb Convert a journal title to its abbreviation
|
84
|
+
Time-stamp: <2008-02-20 10:12:05 takeshi> Author: Takeshi Nishimatsu
|
85
|
+
Project homepage: <a
|
86
|
+
href="http://isi-rb.rubyforge.org">isi-rb.rubyforge.org</a>/ Usage:
|
87
|
+
"PHYSICAL REVIEW LETTERS".<a
|
88
|
+
href="String.html#M000004">to_journal_title_abbreviation</a> Reference: <a
|
89
|
+
href="http://www.library.ubc.ca/scieng/coden.html">www.library.ubc.ca/scieng/coden.html</a>
|
90
|
+
by Kevin Lindstrom
|
91
|
+
</p>
|
92
|
+
|
93
|
+
</div>
|
94
|
+
|
95
|
+
|
96
|
+
</div>
|
97
|
+
|
98
|
+
<div id="method-list">
|
99
|
+
<h3 class="section-bar">Methods</h3>
|
100
|
+
|
101
|
+
<div class="name-list">
|
102
|
+
<a href="#M000004">to_journal_title_abbreviation</a>
|
103
|
+
</div>
|
104
|
+
</div>
|
105
|
+
|
106
|
+
</div>
|
107
|
+
|
108
|
+
|
109
|
+
<!-- if includes -->
|
110
|
+
|
111
|
+
<div id="section">
|
112
|
+
|
113
|
+
|
114
|
+
<div id="constants-list">
|
115
|
+
<h3 class="section-bar">Constants</h3>
|
116
|
+
|
117
|
+
<div class="name-list">
|
118
|
+
<table summary="Constants">
|
119
|
+
<tr class="top-aligned-row context-row">
|
120
|
+
<td class="context-item-name">JOURNAL_TITLE_ABBREVIATIONS</td>
|
121
|
+
<td>=</td>
|
122
|
+
<td class="context-item-value">{ "" => "", "ABSTRACTS OF PAPERS OF THE AMERICAN CHEMICAL SOCIETY" => "Abstr. Pap. Am. Chem. Soc.", "ACTA CRYSTALLOGRAPHICA SECTION A-CRYSTAL PHYSICS DIFFRACTION THEORETICAL AND GENERAL CRYSTALLOGRAPHY" => "Acta Crystallogr. Sect. A", "ACTA CRYSTALLOGRAPHICA SECTION B-STRUCTURAL SCIENCE" => "Acta Crystallogr. Sect. B", "ACTA CRYSTALLOGRAPHICA SECTION C-CRYSTAL STRUCTURE COMMUNICATIONS" => "Acta Crystallogr. Sect. C-Cryst. Struct. Commun.", "ADVANCED MATERIALS" => "Adv. Mater.", "AMERICAN JOURNAL OF PHYSICS" => "Am. J. Phys.", "ANGEWANDTE CHEMIE-INTERNATIONAL EDITION IN ENGLISH" => "Angew. Chem.-Int. Edit. Engl.", "APPLIED PHYSICS LETTERS" => "Appl. Phys. Lett.", "CANADIAN JOURNAL OF PHYSICS" => "Can. J. Phys.", "CHEMICAL PHYSICS" => "Chem. Phys.", "COMPUTATIONAL MATERIALS SCIENCE" => "Comput. Mater. Sci.", "CZECHOSLOVAK JOURNAL OF PHYSICS" => "Czech. J. Phys.", "DIAMOND AND RELATED MATERIALS" => "Diam. Relat. Mat.", "FERROELECTRICS" => "Ferroelectrics", "FIZIKA TVERDOGO TELA" => "Fiz. Tverd. Tela", "INORGANIC CHEMISTRY" => "Inorg. Chem.", "INTEGRATED FERROELECTRICS" => "Integr. Ferroelectr.", "INTERMETALLICS" => "Intermetallics", "JAPANESE JOURNAL OF APPLIED PHYSICS PART 1-REGULAR PAPERS BRIEF COMMUNICATIONS & REVIEW PAPERS" => "Jpn. J. Appl. Phys.", "JAPANESE JOURNAL OF APPLIED PHYSICS PART 1-REGULAR PAPERS SHORT NOTES & REVIEW PAPERS" => "Jpn. J. Appl. Phys.", "JAPANESE JOURNAL OF APPLIED PHYSICS PART 2-LETTERS & EXPRESS LETTERS" => "Jpn. J. Appl. Phys.", "JAPANESE JOURNAL OF APPLIED PHYSICS PART 2-LETTERS" => "Jpn. J. Appl. Phys.", "JAPANESE JOURNAL OF APPLIED PHYSICS" => "Jpn. J. Appl. Phys.", "JOURNAL OF ALLOYS AND COMPOUNDS" => "J. Alloy. Compd.", "JOURNAL OF APPLIED PHYSICS" => "J. Appl. Phys.", "JOURNAL OF CHEMICAL PHYSICS" => "J. Chem. Phys.", "JOURNAL OF COMPUTATIONAL PHYSICS" => "J. Comput. Phys.", "JOURNAL OF ELECTRON MICROSCOPY" => "J. Electron Microsc.", "JOURNAL OF MAGNETISM AND MAGNETIC MATERIALS" => "J. Magn. Magn. Mater.", "JOURNAL OF PHYSICS AND CHEMISTRY OF SOLIDS" => "J. Phys. Chem. Solids", "JOURNAL OF PHYSICS-CONDENSED MATTER" => "J. Phys.-Condes. Matter", "JOURNAL OF SOLID STATE CHEMISTRY" => "J. Solid State Chem.", "JOURNAL OF THE AMERICAN CHEMICAL SOCIETY" => "J. Am. Chem. Soc.", "JOURNAL OF THE KOREAN PHYSICAL SOCIETY" => "J. Korean Phys. Soc.", "JOURNAL OF THE PHYSICAL SOCIETY OF JAPAN" => "J. Phys. Soc. Jpn.", "JOURNAL OF VACUUM SCIENCE & TECHNOLOGY A" => "J. Vac. Sci. Technol. A", "MATERIALS RESEARCH BULLETIN" => "Mater. Res. Bull.", "MATERIALS SCIENCE IN SEMICONDUCTOR PROCESSING" => "Mater. Sci. Semicond. Process", "MEASUREMENT SCIENCE AND TECHNOLOGY" => "Meas. Sci. Technol.", "MEASUREMENT SCIENCE & TECHNOLOGY" => "Meas. Sci. Technol.", "MODELLING AND SIMULATION IN MATERIALS SCIENCE AND ENGINEERING" => "Model. Simul. Mater. Sci. Eng.", "MOLECULAR PHYSICS" => "Mol. Phys.", "NANO LETTERS" => "Nano Lett.", "NATURE MATERIALS" => "Nat. Mater.", "NATURE" => "Nature", "OPTICAL MATERIALS" => "Opt. Mater.", "PHYSICA B-CONDENSED MATTER" => "Physica B", "PHYSICA C" => "Physica C", "PHYSICA STATUS SOLIDI A-APPLICATIONS AND MATERIALS SCIENCE" => "Phys. Status Solidi A", "PHYSICA STATUS SOLIDI A-APPLIED RESEARCH" => "Phys. Status Solidi A", "PHYSICA STATUS SOLIDI B-BASIC RESEARCH" => "Phys. Status Solidi B", "PHYSICAL CHEMISTRY CHEMICAL PHYSICS" => "Phys. Chem. Chem. Phys.", "PHYSICAL REVIEW A" => "Phys. Rev. A", "PHYSICAL REVIEW B" => "Phys. Rev. B", "PHYSICAL REVIEW C" => "Phys. Rev. C", "PHYSICAL REVIEW D" => "Phys. Rev. D", "PHYSICAL REVIEW E" => "Phys. Rev. E", "PHYSICAL REVIEW LETTERS" => "Phys. Rev. Lett.", "REVIEWS OF MODERN PHYSICS" => "Rev. Mod. Phys.", "SCIENCE" => "Science", "SOLID STATE COMMUNICATIONS" => "Solid State Commun.", "SOLID STATE SCIENCES" => "Solid State Sci.", "THIN SOLID FILMS" => "Thin Solid Films", "ZEITSCHRIFT FUR ANORGANISCHE UND ALLGEMEINE CHEMIE" => "Z. Anorg. Allg. Chem."</td>
|
123
|
+
</tr>
|
124
|
+
</table>
|
125
|
+
</div>
|
126
|
+
</div>
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
<!-- if method_list -->
|
134
|
+
<div id="methods">
|
135
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
136
|
+
|
137
|
+
<div id="method-M000004" class="method-detail">
|
138
|
+
<a name="M000004"></a>
|
139
|
+
|
140
|
+
<div class="method-heading">
|
141
|
+
<a href="String.src/M000004.html" target="Code" class="method-signature"
|
142
|
+
onclick="popupCode('String.src/M000004.html');return false;">
|
143
|
+
<span class="method-name">to_journal_title_abbreviation</span><span class="method-args">()</span>
|
144
|
+
</a>
|
145
|
+
</div>
|
146
|
+
|
147
|
+
<div class="method-description">
|
148
|
+
</div>
|
149
|
+
</div>
|
150
|
+
|
151
|
+
|
152
|
+
</div>
|
153
|
+
|
154
|
+
|
155
|
+
</div>
|
156
|
+
|
157
|
+
|
158
|
+
<div id="validator-badges">
|
159
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
160
|
+
</div>
|
161
|
+
|
162
|
+
</body>
|
163
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
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>
|
7
|
+
<head>
|
8
|
+
<title>to_journal_title_abbreviation (String)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/journaltitleabbreviation.rb, line 78</span>
|
14
|
+
78: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_journal_title_abbreviation</span>
|
15
|
+
79: <span class="ruby-constant">JOURNAL_TITLE_ABBREVIATIONS</span>[<span class="ruby-keyword kw">self</span>]
|
16
|
+
80: <span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
data/html/created.rid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
Wed, 20 Feb 2008 11:22:39 -0500
|
data/html/files/README.html
CHANGED
@@ -56,7 +56,7 @@
|
|
56
56
|
</tr>
|
57
57
|
<tr class="top-aligned-row">
|
58
58
|
<td><strong>Last Update:</strong></td>
|
59
|
-
<td>
|
59
|
+
<td>Wed Feb 20 11:21:30 -0500 2008</td>
|
60
60
|
</tr>
|
61
61
|
</table>
|
62
62
|
</div>
|
@@ -76,10 +76,11 @@ isi is an ISI Export Format to BibTeX Format converter written in Ruby
|
|
76
76
|
script language. You can use isi as a library, too.
|
77
77
|
</p>
|
78
78
|
<p>
|
79
|
-
ISI Web of Science
|
80
|
-
href="http://
|
81
|
-
|
82
|
-
|
79
|
+
ISI Web of Science (go to <a
|
80
|
+
href="http://isiknowledge.com">isiknowledge.com</a> , click [Select a
|
81
|
+
Database] tab, then click "Web of Science (R)") provides their
|
82
|
+
bibliographic information in ISI Export Format. You can get the tagged
|
83
|
+
Marked List in Web of Science by clicking the [SAVE TO FILE] button.
|
83
84
|
</p>
|
84
85
|
<h2>Where is the homepage of isi?</h2>
|
85
86
|
<p>
|
@@ -123,14 +124,15 @@ If you do not have the text-format library, gem will download and install
|
|
123
124
|
the library automatically. The gem server is busy sometimes. If you fail in
|
124
125
|
downloading, please try again.
|
125
126
|
</p>
|
126
|
-
<h3>III. Simple way; just copy isi.rb</h3>
|
127
|
+
<h3>III. Simple way; just copy isi.rb and journaltitleabbreviation.rb</h3>
|
127
128
|
<p>
|
128
|
-
Just copy lib/isi.rb (isi-X.Y.Z.rb)
|
129
|
+
Just copy lib/isi.rb (isi-X.Y.Z.rb) and lib/journaltitleabbreviation.rb
|
130
|
+
(journaltitleabbreviation-X.Y.Z.rb) into your working directory which
|
129
131
|
contains your saved "Marked List", e.g. savedrecs.txt.
|
130
132
|
</p>
|
131
133
|
<pre>
|
132
|
-
$ cp lib/isi.rb
|
133
|
-
($ cp isi-X.Y.Z.rb ~/your/working/directory/isi.rb)
|
134
|
+
$ cp lib/isi.rb lib/journaltitleabbreviation.rb ~/your/working/directory/
|
135
|
+
($ cp isi-X.Y.Z.rb journaltitleabbreviation-X.Y.Z.rb ~/your/working/directory/isi.rb)
|
134
136
|
$ cd ~/your/working/directory/
|
135
137
|
$ ruby isi.rb savedrecs1.txt savedrecs2.txt
|
136
138
|
$ ruby isi.rb < savedrecs.txt > savedrecs.bib
|
@@ -187,6 +189,7 @@ For summing the number of times cited
|
|
187
189
|
:
|
188
190
|
2007 0
|
189
191
|
total 88
|
192
|
+
WARNING: isi2timescited is OBSOLETE. Try the [CITATION REPORT] button in the right column of ISI Web of Science.
|
190
193
|
</pre>
|
191
194
|
<h3>You can use isi as a library.</h3>
|
192
195
|
<p>
|
@@ -265,6 +268,7 @@ href="http://isibasic.com/help/helpprn.html">isibasic.com/help/helpprn.html</a>
|
|
265
268
|
<pre>
|
266
269
|
AB: Abstract
|
267
270
|
AF: Authors Full (AU Foo, BAR -> AF Foo, B. A. R.; AU Nishimatsu, T -> AF Nishimatsu Takeshi)
|
271
|
+
AP: Article number of new APS journals (in ISI Web of Knowledge, 2008-)
|
268
272
|
AR: Article number of new APS journals
|
269
273
|
AU: Authors
|
270
274
|
BP: Beginning page
|
@@ -313,6 +317,11 @@ href="http://isibasic.com/help/helpprn.html">isibasic.com/help/helpprn.html</a>
|
|
313
317
|
</ul>
|
314
318
|
<h2>TODO</h2>
|
315
319
|
<ul>
|
320
|
+
<li>lib/isi.rb combine ISI_record#and_separated_authors() and
|
321
|
+
ISI_record#comma_and_separated_authors() into
|
322
|
+
ISI_record#separated_authors()
|
323
|
+
|
324
|
+
</li>
|
316
325
|
<li>Write papers, not tools for writing papers.
|
317
326
|
|
318
327
|
</li>
|
data/html/files/lib/isi_rb.html
CHANGED
@@ -56,7 +56,7 @@
|
|
56
56
|
</tr>
|
57
57
|
<tr class="top-aligned-row">
|
58
58
|
<td><strong>Last Update:</strong></td>
|
59
|
-
<td>
|
59
|
+
<td>Wed Feb 20 10:43:52 -0500 2008</td>
|
60
60
|
</tr>
|
61
61
|
</table>
|
62
62
|
</div>
|
@@ -70,7 +70,7 @@
|
|
70
70
|
|
71
71
|
<div id="description">
|
72
72
|
<p>
|
73
|
-
Time-stamp: <
|
73
|
+
Time-stamp: <2008-02-20 10:43:52 takeshi> Author: Takeshi Nishimatsu
|
74
74
|
Project homepage: <a
|
75
75
|
href="http://isi-rb.rubyforge.org">isi-rb.rubyforge.org</a>/ Usage: ruby
|
76
76
|
isi.rb savedrecs.txt > savedrecs.bib
|
@@ -83,6 +83,7 @@ isi.rb savedrecs.txt > savedrecs.bib
|
|
83
83
|
|
84
84
|
<div class="name-list">
|
85
85
|
text/format
|
86
|
+
journaltitleabbreviation
|
86
87
|
</div>
|
87
88
|
</div>
|
88
89
|
|
@@ -105,10 +106,10 @@ isi.rb savedrecs.txt > savedrecs.bib
|
|
105
106
|
<tr class="top-aligned-row context-row">
|
106
107
|
<td class="context-item-name">ISI_RB_VERSION</td>
|
107
108
|
<td>=</td>
|
108
|
-
<td class="context-item-value">'1.1.
|
109
|
+
<td class="context-item-value">'1.1.5'</td>
|
109
110
|
<td width="3em"> </td>
|
110
111
|
<td class="context-item-desc">
|
111
|
-
Time-stamp: <
|
112
|
+
Time-stamp: <2008-02-20 10:43:52 takeshi> Author: Takeshi Nishimatsu
|
112
113
|
Project homepage: <a
|
113
114
|
href="http://isi-rb.rubyforge.org">isi-rb.rubyforge.org</a>/ Usage: ruby
|
114
115
|
isi.rb savedrecs.txt > savedrecs.bib
|
@@ -0,0 +1,114 @@
|
|
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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>File: journaltitleabbreviation.rb</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="fileHeader">
|
50
|
+
<h1>journaltitleabbreviation.rb</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>lib/journaltitleabbreviation.rb
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Wed Feb 20 10:12:05 -0500 2008</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
|
71
|
+
<div id="description">
|
72
|
+
<p>
|
73
|
+
journaltitleabbreviation.rb Convert a journal title to its abbreviation
|
74
|
+
Time-stamp: <2008-02-20 10:12:05 takeshi> Author: Takeshi Nishimatsu
|
75
|
+
Project homepage: <a
|
76
|
+
href="http://isi-rb.rubyforge.org">isi-rb.rubyforge.org</a>/ Usage:
|
77
|
+
"PHYSICAL REVIEW LETTERS".to_journal_title_abbreviation
|
78
|
+
Reference: <a
|
79
|
+
href="http://www.library.ubc.ca/scieng/coden.html">www.library.ubc.ca/scieng/coden.html</a>
|
80
|
+
by Kevin Lindstrom
|
81
|
+
</p>
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
|
86
|
+
</div>
|
87
|
+
|
88
|
+
|
89
|
+
</div>
|
90
|
+
|
91
|
+
|
92
|
+
<!-- if includes -->
|
93
|
+
|
94
|
+
<div id="section">
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
<!-- if method_list -->
|
104
|
+
|
105
|
+
|
106
|
+
</div>
|
107
|
+
|
108
|
+
|
109
|
+
<div id="validator-badges">
|
110
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
111
|
+
</div>
|
112
|
+
|
113
|
+
</body>
|
114
|
+
</html>
|
data/html/fr_class_index.html
CHANGED
data/html/fr_file_index.html
CHANGED
data/html/fr_method_index.html
CHANGED
@@ -21,8 +21,9 @@
|
|
21
21
|
<h1 class="section-bar">Methods</h1>
|
22
22
|
<div id="index-entries">
|
23
23
|
<a href="classes/ISI_record.html#M000001">new (ISI_record)</a><br />
|
24
|
-
<a href="classes/ARGF.html#
|
24
|
+
<a href="classes/ARGF.html#M000005">read_an_ISI_record (ARGF)</a><br />
|
25
25
|
<a href="classes/ISI_record.html#M000003">to_bibtex (ISI_record)</a><br />
|
26
|
+
<a href="classes/String.html#M000004">to_journal_title_abbreviation (String)</a><br />
|
26
27
|
<a href="classes/ISI_record.html#M000002">to_tohoku_DB (ISI_record)</a><br />
|
27
28
|
</div>
|
28
29
|
</div>
|
data/isi.gemspec
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# isi.gemspec -*-ruby-*-
|
2
|
-
# Time-stamp: <
|
2
|
+
# Time-stamp: <2008-02-20 10:35:57 takeshi>
|
3
3
|
##
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.autorequire = 'lib/isi.rb'
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.default_executable= 'isi2bibtex'
|
11
11
|
|
12
12
|
s.summary = 'ISI Export Format to BibTeX Format converter. (Formerly named isi.rb or isi2bibtex.rb.)'
|
13
|
-
s.files = Dir.glob("{html}/**/*") << 'lib/isi.rb' <<
|
13
|
+
s.files = Dir.glob("{html}/**/*") << 'lib/isi.rb' << 'lib/journaltitleabbreviation.rb' <<
|
14
14
|
'tests/isi_test.rb' << 'tests/example.isi' <<
|
15
15
|
'bin/isi2bibtex' << 'ChangeLog' << 'README' <<
|
16
16
|
'Rakefile' << 'isi.gemspec' << 'setup.rb' << 'NewsForRubyforge.txt'
|
data/lib/isi.rb
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
# Time-stamp: <
|
2
|
+
# Time-stamp: <2008-02-20 10:43:52 takeshi>
|
3
3
|
# Author: Takeshi Nishimatsu
|
4
4
|
# Project homepage: http://isi-rb.rubyforge.org/
|
5
5
|
# Usage: ruby isi.rb savedrecs.txt > savedrecs.bib
|
6
6
|
##
|
7
|
-
ISI_RB_VERSION = '1.1.
|
7
|
+
ISI_RB_VERSION = '1.1.5'
|
8
8
|
require 'text/format' # http://rubyforge.org/projects/text-format/
|
9
|
+
require 'journaltitleabbreviation'
|
9
10
|
class ISI_record
|
10
11
|
public
|
11
12
|
@@order = 0
|
@@ -25,11 +26,11 @@ public
|
|
25
26
|
"1\t" + # H Refereep - 0:nil 1:t
|
26
27
|
"0\t" + # I Invitedp - 0:nil 1:t
|
27
28
|
"Greatly\t" + # J Contribution
|
28
|
-
"#{
|
29
|
-
"#{
|
29
|
+
"#{ji2journal}\t" + # K Journal
|
30
|
+
"#{ji2journal}\t" + # L Journal in English
|
30
31
|
"#{@hash['VL']}\t" + # M Vol.
|
31
32
|
"#{@hash['IS']}\t" + # N No.
|
32
|
-
"#{@hash['AR'] or @hash['BP']}\t" +
|
33
|
+
"#{@hash['AP'] or @hash['AR'] or @hash['BP']}\t" +
|
33
34
|
"\t" + # P Page END
|
34
35
|
"#{@hash['PY']}\t" + # Q Year
|
35
36
|
"#{month_in_number}\t" + # R Month
|
@@ -58,6 +59,7 @@ public
|
|
58
59
|
NewKeywords= {#{fmt('ID')}},
|
59
60
|
Abstract = {#{fmt('AB')}},
|
60
61
|
ReprintURL = {#{fmt('UR')}},
|
62
|
+
DOI = {},
|
61
63
|
MyComment = {},
|
62
64
|
WhereIFiledIt= {}}\n\n"
|
63
65
|
end
|
@@ -75,13 +77,17 @@ private
|
|
75
77
|
def ji2journal
|
76
78
|
if @hash['JI'] =~ /(Jpn\. J\. Appl\. Phys\.).*/
|
77
79
|
return $1
|
78
|
-
|
80
|
+
elsif @hash['JI']
|
79
81
|
return @hash['JI'].to_s
|
82
|
+
else
|
83
|
+
@hash['SO'].to_journal_title_abbreviation or @hash['SO'] or ""
|
80
84
|
end
|
81
85
|
end
|
82
86
|
|
83
87
|
def pages
|
84
|
-
if @hash['
|
88
|
+
if @hash['AP']
|
89
|
+
return @hash['AP'] # article number of new APS journals (2008-)
|
90
|
+
elsif @hash['AR']
|
85
91
|
return @hash['AR'] # article number of new APS journals
|
86
92
|
elsif @hash['BP'] =~ /^art/
|
87
93
|
return @hash['EP'] # in the case of "BP art. no., EP 125111"
|
@@ -209,13 +215,13 @@ def ARGF.read_an_ISI_record
|
|
209
215
|
tag = $1
|
210
216
|
authors = [line.chomp.sub(/^(AU|AF|CR) /,'')]
|
211
217
|
while (line = gets) =~ /^ /
|
212
|
-
authors.push(line.chomp.sub(
|
218
|
+
authors.push(line.chomp.sub(/^\s+/,''))
|
213
219
|
end
|
214
220
|
hash[tag] = authors
|
215
221
|
redo
|
216
222
|
when /^(NR|PG|PY|TC) (.*)$/
|
217
223
|
hash[$1] = $2.to_i
|
218
|
-
when /^(TI|AB|DE|ID|SO|PT|JI|BP|EP|AR|PD|VL|IS|GA|PI|PU|PN|PA|J9|UT|DT|C1|RP|SI|SE|SN|SU|LA|DI|SC) (.*)$/
|
224
|
+
when /^(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) (.*)$/
|
219
225
|
tag = $1
|
220
226
|
str = $2
|
221
227
|
while (line = gets) =~ /^ /
|
@@ -0,0 +1,81 @@
|
|
1
|
+
# journaltitleabbreviation.rb
|
2
|
+
# Convert a journal title to its abbreviation
|
3
|
+
# Time-stamp: <2008-02-20 10:12:05 takeshi>
|
4
|
+
# Author: Takeshi Nishimatsu
|
5
|
+
# Project homepage: http://isi-rb.rubyforge.org/
|
6
|
+
# Usage: "PHYSICAL REVIEW LETTERS".to_journal_title_abbreviation
|
7
|
+
# Reference: http://www.library.ubc.ca/scieng/coden.html by Kevin Lindstrom
|
8
|
+
##
|
9
|
+
class String
|
10
|
+
JOURNAL_TITLE_ABBREVIATIONS = {
|
11
|
+
"" => "",
|
12
|
+
"ABSTRACTS OF PAPERS OF THE AMERICAN CHEMICAL SOCIETY" => "Abstr. Pap. Am. Chem. Soc.",
|
13
|
+
"ACTA CRYSTALLOGRAPHICA SECTION A-CRYSTAL PHYSICS DIFFRACTION THEORETICAL AND GENERAL CRYSTALLOGRAPHY" => "Acta Crystallogr. Sect. A",
|
14
|
+
"ACTA CRYSTALLOGRAPHICA SECTION B-STRUCTURAL SCIENCE" => "Acta Crystallogr. Sect. B",
|
15
|
+
"ACTA CRYSTALLOGRAPHICA SECTION C-CRYSTAL STRUCTURE COMMUNICATIONS" => "Acta Crystallogr. Sect. C-Cryst. Struct. Commun.",
|
16
|
+
"ADVANCED MATERIALS" => "Adv. Mater.",
|
17
|
+
"AMERICAN JOURNAL OF PHYSICS" => "Am. J. Phys.",
|
18
|
+
"ANGEWANDTE CHEMIE-INTERNATIONAL EDITION IN ENGLISH" => "Angew. Chem.-Int. Edit. Engl.",
|
19
|
+
"APPLIED PHYSICS LETTERS" => "Appl. Phys. Lett.",
|
20
|
+
"CANADIAN JOURNAL OF PHYSICS" => "Can. J. Phys.",
|
21
|
+
"CHEMICAL PHYSICS" => "Chem. Phys.",
|
22
|
+
"COMPUTATIONAL MATERIALS SCIENCE" => "Comput. Mater. Sci.",
|
23
|
+
"CZECHOSLOVAK JOURNAL OF PHYSICS" => "Czech. J. Phys.",
|
24
|
+
"DIAMOND AND RELATED MATERIALS" => "Diam. Relat. Mat.",
|
25
|
+
"FERROELECTRICS" => "Ferroelectrics",
|
26
|
+
"FIZIKA TVERDOGO TELA" => "Fiz. Tverd. Tela",
|
27
|
+
"INORGANIC CHEMISTRY" => "Inorg. Chem.",
|
28
|
+
"INTEGRATED FERROELECTRICS" => "Integr. Ferroelectr.",
|
29
|
+
"INTERMETALLICS" => "Intermetallics",
|
30
|
+
"JAPANESE JOURNAL OF APPLIED PHYSICS PART 1-REGULAR PAPERS BRIEF COMMUNICATIONS & REVIEW PAPERS" => "Jpn. J. Appl. Phys.",
|
31
|
+
"JAPANESE JOURNAL OF APPLIED PHYSICS PART 1-REGULAR PAPERS SHORT NOTES & REVIEW PAPERS" => "Jpn. J. Appl. Phys.",
|
32
|
+
"JAPANESE JOURNAL OF APPLIED PHYSICS PART 2-LETTERS & EXPRESS LETTERS" => "Jpn. J. Appl. Phys.",
|
33
|
+
"JAPANESE JOURNAL OF APPLIED PHYSICS PART 2-LETTERS" => "Jpn. J. Appl. Phys.",
|
34
|
+
"JAPANESE JOURNAL OF APPLIED PHYSICS" => "Jpn. J. Appl. Phys.",
|
35
|
+
"JOURNAL OF ALLOYS AND COMPOUNDS" => "J. Alloy. Compd.",
|
36
|
+
"JOURNAL OF APPLIED PHYSICS" => "J. Appl. Phys.",
|
37
|
+
"JOURNAL OF CHEMICAL PHYSICS" => "J. Chem. Phys.",
|
38
|
+
"JOURNAL OF COMPUTATIONAL PHYSICS" => "J. Comput. Phys.",
|
39
|
+
"JOURNAL OF ELECTRON MICROSCOPY" => "J. Electron Microsc.",
|
40
|
+
"JOURNAL OF MAGNETISM AND MAGNETIC MATERIALS" => "J. Magn. Magn. Mater.",
|
41
|
+
"JOURNAL OF PHYSICS AND CHEMISTRY OF SOLIDS" => "J. Phys. Chem. Solids",
|
42
|
+
"JOURNAL OF PHYSICS-CONDENSED MATTER" => "J. Phys.-Condes. Matter",
|
43
|
+
"JOURNAL OF SOLID STATE CHEMISTRY" => "J. Solid State Chem.",
|
44
|
+
"JOURNAL OF THE AMERICAN CHEMICAL SOCIETY" => "J. Am. Chem. Soc.",
|
45
|
+
"JOURNAL OF THE KOREAN PHYSICAL SOCIETY" => "J. Korean Phys. Soc.",
|
46
|
+
"JOURNAL OF THE PHYSICAL SOCIETY OF JAPAN" => "J. Phys. Soc. Jpn.",
|
47
|
+
"JOURNAL OF VACUUM SCIENCE & TECHNOLOGY A" => "J. Vac. Sci. Technol. A",
|
48
|
+
"MATERIALS RESEARCH BULLETIN" => "Mater. Res. Bull.",
|
49
|
+
"MATERIALS SCIENCE IN SEMICONDUCTOR PROCESSING" => "Mater. Sci. Semicond. Process",
|
50
|
+
"MEASUREMENT SCIENCE AND TECHNOLOGY" => "Meas. Sci. Technol.",
|
51
|
+
"MEASUREMENT SCIENCE & TECHNOLOGY" => "Meas. Sci. Technol.",
|
52
|
+
"MODELLING AND SIMULATION IN MATERIALS SCIENCE AND ENGINEERING" => "Model. Simul. Mater. Sci. Eng.",
|
53
|
+
"MOLECULAR PHYSICS" => "Mol. Phys.",
|
54
|
+
"NANO LETTERS" => "Nano Lett.",
|
55
|
+
"NATURE MATERIALS" => "Nat. Mater.",
|
56
|
+
"NATURE" => "Nature",
|
57
|
+
"OPTICAL MATERIALS" => "Opt. Mater.",
|
58
|
+
"PHYSICA B-CONDENSED MATTER" => "Physica B",
|
59
|
+
"PHYSICA C" => "Physica C",
|
60
|
+
"PHYSICA STATUS SOLIDI A-APPLICATIONS AND MATERIALS SCIENCE" => "Phys. Status Solidi A",
|
61
|
+
"PHYSICA STATUS SOLIDI A-APPLIED RESEARCH" => "Phys. Status Solidi A",
|
62
|
+
"PHYSICA STATUS SOLIDI B-BASIC RESEARCH" => "Phys. Status Solidi B",
|
63
|
+
"PHYSICAL CHEMISTRY CHEMICAL PHYSICS" => "Phys. Chem. Chem. Phys.",
|
64
|
+
"PHYSICAL REVIEW A" => "Phys. Rev. A",
|
65
|
+
"PHYSICAL REVIEW B" => "Phys. Rev. B",
|
66
|
+
"PHYSICAL REVIEW C" => "Phys. Rev. C",
|
67
|
+
"PHYSICAL REVIEW D" => "Phys. Rev. D",
|
68
|
+
"PHYSICAL REVIEW E" => "Phys. Rev. E",
|
69
|
+
"PHYSICAL REVIEW LETTERS" => "Phys. Rev. Lett.",
|
70
|
+
"REVIEWS OF MODERN PHYSICS" => "Rev. Mod. Phys.",
|
71
|
+
"SCIENCE" => "Science",
|
72
|
+
"SOLID STATE COMMUNICATIONS" => "Solid State Commun.",
|
73
|
+
"SOLID STATE SCIENCES" => "Solid State Sci.",
|
74
|
+
"THIN SOLID FILMS" => "Thin Solid Films",
|
75
|
+
"ZEITSCHRIFT FUR ANORGANISCHE UND ALLGEMEINE CHEMIE" => "Z. Anorg. Allg. Chem."
|
76
|
+
}
|
77
|
+
|
78
|
+
def to_journal_title_abbreviation
|
79
|
+
JOURNAL_TITLE_ABBREVIATIONS[self]
|
80
|
+
end
|
81
|
+
end
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: isi
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.1.
|
7
|
-
date:
|
6
|
+
version: 1.1.5
|
7
|
+
date: 2008-02-20 00:00:00 -05:00
|
8
8
|
summary: ISI Export Format to BibTeX Format converter. (Formerly named isi.rb or isi2bibtex.rb.)
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -31,14 +31,17 @@ authors:
|
|
31
31
|
files:
|
32
32
|
- html/created.rid
|
33
33
|
- html/classes
|
34
|
+
- html/classes/String.src
|
35
|
+
- html/classes/String.src/M000004.html
|
34
36
|
- html/classes/ISI_record.src
|
35
37
|
- html/classes/ISI_record.src/M000003.html
|
36
38
|
- html/classes/ISI_record.src/M000001.html
|
37
39
|
- html/classes/ISI_record.src/M000002.html
|
38
40
|
- html/classes/ARGF.html
|
39
41
|
- html/classes/ISI_record.html
|
42
|
+
- html/classes/String.html
|
40
43
|
- html/classes/ARGF.src
|
41
|
-
- html/classes/ARGF.src/
|
44
|
+
- html/classes/ARGF.src/M000005.html
|
42
45
|
- html/fr_file_index.html
|
43
46
|
- html/fr_method_index.html
|
44
47
|
- html/fr_class_index.html
|
@@ -48,7 +51,9 @@ files:
|
|
48
51
|
- html/files/README.html
|
49
52
|
- html/files/lib
|
50
53
|
- html/files/lib/isi_rb.html
|
54
|
+
- html/files/lib/journaltitleabbreviation_rb.html
|
51
55
|
- lib/isi.rb
|
56
|
+
- lib/journaltitleabbreviation.rb
|
52
57
|
- tests/isi_test.rb
|
53
58
|
- tests/example.isi
|
54
59
|
- bin/isi2bibtex
|