enju_bookmark 0.1.2.pre11 → 0.1.2.pre12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/app/views/bookmark_stats/show.csv.erb +1 -1
  3. data/app/views/bookmark_stats/show.html.erb +1 -1
  4. data/lib/enju_bookmark/version.rb +1 -1
  5. data/spec/controllers/bookmarks_controller_spec.rb +4 -2
  6. data/spec/dummy/app/controllers/application_controller.rb +2 -72
  7. data/spec/dummy/app/models/user.rb +5 -24
  8. data/spec/dummy/config/application.rb +2 -3
  9. data/spec/dummy/db/development.sqlite3 +0 -0
  10. data/spec/dummy/db/migrate/{001_create_patrons.rb → 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/035_create_reserves.rb +1 -1
  14. data/spec/dummy/db/migrate/047_create_produces.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_patron_types.rb → 20080905191442_create_agent_types.rb} +2 -2
  18. data/spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb +22 -0
  19. data/spec/dummy/db/migrate/{20090812151902_create_patron_relationship_types.rb → 20090812151902_create_agent_relationship_types.rb} +2 -2
  20. data/spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb +2 -2
  21. data/spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb +13 -0
  22. data/spec/dummy/db/migrate/20100814091104_add_position_to_agent_relationship.rb +11 -0
  23. data/spec/dummy/db/migrate/20100925074559_create_agent_import_results.rb +12 -0
  24. data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_agent.rb +11 -0
  25. data/spec/dummy/db/migrate/20111201155456_create_users.rb +0 -5
  26. data/spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb +6 -11
  27. data/spec/dummy/db/migrate/20120413161403_add_fingerprint_to_agent_import_file.rb +5 -0
  28. data/spec/dummy/db/migrate/20120413170720_add_error_message_to_agent_import_file.rb +5 -0
  29. data/spec/dummy/db/migrate/20120511072422_add_agent_identifier_to_agent.rb +6 -0
  30. data/spec/dummy/db/migrate/20120602141129_add_edit_mode_to_agent_import_file.rb +5 -0
  31. data/spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb +26 -0
  32. data/spec/dummy/db/schema.rb +152 -146
  33. data/spec/dummy/db/test.sqlite3 +0 -0
  34. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  35. data/spec/dummy/solr/data/test/index/segments_qx +0 -0
  36. data/spec/factories/library.rb +13 -0
  37. data/spec/factories/user.rb +34 -6
  38. data/spec/fixtures/{patron_types.yml → agent_types.yml} +4 -4
  39. data/spec/fixtures/{patrons.yml → agents.yml} +46 -46
  40. data/spec/fixtures/library_groups.yml +6 -6
  41. data/spec/fixtures/user_groups.yml +51 -0
  42. data/spec/fixtures/users.yml +7 -0
  43. metadata +53 -59
  44. data/spec/dummy/app/models/role.rb +0 -46
  45. data/spec/dummy/app/models/user_group.rb +0 -36
  46. data/spec/dummy/app/models/user_has_role.rb +0 -22
  47. data/spec/dummy/db/migrate/20081028083142_create_patron_import_files.rb +0 -22
  48. data/spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb +0 -13
  49. data/spec/dummy/db/migrate/20100814091104_add_position_to_patron_relationship.rb +0 -11
  50. data/spec/dummy/db/migrate/20100925074559_create_patron_import_results.rb +0 -12
  51. data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_patron.rb +0 -11
  52. data/spec/dummy/db/migrate/20110918161853_rename_series_statement_manifestation_id_to_root_manifestation_id.rb +0 -13
  53. data/spec/dummy/db/migrate/20120413161403_add_fingerprint_to_patron_import_file.rb +0 -5
  54. data/spec/dummy/db/migrate/20120413170720_add_error_message_to_patron_import_file.rb +0 -5
  55. data/spec/dummy/db/migrate/20120415060323_rename_patron_import_file_imported_at_to_executed_at.rb +0 -9
  56. data/spec/dummy/db/migrate/20120511072422_add_patron_identifier_to_patron.rb +0 -6
  57. data/spec/dummy/db/migrate/20120602141129_add_edit_mode_to_patron_import_file.rb +0 -5
  58. data/spec/dummy/solr/data/test/index/segments_eq +0 -0
  59. data/spec/fixtures/series_has_manifestations.yml +0 -35
