lib/holdings/item.rb in voyager_api-0.1.1 vs lib/holdings/item.rb in voyager_api-0.1.2

- old
+ new

@@ -113,11 +113,11 @@ # this may need to be refined # statusCode = 1 in first (and only) record means nothing has a item status set # assume available status = 'available' - # if statusCode > 1 some item status is set so some item is not available - if records.first[:statusCode].to_i > 1 + # if statusCode > 1 some item status is set so some item is not available; 11 (returned) is the exception + if records.first[:statusCode].to_i > 1 && records.first[:statusCode].to_i != 11 # if the number of records (item:itemRecord nodes) with statusCodes > 1 equals the total number of items # everything is unavailable; otherwise, only some items are unavailable if records.length == item_count.to_i status = 'not_available' else \ No newline at end of file