uw_catalog 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/uw_catalog/model/holding.rb +3 -10
- data/lib/uw_catalog/version.rb +1 -1
- metadata +2 -2
@@ -98,24 +98,17 @@ module UwCatalog
|
|
98
98
|
status_guide = VoyagerItemStatus.status_guide(item.item_status.to_i)
|
99
99
|
status_available = status_guide[:available]
|
100
100
|
status_text = status_guide[:forward_status]
|
101
|
+
|
101
102
|
ret = status_text
|
102
103
|
status_date = nil
|
103
104
|
if status_guide[:display_date]
|
104
105
|
case item.item_status.to_i
|
105
106
|
when 2, 3
|
106
107
|
status_date = item.current_due_date.strftime(@@date_format) unless item.current_due_date.nil?
|
107
|
-
|
108
|
-
status_text = "#{item.item_enum} #{status_text}, Due on #{status_date}"
|
109
|
-
else
|
110
|
-
status_text = " #{status_text}, Due on #{status_date}."
|
111
|
-
end
|
108
|
+
status_text = "#{status_text}, Due on #{status_date}"
|
112
109
|
else
|
113
110
|
status_date = item.item_status_date.strftime(@@date_format) unless item.item_status_date.nil?
|
114
|
-
|
115
|
-
status_text = "#{item.item_enum} #{status_text} #{status_date}"
|
116
|
-
else
|
117
|
-
status_text = "#{status_text} #{status_date}."
|
118
|
-
end
|
111
|
+
status_text = "#{status_text} #{status_date}"
|
119
112
|
end
|
120
113
|
end
|
121
114
|
return [status_available, status_text]
|
data/lib/uw_catalog/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uw_catalog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.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-07-
|
12
|
+
date: 2013-07-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|