enju_library 0.1.0.pre6 → 0.1.0.pre7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. data/app/controllers/accepts_controller.rb +83 -0
  2. data/app/models/accept.rb +37 -0
  3. data/app/models/basket.rb +63 -0
  4. data/app/models/library.rb +2 -2
  5. data/app/models/library_group.rb +0 -1
  6. data/app/models/shelf.rb +1 -1
  7. data/app/views/accepts/_form.html.erb +11 -0
  8. data/app/views/accepts/_list.html.erb +31 -0
  9. data/app/views/accepts/edit.html.erb +13 -0
  10. data/app/views/accepts/index.csv.erb +4 -0
  11. data/app/views/accepts/index.html.erb +49 -0
  12. data/app/views/accepts/index.js.erb +1 -0
  13. data/app/views/accepts/new.html.erb +14 -0
  14. data/app/views/accepts/show.html.erb +31 -0
  15. data/config/locales/en.yml +86 -0
  16. data/config/locales/ja.yml +86 -0
  17. data/config/routes.rb +5 -0
  18. data/db/migrate/080_create_library_groups.rb +0 -1
  19. data/db/migrate/120_create_baskets.rb +12 -0
  20. data/db/migrate/20120319173203_create_accepts.rb +14 -0
  21. data/lib/enju_library/engine.rb +2 -0
  22. data/lib/enju_library/version.rb +1 -1
  23. data/spec/controllers/accepts_controller_spec.rb +304 -0
  24. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  25. data/spec/dummy/app/models/ability.rb +2 -0
  26. data/spec/dummy/config/application.rb +4 -2
  27. data/spec/dummy/db/migrate/033_create_checkouts.rb +25 -0
  28. data/spec/dummy/db/migrate/132_create_circulation_statuses.rb +16 -0
  29. data/spec/dummy/db/migrate/20081030023412_create_checkout_types.rb +17 -0
  30. data/spec/dummy/db/migrate/20081030023518_create_user_group_has_checkout_types.rb +25 -0
  31. data/spec/dummy/db/migrate/20110328130826_add_current_checkout_count_to_user_group_has_checkout_type.rb +9 -0
  32. data/spec/dummy/db/migrate/20121119153944_add_manifestation_id_to_item.rb +5 -0
  33. data/spec/dummy/db/schema.rb +83 -1
  34. data/spec/dummy/db/test.sqlite3 +0 -0
  35. data/spec/dummy/tmp/cache/4AD/470/country_all +0 -0
  36. data/spec/factories/accepts.rb +9 -0
  37. data/spec/factories/basket.rb +5 -0
  38. data/spec/factories/item.rb +7 -0
  39. data/spec/fixtures/baskets.yml +80 -0
  40. data/spec/fixtures/checkout_types.yml +34 -0
  41. data/spec/fixtures/checkouts.yml +163 -0
  42. data/spec/fixtures/circulation_statuses.yml +106 -0
  43. data/spec/fixtures/exemplifies.yml +160 -0
  44. data/spec/fixtures/items.yml +259 -0
  45. data/spec/models/accept_spec.rb +23 -0
  46. data/spec/models/basket_spec.rb +25 -0
  47. data/spec/models/library_group_spec.rb +6 -0
  48. data/spec/routing/accepts_routing_spec.rb +27 -0
  49. data/spec/spec_helper.rb +3 -0
  50. data/spec/views/accepts/edit.html.erb_spec.rb +18 -0
  51. data/spec/views/accepts/index.html.erb_spec.rb +27 -0
  52. data/spec/views/accepts/new.html.erb_spec.rb +31 -0
  53. data/spec/views/accepts/show.html.erb_spec.rb +17 -0
  54. metadata +140 -55
  55. data/spec/dummy/db/development.sqlite3 +0 -0
  56. data/spec/dummy/solr/data/test/index/_38.fdt +0 -0
  57. data/spec/dummy/solr/data/test/index/_38.fdx +0 -0
  58. data/spec/dummy/solr/data/test/index/_38.fnm +0 -3
  59. data/spec/dummy/solr/data/test/index/_38.frq +0 -1
  60. data/spec/dummy/solr/data/test/index/_38.nrm +0 -1
  61. data/spec/dummy/solr/data/test/index/_38.prx +0 -0
  62. data/spec/dummy/solr/data/test/index/_38.tii +0 -0
  63. data/spec/dummy/solr/data/test/index/_38.tis +0 -0
  64. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  65. data/spec/dummy/solr/data/test/index/segments_7f +0 -0
  66. data/spec/dummy/solr/data/test/spellchecker/segments.gen +0 -0
  67. data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
