uw_catalog 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/uw_catalog/model/holding.rb +5 -4
- data/lib/uw_catalog/version.rb +1 -1
- metadata +2 -2
@@ -56,7 +56,8 @@ module UwCatalog
|
|
56
56
|
items.each do |item|
|
57
57
|
status_available, status_text = get_status(item)
|
58
58
|
status_list << {:item_id => item.id, :status_text => status_text,
|
59
|
-
:available => status_available, :copy_number=> item.copy_number,
|
59
|
+
:available => status_available, :copy_number=> item.copy_number,
|
60
|
+
:item_enum => item.item_enum}
|
60
61
|
end
|
61
62
|
if (concise)
|
62
63
|
total_count = status_list.size
|
@@ -82,14 +83,14 @@ module UwCatalog
|
|
82
83
|
when 2, 3
|
83
84
|
status_date = item.current_due_date.strftime(@@date_format) unless item.current_due_date.nil?
|
84
85
|
if (!item.item_enum.nil?)
|
85
|
-
status_text = "#{item.item_enum}
|
86
|
+
status_text = "#{item.item_enum} #{status_text}, Due on #{status_date}"
|
86
87
|
else
|
87
|
-
status_text = "
|
88
|
+
status_text = " #{status_text}, Due on #{status_date}."
|
88
89
|
end
|
89
90
|
else
|
90
91
|
status_date = item.item_status_date.strftime(@@date_format) unless item.item_status_date.nil?
|
91
92
|
if (!item.item_enum.nil?)
|
92
|
-
status_text = "#{item.item_enum}
|
93
|
+
status_text = "#{item.item_enum} #{status_text} #{status_date}"
|
93
94
|
else
|
94
95
|
status_text = "#{status_text} #{status_date}."
|
95
96
|
end
|
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.3
|
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-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: data_mapper
|