@@ -1,5 +1,5 @@
1
1
  ---
2
- patron_00001:
2
+ agent_00001:
3
3
  place: ""
4
4
  last_name: Administrator
5
5
  first_name:
@@ -12,11 +12,11 @@ patron_00001:
12
12
  address_1:
13
13
  language_id: 1
14
14
  country_id: 1
15
- patron_type_id: 1
15
+ agent_type_id: 1
16
16
  required_role_id: 1
17
17
  created_at: 2007-11-19 17:06:06.507237 +09:00
18
18
  user_id: 1
19
- patron_00002:
19
+ agent_00002:
20
20
  place: ""
21
21
  last_name: Librarian1
22
22
  first_name:
@@ -29,11 +29,11 @@ patron_00002:
29
29
  address_1:
30
30
  language_id: 1
31
31
  country_id: 1
32
- patron_type_id: 1
32
+ agent_type_id: 1
33
33
  required_role_id: 4
34
34
  created_at: 2007-11-19 17:06:07.724517 +09:00
35
35
  user_id: 2
36
- patron_00003:
36
+ agent_00003:
37
37
  place:
38
38
  last_name: Kosuke
39
39
  first_name: Tanabe
@@ -46,11 +46,11 @@ patron_00003:
46
46
  address_1:
47
47
  language_id: 1
48
48
  country_id: 1
49
- patron_type_id: 1
49
+ agent_type_id: 1
50
50
  required_role_id: 3
51
51
  created_at: 2007-12-04 16:25:01.523618 +09:00
52
52
  user_id: 3
53
- patron_00004:
53
+ agent_00004:
54
54
  place:
55
55
  last_name: Librarian2
56
56
  first_name:
@@ -63,11 +63,11 @@ patron_00004:
63
63
  address_1:
64
64
  language_id: 1
65
65
  country_id: 1
66
- patron_type_id: 1
66
+ agent_type_id: 1
67
67
  required_role_id: 1
68
68
  created_at: 2007-12-04 16:25:01.785027 +09:00
69
69
  user_id: 4
70
- patron_00005:
70
+ agent_00005:
71
71
  place: ""
72
72
  last_name: User2
73
73
  first_name:
@@ -80,15 +80,15 @@ patron_00005:
80
80
  address_1:
81
81
  language_id: 1
82
82
  country_id: 1
83
- patron_type_id: 1
83
+ agent_type_id: 1
84
84
  required_role_id: 2
85
85
  created_at: 2007-11-19 17:24:50.153417 +09:00
86
86
  user_id: 5
87
- patron_00006:
87
+ agent_00006:
88
88
  place: ""
89
- last_name: New patron 1
89
+ last_name: New agent 1
90
90
  first_name:
91
- full_name: New patron 1
91
+ full_name: New agent 1
92
92
  updated_at: 2007-11-21 22:02:35.579396 +09:00
93
93
  other_designation: ""
94
94
  id: 6
@@ -97,14 +97,14 @@ patron_00006:
97
97
  address_1:
98
98
  language_id: 1
99
99
  country_id: 1
100
- patron_type_id: 1
100
+ agent_type_id: 1
101
101
  required_role_id: 1
102
102
  created_at: 2007-11-19 17:24:50.153417 +09:00
103
- patron_00007:
103
+ agent_00007:
104
104
  place: ""
105
- last_name: New patron 2
105
+ last_name: New agent 2
106
106
  first_name:
107
- full_name: New patron 2
107
+ full_name: New agent 2
108
108
  updated_at: 2007-11-21 22:02:35.579396 +09:00
109
109
  other_designation: ""
110
110
  id: 7
@@ -113,14 +113,14 @@ patron_00007:
113
113
  address_1:
114
114
  language_id: 1
115
115
  country_id: 1
116
- patron_type_id: 1
116
+ agent_type_id: 1
117
117
  required_role_id: 1
118
118
  created_at: 2007-11-19 17:24:50.153417 +09:00
119
- patron_00008:
119
+ agent_00008:
120
120
  place: ""