@@ -0,0 +1,34 @@
1
+ # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
+
3
+ checkout_type_00001:
4
+ id: 1
5
+ name: book
6
+ display_name: book
7
+ note:
8
+ position: 1
9
+ checkout_type_00002:
10
+ id: 2
11
+ name: serial
12
+ display_name: serial
13
+ note:
14
+ position: 2
15
+ checkout_type_00003:
16
+ id: 3
17
+ name: cd
18
+ display_name: cd
19
+ note:
20
+ position: 3
21
+
22
+ # == Schema Information
23
+ #
24
+ # Table name: checkout_types
25
+ #
26
+ # id :integer not null, primary key
27
+ # name :string(255) not null
28
+ # display_name :text
29
+ # note :text
30
+ # position :integer
31
+ # created_at :datetime not null
32
+ # updated_at :datetime not null
33
+ #
34
+
@@ -0,0 +1,163 @@
1
+ ---
2
+ checkout_00001:
3
+ item_id: 1
4
+ updated_at: 2007-09-08 01:20:22.000026 +09:00
5
+ lock_version: 0
6
+ user_id: 1
7
+ id: 1
8
+ librarian_id: 1
9
+ checkout_renewal_count: 0
10
+ due_date: <%= 2.day.from_now.beginning_of_day %>
11
+ created_at: 2007-09-08 01:19:02.285850 +09:00
12
+ basket_id: 1
13
+ checkout_00002:
14
+ item_id: 2
15
+ updated_at: 2007-09-08 01:34:25.103403 +09:00
16
+ lock_version: 0
17
+ user_id: 1
18
+ id: 2
19
+ librarian_id: 1
20
+ checkout_renewal_count: 0
21
+ due_date: <%= 2.day.from_now.beginning_of_day %>
22
+ created_at: 2007-09-08 01:34:07.363023 +09:00
23
+ basket_id: 1
24
+ checkout_00003:
25
+ item_id: 3
26
+ updated_at: 2007-09-09 21:15:11.648996 +09:00
27
+ lock_version: 0
28
+ user_id: 3
29
+ id: 3
30
+ librarian_id: 1
31
+ checkout_renewal_count: 0
32
+ due_date: <%= 2.day.from_now.beginning_of_day %>
33
+ created_at: 2007-09-08 01:39:03.210081 +09:00
34
+ basket_id: 2
35
+ checkout_00004:
36
+ item_id: 4
37
+ updated_at: 2007-09-09 21:15:11.648996 +09:00
38
+ lock_version: 0
39
+ user_id: 1
40
+ id: 4
41
+ librarian_id: 1
42
+ checkout_renewal_count: 0
43
+ due_date: <%= 2.day.from_now.beginning_of_day %>
44
+ created_at: 2007-09-08 01:39:04.210081 +09:00
45
+ basket_id: 3
46
+ checkout_00005:
47
+ item_id: 5
48
+ updated_at: 2007-09-09 21:15:11.648996 +09:00
49
+ lock_version: 0
50
+ user_id: 2
51
+ id: 5
52
+ librarian_id: 1
53
+ checkout_renewal_count: 0
54
+ due_date: <%= 2.day.from_now.beginning_of_day %>
55
+ created_at: 2007-09-08 01:39:05.210081 +09:00
56
+ basket_id: 4
57
+ checkout_00006:
58
+ item_id: 7
59
+ updated_at: 2007-09-09 21:15:11.648996 +09:00
60
+ lock_version: 0
61
+ user_id: 2
62
+ id: 6
63
+ librarian_id: 2
64
+ checkout_renewal_count: 0
65
+ due_date: 2010-09-15 00:00:00 +09:00
66
+ created_at: 2007-09-08 01:39:06.210081 +09:00
67
+ checkout_00007:
68
+ item_id: 7
69
+ updated_at: 2007-09-09 21:15:11.648996 +09:00
70
+ lock_version: 0
71
+ user_id: 1
72
+ id: 7
73
+ librarian_id: 1
74
+ checkout_renewal_count: 0
75
+ due_date: <%= 2.day.from_now.beginning_of_day %>
76
+ created_at: 2007-09-08 01:39:07.210081 +09:00
77
+ basket_id: 5
78
+ checkout_00008:
79
+ item_id: 8
80
+ updated_at: 2007-09-09 21:15:11.648996 +09:00
81
+ lock_version: 0
82
+ user_id: 2
83
+ id: 8
84
+ librarian_id: 1
85
+ checkout_renewal_count: 0
86
+ due_date: <%= 2.day.from_now.beginning_of_day %>
87
+ created_at: 2007-09-08 01:39:08.210081 +09:00
88
+ basket_id: 6
89
+ checkout_00009:
90
+ item_id: 9
91
+ updated_at: 2007-09-09 21:15:11.648996 +09:00
92
+ lock_version: 0
93
+ user_id: 3
94
+ id: 9
95
+ librarian_id: 1
96
+ checkout_renewal_count: 1
97
+ due_date: <%= 2.day.from_now.beginning_of_day %>
98
+ created_at: 2007-09-08 01:39:09.210081 +09:00
99
+ basket_id: 7
100
+ checkout_00010:
101
+ item_id: 13
102
+ updated_at: 2007-09-09 21:15:11.648996 +09:00
103
+ lock_version: 0
104
+ user_id: 3
105
+ id: 10
106
+ librarian_id: 1
107
+ checkout_renewal_count: 1
108
+ due_date: <%= 2.day.from_now.beginning_of_day %>
109
+ created_at: 2007-09-08 01:39:10.210081 +09:00
110
+ basket_id: 7
111
+ checkout_00011:
112
+ item_id: 14
113
+ updated_at: 2007-09-09 21:15:11.648996 +09:00
114
+ lock_version: 0
115
+ user_id: 1
116
+ id: 11
117
+ librarian_id: 1
118
+ checkout_renewal_count: 1
119
+ due_date: <%= 180.days.ago.beginning_of_day %>
120
+ created_at: 2007-09-08 01:39:11.210081 +09:00
121
+ basket_id: 7
122
+ checkout_00012:
123
+ item_id: 6
124
+ updated_at: 2007-09-09 21:15:11.648996 +09:00
125
+ lock_version: 0
126
+ user_id: 3
127
+ id: 12
128
+ librarian_id: 1
129
+ checkout_renewal_count: 1
130
+ due_date: <%= 180.days.ago.beginning_of_day %>
131
+ created_at: 2007-09-08 01:39:12.210081 +09:00
132
+ basket_id: 8
133
+ checkin_id: 5
134
+ checkout_00013:
135
+ item_id: 7
136
+ updated_at: 2007-09-09 21:15:11.648996 +09:00
137
+ lock_version: 0
138
+ user_id: 3
139
+ id: 13
140
+ librarian_id: 1
141
+ checkout_renewal_count: 1
142
+ due_date: <%= 180.days.ago.beginning_of_day %>
143
+ created_at: 2007-09-08 01:39:13.210081 +09:00
144
+ basket_id: 8
145
+ checkin_id: 4
146
+
147
+ # == Schema Information
148
+ #
149
+ # Table name: checkouts
150
+ #
151
+ # id :integer not null, primary key
152
+ # user_id :integer
153
+ # item_id :integer not null
154
+ # checkin_id :integer
155
+ # librarian_id :integer
156
+ # basket_id :integer
157
+ # due_date :datetime
158
+ # checkout_renewal_count :integer default(0), not null
159
+ # lock_version :integer default(0), not null
160
+ # created_at :datetime not null
161
+ # updated_at :datetime not null
162
+ #
163
+
@@ -0,0 +1,106 @@
1
+ ---
2
+ circulation_status_00001:
3
+ name: Available For Pickup
4
+ display_name: "en: Available For Pickup\r\n\
5
+ ja: 持ち出し可能"
6
+ id: 1
7
+ note: ""
8
+ position: 1
9
+ circulation_status_00002:
10
+ name: Available On Shelf
11
+ display_name: "en: Available on Shelf\r\n\
12
+ ja: 在架(利用可能)"
13
+ id: 2
14
+ note: ""
15
+ position: 2
16
+ circulation_status_00003:
17
+ name: Circulation Status Undefined
18
+ display_name: Circulation Status Undefined
19
+ id: 3
20
+ note: ""
21
+ position: 3
22
+ circulation_status_00004:
23
+ name: Claimed Returned Or Never Borrowed
24
+ display_name: Claimed Returned Or Never Borrowed
25
+ id: 4
26
+ note: ""
27
+ position: 4
28
+ circulation_status_00005:
29
+ name: In Process
30
+ display_name: "en: In Process\r\n\
31
+ ja: 作業中"
32
+ id: 5
33
+ note: ""
34
+ position: 5
35
+ circulation_status_00006:
36
+ name: In Transit Between Library Locations
37
+ display_name: In Transit Between Library Locations
38
+ id: 6
39
+ note: ""
40
+ position: 6
41
+ circulation_status_00007:
42
+ name: Lost
43
+ display_name: "en: Lost\r\n\
44
+ ja: 紛失"
45
+ id: 7
46
+ note: ""
47
+ position: 7
48
+ circulation_status_00008:
49
+ name: Missing
50
+ display_name: "en: Missing\r\n\
51
+ ja: 行方不明"
52
+ id: 8
53
+ note: ""
54
+ position: 8
55
+ circulation_status_00009:
56
+ name: Not Available
57
+ display_name: "en: Not Available\r\n\
58
+ ja: 利用不可"
59
+ id: 9
60
+ note: ""
61
+ position: 9
62
+ circulation_status_00010:
63
+ name: On Loan
64
+ display_name: "en: On Loan\r\n\
65
+ ja: 貸出中"
66
+ id: 10
67
+ note: ""
68
+ position: 10
69
+ circulation_status_00011:
70
+ name: On Order
71
+ display_name: On Order
72
+ id: 11
73
+ note: ""
74
+ position: 11
75
+ circulation_status_00012:
76
+ name: Pending Transfer
77
+ display_name: Pending Transfer
78
+ id: 12
79
+ note: ""
80
+ position: 12
81
+ circulation_status_00013:
82
+ name: Recalled
83
+ display_name: Recalled
84
+ id: 13
85
+ note: ""
86
+ position: 13
87
+ circulation_status_00014:
88
+ name: Waiting To Be Reshelved
89
+ display_name: Waiting To Be Reshelved
90
+ id: 14
91
+ note: ""
92
+ position: 14
93
+ circulation_status_00015:
94
+ name: Not arrived
95
+ display_name: "en: Not arrived\r\n\
96
+ ja: 未着"
97
+ id: 15
98
+ note: ""
99
+ position: 15
100
+ circulation_status_00016:
101
+ name: Removed
102
+ display_name: "en: Removed\r\n\
103
+ ja: 除籍済み"
104
+ id: 16
105
+ note: ""
106
+ position: 16
@@ -0,0 +1,160 @@
1
+ ---
2
+ exemplify_00001:
3
+ updated_at: 2008-01-11 23:28:19.277110 +09:00
4
+ item_id: 1
5
+ manifestation_id: 1
6
+ id: 1
7
+ created_at: 2008-01-11 23:28:19.277110 +09:00
8
+ position: 1
9
+ exemplify_00002:
10
+ updated_at: 2008-01-11 23:28:57.068191 +09:00
11
+ item_id: 2
12
+ manifestation_id: 2
13
+ id: 2
14
+ created_at: 2008-01-11 23:28:57.068191 +09:00
15
+ exemplify_00003:
16
+ updated_at: 2008-01-11 23:32:03.701425 +09:00
17
+ item_id: 3
18
+ manifestation_id: 3
19
+ id: 3
20
+ created_at: 2008-01-11 23:32:03.701425 +09:00
21
+ exemplify_00004:
22
+ updated_at: 2008-01-11 02:34:20.183962 +09:00
23
+ item_id: 4
24
+ manifestation_id: 1
25
+ id: 4
26
+ created_at: 2008-01-11 02:34:20.183962 +09:00
27
+ position: 2
28
+ exemplify_00005:
29
+ updated_at: 2008-01-11 02:34:32.352223 +09:00
30
+ item_id: 5
31
+ manifestation_id: 2
32
+ id: 5
33
+ created_at: 2008-01-11 02:34:32.352223 +09:00
34
+ exemplify_00006:
35
+ updated_at: 2008-01-11 23:35:36.467584 +09:00
36
+ item_id: 6
37
+ manifestation_id: 3
38
+ id: 6
39
+ created_at: 2008-01-11 23:35:36.467584 +09:00
40
+ exemplify_00007:
41
+ updated_at: 2008-01-11 02:40:24.038276 +09:00
42
+ item_id: 7
43
+ manifestation_id: 1
44
+ id: 7
45
+ created_at: 2008-01-11 02:40:24.038276 +09:00
46
+ position: 3
47
+ exemplify_00008:
48
+ updated_at: 2008-01-11 02:40:40.316742 +09:00
49
+ item_id: 8
50
+ manifestation_id: 2
51
+ id: 8
52
+ created_at: 2008-01-11 02:40:40.316742 +09:00
53
+ exemplify_00009:
54
+ updated_at: 2008-01-11 02:40:55.664604 +09:00
55
+ item_id: 9
56
+ manifestation_id: 3
57
+ id: 9
58
+ created_at: 2008-01-11 02:40:55.664604 +09:00
59
+ exemplify_00010:
60
+ updated_at: 2008-01-11 02:44:37.135721 +09:00
61
+ item_id: 10
62
+ manifestation_id: 1
63
+ id: 10
64
+ created_at: 2008-01-11 02:44:37.135721 +09:00
65
+ position: 4
66
+ exemplify_00011:
67
+ updated_at: 2008-01-11 02:44:37.135721 +09:00
68
+ item_id: 11
69
+ manifestation_id: 1
70
+ id: 11
71
+ created_at: 2008-01-11 02:44:37.135721 +09:00
72
+ position: 5
73
+ exemplify_00012:
74
+ updated_at: 2008-01-11 02:44:37.135721 +09:00
75
+ item_id: 12
76
+ manifestation_id: 2
77
+ id: 12
78
+ created_at: 2008-01-11 02:44:37.135721 +09:00
79
+ exemplify_00013:
80
+ updated_at: 2008-01-11 02:44:37.135721 +09:00
81
+ item_id: 13
82
+ manifestation_id: 2
83
+ id: 13
84
+ created_at: 2008-01-11 02:44:37.135721 +09:00
85
+ exemplify_00014:
86
+ updated_at: 2008-01-11 02:44:37.135721 +09:00
87
+ item_id: 14
88
+ manifestation_id: 2
89
+ id: 14
90
+ created_at: 2008-01-11 02:44:37.135721 +09:00
91
+ exemplify_00015:
92
+ updated_at: 2008-01-11 02:44:37.135721 +09:00
93
+ item_id: 15
94
+ manifestation_id: 2
95
+ id: 15
96
+ created_at: 2008-01-11 02:44:37.135721 +09:00
97
+ exemplify_00016:
98
+ updated_at: 2008-01-11 02:44:37.135721 +09:00
99
+ item_id: 16
100
+ manifestation_id: 3
101
+ id: 16
102
+ created_at: 2008-01-11 02:44:37.135721 +09:00
103
+ exemplify_00017:
104
+ updated_at: 2008-01-11 02:44:37.135721 +09:00
105
+ item_id: 17
106
+ manifestation_id: 3
107
+ id: 17
108
+ created_at: 2008-01-11 02:44:37.135721 +09:00
109
+ exemplify_00018:
110
+ updated_at: 2008-01-11 02:44:37.135721 +09:00
111
+ item_id: 18
112
+ manifestation_id: 1
113
+ id: 18
114
+ created_at: 2008-01-11 02:44:37.135721 +09:00
115
+ position: 6
116
+ exemplify_00019:
117
+ updated_at: 2008-01-11 02:44:37.135721 +09:00
118
+ item_id: 19
119
+ manifestation_id: 1
120
+ id: 19
121
+ created_at: 2008-01-11 02:44:37.135721 +09:00
122
+ position: 7
123
+ exemplify_00020:
124
+ updated_at: 2008-01-11 02:44:37.135721 +09:00
125
+ item_id: 20
126
+ manifestation_id: 1
127
+ id: 20
128
+ created_at: 2008-01-11 02:44:37.135721 +09:00
129
+ position: 8
130
+ exemplify_00021:
131
+ updated_at: 2008-01-11 02:44:37.135721 +09:00
132
+ item_id: 21
133
+ manifestation_id: 11
134
+ id: 21
135
+ created_at: 2008-01-11 02:44:37.135721 +09:00
136
+ exemplify_00022:
137
+ updated_at: 2008-01-11 02:44:37.135721 +09:00
138
+ item_id: 22
139
+ manifestation_id: 11
140
+ id: 22
141
+ created_at: 2008-01-11 02:44:37.135721 +09:00
142
+ exemplify_00023:
143
+ updated_at: 2008-01-11 02:44:37.135721 +09:00
144
+ item_id: 23
145
+ manifestation_id: 11
146
+ id: 23
147
+ created_at: 2008-01-11 02:44:37.135721 +09:00
148
+
149
+ # == Schema Information
150
+ #
151
+ # Table name: exemplifies
152
+ #
153
+ # id :integer not null, primary key
154
+ # manifestation_id :integer not null
155
+ # item_id :integer not null
156
+ # position :integer
157
+ # created_at :datetime not null
158
+ # updated_at :datetime not null
159
+ #
160
+
@@ -0,0 +1,259 @@
1
+ ---
2
+ item_00001:
3
+ updated_at: 2007-08-24 23:46:00.484813 +09:00
4
+ item_identifier: '00001'
5
+ circulation_status_id: 2
6
+ checkout_type_id: 1
7
+ shelf_id: 1
8
+ call_number:
9
+ id: 1
10
+ include_supplements: false
11
+ created_at: 2007-08-24 23:46:00.484813 +09:00
12
+ item_00002:
13
+ updated_at: 2007-08-24 23:46:01.641413 +09:00
14
+ item_identifier: '00002'
15
+ circulation_status_id: 2
16
+ checkout_type_id: 1
17
+ shelf_id: 1
18
+ call_number:
19
+ id: 2
20
+ include_supplements: false
21
+ created_at: 2007-08-24 23:46:01.641413 +09:00
22
+ item_00003:
23
+ updated_at: 2007-08-24 23:46:02.502569 +09:00
24
+ item_identifier: '00003'
25
+ circulation_status_id: 2
26
+ checkout_type_id: 2
27
+ shelf_id: 1
28
+ call_number:
29
+ id: 3
30
+ include_supplements: false
31
+ created_at: 2007-08-24 23:46:02.502569 +09:00
32
+ item_00004:
33
+ updated_at: 2007-08-24 23:46:03.520781 +09:00
34
+ item_identifier: '00004'
35
+ circulation_status_id: 2
36
+ checkout_type_id: 1
37
+ shelf_id: 1
38
+ call_number:
39
+ id: 4
40
+ include_supplements: true
41
+ created_at: 2007-08-24 23:46:03.520781 +09:00
42
+ item_00005:
43
+ updated_at: 2007-08-24 23:46:04.538073 +09:00
44
+ item_identifier: '00005'
45
+ circulation_status_id: 2
46
+ checkout_type_id: 2
47
+ shelf_id: 1
48
+ call_number:
49
+ id: 5
50
+ include_supplements: false
51
+ created_at: 2007-08-24 23:46:04.538073 +09:00
52
+ item_00006:
53
+ updated_at: 2007-08-24 23:46:05.555353 +09:00
54
+ item_identifier: '00006'
55
+ circulation_status_id: 2
56
+ checkout_type_id: 2
57
+ shelf_id: 1
58
+ call_number:
59
+ id: 6
60
+ include_supplements: true
61
+ created_at: 2007-08-24 23:46:05.555353 +09:00
62
+ item_00007:
63
+ updated_at: 2007-08-24 23:46:06.572631 +09:00
64
+ item_identifier: '00007'
65
+ circulation_status_id: 2
66
+ checkout_type_id: 1
67
+ shelf_id: 1
68
+ call_number:
69
+ id: 7
70
+ include_supplements: false
71
+ created_at: 2007-08-24 23:46:06.572631 +09:00
72
+ item_00008:
73
+ updated_at: 2007-08-24 23:46:07.589909 +09:00
74
+ item_identifier: '00008'
75
+ circulation_status_id: 2
76
+ checkout_type_id: 2
77
+ shelf_id: 1
78
+ call_number:
79
+ id: 8
80
+ include_supplements: true
81
+ created_at: 2007-08-24 23:46:07.589909 +09:00
82
+ item_00009:
83
+ updated_at: 2007-08-24 23:46:08.607081 +09:00
84
+ item_identifier: '00009'
85
+ circulation_status_id: 2
86
+ checkout_type_id: 1
87
+ shelf_id: 4
88
+ call_number:
89
+ id: 9
90
+ include_supplements: false
91
+ created_at: 2007-08-24 23:46:08.607081 +09:00
92
+ item_00010:
93
+ updated_at: 2007-08-24 23:46:09.624281 +09:00
94
+ item_identifier: '00010'
95
+ circulation_status_id: 2
96
+ checkout_type_id: 2
97
+ shelf_id: 1
98
+ call_number:
99
+ id: 10
100
+ include_supplements: false
101
+ created_at: 2007-08-24 23:46:09.624281 +09:00
102
+ item_00011:
103
+ updated_at: 2007-08-24 23:46:10.484813 +09:00
104
+ item_identifier: '00011'
105
+ circulation_status_id: 2
106
+ checkout_type_id: 1
107
+ shelf_id: 1
108
+ call_number:
109
+ id: 11
110
+ include_supplements: false
111
+ created_at: 2007-08-24 23:46:10.484813 +09:00
112
+ item_00012:
113
+ updated_at: 2007-08-24 23:46:11.484813 +09:00
114
+ item_identifier: '00012'
115
+ circulation_status_id: 3
116
+ checkout_type_id: 2
117
+ shelf_id: 1
118
+ call_number:
119
+ id: 12
120
+ include_supplements: false
121
+ created_at: 2007-08-24 23:46:11.484813 +09:00
122
+ item_00013:
123
+ updated_at: 2007-08-24 23:46:12.484813 +09:00
124
+ item_identifier: '00013'
125
+ circulation_status_id: 10
126
+ checkout_type_id: 1
127
+ shelf_id: 1
128
+ call_number:
129
+ id: 13
130
+ include_supplements: false
131
+ created_at: 2007-08-24 23:46:12.484813 +09:00
132
+ item_00014:
133
+ updated_at: 2007-08-24 23:46:13.484813 +09:00
134
+ item_identifier: '00014'
135
+ circulation_status_id: 10
136
+ checkout_type_id: 2
137
+ shelf_id: 1
138
+ call_number:
139
+ id: 14
140
+ include_supplements: false
141
+ created_at: 2007-08-24 23:46:13.484813 +09:00
142
+ item_00015:
143
+ updated_at: 2007-08-24 23:46:14.484813 +09:00
144
+ item_identifier: '00015'
145
+ circulation_status_id: 10
146
+ checkout_type_id: 3
147
+ shelf_id: 1
148
+ call_number:
149
+ id: 15
150
+ include_supplements: false
151
+ created_at: 2007-08-24 23:46:14.484813 +09:00
152
+ item_00016:
153
+ updated_at: 2007-08-24 23:46:15.484813 +09:00
154
+ item_identifier: '00016'
155
+ circulation_status_id: 10
156
+ checkout_type_id: 2
157
+ shelf_id: 1
158
+ call_number:
159
+ id: 16
160
+ include_supplements: true
161
+ created_at: 2007-08-24 23:46:15.484813 +09:00
162
+ item_00017:
163
+ updated_at: 2007-08-24 23:46:16.484813 +09:00
164
+ item_identifier: '00017'
165
+ circulation_status_id: 10
166
+ checkout_type_id: 3
167
+ shelf_id: 1
168
+ call_number:
169
+ id: 17
170
+ include_supplements: false
171
+ created_at: 2007-08-24 23:46:16.484813 +09:00
172
+ item_00018:
173
+ updated_at: 2007-08-24 23:46:17.484813 +09:00
174
+ item_identifier: '00018'
175
+ circulation_status_id: 10
176
+ checkout_type_id: 3
177
+ shelf_id: 1
178
+ call_number:
179
+ id: 18
180
+ include_supplements: false
181
+ created_at: 2007-08-24 23:46:17.484813 +09:00
182
+ item_00019:
183
+ updated_at: 2007-08-24 23:46:18.484813 +09:00
184
+ item_identifier: '00019'
185
+ circulation_status_id: 2
186
+ checkout_type_id: 3
187
+ shelf_id: 1
188
+ call_number:
189
+ id: 19
190
+ include_supplements: false
191
+ created_at: 2007-08-24 23:46:18.484813 +09:00
192
+ item_00020:
193
+ updated_at: 2007-08-24 23:46:19.484813 +09:00
194
+ item_identifier: '00020'
195
+ circulation_status_id: 13
196
+ checkout_type_id: 3
197
+ shelf_id: 1
198
+ call_number:
199
+ id: 20
200
+ include_supplements: false
201
+ created_at: 2007-08-24 23:46:19.484813 +09:00
202
+ item_00021:
203
+ updated_at: 2007-08-24 23:46:20.484813 +09:00
204
+ item_identifier: '00021'
205
+ circulation_status_id: 2
206
+ checkout_type_id: 3
207
+ shelf_id: 1
208
+ call_number:
209
+ id: 21
210
+ include_supplements: false
211
+ created_at: 2007-08-24 23:46:20.484813 +09:00
212
+ item_00022:
213
+ updated_at: 2007-08-24 23:46:20.484813 +09:00
214
+ item_identifier: '00022'
215
+ circulation_status_id: 2
216
+ checkout_type_id: 3
217
+ shelf_id: 1
218
+ call_number:
219
+ id: 22
220
+ include_supplements: false
221
+ created_at: 2007-08-24 23:46:20.484813 +09:00
222
+ item_00023:
223
+ updated_at: 2007-08-24 23:46:20.484813 +09:00
224
+ item_identifier: '00023'
225
+ circulation_status_id: 15
226
+ checkout_type_id: 3
227
+ shelf_id: 2
228
+ call_number:
229
+ id: 23
230
+ include_supplements: false
231
+ created_at: 2007-08-24 23:46:20.484813 +09:00
232
+
233
+ # == Schema Information
234
+ #
235
+ # Table name: items
236
+ #
237
+ # id :integer not null, primary key
238
+ # call_number :string(255)
239
+ # item_identifier :string(255)
240
+ # circulation_status_id :integer default(5), not null
241
+ # checkout_type_id :integer default(1), not null
242
+ # created_at :datetime not null
243
+ # updated_at :datetime not null
244
+ # deleted_at :datetime
245
+ # shelf_id :integer default(1), not null
246
+ # include_supplements :boolean default(FALSE), not null
247
+ # note :text
248
+ # url :string(255)
249
+ # price :integer
250
+ # lock_version :integer default(0), not null
251
+ # required_role_id :integer default(1), not null
252
+ # state :string(255)
253
+ # required_score :integer default(0), not null
254
+ # acquired_at :datetime
255
+ # bookstore_id :integer
256
+ # budget_type_id :integer
257
+ # manifestation_id :integer
258
+ #
259
+