gared 0.0.21 → 0.0.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gared/primo.rb +2 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5b31908b108520003b9d2f7e4c37a3d7f8ccab124f577343b5e5a7b7f1473432
4
- data.tar.gz: 7ebd7bf7246c5c703f021f403460aa8b3ba1107842df23ebc1e6b0f40e89b9a5
3
+ metadata.gz: 12ad7a1d34ae412a0828d5a9ea7297743d631781248f2ecbcfe646e316cfc42e
4
+ data.tar.gz: 4c2dab22f6984e50971164a9c984b6034053e0c86a717130afe07b7c743b5fcf
5
5
  SHA512:
6
- metadata.gz: 169547fe7caaf6f0777460b7c76cae17c6583a4b3c064e130dd6ddc33bf50bf7984576b216a3c8554dd08f6911a7b2f930e6b4d6f1b2713df729c2c3fc3617ed
7
- data.tar.gz: dea903b2aee797c53f62956645bdfa99737fa29eec4019f670a139cac34ee46dca97954b52b217594c0d314d9513b2f6f08f9cea8b474b94248101d18d3628f1
6
+ metadata.gz: 3825a5a4bac92b0bb92f3b5fe5955c2a7780a489ceaae7718fc4eead41fa9788b567b2359a8a75efa51c88b8d65623580d27b93e3e29d95f41858ea9b76e66e9
7
+ data.tar.gz: 299626204c6f0b3f8cffdb46cc0548c41d7583fc094e3d0455ccead2f2198c4ec9805914036c8c5144874d6487ce980024ce52d016ce3955336351123204a9a2
@@ -55,7 +55,8 @@ module Gared
55
55
  h = Holding.new
56
56
  h.source_id = p.source_id
57
57
  h.source_name = 'Primo:'+@options[:institution]
58
- h.location = r['LIBRARIES']['LIBRARY'][0]['callNumber']
58
+
59
+ h.location = r['LIBRARIES']['LIBRARY'][0].nil? ? r['LIBRARIES']['LIBRARY']['callNumber'] : r['LIBRARIES']['LIBRARY'][0]['callNumber'] # there seem to be two cases, different between NLI and TAU, for example
59
60
  p.add_holding(h)
60
61
  ret << p
61
62
  rescue Exception
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gared
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: 0.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Asaf Bartov