121
- last_name: New patron 3
121
+ last_name: New agent 3
122
122
  first_name:
123
- full_name: New patron 3
123
+ full_name: New agent 3
124
124
  updated_at: 2007-11-21 22:02:35.579396 +09:00
125
125
  other_designation: ""
126
126
  id: 8
@@ -129,14 +129,14 @@ patron_00008:
129
129
  address_1:
130
130
  language_id: 1
131
131
  country_id: 1
132
- patron_type_id: 1
132
+ agent_type_id: 1
133
133
  required_role_id: 1
134
134
  created_at: 2007-11-19 17:24:50.153417 +09:00
135
- patron_00009:
135
+ agent_00009:
136
136
  place: ""
137
- last_name: New patron 4
137
+ last_name: New agent 4
138
138
  first_name:
139
- full_name: New patron 4
139
+ full_name: New agent 4
140
140
  updated_at: 2007-11-21 22:02:35.579396 +09:00
141
141
  other_designation: ""
142
142
  id: 9
@@ -145,14 +145,14 @@ patron_00009:
145
145
  address_1:
146
146
  language_id: 1
147
147
  country_id: 1
148
- patron_type_id: 1
148
+ agent_type_id: 1
149
149
  required_role_id: 1
150
150
  created_at: 2007-11-19 17:24:50.153417 +09:00
151
- patron_00010:
151
+ agent_00010:
152
152
  place: ""
153
- last_name: New patron 5
153
+ last_name: New agent 5
154
154
  first_name:
155
- full_name: New patron 5
155
+ full_name: New agent 5
156
156
  updated_at: 2007-11-21 22:02:35.579396 +09:00
157
157
  other_designation: ""
158
158
  id: 10
@@ -161,10 +161,10 @@ patron_00010:
161
161
  address_1:
162
162
  language_id: 1
163
163
  country_id: 1
164
- patron_type_id: 1
164
+ agent_type_id: 1
165
165
  required_role_id: 1
166
166
  created_at: 2007-11-19 17:24:50.153417 +09:00
167
- patron_00011:
167
+ agent_00011:
168
168
  place: ""
169
169
  last_name: User3
170
170
  first_name:
@@ -177,11 +177,11 @@ patron_00011:
177
177
  address_1:
178
178
  language_id: 1
179
179
  country_id: 1
180
- patron_type_id: 1
180
+ agent_type_id: 1
181
181
  required_role_id: 1
182
182
  created_at: 2007-11-19 17:24:50.153417 +09:00
183
183
  user_id: 6
184
- patron_00101:
184
+ agent_00101:
185
185
  place: ""
186
186
  last_name: テスト名字
187
187
  first_name: テスト名前
@@ -194,10 +194,10 @@ patron_00101:
194
194
  address_1:
195
195
  language_id: 1
196
196
  country_id: 1
197
- patron_type_id: 1
197
+ agent_type_id: 1
198
198
  required_role_id: 1
199
199
  created_at: 2010-03-03 17:00:00.579396 +09:00
200
- patron_00102:
200
+ agent_00102:
201
201
  place: ""
202
202
  last_name:
203
203
  first_name:
@@ -210,10 +210,10 @@ patron_00102:
210
210
  address_1:
211
211
  language_id: 1
212
212
  country_id: 1
213
- patron_type_id: 1
213
+ agent_type_id: 1
214
214
  required_role_id: 1
215
215
  created_at: 2010-03-03 17:00:00.579396 +09:00
216
- patron_00103:
216
+ agent_00103:
217
217
  place: ""
218
218
  last_name:
219
219
  first_name:
@@ -226,10 +226,10 @@ patron_00103:
226
226
  address_1:
227
227
  language_id: 1
228
228
  country_id: 1
229
- patron_type_id: 1
229
+ agent_type_id: 1
230
230
  required_role_id: 1
231
231
  created_at: 2010-03-16 19:00:00.579396 +09:00
232
- patron_00104:
232
+ agent_00104:
233
233
  place: ""
234
234
  last_name:
235
235
  first_name:
@@ -242,10 +242,10 @@ patron_00104:
242
242
  address_1:
243
243
  language_id: 1
244
244
  country_id: 1
