enju_library 0.1.0.pre25 → 0.1.0.pre26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/baskets_controller.rb +109 -0
  3. data/app/views/baskets/edit.html.erb +30 -0
  4. data/app/views/baskets/index.html.erb +31 -0
  5. data/app/views/baskets/new.html.erb +29 -0
  6. data/app/views/baskets/show.html.erb +23 -0
  7. data/lib/enju_library/version.rb +1 -1
  8. data/spec/controllers/baskets_controller_spec.rb +379 -0
  9. data/spec/dummy/config/initializers/inflections.rb +3 -7
  10. data/spec/dummy/db/migrate/032_create_checkins.rb +17 -0
  11. data/spec/dummy/db/migrate/035_create_reserves.rb +27 -0
  12. data/spec/dummy/db/migrate/113_create_events.rb +23 -0
  13. data/spec/dummy/db/migrate/114_create_event_categories.rb +16 -0
  14. data/spec/dummy/db/migrate/121_create_checked_items.rb +17 -0
  15. data/spec/dummy/db/migrate/127_create_use_restrictions.rb +16 -0
  16. data/spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb +16 -0
  17. data/spec/dummy/db/migrate/149_create_message_templates.rb +18 -0
  18. data/spec/dummy/db/migrate/154_create_messages.rb +24 -0
  19. data/spec/dummy/db/migrate/20080819181903_create_message_requests.rb +20 -0
  20. data/spec/dummy/db/migrate/20081028093607_create_event_import_files.rb +27 -0
  21. data/spec/dummy/db/migrate/20081030023615_create_carrier_type_has_checkout_types.rb +18 -0
  22. data/spec/dummy/db/migrate/20081212075554_create_checkout_stat_has_manifestations.rb +17 -0
  23. data/spec/dummy/db/migrate/20081212080038_create_manifestation_checkout_stats.rb +16 -0
  24. data/spec/dummy/db/migrate/20081215094302_create_user_checkout_stats.rb +16 -0
  25. data/spec/dummy/db/migrate/20081215094955_create_checkout_stat_has_users.rb +17 -0
  26. data/spec/dummy/db/migrate/20081216190517_create_reserve_stat_has_manifestations.rb +17 -0
  27. data/spec/dummy/db/migrate/20081216190724_create_manifestation_reserve_stats.rb +16 -0
  28. data/spec/dummy/db/migrate/20081220023628_create_user_reserve_stats.rb +16 -0
  29. data/spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb +17 -0
  30. data/spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb +27 -0
  31. data/spec/dummy/db/migrate/20090519203307_create_participates.rb +17 -0
  32. data/spec/dummy/db/migrate/20090831220301_create_lending_policies.rb +21 -0
  33. data/spec/dummy/db/migrate/20100925074639_create_event_import_results.rb +15 -0
  34. data/spec/dummy/db/migrate/20110301134521_add_expire_date_to_reserve.rb +9 -0
  35. data/spec/dummy/db/migrate/20110621093332_remove_expire_date_from_reserve.rb +9 -0
  36. data/spec/dummy/db/migrate/20110913115320_add_lft_and_rgt_to_message.rb +11 -0
  37. data/spec/dummy/db/migrate/20111217234412_add_save_checkout_history_to_user.rb +5 -0
  38. data/spec/dummy/db/migrate/20111218002349_add_checkout_icalendar_token_to_user.rb +6 -0
  39. data/spec/dummy/db/migrate/20120125050502_add_depth_to_message.rb +6 -0
  40. data/spec/dummy/db/migrate/20120413051535_add_event_import_fingerprint_to_event_import_file.rb +5 -0
  41. data/spec/dummy/db/migrate/20120413170734_add_error_message_to_event_import_file.rb +5 -0
  42. data/spec/dummy/db/migrate/20120415060342_rename_event_import_file_imported_at_to_executed_at.rb +9 -0
  43. data/spec/dummy/db/migrate/20120424103932_add_librarian_id_to_checked_item.rb +5 -0
  44. data/spec/dummy/db/migrate/20130303104849_add_state_index_to_reserve.rb +5 -0
  45. data/spec/dummy/db/migrate/20130303124821_add_retained_at_to_reserve.rb +5 -0
  46. data/spec/dummy/db/migrate/20130304015019_add_postponed_at_to_reserve.rb +5 -0
  47. data/spec/dummy/db/migrate/20130519065638_add_lock_version_to_reserve.rb +5 -0
  48. data/spec/dummy/db/migrate/20130519065837_add_lock_version_to_checkin.rb +5 -0
  49. data/spec/dummy/db/schema.rb +393 -83
  50. data/spec/dummy/db/test.sqlite3 +0 -0
  51. data/spec/dummy/solr/conf/schema.xml +15 -2
  52. data/spec/dummy/solr/data/test/index/_2w.tis +0 -0
  53. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  54. data/spec/dummy/solr/data/test/index/{segments_18r → segments_6n} +0 -0
  55. data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
  56. data/spec/dummy/tmp/cache/assets/test/sprockets/169f4ead801f350c94685db6343b613a +0 -0
  57. data/spec/dummy/tmp/cache/assets/test/sprockets/254f2ef29215d4091bfe5949fe8f725f +0 -0
  58. data/spec/dummy/tmp/cache/assets/test/sprockets/5c6c9015e14271822fcfdcce5fca127d +0 -0
  59. data/spec/dummy/tmp/cache/assets/test/sprockets/82147708959cf940a0db9210985926fd +0 -0
  60. data/spec/dummy/tmp/cache/assets/test/sprockets/b216037296f015f88a15e209c81fe1d3 +0 -0
  61. data/spec/dummy/tmp/cache/assets/test/sprockets/bbe2834cdae4786a530e40e14f846805 +0 -0
  62. data/spec/dummy/tmp/cache/assets/test/sprockets/c60042eb39c8ef7a95f8926ca5648a9d +0 -0
  63. data/spec/dummy/tmp/cache/assets/test/sprockets/d005c609dd44fbca49a45a652887a53d +0 -0
  64. data/spec/fixtures/agent_types.yml +35 -0
  65. data/spec/fixtures/agents.yml +338 -0
  66. data/spec/fixtures/carrier_type_has_checkout_types.yml +31 -0
  67. data/spec/fixtures/checked_items.yml +35 -0
  68. data/spec/fixtures/checkins.yml +55 -0
  69. data/spec/fixtures/checkout_stat_has_manifestations.yml +24 -0
  70. data/spec/fixtures/checkout_stat_has_users.yml +24 -0
  71. data/spec/fixtures/circulation_statuses.yml +14 -0
  72. data/spec/fixtures/event_categories.yml +55 -0
  73. data/spec/fixtures/events.yml +142 -0
  74. data/spec/fixtures/exemplifies.yml +19 -11
  75. data/spec/fixtures/item_has_use_restrictions.yml +61 -0
  76. data/spec/fixtures/items.yml +80 -9
  77. data/spec/fixtures/lending_policies.yml +99 -0
  78. data/spec/fixtures/libraries.yml +27 -25
  79. data/spec/fixtures/library_groups.yml +20 -20
  80. data/spec/fixtures/manifestation_checkout_stats.yml +31 -0
  81. data/spec/fixtures/manifestation_reserve_stats.yml +31 -0
  82. data/spec/fixtures/manifestations.yml +2 -137
  83. data/spec/fixtures/message_requests.yml +30 -0
  84. data/spec/fixtures/message_templates.yml +84 -0
  85. data/spec/fixtures/request_status_types.yml +4 -4
  86. data/spec/fixtures/request_types.yml +4 -4
  87. data/spec/fixtures/reserve_stat_has_manifestations.yml +24 -0
  88. data/spec/fixtures/reserve_stat_has_users.yml +24 -0
  89. data/spec/fixtures/reserves.yml +179 -0
  90. data/spec/fixtures/shelves.yml +6 -7
  91. data/spec/fixtures/use_restrictions.yml +93 -0
  92. data/spec/fixtures/user_checkout_stats.yml +31 -0
  93. data/spec/fixtures/user_group_has_checkout_types.yml +111 -0
  94. data/spec/fixtures/user_reserve_stats.yml +31 -0
  95. data/spec/fixtures/users.yml +14 -37
  96. data/spec/routing/baskets_routing_spec.rb +35 -0
  97. metadata +173 -26
  98. data/spec/dummy/solr/data/test/index/_j7.tis +0 -0
  99. /data/spec/dummy/solr/data/test/index/{_j7.fdt → _2w.fdt} +0 -0
  100. /data/spec/dummy/solr/data/test/index/{_j7.fdx → _2w.fdx} +0 -0
  101. /data/spec/dummy/solr/data/test/index/{_j7.fnm → _2w.fnm} +0 -0
  102. /data/spec/dummy/solr/data/test/index/{_j7.frq → _2w.frq} +0 -0
  103. /data/spec/dummy/solr/data/test/index/{_j7.nrm → _2w.nrm} +0 -0
  104. /data/spec/dummy/solr/data/test/index/{_j7.prx → _2w.prx} +0 -0
  105. /data/spec/dummy/solr/data/test/index/{_j7.tii → _2w.tii} +0 -0
