relaton-plateau 1.19.4 → 1.19.5

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: 9440584ea13e611d6139c74cd9ba79bbde532c76e2ba43d2fbc47c4fbe00388c
4
- data.tar.gz: cdb45b8fbb9a1d27d7c3580788056a3f9fa38b727d69444b1789ada6bd203e8b
3
+ metadata.gz: 545ae8694f6e2f5402330a94db340053e56c0bffade55c1fc4e893081c07136c
4
+ data.tar.gz: 07a852e2cf2876b89ee67ea1c44342ed9a552b4665afa2a49ed190fc10d00a39
5
5
  SHA512:
6
- metadata.gz: 6ea8f22a10154239a499e018756b3cfb8d84a7647860881f3b81c7ba4732d374d6a6db5f464d916fd6ceda68aaed023e7b5914399cbdbc8c07d3992906ce9914
7
- data.tar.gz: b380d9c2cdd1e311fd5e66948aedcf95e1645aa8c14abdb3d4140289cf48b3523325aa401fc34a85d8a22b1d41670f78e1b0a9083af91d1415ec43d67c9695a7
6
+ metadata.gz: e74442c6118818a2c4ee433de78a698faf0dcc46e2da6570ab5f615e9da701d8dcd559a40b4ba83a9b59136c76489b252ee96967a30a8bf66e5f2669a8b9a647
7
+ data.tar.gz: 0cf023a9eb8b4fed82307b4f59bcba0e26123fbd907c3116223583ba7a0c900ba34b676f68461e8565598f0700762968198f5592c6df3ee6e2513591cec89add
@@ -73,6 +73,8 @@ module Relaton
73
73
  end
74
74
 
75
75
  def to_all_editions(hits)
76
+ return self if hits.size < 2
77
+
76
78
  me = deep_clone
77
79
  me.docidentifier.each(&:remove_edition)
78
80
  me.id.sub!(/#{Regexp.escape(me.edition.content)}$/, "")
@@ -24,7 +24,7 @@ module Relaton
24
24
  end
25
25
 
26
26
  def search(code)
27
- all_editions = code.match?(/Handbook #\d+$/)
27
+ all_editions = code.match?(/ #\d+$/)
28
28
  rows = index.search do |r|
29
29
  id = all_editions ? r[:id].sub(/ \d+\.\d+$/, "") : r[:id]
30
30
  id == code
@@ -9,7 +9,7 @@ module Relaton
9
9
  private
10
10
 
11
11
  def parse_docnumber
12
- "Technical Report ##{@entry["slug"]}"
12
+ "Technical Report ##{@entry["slug"]} #{edition_number}"
13
13
  end
14
14
 
15
15
  def parse_abstract
@@ -17,7 +17,11 @@ module Relaton
17
17
  end
18
18
 
19
19
  def parse_edition
20
- RelatonBib::Edition.new content: "1.0", number: "1.0"
20
+ RelatonBib::Edition.new content: edition_number, number: edition_number
21
+ end
22
+
23
+ def edition_number
24
+ "1.0"
21
25
  end
22
26
 
23
27
  def parse_doctype
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Relaton
4
4
  module Plateau
5
- VERSION = "1.19.4"
5
+ VERSION = "1.19.5"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-plateau
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.19.4
4
+ version: 1.19.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-24 00:00:00.000000000 Z
11
+ date: 2024-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64