enju_circulation 0.1.0.pre29 → 0.1.0.pre30

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/checked_item.rb +32 -19
  3. data/app/models/reserve.rb +8 -8
  4. data/app/views/checked_items/_list.html.erb +4 -2
  5. data/app/views/reserves/_title.html.erb +3 -3
  6. data/lib/enju_circulation/version.rb +1 -1
  7. data/spec/controllers/checked_items_controller_spec.rb +15 -1
  8. data/spec/dummy/app/models/local_agent.rb +1 -1
  9. data/spec/dummy/app/models/user.rb +1 -1
  10. data/spec/dummy/db/migrate/001_create_agents.rb +8 -8
  11. data/spec/dummy/db/migrate/012_create_owns.rb +2 -2
  12. data/spec/dummy/db/migrate/015_create_creates.rb +2 -2
  13. data/spec/dummy/db/migrate/047_create_produces.rb +2 -2
  14. data/spec/dummy/db/migrate/059_create_libraries.rb +2 -2
  15. data/spec/dummy/db/migrate/125_create_donates.rb +2 -2
  16. data/spec/dummy/db/migrate/20080830154109_create_realizes.rb +2 -2
  17. data/spec/dummy/db/migrate/20080905191442_create_agent_types.rb +2 -2
  18. data/spec/dummy/db/migrate/20090812151902_create_agent_relationship_types.rb +2 -2
  19. data/spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb +2 -2
  20. data/spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb +5 -5
  21. data/spec/dummy/db/migrate/20100814091104_add_position_to_agent_relationship.rb +3 -3
  22. data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_agent.rb +5 -5
  23. data/spec/dummy/db/schema.rb +102 -102
  24. data/spec/dummy/db/test.sqlite3 +0 -0
  25. data/spec/dummy/solr/data/test/index/{_2fp.fdt → _2hv.fdt} +0 -0
  26. data/spec/dummy/solr/data/test/index/{_2fp.fdx → _2hv.fdx} +0 -0
  27. data/spec/dummy/solr/data/test/index/{_2fp.fnm → _2hv.fnm} +0 -0
  28. data/spec/dummy/solr/data/test/index/{_2fp.frq → _2hv.frq} +0 -0
  29. data/spec/dummy/solr/data/test/index/{_2fp.nrm → _2hv.nrm} +0 -0
  30. data/spec/dummy/solr/data/test/index/{_2fp.prx → _2hv.prx} +0 -0
  31. data/spec/dummy/solr/data/test/index/{_2fp.tii → _2hv.tii} +0 -0
  32. data/spec/dummy/solr/data/test/index/{_2fp.tis → _2hv.tis} +0 -0
  33. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  34. data/spec/dummy/solr/data/test/index/segments_4zj +0 -0
  35. data/spec/fixtures/agent_types.yml +4 -4
  36. data/spec/fixtures/agents.yml +46 -46
  37. data/spec/fixtures/libraries.yml +6 -6
  38. data/spec/fixtures/reserves.yml +1 -1
  39. metadata +30 -48
  40. data/spec/dummy/app/models/local_patron.rb +0 -13
  41. data/spec/dummy/db/migrate/001_create_patrons.rb +0 -58
  42. data/spec/dummy/db/migrate/20080905191442_create_patron_types.rb +0 -12
  43. data/spec/dummy/db/migrate/20090812151902_create_patron_relationship_types.rb +0 -12
  44. data/spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb +0 -13
  45. data/spec/dummy/db/migrate/20100814091104_add_position_to_patron_relationship.rb +0 -11
  46. data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_patron.rb +0 -11
  47. data/spec/dummy/solr/data/test/index/segments_4v7 +0 -0
  48. data/spec/fixtures/patron_types.yml +0 -35
  49. data/spec/fixtures/patrons.yml +0 -338
