evergreen_holdings 0.1.9 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/evergreen_holdings.rb +1 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '099d21142437946323589d61103ee3199d041045'
|
4
|
+
data.tar.gz: cfb387b243746a34c9f8233fa75699be53ff74e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f300bb0e70ff7dfa6942c8ee8da1a138809fd4c2340329ed2fb78e308d42d883bf26fe0bdc3d75367bee1d1b1d6b56f962710981b30ddbd478202a96f96f538
|
7
|
+
data.tar.gz: 77c78a3b402989e81c1a7c942c229fbb0b62e2a52ad819c262b17ef53ca6c51126dc17c2da12eb0a3e87039a294e6f690409aa88015f6ca6e34ce0581001f7b4
|
data/lib/evergreen_holdings.rb
CHANGED
@@ -163,7 +163,6 @@ module EvergreenHoldings
|
|
163
163
|
@copies.push Item.new barcode: item['__p'][2], call_number: vol['__p'][7], location: item['__p'][24], status: item['__p'][28], owning_lib: item['__p'][5]
|
164
164
|
else
|
165
165
|
begin
|
166
|
-
puts item['__p'][35]
|
167
166
|
@copies.push Item.new barcode: item['__p'][2], call_number: vol['__p'][7], due_date: item['__p'][35][0]['__p'][6], location: item['__p'][24], status: item['__p'][28], owning_lib: item['__p'][5]
|
168
167
|
rescue
|
169
168
|
@copies.push Item.new barcode: item['__p'][2], call_number: vol['__p'][7], location: item['__p'][24], status: item['__p'][28], owning_lib: item['__p'][5]
|
@@ -197,7 +196,7 @@ module EvergreenHoldings
|
|
197
196
|
# A physical copy of an item
|
198
197
|
class Item
|
199
198
|
attr_accessor :location, :status, :owning_lib
|
200
|
-
attr_reader :barcode, :call_number
|
199
|
+
attr_reader :barcode, :call_number, :due_date
|
201
200
|
def initialize data = {}
|
202
201
|
data.each do |k,v|
|
203
202
|
instance_variable_set("@#{k}", v) unless v.nil?
|