@@ -0,0 +1,142 @@
1
+ ---
2
+ event_00001:
3
+ updated_at: 2008-01-13 02:54:43.764011 +09:00
4
+ event_category_id: 1
5
+ end_at: 2008-01-14 02:54:00 +09:00
6
+ name: !binary |
7
+ 5LuV5LqL5aeL44KB
8
+
9
+ display_name: !binary |
10
+ 5LuV5LqL5aeL44KB
11
+
12
+ deleted_at:
13
+ start_at: 2008-01-13 02:54:00 +09:00
14
+ id: 1
15
+ note: !binary |
16
+ 44Gq44KT44Go44GL44GL44KT44Go44GL
17
+
18
+ library_id: 2
19
+ created_at: 2008-01-01 16:20:54.372729 +09:00
20
+ event_00002:
21
+ updated_at: 2008-01-13 02:54:21.134175 +09:00
22
+ event_category_id: 2
23
+ end_at: 2008-01-14 02:54:00 +09:00
24
+ name: !binary |
25
+ 44OG44K544OI
26
+
27
+ display_name: !binary |
28
+ 44OG44K544OI
29
+
30
+ deleted_at:
31
+ start_at: 2008-01-13 02:54:00 +09:00
32
+ id: 2
33
+ note: !binary |
34
+ 44OG44K544OI55So44Gu44Kk44OZ44Oz44OI44Gn44GZ44CC
35
+
36
+ library_id: 2
37
+ created_at: 2008-01-01 20:54:25.803201 +09:00
38
+ event_00003:
39
+ updated_at: 2008-02-05 20:00:35.319131 +09:00
40
+ event_category_id: 1
41
+ end_at: 2008-02-05 00:00:00 +09:00
42
+ name: !binary |
43
+ 44Of44O844OG44Kj44Oz44Kw
44
+
45
+ display_name: !binary |
46
+ 44Of44O844OG44Kj44Oz44Kw
47
+
48
+ deleted_at:
49
+ start_at: 2008-01-13 00:00:00 +09:00
50
+ id: 3
51
+ note: ""
52
+ library_id: 2
53
+ created_at: 2008-01-13 02:51:10.642395 +09:00
54
+ event_00004:
55
+ updated_at: 2008-02-05 15:43:42.617670 +09:00
56
+ event_category_id: 4
57
+ end_at: 2008-02-06 00:00:00 +09:00
58
+ name: !binary |
59
+ 44OG44K544OI
60
+
61
+ display_name: !binary |
62
+ 44OG44K544OI
63
+
64
+ deleted_at:
65
+ start_at: 2008-02-05 00:00:00 +09:00
66
+ id: 4
67
+ note: !binary |
68
+ 44Gq44KT44Go44GL44GL44KT44Go44GL
69
+
70
+ library_id: 3
71
+ created_at: 2008-02-05 15:43:42.617670 +09:00
72
+ event_00005:
73
+ updated_at: 2008-02-05 20:41:50.533164 +09:00
74
+ event_category_id: 1
75
+ end_at: 2008-02-08 00:00:00 +09:00
76
+ name: test
77
+ display_name: test
78
+ deleted_at:
79
+ start_at: 2008-02-05 00:00:00 +09:00
80
+ id: 5
81
+ note: ""
82
+ library_id: 2
83
+ created_at: 2008-02-05 20:41:50.533164 +09:00
84
+ event_00006:
85
+ updated_at: 2008-02-05 23:52:06.315285 +09:00
86
+ event_category_id: 2
87
+ end_at: 2008-02-08 00:00:00 +09:00
88
+ name: !binary |
89
+ 44Gq44KT44Go44GL44GL44KT44Go44GL
90
+
91
+ display_name: !binary |
92
+ 44Gq44KT44Go44GL44GL44KT44Go44GL
93
+
94
+ deleted_at:
95
+ start_at: 2008-02-05 00:00:00 +09:00
96
+ id: 6
97
+ note: ""
98
+ library_id: 2
99
+ created_at: 2008-02-05 20:50:26.651371 +09:00
100
+ event_00007:
101
+ updated_at: 2008-02-05 21:00:53.926050 +09:00
102
+ event_category_id: 1
103
+ end_at: 2008-02-08 00:00:00 +09:00
104
+ name: test
105
+ display_name: test
106
+ deleted_at:
107
+ start_at: 2008-02-05 00:00:00 +09:00
108
+ id: 7
109
+ note: test
110
+ library_id: 2
111
+ created_at: 2008-02-05 21:00:53.926050 +09:00
112
+ event_00008:
113
+ updated_at: 2008-02-05 21:00:53.926050 +09:00
114
+ event_category_id: 1
115
+ end_at: 2008-02-05 15:00:00 +09:00
116
+ name: test
117
+ display_name: test
118
+ deleted_at:
119
+ start_at: 2008-02-05 15:00:00 +09:00
120
+ id: 8
121
+ note: test
122
+ library_id: 2
123
+ created_at: 2008-02-05 21:00:53.926050 +09:00
124
+
125
+ # == Schema Information
126
+ #
127
+ # Table name: events
128
+ #
129
+ # id :integer not null, primary key
130
+ # library_id :integer default(1), not null
131
+ # event_category_id :integer default(1), not null
132
+ # name :string(255)
133
+ # note :text
134
+ # start_at :datetime
135
+ # end_at :datetime
136
+ # all_day :boolean default(FALSE), not null
137
+ # deleted_at :datetime
138
+ # created_at :datetime
139
+ # updated_at :datetime
140
+ # display_name :text
141
+ #
142
+
@@ -43,7 +43,6 @@ exemplify_00007:
43
43
  manifestation_id: 1
