researchmap2bib 0.3.2 → 0.3.3
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.
- checksums.yaml +4 -4
- data/README.md +0 -3
- data/lib/researchmap2bib/generator.rb +6 -3
- data/lib/researchmap2bib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3a1b424061e842379fe8131e0c7900aaabfe6ccf
|
|
4
|
+
data.tar.gz: 86a4c40b23f9b6d09092887678ce92613447e416
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7f5de5801cb4582676bd4bd8fb1d3ad1ff2d4f0cb0f0b2d7599b11f3a01ff153c02ffb3394b0d3a9185e192863efc5f630c32af0c8586c99c164964e46bf162f
|
|
7
|
+
data.tar.gz: b519d30bfa2a539d66a70b3e60ca1eb27242d54100d344aeceb18e007a6cd05072c9b976255dd5d1a2ce80cd11c81f5f4231a028fc3486710ed19ebc34535929
|
data/README.md
CHANGED
|
@@ -27,8 +27,6 @@ resarchmap2bib generate researcher.zip
|
|
|
27
27
|
|
|
28
28
|
sample.texは確認用のLaTeXファイルです.uplatex用のクラスファイルが設定してありますので,ご自身の環境にあわせて変更してください.
|
|
29
29
|
|
|
30
|
-
なお,bibtexを走らせると,著者名の数が多すぎるなどのエラーになる場合があります.こちらについては手動でご修正してください.
|
|
31
|
-
|
|
32
30
|
## Development
|
|
33
31
|
|
|
34
32
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
@@ -43,4 +41,3 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERN
|
|
|
43
41
|
## License
|
|
44
42
|
|
|
45
43
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
|
46
|
-
|
|
@@ -50,7 +50,7 @@ EOS
|
|
|
50
50
|
|
|
51
51
|
results.join("\n")
|
|
52
52
|
end
|
|
53
|
-
|
|
53
|
+
|
|
54
54
|
def read_researchmap(file_name)
|
|
55
55
|
entries = Zip::File.open(file_name) do |zip_file|
|
|
56
56
|
entry = zip_file.glob('*\/paper.xml').first
|
|
@@ -99,13 +99,16 @@ EOS
|
|
|
99
99
|
# 3:研究論文(大学,研究機関紀要)、
|
|
100
100
|
# 4:研究論文(研究会,シンポジウム資料等)、5:研究論文(その他学術会議資料等)
|
|
101
101
|
def make_bibliography_entry(entry)
|
|
102
|
+
author = concatenate_authors(entry.author)
|
|
103
|
+
|
|
102
104
|
year, month = year_month(entry.publicationDate)
|
|
103
105
|
month = month.to_i
|
|
106
|
+
|
|
104
107
|
case entry.paperType.to_i
|
|
105
108
|
when 1, 3 then
|
|
106
109
|
record = <<EOS
|
|
107
110
|
@Article{<%= entry.id %>,
|
|
108
|
-
author = {<%=
|
|
111
|
+
author = {<%= author %>},
|
|
109
112
|
title = {<%= entry.title %>},
|
|
110
113
|
journal = {<%= entry.journal %>},
|
|
111
114
|
EOS
|
|
@@ -131,7 +134,7 @@ EOS
|
|
|
131
134
|
else
|
|
132
135
|
record = <<EOS
|
|
133
136
|
@InProceedings{<%= entry.id %>,
|
|
134
|
-
author = {<%=
|
|
137
|
+
author = {<%= author %>},
|
|
135
138
|
title = {<%= entry.title %>},
|
|
136
139
|
booktitle = {<%= entry.journal %>},
|
|
137
140
|
EOS
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: researchmap2bib
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yoshihide Chubachi
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-08-
|
|
11
|
+
date: 2016-08-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubyzip
|