245
- patron_type_id: 1
245
+ agent_type_id: 1
246
246
  required_role_id: 1
247
247
  created_at: 2010-03-16 19:00:00.579396 +09:00
248
- patron_00201:
248
+ agent_00201:
249
249
  place: ""
250
250
  last_name:
251
251
  first_name:
@@ -258,10 +258,10 @@ patron_00201:
258
258
  address_1:
259
259
  language_id: 1
260
260
  country_id: 1
261
- patron_type_id: 1
261
+ agent_type_id: 1
262
262
  required_role_id: 1
263
263
  created_at: 2010-03-15 17:00:00.579396 +09:00
264
- patron_00202:
264
+ agent_00202:
265
265
  place: ""
266
266
  last_name:
267
267
  first_name:
@@ -274,7 +274,7 @@ patron_00202:
274
274
  address_1:
275
275
  language_id: 1
276
276
  country_id: 1
277
- patron_type_id: 1
277
+ agent_type_id: 1
278
278
  required_role_id: 1
279
279
  created_at: 2010-03-15 17:00:00.579396 +09:00
280
280
 
@@ -285,7 +285,7 @@ patron_00202:
285
285
 
286
286
  # == Schema Information
287
287
  #
288
- # Table name: patrons
288
+ # Table name: agents
289
289
  #
290
290
  # id :integer not null, primary key
291
291
  # user_id :integer
@@ -322,7 +322,7 @@ patron_00202:
322
322
  # date_of_death :datetime
323
323
  # language_id :integer default(1), not null
324
324
  # country_id :integer default(1), not null
325
- # patron_type_id :integer default(1), not null
325
+ # agent_type_id :integer default(1), not null
326
326
  # lock_version :integer default(0), not null
327
327
  # note :text
328
328
  # required_role_id :integer default(1), not null
@@ -1,13 +1,14 @@
1
1
  # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
2
  one:
3
3
  id: 1
4
- name: unknown
5
- display_name: unknown
6
- short_name: unknown
4
+ name: enju_library
5
+ display_name: "<%= I18n.locale %>: Enju Library"
6
+ short_name: enju
7
7
  email: next-l@library.example.jp
8
8
  note:
9
9
  my_networks: 0.0.0.0/0
10
10
  url: "http://localhost:3000/"
11
+ admin_networks: 0.0.0.0/0
11
12
 
12
13
 
13
14
  # == Schema Information
@@ -22,10 +23,9 @@ one:
22
23
  # my_networks :text
23
24
  # login_banner :text
24
25
  # note :text
25
- # post_to_union_catalog :boolean default(FALSE), not null
26
26
  # country_id :integer
27
- # created_at :datetime
28
- # updated_at :datetime
27
+ # created_at :datetime not null
28
+ # updated_at :datetime not null
29
29
  # admin_networks :text
30
30
  # allow_bookmark_external_url :boolean default(FALSE), not null
31
31
  # position :integer
@@ -0,0 +1,51 @@
1
+ ---
2
+ user_group_00001:
3
+ name: (not specified)
4
+ display_name: (not specified)
5
+ updated_at: 2007-12-13 21:00:51.564542 +09:00
6
+ id: 1
7
+ note: ""
8
+ created_at: 2007-12-13 21:00:01.674976 +09:00
9
+ position: 1
10
+ valid_period_for_new_user: 0
11
+ number_of_day_to_notify_due_date: 2
12
+ user_group_00002:
13
+ name: User
14
+ display_name: User
15
+ updated_at: 2007-12-23 03:14:56.836548 +09:00
16
+ id: 2
17
+ note: ""
18
+ created_at: 2007-12-23 03:14:40.173954 +09:00
19
+ position: 2
20
+ valid_period_for_new_user: 365
21
+ number_of_day_to_notify_overdue: 30
22
+ number_of_time_to_notify_overdue: 6
23
+ user_group_00003:
24
+ name: Faculty
25
+ display_name: Faculty
26
+ updated_at: 2007-12-23 03:15:05.134351 +09:00
27
+ id: 3
28
+ note: ""
29
+ created_at: 2007-12-23 03:15:05.126457 +09:00
30
+ position: 3
31
+ valid_period_for_new_user: 730
32
+
33
+ # == Schema Information
34
+ #
35
+ # Table name: user_groups
36
+ #
37
+ # id :integer not null, primary key
38
+ # name :string(255)
39
+ # display_name :text
40
+ # note :text
41
+ # position :integer
42
+ # created_at :datetime not null
43
+ # updated_at :datetime not null
44
+ # deleted_at :datetime
45
+ # valid_period_for_new_user :integer default(0), not null
46
+ # expired_at :datetime
47
+ # number_of_day_to_notify_overdue :integer default(1), not null
48
+ # number_of_day_to_notify_due_date :integer default(7), not null
49
+ # number_of_time_to_notify_overdue :integer default(3), not null
50
+ #
51
+
@@ -10,6 +10,7 @@ admin:
10
10
  created_at: 2007-11-19 16:58:32.111941 +09:00
