researchmap2bib 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1bf1c32cd1ffaa93eb5af908a81b3d973d24167d
4
- data.tar.gz: 4c6fd7376fa440c7b92fd63f5a85e92c98374a74
3
+ metadata.gz: 3a1b424061e842379fe8131e0c7900aaabfe6ccf
4
+ data.tar.gz: 86a4c40b23f9b6d09092887678ce92613447e416
5
5
  SHA512:
6
- metadata.gz: 3e98c445ac8cad83801523ab2ee1cfd3e533c3a93fbbfc3509171831db5785a1a4eec406d998d87f94624eec6c7a5e8497dc7726fbf4cbcbcfbadbfe922b16a1
7
- data.tar.gz: a1f3c0c9827f44073cd6b401a21480389c8ab535b25bb6bea1a53bebc32f76c3cb0407b0244ae23b7b499cbed7216a228cb6702890253b1cf891938e904c6472
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 = {<%= entry.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 = {<%= entry.author %>},
137
+ author = {<%= author %>},
135
138
  title = {<%= entry.title %>},
136
139
  booktitle = {<%= entry.journal %>},
137
140
  EOS
@@ -1,3 +1,3 @@
1
1
  module Researchmap2bib
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
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.2
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-24 00:00:00.000000000 Z
11
+ date: 2016-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip