bisac 0.8 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/bisac/poa_line_item.rb +22 -1
- data/specs/new_po_line_item_spec.rb +2 -2
- metadata +2 -2
data/Rakefile
CHANGED
data/lib/bisac/poa_line_item.rb
CHANGED
@@ -65,14 +65,35 @@ module Bisac
|
|
65
65
|
|
66
66
|
def status_text
|
67
67
|
case self.status
|
68
|
-
when 1 then "Title Shipped As Ordered"
|
68
|
+
when 1 then "Accepted: Title Shipped As Ordered"
|
69
|
+
when 2 then "Accepted: Substitute Title Shipped As Ordered"
|
69
70
|
when 3 then "Cancelled: Future Publication"
|
71
|
+
when 4 then "Cancelled: Future Publication" # date available
|
72
|
+
when 5 then "Backordered: Future Publication"
|
70
73
|
when 6 then "Cancelled: Out of Stock"
|
71
74
|
when 7 then "Backordered: Out of Stock"
|
75
|
+
when 8 then "Cancelled: Out of Print"
|
72
76
|
when 9 then "Partial Ship: Cancel Rest"
|
73
77
|
when 10 then "Partial Ship: Backorder Rest"
|
78
|
+
when 11 then "Cancelled: HB Out of Print, PB Available"
|
79
|
+
when 12 then "Cancelled: PB Out of Print, HB Available"
|
80
|
+
when 13 then "Cancelled: Out of Print, Alt. Edition Available"
|
81
|
+
when 14 then "Backordered: Subtitute Title on BO."
|
82
|
+
when 15 then "Cancelled: No Rights"
|
83
|
+
when 16 then "Cancelled: Not our Publication"
|
84
|
+
when 17 then "Accepted: Free Book"
|
85
|
+
when 18 then "Cancelled: BO Expired"
|
86
|
+
when 19 then "Cancelled: Subscription Only"
|
74
87
|
when 20 then "Cancelled: Not Carried"
|
88
|
+
when 21 then "Cancelled: Not Carried"
|
89
|
+
when 22 then "Cancelled: Import Title"
|
90
|
+
when 23 then "Cancelled: Not Available for Wholesale"
|
91
|
+
when 24 then "Cancelled: Kits Not Available"
|
92
|
+
when 25 then "Cancelled: Not Available"
|
93
|
+
when 26 then "Cancelled: New Price From Publisher"
|
94
|
+
when 27 then "Cancelled: ISBN Not Recognised"
|
75
95
|
when 28 then "Cancelled: Out of Print"
|
96
|
+
when 29 then "Backordered: At Customers Request"
|
76
97
|
else
|
77
98
|
"UNKNOWN"
|
78
99
|
end
|
@@ -19,7 +19,7 @@ context "A new bisac purchase order line item object" do
|
|
19
19
|
item.sequence_number.should eql(3)
|
20
20
|
item.po_number.should eql("14976")
|
21
21
|
item.line_item_number.should eql("0000000001")
|
22
|
-
item.isbn.should eql("
|
22
|
+
item.isbn.should eql("9780297851325")
|
23
23
|
item.qty.should eql(1)
|
24
24
|
item.catalogue_code.should eql("0")
|
25
25
|
item.price.should eql(0)
|
@@ -32,7 +32,7 @@ context "A new bisac purchase order line item object" do
|
|
32
32
|
item.sequence_number.should eql(33)
|
33
33
|
item.po_number.should eql("13424")
|
34
34
|
item.line_item_number.should eql("0000000011")
|
35
|
-
item.isbn.should eql("
|
35
|
+
item.isbn.should eql("9780753821497")
|
36
36
|
item.qty.should eql(2)
|
37
37
|
item.catalogue_code.should eql("0")
|
38
38
|
item.price.should eql(0)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bisac
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Healy
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-09-
|
12
|
+
date: 2008-09-08 00:00:00 +10:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|