44
44
  id: 7
45
45
  created_at: 2008-01-11 02:40:24.038276 +09:00
46
- position: 3
47
46
  exemplify_00008:
48
47
  updated_at: 2008-01-11 02:40:40.316742 +09:00
49
48
  item_id: 8
@@ -62,14 +61,12 @@ exemplify_00010:
62
61
  manifestation_id: 1
63
62
  id: 10
64
63
  created_at: 2008-01-11 02:44:37.135721 +09:00
65
- position: 4
66
64
  exemplify_00011:
67
65
  updated_at: 2008-01-11 02:44:37.135721 +09:00
68
66
  item_id: 11
69
67
  manifestation_id: 1
70
68
  id: 11
71
69
  created_at: 2008-01-11 02:44:37.135721 +09:00
72
- position: 5
73
70
  exemplify_00012:
74
71
  updated_at: 2008-01-11 02:44:37.135721 +09:00
75
72
  item_id: 12
@@ -112,21 +109,18 @@ exemplify_00018:
112
109
  manifestation_id: 1
113
110
  id: 18
114
111
  created_at: 2008-01-11 02:44:37.135721 +09:00
115
- position: 6
116
112
  exemplify_00019:
117
113
  updated_at: 2008-01-11 02:44:37.135721 +09:00
118
114
  item_id: 19
