exlibris-primo 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/exlibris/primo/holding.rb +4 -6
- data/lib/exlibris/primo/version.rb +1 -1
- metadata +4 -4
@@ -43,11 +43,8 @@ module Exlibris
|
|
43
43
|
holding = attributes.delete(:holding)
|
44
44
|
# Instantiate new holding from input holding
|
45
45
|
# if it exists.
|
46
|
-
|
47
|
-
|
48
|
-
else
|
49
|
-
super self.class.defaults.merge(attributes)
|
50
|
-
end
|
46
|
+
super((holding.nil?) ? self.class.defaults.merge(attributes) :
|
47
|
+
holding.to_h.merge(attributes))
|
51
48
|
end
|
52
49
|
|
53
50
|
# Get the source config from the Primo config, based on source_id, if not already set.
|
@@ -72,7 +69,8 @@ module Exlibris
|
|
72
69
|
|
73
70
|
# Get the availability status from the Primo config based on availability status code, if not already set.
|
74
71
|
def availability_status
|
75
|
-
@availability_status ||=
|
72
|
+
@availability_status ||=
|
73
|
+
(availability_statuses[availability_status_code] || availability_status_code)
|
76
74
|
end
|
77
75
|
alias :availability :availability_status
|
78
76
|
alias :status :availability_status
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: exlibris-primo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -421,7 +421,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
421
421
|
version: '0'
|
422
422
|
segments:
|
423
423
|
- 0
|
424
|
-
hash:
|
424
|
+
hash: -1133596326614136531
|
425
425
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
426
426
|
none: false
|
427
427
|
requirements:
|
@@ -430,7 +430,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
430
430
|
version: '0'
|
431
431
|
segments:
|
432
432
|
- 0
|
433
|
-
hash:
|
433
|
+
hash: -1133596326614136531
|
434
434
|
requirements: []
|
435
435
|
rubyforge_project:
|
436
436
|
rubygems_version: 1.8.24
|