@@ -1,338 +0,0 @@
1
- ---
2
- patron_00001:
3
- place: ""
4
- last_name: Administrator
5
- first_name:
6
- full_name: Administrator
7
- updated_at: 2007-11-21 22:01:56.137409 +09:00
8
- other_designation: ""
9
- id: 1
10
- date_of_birth: 2000-01-01
11
- date_of_death:
12
- address_1:
13
- language_id: 1
14
- country_id: 1
15
- patron_type_id: 1
16
- required_role_id: 1
17
- created_at: 2007-11-19 17:06:06.507237 +09:00
18
- user_id: 1
19
- patron_00002:
20
- place: ""
21
- last_name: Librarian1
22
- first_name:
23
- full_name: Librarian1
24
- updated_at: 2007-11-21 22:02:10.359793 +09:00
25
- other_designation: ""
26
- id: 2
27
- date_of_birth: 2000-01-01
28
- date_of_death:
29
- address_1:
30
- language_id: 1
31
- country_id: 1
32
- patron_type_id: 1
33
- required_role_id: 4
34
- created_at: 2007-11-19 17:06:07.724517 +09:00
35
- user_id: 2
36
- patron_00003:
37
- place:
38
- last_name: Kosuke
39
- first_name: Tanabe
40
- full_name: Kosuke Tanabe
41
- updated_at: 2007-12-04 16:25:01.523618 +09:00
42
- other_designation:
43
- id: 3
44
- date_of_birth: 2000-01-01
45
- date_of_death:
46
- address_1:
47
- language_id: 1
48
- country_id: 1
49
- patron_type_id: 1
50
- required_role_id: 3
51
- created_at: 2007-12-04 16:25:01.523618 +09:00
52
- user_id: 3
53
- patron_00004:
54
- place:
55
- last_name: Librarian2
56
- first_name:
57
- full_name: Librarian2
58
- updated_at: 2007-12-04 16:25:01.785027 +09:00
59
- other_designation:
60
- id: 4
61
- date_of_birth: 2000-01-01
62
- date_of_death:
63
- address_1:
64
- language_id: 1
65
- country_id: 1
66
- patron_type_id: 1
67
- required_role_id: 1
68
- created_at: 2007-12-04 16:25:01.785027 +09:00
69
- user_id: 4
70
- patron_00005:
71
- place: ""
72
- last_name: User2
73
- first_name:
74
- full_name: User2
75
- updated_at: 2007-11-21 22:02:35.579396 +09:00
76
- other_designation: ""
77
- id: 5
78
- date_of_birth: 2000-01-01
79
- date_of_death:
80
- address_1:
81
- language_id: 1
82
- country_id: 1
83
- patron_type_id: 1
84
- required_role_id: 2
85
- created_at: 2007-11-19 17:24:50.153417 +09:00
86
- user_id: 5
87
- patron_00006:
88
- place: ""
89
- last_name: New patron 1
90
- first_name:
91
- full_name: New patron 1
92
- updated_at: 2007-11-21 22:02:35.579396 +09:00
93
- other_designation: ""
94
- id: 6
95
- date_of_birth: 2000-01-01
96
- date_of_death:
97
- address_1:
98
- language_id: 1
99
- country_id: 1
100
- patron_type_id: 1
101
- required_role_id: 1
102
- created_at: 2007-11-19 17:24:50.153417 +09:00
103
- patron_00007:
104
- place: ""
105
- last_name: New patron 2
106
- first_name:
107
- full_name: New patron 2
108
- updated_at: 2007-11-21 22:02:35.579396 +09:00
109
- other_designation: ""
110
- id: 7
111
- date_of_birth: 2000-01-01
112
- date_of_death:
113
- address_1:
114
- language_id: 1
115
- country_id: 1
116
- patron_type_id: 1
117
- required_role_id: 1
118
- created_at: 2007-11-19 17:24:50.153417 +09:00
119
- patron_00008:
120
- place: ""
121
- last_name: New patron 3
122
- first_name:
123
- full_name: New patron 3
124
- updated_at: 2007-11-21 22:02:35.579396 +09:00
125
- other_designation: ""
126
- id: 8
127
- date_of_birth: 2000-01-01
128
- date_of_death:
129
- address_1:
130
- language_id: 1
131
- country_id: 1
132
- patron_type_id: 1
133
- required_role_id: 1
134
- created_at: 2007-11-19 17:24:50.153417 +09:00
135
- patron_00009:
136
- place: ""
137
- last_name: New patron 4
138
- first_name:
139
- full_name: New patron 4
140
- updated_at: 2007-11-21 22:02:35.579396 +09:00
141
- other_designation: ""
142
- id: 9
143
- date_of_birth: 2000-01-01
144
- date_of_death:
145
- address_1:
146
- language_id: 1
147
- country_id: 1
148
- patron_type_id: 1
149
- required_role_id: 1
150
- created_at: 2007-11-19 17:24:50.153417 +09:00
151
- patron_00010:
152
- place: ""
153
- last_name: New patron 5
154
- first_name:
155
- full_name: New patron 5
156
- updated_at: 2007-11-21 22:02:35.579396 +09:00
157
- other_designation: ""
158
- id: 10
159
- date_of_birth: 2000-01-01
160
- date_of_death:
161
- address_1:
162
- language_id: 1
163
- country_id: 1
164
- patron_type_id: 1
165
- required_role_id: 1
166
- created_at: 2007-11-19 17:24:50.153417 +09:00
167
- patron_00011:
168
- place: ""
169
- last_name: User3
170
- first_name:
171
- full_name: User3
172
- updated_at: 2007-11-21 22:02:35.579396 +09:00
173
- other_designation: ""
174
- id: 11
175
- date_of_birth: 2000-01-01
176
- date_of_death:
177
- address_1:
178
- language_id: 1
179
- country_id: 1
180
- patron_type_id: 1
181
- required_role_id: 1
182
- created_at: 2007-11-19 17:24:50.153417 +09:00
183
- user_id: 6
184
- patron_00101:
185
- place: ""
186
- last_name: テスト名字
187
- first_name: テスト名前
188
- full_name: テスト正式名称
189
- updated_at: 2010-03-03 17:00:00.579396 +09:00
190
- other_designation: ""
191
- id: 101
192
- date_of_birth: 2000-01-01
193
- date_of_death:
194
- address_1:
195
- language_id: 1
196
- country_id: 1
197
- patron_type_id: 1
198
- required_role_id: 1
199
- created_at: 2010-03-03 17:00:00.579396 +09:00
200
- patron_00102:
201
- place: ""
202
- last_name:
203
- first_name:
204
- full_name: 出版社テスト
205
- updated_at: 2010-03-03 17:00:00.579396 +09:00
206
- other_designation: ""
207
- id: 102
208
- date_of_birth:
209
- date_of_death:
210
- address_1:
211
- language_id: 1
212
- country_id: 1
213
- patron_type_id: 1
214
- required_role_id: 1
215
- created_at: 2010-03-03 17:00:00.579396 +09:00
216
- patron_00103:
217
- place: ""
218
- last_name:
219
- first_name:
220
- full_name: 作者ダミー
221
- updated_at: 2010-03-16 19:00:00.579396 +09:00
222
- other_designation: ""
223
- id: 103
224
- date_of_birth:
225
- date_of_death:
226
- address_1:
227
- language_id: 1
228
- country_id: 1
229
- patron_type_id: 1
230
- required_role_id: 1
231
- created_at: 2010-03-16 19:00:00.579396 +09:00
232
- patron_00104:
233
- place: ""
234
- last_name:
235
- first_name:
236
- full_name: 試験用会社
237
- updated_at: 2010-03-16 19:00:00.579396 +09:00
238
- other_designation: ""
239
- id: 104
240
- date_of_birth:
241
- date_of_death:
242
- address_1:
243
- language_id: 1
244
- country_id: 1
245
- patron_type_id: 1
246
- required_role_id: 1
247
- created_at: 2010-03-16 19:00:00.579396 +09:00
248
- patron_00201:
249
- place: ""
250
- last_name:
251
- first_name:
252
- full_name: オーム社
253
- updated_at: 2010-03-15 17:00:00.579396 +09:00
254
- other_designation: ""
255
- id: 201
256
- date_of_birth:
257
- date_of_death:
258
- address_1:
259
- language_id: 1
260
- country_id: 1
261
- patron_type_id: 1
262
- required_role_id: 1
263
- created_at: 2010-03-15 17:00:00.579396 +09:00
264
- patron_00202:
265
- place: ""
266
- last_name:
267
- first_name:
268
- full_name: Ruby社
269
- updated_at: 2010-03-15 17:00:00.579396 +09:00
270
- other_designation: ""
271
- id: 202
272
- date_of_birth:
273
- date_of_death:
274
- address_1:
275
- language_id: 1
276
- country_id: 1
277
- patron_type_id: 1
278
- required_role_id: 1
279
- created_at: 2010-03-15 17:00:00.579396 +09:00
280
-
281
-
282
-
283
-
284
-
285
-
286
- # == Schema Information
287
- #
288
- # Table name: patrons
289
- #
290
- # id :integer not null, primary key
291
- # user_id :integer
292
- # last_name :string(255)
293
- # middle_name :string(255)
294
- # first_name :string(255)
295
- # last_name_transcription :string(255)
296
- # middle_name_transcription :string(255)
297
- # first_name_transcription :string(255)
298
- # corporate_name :string(255)
299
- # corporate_name_transcription :string(255)
300
- # full_name :string(255)
301
- # full_name_transcription :text
302
- # full_name_alternative :text
303
- # created_at :datetime
304
- # updated_at :datetime
305
- # deleted_at :datetime
306
- # zip_code_1 :string(255)
307
- # zip_code_2 :string(255)
308
- # address_1 :text
309
- # address_2 :text
310
- # address_1_note :text
311
- # address_2_note :text
312
- # telephone_number_1 :string(255)
313
- # telephone_number_2 :string(255)
314
- # fax_number_1 :string(255)
315
- # fax_number_2 :string(255)
316
- # other_designation :text
317
- # place :text
318
- # street :text
319
- # locality :text
320
- # region :text
321
- # date_of_birth :datetime
322
- # date_of_death :datetime
323
- # language_id :integer default(1), not null
324
- # country_id :integer default(1), not null
325
- # patron_type_id :integer default(1), not null
326
- # lock_version :integer default(0), not null
327
- # note :text
328
- # required_role_id :integer default(1), not null
329
- # required_score :integer default(0), not null
330
- # state :string(255)
331
- # email :text
332
- # url :text
333
- # full_name_alternative_transcription :text
334
- # title :string(255)
335
- # birth_date :string(255)
336
- # death_date :string(255)
337
- #
338
-