119
115
  manifestation_id: 1
120
116
  id: 19
121
117
  created_at: 2008-01-11 02:44:37.135721 +09:00
122
- position: 7
123
118
  exemplify_00020:
124
119
  updated_at: 2008-01-11 02:44:37.135721 +09:00
125
120
  item_id: 20
126
121
  manifestation_id: 1
127
122
  id: 20
128
123
  created_at: 2008-01-11 02:44:37.135721 +09:00
129
- position: 8
130
124
  exemplify_00021:
131
125
  updated_at: 2008-01-11 02:44:37.135721 +09:00
132
126
  item_id: 21
@@ -145,16 +139,30 @@ exemplify_00023:
145
139
  manifestation_id: 11
146
140
  id: 23
147
141
  created_at: 2008-01-11 02:44:37.135721 +09:00
142
+ exemplify_00024:
143
+ updated_at: 2008-01-11 02:44:37.135721 +09:00
144
+ item_id: 24
145
+ manifestation_id: 3
146
+ id: 24
147
+ created_at: 2008-01-11 02:44:37.135721 +09:00
148
+ exemplify_00025:
149
+ updated_at: 2008-01-11 02:44:37.135721 +09:00
150
+ item_id: 25
151
+ manifestation_id: 8
152
+ id: 25
153
+ created_at: 2008-01-11 02:44:37.135721 +09:00
154
+
148
155
 
149
156
  # == Schema Information
150
157
  #
151
158
  # Table name: exemplifies
152
159
  #
153
- # id :integer not null, primary key
154
- # manifestation_id :integer not null
155
- # item_id :integer not null
160
+ # id :integer not null, primary key
161
+ # manifestation_id :integer not null
162
+ # item_id :integer not null
163
+ # type :string(255)
156
164
  # position :integer
157
- # created_at :datetime not null
158
- # updated_at :datetime not null
165
+ # created_at :datetime
166
+ # updated_at :datetime
159
167
  #
160
168
 