11
11
  required_role_id: 4
12
12
  share_bookmarks: true
13
+ locale: ja
13
14
  librarian1:
14
15
  updated_at: 2008-05-31 12:41:16.337474 +09:00
15
16
  encrypted_password: $2a$10$9O2VuTccN4gHq36ARg0QReSrb1D7WrBBhZZ759RM9moHbB0W5zCzS
@@ -20,6 +21,7 @@ librarian1:
20
21
  email: librarian1@kamata.lib.teu.ac.jp
21
22
  created_at: 2007-11-19 16:58:33.172441 +09:00
22
23
  required_role_id: 1
24
+ locale: ja
23
25
  user1:
24
26
  updated_at: 2008-05-31 13:02:25.101261 +09:00
25
27
  encrypted_password: $2a$10$JthS59A0BNkDOoFpCXM0V.GhhffKaoWKbzpPahYp/vTFrOyM7h/uW
@@ -30,6 +32,7 @@ user1:
30
32
  email: user1@kamata.lib.teu.ac.jp
31
33
  created_at: 2007-11-19 16:58:34.637413 +09:00
32
34
  required_role_id: 3
35
+ locale: ja
33
36
  librarian2:
34
37
  updated_at: 2008-05-31 12:42:23.340575 +09:00
35
38
  encrypted_password: $2a$10$YmmTGrYQ1Ir6oc7wXnp.GuNeO1eYLoP3sv8wMSIrTdaGw2BPwRrpS
@@ -39,6 +42,7 @@ librarian2:
39
42
  username: librarian2
40
43
  created_at: 2008-01-18 12:24:04.222344 +09:00
41
44
  required_role_id: 1
45
+ locale: ja
42
46
  user2:
43
47
  updated_at: 2008-05-31 12:42:44.711117 +09:00
44
48
  encrypted_password: $2a$10$i7UjJhLVrJM/J7qaTwW39OXw1NiwowUEbtNHVDV0sqMLjX9.UO9ca
@@ -48,6 +52,7 @@ user2:
48
52
  username: user2
49
53
  created_at: 2008-01-18 13:29:06.922728 +09:00
50
54
  required_role_id: 2
55
+ locale: ja
51
56
  user3:
52
57
  updated_at: 2008-05-31 13:02:25.101261 +09:00
53
58
  encrypted_password: cc53de0c2d9a1a228daa9a673ec824473747e17507a6c3c4f7e5eff8821f531d4b9e23616b3ddc66fe17006b2298a556fbd567ac080e87f00f37eef8cee6c417
@@ -58,6 +63,7 @@ user3:
58
63
  email: user3@kamata.lib.teu.ac.jp
59
64
  created_at: 2007-11-19 16:58:34.637413 +09:00
60
65
  required_role_id: 3
66
+ locale: ja
61
67
  user4:
62
68
  updated_at: 2008-05-31 13:02:25.101261 +09:00
63
69
  encrypted_password: cc53de0c2d9a1a228daa9a673ec824473747e17507a6c3c4f7e5eff8821f531d4b9e23616b3ddc66fe17006b2298a556fbd567ac080e87f00f37eef8cee6c417
@@ -68,3 +74,4 @@ user4:
68
74
  email: user4@kamata.lib.teu.ac.jp
69
75
  created_at: 2007-11-19 16:58:34.637413 +09:00
70
76
  required_role_id: 3
77
+ locale: ja