relaton-ieee 1.9.3 → 1.9.4

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
  SHA256:
3
- metadata.gz: f5ea9caf8eaf59f616cad6b137ff46fbfd0f28d38ad92c457467a3d19032d2a7
4
- data.tar.gz: 88b376e90082b8a6bb730e5a07b96930b292c092ece0ce82850a50a9d9cdeb0e
3
+ metadata.gz: 496eeef1c7a04e944fe7ea3133c6d6cf864039f5ce7d64ab049853818e2a8ac0
4
+ data.tar.gz: 5339c5f4b2871f24a112167ec07ad0a215b4fbf41410edaa623d7aec29d21574
5
5
  SHA512:
6
- metadata.gz: c5eeb5339a3d598da5509de3ffc2bb9231694f9a9edc6603b40cb2634ded16f6ebee01c0ffb222b624426075c7dfd28382bdfac428077097821215a017680f7f
7
- data.tar.gz: 9d8ee0f3c616d91d53ce9bfd54ceaf4a5cd458ac78471e69f7179daf6f5cf225681dadfe409011012f8c4e987e11f87e27a7e82b777aff2138873be5761aa617
6
+ metadata.gz: 32755edbd38f6310f082de0302a02355abc8f641d4b21de794c321d9f244ee69f8536b6ee2e288d1020bf1885439f0071fa7da10ca1c3c9097cac00b3a7f5e75
7
+ data.tar.gz: 5afecd68a82cda36434bff25c4f0c9720e55e399fc26835c5924c6b57429798f7dc00aaeaaf136c65e9cb409fde4df7614b06015eec16d99406d0b6b3b9d34e0
@@ -57,11 +57,15 @@ module RelatonIeee
57
57
  #
58
58
  # Parse title
59
59
  #
60
- # @return [RelatonBib::TypedTitleStringCollection]
60
+ # @return [Array<RelatonBib::TypedTitleString>]
61
61
  #
62
62
  def parse_title
63
- t = doc.at("./volume/article/title").text
64
- RelatonBib::TypedTitleString.from_string t
63
+ t = []
64
+ content = doc.at("./volume/article/title").text
65
+ if content =~ /\A(.+)\s-\sredline\z/i
66
+ t << RelatonBib::TypedTitleString.new(content: $1, type: "title-main")
67
+ end
68
+ t << RelatonBib::TypedTitleString.new(content: content, type: "main")
65
69
  end
66
70
 
67
71
  #
@@ -1,3 +1,3 @@
1
1
  module RelatonIeee
2
- VERSION = "1.9.3".freeze
2
+ VERSION = "1.9.4".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-ieee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.3
4
+ version: 1.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-13 00:00:00.000000000 Z
11
+ date: 2021-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: equivalent-xml