@@ -0,0 +1,61 @@
1
+ ---
2
+ item_has_use_restriction_00001:
3
+ item_id: 1
4
+ updated_at: 2008-02-13 12:29:36.013448 +09:00
5
+ id: 1
6
+ use_restriction_id: 10
7
+ created_at: 2008-02-13 12:29:36.013448 +09:00
8
+ item_has_use_restriction_00002:
9
+ item_id: 2
10
+ updated_at: 2008-02-13 17:58:37.527556 +09:00
11
+ id: 2
12
+ use_restriction_id: 2
13
+ created_at: 2008-02-13 17:58:37.527556 +09:00
14
+ item_has_use_restriction_00003:
15
+ item_id: 3
16
+ updated_at: 2008-02-13 17:58:49.490086 +09:00
17
+ id: 3
18
+ use_restriction_id: 3
19
+ created_at: 2008-02-13 17:58:49.490086 +09:00
20
+ item_has_use_restriction_00004:
21
+ item_id: 17
22
+ updated_at: 2008-02-13 12:29:36.013448 +09:00
23
+ id: 4
24
+ use_restriction_id: 4
25
+ created_at: 2008-02-13 12:29:36.013448 +09:00
26
+ item_has_use_restriction_00005:
27
+ item_id: 21
28
+ updated_at: 2008-02-13 12:29:36.013448 +09:00
29
+ id: 5
30
+ use_restriction_id: 4
31
+ created_at: 2008-02-13 12:29:36.013448 +09:00
32
+ item_has_use_restriction_00006:
33
+ item_id: 11
34
+ updated_at: 2008-02-13 12:29:36.013448 +09:00
35
+ id: 6
36
+ use_restriction_id: 4
37
+ created_at: 2008-02-13 12:29:36.013448 +09:00
38
+ item_has_use_restriction_00007:
39
+ item_id: 6
40
+ updated_at: 2008-02-13 12:29:36.013448 +09:00
41
+ id: 7
42
+ use_restriction_id: 4
43
+ created_at: 2008-02-13 12:29:36.013448 +09:00
44
+ item_has_use_restriction_00008:
45
+ item_id: 24
46
+ updated_at: 2008-02-13 12:29:36.013448 +09:00
47
+ id: 8
48
+ use_restriction_id: 4
49
+ created_at: 2008-02-13 12:29:36.013448 +09:00
50
+
51
+ # == Schema Information
52
+ #
53
+ # Table name: item_has_use_restrictions
54
+ #
55
+ # id :integer not null, primary key
56
+ # item_id :integer not null
57
+ # use_restriction_id :integer not null
58
+ # created_at :datetime not null
59
+ # updated_at :datetime not null
60
+ #
61
+
@@ -2,6 +2,8 @@
2
2
  item_00001:
3
3
  updated_at: 2007-08-24 23:46:00.484813 +09:00
4
4
  item_identifier: '00001'
5
+ circulation_status_id: 2
6
+ checkout_type_id: 1
5
7
  shelf_id: 1
6
8
  call_number:
7
9
  id: 1
@@ -10,6 +12,8 @@ item_00001:
10
12
  item_00002:
11
13
  updated_at: 2007-08-24 23:46:01.641413 +09:00
12
14
  item_identifier: '00002'
15
+ circulation_status_id: 2
16
+ checkout_type_id: 1
13
17
  shelf_id: 1
14
18
  call_number:
15
19
  id: 2
@@ -18,6 +22,8 @@ item_00002:
18
22
  item_00003:
19
23
  updated_at: 2007-08-24 23:46:02.502569 +09:00
20
24
  item_identifier: '00003'
25
+ circulation_status_id: 2
26
+ checkout_type_id: 2
21
27
  shelf_id: 1
22
28
  call_number:
23
29
  id: 3
@@ -26,6 +32,8 @@ item_00003:
26
32
  item_00004:
27
33
  updated_at: 2007-08-24 23:46:03.520781 +09:00
28
34
  item_identifier: '00004'
35
+ circulation_status_id: 2
36
+ checkout_type_id: 1
29
37
  shelf_id: 1
30
38
  call_number:
31
39
  id: 4
@@ -34,6 +42,8 @@ item_00004:
34
42
  item_00005:
35
43
  updated_at: 2007-08-24 23:46:04.538073 +09:00
36
44
  item_identifier: '00005'
45
+ circulation_status_id: 2
46
+ checkout_type_id: 2
37
47
  shelf_id: 1
38
48
  call_number:
39
49
  id: 5
@@ -42,6 +52,8 @@ item_00005:
42
52
  item_00006:
43
53
  updated_at: 2007-08-24 23:46:05.555353 +09:00
