alma 0.6.1 → 0.6.2

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: e09da26db9596cc2e8a1471efd1f75f6c8e29264860614ae7ca5a3b79567b2c0
4
- data.tar.gz: 808d2a2f12fa77077e030f8c5b2bb8f072fdbe69f2f775b24be36e7de16fb285
3
+ metadata.gz: d0d583e635be32925e6228ecbda6cf61c6d441a65570abcf5fe2345c8e9c05dd
4
+ data.tar.gz: d33669af2ede76a76c4eb9db3b20c7ed720193c416db124db18ddfff56719cb5
5
5
  SHA512:
6
- metadata.gz: bcbad60834c1231169c93ee6b37fc458085e6deafbc9bb8c9064cc8e9ac0cbccc40edf569d912f22232bbe436f9f4386430011e6c865d250f2b02194cd529cc8
7
- data.tar.gz: f8a8d01ab65472572fa263a1549c10af53638c83a934501c05faca5310c747873c3c1ba33b4d9c7190f3f752959686d58d7ca572f1c4e42c2d8f1ed4110c685e
6
+ metadata.gz: 645dc21be84f63fa8b7359b33e632b71f591297f73017430739c5148a506b07bbe8397b3fd063c71a4b3b8a2bcca53b12fab4a900c60c90bf424c00907748ebd
7
+ data.tar.gz: 1382a507e1d877b02ba5f9b0308542b82fa74c3812c110ce2f9988389d99cb8267175801dbbcb14754c5602973aedbec2e3c95dc30a56bd8d776c706d7001d31
@@ -35,10 +35,12 @@ module Alma
35
35
  # Limit to only subfields codes for which we have a mapping
36
36
  select { |sf| subfield_codes.key? sf["code"] }.each { |f|
37
37
  key = subfield_codes[f["code"]]
38
- if h.key? key
39
- h[key] << " " + f["content"]
40
- else
41
- h[key] = f["content"]
38
+ unless key.blank? || f["content"].blank?
39
+ if h.key? key
40
+ h[key] << " " + f["content"]
41
+ else
42
+ h[key] = f["content"]
43
+ end
42
44
  end
43
45
  }
44
46
  holdings << h
data/lib/alma/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alma
4
- VERSION = "0.6.1"
4
+ VERSION = "0.6.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jennifer Anton
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2024-09-12 00:00:00.000000000 Z
13
+ date: 2024-12-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httparty