44
54
  item_identifier: '00006'
55
+ circulation_status_id: 2
56
+ checkout_type_id: 2
45
57
  shelf_id: 1
46
58
  call_number:
47
59
  id: 6
@@ -50,6 +62,8 @@ item_00006:
50
62
  item_00007:
51
63
  updated_at: 2007-08-24 23:46:06.572631 +09:00
52
64
  item_identifier: '00007'
65
+ circulation_status_id: 2
66
+ checkout_type_id: 1
53
67
  shelf_id: 1
54
68
  call_number:
55
69
  id: 7
@@ -58,6 +72,8 @@ item_00007:
58
72
  item_00008:
59
73
  updated_at: 2007-08-24 23:46:07.589909 +09:00
60
74
  item_identifier: '00008'
75
+ circulation_status_id: 2
76
+ checkout_type_id: 2
61
77
  shelf_id: 1
62
78
  call_number:
63
79
  id: 8
@@ -66,6 +82,8 @@ item_00008:
66
82
  item_00009:
67
83
  updated_at: 2007-08-24 23:46:08.607081 +09:00
68
84
  item_identifier: '00009'
85
+ circulation_status_id: 2
86
+ checkout_type_id: 1
69
87
  shelf_id: 4
70
88
  call_number:
71
89
  id: 9
@@ -74,6 +92,8 @@ item_00009:
74
92
  item_00010:
75
93
  updated_at: 2007-08-24 23:46:09.624281 +09:00
76
94
  item_identifier: '00010'
95
+ circulation_status_id: 2
96
+ checkout_type_id: 2
77
97
  shelf_id: 1
78
98
  call_number:
79
99
  id: 10
@@ -82,6 +102,8 @@ item_00010:
82
102
  item_00011:
83
103
  updated_at: 2007-08-24 23:46:10.484813 +09:00
84
104
  item_identifier: '00011'
105
+ circulation_status_id: 2
106
+ checkout_type_id: 1
85
107
  shelf_id: 1
86
108
  call_number:
87
109
  id: 11
@@ -90,6 +112,8 @@ item_00011:
90
112
  item_00012:
91
113
  updated_at: 2007-08-24 23:46:11.484813 +09:00
92
114
  item_identifier: '00012'
115
+ circulation_status_id: 3
116
+ checkout_type_id: 2
93
117
  shelf_id: 1
94
118
  call_number:
95
119
  id: 12
@@ -98,6 +122,8 @@ item_00012:
98
122
  item_00013:
99
123
  updated_at: 2007-08-24 23:46:12.484813 +09:00
100
124
  item_identifier: '00013'
125
+ circulation_status_id: 10
126
+ checkout_type_id: 1
101
127
  shelf_id: 1
102
128
  call_number:
103
129
  id: 13
@@ -106,6 +132,8 @@ item_00013:
106
132
  item_00014:
107
133
  updated_at: 2007-08-24 23:46:13.484813 +09:00
108
134
  item_identifier: '00014'
135
+ circulation_status_id: 10
136
+ checkout_type_id: 2
109
137
  shelf_id: 1
110
138
  call_number:
111
139
  id: 14
@@ -114,6 +142,8 @@ item_00014:
114
142
  item_00015:
115
143
  updated_at: 2007-08-24 23:46:14.484813 +09:00
116
144
  item_identifier: '00015'
145
+ circulation_status_id: 10
146
+ checkout_type_id: 3
117
147
  shelf_id: 1
118
148
  call_number:
119
149
  id: 15
@@ -122,6 +152,8 @@ item_00015:
122
152
  item_00016:
123
153
  updated_at: 2007-08-24 23:46:15.484813 +09:00
124
154
  item_identifier: '00016'
155
+ circulation_status_id: 10
156
+ checkout_type_id: 2
125
157
  shelf_id: 1
126
158
  call_number:
127
159
  id: 16
@@ -130,6 +162,8 @@ item_00016:
130
162
  item_00017:
131
163
  updated_at: 2007-08-24 23:46:16.484813 +09:00
132
164
  item_identifier: '00017'
165
+ circulation_status_id: 10
166
+ checkout_type_id: 3
133
167
  shelf_id: 1
134
168
  call_number:
135
169
  id: 17
@@ -138,6 +172,8 @@ item_00017:
138
172
  item_00018:
139
173
  updated_at: 2007-08-24 23:46:17.484813 +09:00
140
174
  item_identifier: '00018'
175
+ circulation_status_id: 10
176
+ checkout_type_id: 3
141
177
  shelf_id: 1
142
178
  call_number:
143
179
  id: 18
@@ -146,6 +182,8 @@ item_00018:
146
182
  item_00019:
147
183
  updated_at: 2007-08-24 23:46:18.484813 +09:00
148
184
  item_identifier: '00019'
185
+ circulation_status_id: 2
186
+ checkout_type_id: 3
149
187
  shelf_id: 1
150
188
  call_number:
151
189
  id: 19
@@ -154,6 +192,8 @@ item_00019:
154
192
  item_00020:
155
193
  updated_at: 2007-08-24 23:46:19.484813 +09:00
156
194
  item_identifier: '00020'
195
+ circulation_status_id: 13
196
+ checkout_type_id: 3
157
197
  shelf_id: 1
158
198
  call_number:
159
199
  id: 20
@@ -162,6 +202,8 @@ item_00020:
162
202
  item_00021:
163
203
  updated_at: 2007-08-24 23:46:20.484813 +09:00
164
204
  item_identifier: '00021'
205
+ circulation_status_id: 2
206
+ checkout_type_id: 3
165
207
  shelf_id: 1
166
208
  call_number:
167
209
  id: 21
@@ -170,6 +212,8 @@ item_00021:
170
212
  item_00022:
171
213
  updated_at: 2007-08-24 23:46:20.484813 +09:00
172
214
  item_identifier: '00022'
215
+ circulation_status_id: 2
216
+ checkout_type_id: 3
173
217
  shelf_id: 1
174
218
  call_number:
175
219
  id: 22
@@ -178,34 +222,61 @@ item_00022:
178
222
  item_00023:
179
223
  updated_at: 2007-08-24 23:46:20.484813 +09:00
180
224
  item_identifier: '00023'
225
+ circulation_status_id: 15
226
+ checkout_type_id: 3
181
227
  shelf_id: 2
182
228
  call_number:
183
229
  id: 23
184
230
  include_supplements: false
185
231
  created_at: 2007-08-24 23:46:20.484813 +09:00
232
+ item_00024:
233
+ updated_at: 2007-08-24 23:46:20.484813 +09:00
234
+ item_identifier: '00024'
235
+ circulation_status_id: 8
236
+ checkout_type_id: 3
237
+ shelf_id: 2
238
+ call_number:
239
+ id: 24
240
+ include_supplements: false
241
+ created_at: 2007-08-24 23:46:20.484813 +09:00
242
+ item_00025:
243
+ updated_at: 2007-08-24 23:46:20.484813 +09:00
244
+ item_identifier: '00025'
245
+ circulation_status_id: 8
246
+ checkout_type_id: 3
247
+ shelf_id: 2
248
+ call_number:
249
+ id: 25
250
+ include_supplements: false
251
+ created_at: 2007-08-24 23:46:20.484813 +09:00
252
+
186
253
 
187
254
  # == Schema Information
188
255
  #
189
256
  # Table name: items
190
257
  #
191
- # id :integer not null, primary key
258
+ # id :integer not null, primary key
192
259
  # call_number :string(255)
193
260
  # item_identifier :string(255)
194
- # created_at :datetime not null
195
- # updated_at :datetime not null
261
+ # circulation_status_id :integer default(5), not null
262
+ # checkout_type_id :integer default(1), not null
263
+ # created_at :datetime not null
264
+ # updated_at :datetime not null
196
265
  # deleted_at :datetime
197
- # shelf_id :integer default(1), not null
198
- # include_supplements :boolean default(FALSE), not null
266
+ # shelf_id :integer default(1), not null
267
+ # include_supplements :boolean default(FALSE), not null
268
+ # checkouts_count :integer default(0), not null
269
+ # owns_count :integer default(0), not null
199
270
  # note :text
200
271
  # url :string(255)
201
272
  # price :integer
202
- # lock_version :integer default(0), not null
203
- # required_role_id :integer default(1), not null
273
+ # lock_version :integer default(0), not null
274
+ # required_role_id :integer default(1), not null
204
275
  # state :string(255)
205
- # required_score :integer default(0), not null
276
+ # required_score :integer default(0), not null
206
277
  # acquired_at :datetime
207
278
  # bookstore_id :integer
279
+ # missing_since :datetime
208
280
  # budget_type_id :integer
209
- # manifestation_id :integer
210
281
  #
211
282
 
@@ -0,0 +1,99 @@
1
+ # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
+
3
+ lending_policy_00001:
4
+ item_id: 1
5
+ user_group_id: 1
6
+ loan_period: 1
7
+ fixed_due_date:
8
+ renewal: 1
9
+ fine: 10
10
+ note: MyText
11
+ position: 1
12
+ lending_policy_00002:
13
+ item_id: 1
14
+ user_group_id: 2
15
+ loan_period: 1
16
+ fixed_due_date:
17
+ renewal: 1
18
+ fine: 10
19
+ note: MyText
20
+ position: 2
21
+ lending_policy_00003:
22
+ item_id: 10
23
+ user_group_id: 2
24
+ loan_period: 1
25
+ fixed_due_date:
26
+ renewal: 1
27
+ fine: 10
28
+ note: MyText
29
+ position: 1
30
+ lending_policy_00004:
31
+ item_id: 6
32
+ user_group_id: 1
33
+ loan_period: 1
34
+ fixed_due_date:
35
+ renewal: 1
36
+ fine: 10
37
+ note: MyText
38
+ position: 1
39
+ lending_policy_00005:
40
+ item_id: 6
41
+ user_group_id: 2
42
+ loan_period: 1
43
+ fixed_due_date:
44
+ renewal: 1
45
+ fine: 10
46
+ note: MyText
47
+ position: 1
48
+ lending_policy_00006:
49
+ item_id: 11
50
+ user_group_id: 1
51
+ loan_period: 1
52
+ fixed_due_date:
53
+ renewal: 1
54
+ fine: 10
55
+ note: MyText
56
+ position: 1
57
+ note: MyText
58
+ position: 1
59
+ lending_policy_00007:
60
+ item_id: 21
61
+ user_group_id: 1
62
+ loan_period: 1
63
+ fixed_due_date:
64
+ renewal: 1
65
+ fine: 10
66
+ note: MyText
67
+ position: 1
68
+ lending_policy_00008:
69
+ item_id: 11
70
+ user_group_id: 2
71
+ loan_period: 1
72
+ fixed_due_date:
73
+ renewal: 1
74
+ fine: 10
75
+ lending_policy_00009:
76
+ item_id: 24
77
+ user_group_id: 2
78
+ loan_period: 1
79
+ fixed_due_date:
80
+ renewal: 1
81
+ fine: 10
82
+
83
+ # == Schema Information
84
+ #
85
+ # Table name: lending_policies
86
+ #
87
+ # id :integer not null, primary key
88
+ # item_id :integer not null
89
+ # user_group_id :integer not null
90
+ # loan_period :integer default(0), not null
91
+ # fixed_due_date :datetime
92
+ # renewal :integer default(0), not null
93
+ # fine :integer default(0), not null
94
+ # note :text
95
+ # position :integer
96
+ # created_at :datetime not null
97
+ # updated_at :datetime not null
98
+ #
99
+
@@ -73,30 +73,32 @@ library_00004:
73
73
  #
74
74
  # Table name: libraries
75
75
  #
76
- # id :integer not null, primary key
77
- # name :string(255) not null
78
- # display_name :text
79
- # short_display_name :string(255) not null
80
- # zip_code :string(255)
81
- # street :text
82
- # locality :text
83
- # region :text
84
- # telephone_number_1 :string(255)
85
- # telephone_number_2 :string(255)
86
- # fax_number :string(255)
87
- # note :text
88
- # call_number_rows :integer default(1), not null
89
- # call_number_delimiter :string(255) default("|"), not null
90
- # library_group_id :integer default(1), not null
91
- # users_count :integer default(0), not null
92
- # position :integer
93
- # country_id :integer
94
- # created_at :datetime not null
95
- # updated_at :datetime not null
96
- # deleted_at :datetime
97
- # opening_hour :text
98
- # isil :string(255)
99
- # latitude :float
100
- # longitude :float
76
+ # id :integer not null, primary key
77
+ # agent_type :string(255)
78
+ # name :string(255) not null
79
+ # display_name :text
80
+ # short_display_name :string(255) not null
81
+ # zip_code :string(255)
82
+ # street :text
83
+ # locality :text
84
+ # region :text
85
+ # telephone_number_1 :string(255)
86
+ # telephone_number_2 :string(255)
87
+ # fax_number :string(255)
88
+ # note :text
89
+ # call_number_rows :integer default(1), not null
90
+ # call_number_delimiter :string(255) default("|"), not null
91
+ # library_group_id :integer default(1), not null
92
+ # users_count :integer default(0), not null
93
+ # position :integer
94
+ # country_id :integer
95
+ # created_at :datetime
96
+ # updated_at :datetime
97
+ # deleted_at :datetime
98
+ # opening_hour :text
99
+ # latitude :float
100
+ # longitude :float
101
+ # calil_systemid :string(255)
102
+ # calil_neighborhood_systemid :text
101
103
  #
102
104