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.
- checksums.yaml +4 -4
- data/app/controllers/baskets_controller.rb +109 -0
- data/app/views/baskets/edit.html.erb +30 -0
- data/app/views/baskets/index.html.erb +31 -0
- data/app/views/baskets/new.html.erb +29 -0
- data/app/views/baskets/show.html.erb +23 -0
- data/lib/enju_library/version.rb +1 -1
- data/spec/controllers/baskets_controller_spec.rb +379 -0
- data/spec/dummy/config/initializers/inflections.rb +3 -7
- data/spec/dummy/db/migrate/032_create_checkins.rb +17 -0
- data/spec/dummy/db/migrate/035_create_reserves.rb +27 -0
- data/spec/dummy/db/migrate/113_create_events.rb +23 -0
- data/spec/dummy/db/migrate/114_create_event_categories.rb +16 -0
- data/spec/dummy/db/migrate/121_create_checked_items.rb +17 -0
- data/spec/dummy/db/migrate/127_create_use_restrictions.rb +16 -0
- data/spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb +16 -0
- data/spec/dummy/db/migrate/149_create_message_templates.rb +18 -0
- data/spec/dummy/db/migrate/154_create_messages.rb +24 -0
- data/spec/dummy/db/migrate/20080819181903_create_message_requests.rb +20 -0
- data/spec/dummy/db/migrate/20081028093607_create_event_import_files.rb +27 -0
- data/spec/dummy/db/migrate/20081030023615_create_carrier_type_has_checkout_types.rb +18 -0
- data/spec/dummy/db/migrate/20081212075554_create_checkout_stat_has_manifestations.rb +17 -0
- data/spec/dummy/db/migrate/20081212080038_create_manifestation_checkout_stats.rb +16 -0
- data/spec/dummy/db/migrate/20081215094302_create_user_checkout_stats.rb +16 -0
- data/spec/dummy/db/migrate/20081215094955_create_checkout_stat_has_users.rb +17 -0
- data/spec/dummy/db/migrate/20081216190517_create_reserve_stat_has_manifestations.rb +17 -0
- data/spec/dummy/db/migrate/20081216190724_create_manifestation_reserve_stats.rb +16 -0
- data/spec/dummy/db/migrate/20081220023628_create_user_reserve_stats.rb +16 -0
- data/spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb +17 -0
- data/spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb +27 -0
- data/spec/dummy/db/migrate/20090519203307_create_participates.rb +17 -0
- data/spec/dummy/db/migrate/20090831220301_create_lending_policies.rb +21 -0
- data/spec/dummy/db/migrate/20100925074639_create_event_import_results.rb +15 -0
- data/spec/dummy/db/migrate/20110301134521_add_expire_date_to_reserve.rb +9 -0
- data/spec/dummy/db/migrate/20110621093332_remove_expire_date_from_reserve.rb +9 -0
- data/spec/dummy/db/migrate/20110913115320_add_lft_and_rgt_to_message.rb +11 -0
- data/spec/dummy/db/migrate/20111217234412_add_save_checkout_history_to_user.rb +5 -0
- data/spec/dummy/db/migrate/20111218002349_add_checkout_icalendar_token_to_user.rb +6 -0
- data/spec/dummy/db/migrate/20120125050502_add_depth_to_message.rb +6 -0
- data/spec/dummy/db/migrate/20120413051535_add_event_import_fingerprint_to_event_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413170734_add_error_message_to_event_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120415060342_rename_event_import_file_imported_at_to_executed_at.rb +9 -0
- data/spec/dummy/db/migrate/20120424103932_add_librarian_id_to_checked_item.rb +5 -0
- data/spec/dummy/db/migrate/20130303104849_add_state_index_to_reserve.rb +5 -0
- data/spec/dummy/db/migrate/20130303124821_add_retained_at_to_reserve.rb +5 -0
- data/spec/dummy/db/migrate/20130304015019_add_postponed_at_to_reserve.rb +5 -0
- data/spec/dummy/db/migrate/20130519065638_add_lock_version_to_reserve.rb +5 -0
- data/spec/dummy/db/migrate/20130519065837_add_lock_version_to_checkin.rb +5 -0
- data/spec/dummy/db/schema.rb +393 -83
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/conf/schema.xml +15 -2
- data/spec/dummy/solr/data/test/index/_2w.tis +0 -0
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/{segments_18r → segments_6n} +0 -0
- data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/169f4ead801f350c94685db6343b613a +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/254f2ef29215d4091bfe5949fe8f725f +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/5c6c9015e14271822fcfdcce5fca127d +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/82147708959cf940a0db9210985926fd +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/b216037296f015f88a15e209c81fe1d3 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/bbe2834cdae4786a530e40e14f846805 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/c60042eb39c8ef7a95f8926ca5648a9d +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d005c609dd44fbca49a45a652887a53d +0 -0
- data/spec/fixtures/agent_types.yml +35 -0
- data/spec/fixtures/agents.yml +338 -0
- data/spec/fixtures/carrier_type_has_checkout_types.yml +31 -0
- data/spec/fixtures/checked_items.yml +35 -0
- data/spec/fixtures/checkins.yml +55 -0
- data/spec/fixtures/checkout_stat_has_manifestations.yml +24 -0
- data/spec/fixtures/checkout_stat_has_users.yml +24 -0
- data/spec/fixtures/circulation_statuses.yml +14 -0
- data/spec/fixtures/event_categories.yml +55 -0
- data/spec/fixtures/events.yml +142 -0
- data/spec/fixtures/exemplifies.yml +19 -11
- data/spec/fixtures/item_has_use_restrictions.yml +61 -0
- data/spec/fixtures/items.yml +80 -9
- data/spec/fixtures/lending_policies.yml +99 -0
- data/spec/fixtures/libraries.yml +27 -25
- data/spec/fixtures/library_groups.yml +20 -20
- data/spec/fixtures/manifestation_checkout_stats.yml +31 -0
- data/spec/fixtures/manifestation_reserve_stats.yml +31 -0
- data/spec/fixtures/manifestations.yml +2 -137
- data/spec/fixtures/message_requests.yml +30 -0
- data/spec/fixtures/message_templates.yml +84 -0
- data/spec/fixtures/request_status_types.yml +4 -4
- data/spec/fixtures/request_types.yml +4 -4
- data/spec/fixtures/reserve_stat_has_manifestations.yml +24 -0
- data/spec/fixtures/reserve_stat_has_users.yml +24 -0
- data/spec/fixtures/reserves.yml +179 -0
- data/spec/fixtures/shelves.yml +6 -7
- data/spec/fixtures/use_restrictions.yml +93 -0
- data/spec/fixtures/user_checkout_stats.yml +31 -0
- data/spec/fixtures/user_group_has_checkout_types.yml +111 -0
- data/spec/fixtures/user_reserve_stats.yml +31 -0
- data/spec/fixtures/users.yml +14 -37
- data/spec/routing/baskets_routing_spec.rb +35 -0
- metadata +173 -26
- data/spec/dummy/solr/data/test/index/_j7.tis +0 -0
- /data/spec/dummy/solr/data/test/index/{_j7.fdt → _2w.fdt} +0 -0
- /data/spec/dummy/solr/data/test/index/{_j7.fdx → _2w.fdx} +0 -0
- /data/spec/dummy/solr/data/test/index/{_j7.fnm → _2w.fnm} +0 -0
- /data/spec/dummy/solr/data/test/index/{_j7.frq → _2w.frq} +0 -0
- /data/spec/dummy/solr/data/test/index/{_j7.nrm → _2w.nrm} +0 -0
- /data/spec/dummy/solr/data/test/index/{_j7.prx → _2w.prx} +0 -0
- /data/spec/dummy/solr/data/test/index/{_j7.tii → _2w.tii} +0 -0
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -64,6 +64,7 @@
|
|
64
64
|
<tokenizer class="solr.StandardTokenizerFactory"/>
|
65
65
|
<filter class="solr.StandardFilterFactory"/>
|
66
66
|
<filter class="solr.LowerCaseFilterFactory"/>
|
67
|
+
<filter class="solr.PorterStemFilterFactory"/>
|
67
68
|
</analyzer>
|
68
69
|
</fieldType>
|
69
70
|
<!-- *** This fieldType is used by Sunspot! *** -->
|
@@ -84,11 +85,14 @@
|
|
84
85
|
<fieldType name="tfloat" class="solr.TrieFloatField" omitNorms="true"/>
|
85
86
|
<!-- *** This fieldType is used by Sunspot! *** -->
|
86
87
|
<fieldType name="tdate" class="solr.TrieDateField" omitNorms="true"/>
|
88
|
+
|
89
|
+
<!-- A specialized field for geospatial search. If indexed, this fieldType must not be multivalued. -->
|
90
|
+
<fieldType name="location" class="solr.LatLonType" subFieldSuffix="_coordinate"/>
|
87
91
|
</types>
|
88
92
|
<fields>
|
89
93
|
<!-- Valid attributes for fields:
|
90
94
|
name: mandatory - the name for the field
|
91
|
-
type: mandatory - the name of a previously defined type from the
|
95
|
+
type: mandatory - the name of a previously defined type from the
|
92
96
|
<types> section
|
93
97
|
indexed: true if this field should be indexed (searchable or sortable)
|
94
98
|
stored: true if this field should be retrievable
|
@@ -223,8 +227,17 @@
|
|
223
227
|
<dynamicField name="*_ets" stored="true" termVectors="true" type="tdouble" multiValued="false" indexed="true"/>
|
224
228
|
<!-- *** This dynamicField is used by Sunspot! *** -->
|
225
229
|
<dynamicField name="*_etms" stored="true" termVectors="true" type="tdouble" multiValued="true" indexed="true"/>
|
230
|
+
|
231
|
+
<!-- Type used to index the lat and lon components for the "location" FieldType -->
|
232
|
+
<dynamicField name="*_coordinate" type="tdouble" indexed="true" stored="false" multiValued="false"/>
|
233
|
+
<dynamicField name="*_p" type="location" indexed="true" stored="true" multiValued="false"/>
|
234
|
+
|
235
|
+
<dynamicField name="*_ll" stored="false" type="location" multiValued="false" indexed="true"/>
|
236
|
+
<dynamicField name="*_llm" stored="false" type="location" multiValued="true" indexed="true"/>
|
237
|
+
<dynamicField name="*_lls" stored="true" type="location" multiValued="false" indexed="true"/>
|
238
|
+
<dynamicField name="*_llms" stored="true" type="location" multiValued="true" indexed="true"/>
|
226
239
|
</fields>
|
227
|
-
<!-- Field to use to determine and enforce document uniqueness.
|
240
|
+
<!-- Field to use to determine and enforce document uniqueness.
|
228
241
|
Unless this field is marked with required="false", it will be a required field
|
229
242
|
-->
|
230
243
|
<uniqueKey>id</uniqueKey>
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,35 @@
|
|
1
|
+
---
|
2
|
+
agent_type_00001:
|
3
|
+
id: 1
|
4
|
+
name: Person
|
5
|
+
display_name: Person
|
6
|
+
note:
|
7
|
+
position: 1
|
8
|
+
|
9
|
+
agent_type_00002:
|
10
|
+
id: 2
|
11
|
+
name: CorporateBody
|
12
|
+
display_name: CorporateBody
|
13
|
+
note:
|
14
|
+
position: 2
|
15
|
+
|
16
|
+
agent_type_00003:
|
17
|
+
id: 3
|
18
|
+
name: Conference
|
19
|
+
display_name: Conference
|
20
|
+
note:
|
21
|
+
position: 3
|
22
|
+
|
23
|
+
# == Schema Information
|
24
|
+
#
|
25
|
+
# Table name: agent_types
|
26
|
+
#
|
27
|
+
# id :integer not null, primary key
|
28
|
+
# name :string(255) not null
|
29
|
+
# display_name :text
|
30
|
+
# note :text
|
31
|
+
# position :integer
|
32
|
+
# created_at :datetime
|
33
|
+
# updated_at :datetime
|
34
|
+
#
|
35
|
+
|
@@ -0,0 +1,338 @@
|
|
1
|
+
---
|
2
|
+
agent_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
|
+
agent_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
|
+
agent_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
|
+
agent_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
|
+
agent_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
|
+
agent_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
|
+
agent_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
|
+
agent_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
|
+
agent_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
|
+
agent_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
|
+
agent_00006:
|
88
|
+
place: ""
|
89
|
+
last_name: New agent 1
|
90
|
+
first_name:
|
91
|
+
full_name: New agent 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
|
+
agent_type_id: 1
|
101
|
+
required_role_id: 1
|
102
|
+
created_at: 2007-11-19 17:24:50.153417 +09:00
|
103
|
+
agent_00007:
|
104
|
+
place: ""
|
105
|
+
last_name: New agent 2
|
106
|
+
first_name:
|
107
|
+
full_name: New agent 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
|
+
agent_type_id: 1
|
117
|
+
required_role_id: 1
|
118
|
+
created_at: 2007-11-19 17:24:50.153417 +09:00
|
119
|
+
agent_00008:
|
120
|
+
place: ""
|
121
|
+
last_name: New agent 3
|
122
|
+
first_name:
|
123
|
+
full_name: New agent 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
|
+
agent_type_id: 1
|
133
|
+
required_role_id: 1
|
134
|
+
created_at: 2007-11-19 17:24:50.153417 +09:00
|
135
|
+
agent_00009:
|
136
|
+
place: ""
|
137
|
+
last_name: New agent 4
|
138
|
+
first_name:
|
139
|
+
full_name: New agent 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
|
+
agent_type_id: 1
|
149
|
+
required_role_id: 1
|
150
|
+
created_at: 2007-11-19 17:24:50.153417 +09:00
|
151
|
+
agent_00010:
|
152
|
+
place: ""
|
153
|
+
last_name: New agent 5
|
154
|
+
first_name:
|
155
|
+
full_name: New agent 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
|
+
agent_type_id: 1
|
165
|
+
required_role_id: 1
|
166
|
+
created_at: 2007-11-19 17:24:50.153417 +09:00
|
167
|
+
agent_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
|
+
agent_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
|
+
agent_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
|
+
agent_type_id: 1
|
198
|
+
required_role_id: 1
|
199
|
+
created_at: 2010-03-03 17:00:00.579396 +09:00
|
200
|
+
agent_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
|
+
agent_type_id: 1
|
214
|
+
required_role_id: 1
|
215
|
+
created_at: 2010-03-03 17:00:00.579396 +09:00
|
216
|
+
agent_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
|
+
agent_type_id: 1
|
230
|
+
required_role_id: 1
|
231
|
+
created_at: 2010-03-16 19:00:00.579396 +09:00
|
232
|
+
agent_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
|
+
agent_type_id: 1
|
246
|
+
required_role_id: 1
|
247
|
+
created_at: 2010-03-16 19:00:00.579396 +09:00
|
248
|
+
agent_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
|
+
agent_type_id: 1
|
262
|
+
required_role_id: 1
|
263
|
+
created_at: 2010-03-15 17:00:00.579396 +09:00
|
264
|
+
agent_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
|
+
agent_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: agents
|
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
|
+
# agent_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
|
+
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
|
+
|
3
|
+
carrier_type_has_checkout_type_00001:
|
4
|
+
id: 1
|
5
|
+
carrier_type_id: 1
|
6
|
+
checkout_type_id: 1
|
7
|
+
note: MyText
|
8
|
+
carrier_type_has_checkout_type_00002:
|
9
|
+
id: 2
|
10
|
+
carrier_type_id: 1
|
11
|
+
checkout_type_id: 2
|
12
|
+
note: MyText
|
13
|
+
carrier_type_has_checkout_type_00003:
|
14
|
+
id: 3
|
15
|
+
carrier_type_id: 2
|
16
|
+
checkout_type_id: 1
|
17
|
+
note: MyText
|
18
|
+
|
19
|
+
# == Schema Information
|
20
|
+
#
|
21
|
+
# Table name: carrier_type_has_checkout_types
|
22
|
+
#
|
23
|
+
# id :integer not null, primary key
|
24
|
+
# carrier_type_id :integer not null
|
25
|
+
# checkout_type_id :integer not null
|
26
|
+
# note :text
|
27
|
+
# position :integer
|
28
|
+
# created_at :datetime not null
|
29
|
+
# updated_at :datetime not null
|
30
|
+
#
|
31
|
+
|
@@ -0,0 +1,35 @@
|
|
1
|
+
---
|
2
|
+
checked_item_00001:
|
3
|
+
id: 1
|
4
|
+
item_id: 10
|
5
|
+
basket_id: 1
|
6
|
+
due_date: <%= 1.week.from_now %>
|
7
|
+
checked_item_00002:
|
8
|
+
id: 2
|
9
|
+
item_id: 6
|
10
|
+
basket_id: 2
|
11
|
+
due_date: <%= 1.week.from_now %>
|
12
|
+
checked_item_00003:
|
13
|
+
id: 3
|
14
|
+
item_id: 6
|
15
|
+
basket_id: 9
|
16
|
+
due_date: <%= 1.week.from_now %>
|
17
|
+
checked_item_00004:
|
18
|
+
id: 4
|
19
|
+
item_id: 12
|
20
|
+
basket_id: 8
|
21
|
+
due_date: <%= 1.week.from_now %>
|
22
|
+
|
23
|
+
# == Schema Information
|
24
|
+
#
|
25
|
+
# Table name: checked_items
|
26
|
+
#
|
27
|
+
# id :integer not null, primary key
|
28
|
+
# item_id :integer not null
|
29
|
+
# basket_id :integer not null
|
30
|
+
# due_date :datetime not null
|
31
|
+
# created_at :datetime not null
|
32
|
+
# updated_at :datetime not null
|
33
|
+
# librarian_id :integer
|
34
|
+
#
|
35
|
+
|
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
checkin_00001:
|
3
|
+
item_id: 10
|
4
|
+
updated_at: 2008-01-22 12:58:54.347742 +09:00
|
5
|
+
id: 1
|
6
|
+
librarian_id: 1
|
7
|
+
created_at: 2008-01-22 12:58:54.347742 +09:00
|
8
|
+
basket_id: 9
|
9
|
+
lock_version: 0
|
10
|
+
checkin_00002:
|
11
|
+
item_id: 9
|
12
|
+
updated_at: 2007-12-14 00:28:41.854022 +09:00
|
13
|
+
id: 2
|
14
|
+
librarian_id: 2
|
15
|
+
created_at: 2007-12-14 00:28:41.854022 +09:00
|
16
|
+
basket_id: 10
|
17
|
+
lock_version: 0
|
18
|
+
checkin_00003:
|
19
|
+
item_id: 8
|
20
|
+
updated_at: 2007-12-20 21:24:18.729192 +09:00
|
21
|
+
id: 3
|
22
|
+
librarian_id: 1
|
23
|
+
created_at: 2007-12-20 21:24:18.729192 +09:00
|
24
|
+
basket_id: 10
|
25
|
+
lock_version: 0
|
26
|
+
checkin_00004:
|
27
|
+
item_id: 7
|
28
|
+
updated_at: 2008-01-23 00:39:27.785676 +09:00
|
29
|
+
id: 4
|
30
|
+
librarian_id: 2
|
31
|
+
created_at: 2008-01-23 00:39:27.785676 +09:00
|
32
|
+
basket_id: 10
|
33
|
+
lock_version: 0
|
34
|
+
checkin_00005:
|
35
|
+
item_id: 6
|
36
|
+
updated_at: 2007-12-20 21:25:04.619479 +09:00
|
37
|
+
id: 5
|
38
|
+
librarian_id: 1
|
39
|
+
created_at: 2007-12-20 21:25:04.619479 +09:00
|
40
|
+
basket_id: 10
|
41
|
+
lock_version: 0
|
42
|
+
|
43
|
+
# == Schema Information
|
44
|
+
#
|
45
|
+
# Table name: checkins
|
46
|
+
#
|
47
|
+
# id :integer not null, primary key
|
48
|
+
# item_id :integer not null
|
49
|
+
# librarian_id :integer
|
50
|
+
# basket_id :integer
|
51
|
+
# created_at :datetime not null
|
52
|
+
# updated_at :datetime not null
|
53
|
+
# lock_version :integer default(0), not null
|
54
|
+
#
|
55
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
|
+
|
3
|
+
one:
|
4
|
+
manifestation_checkout_stat_id: 1
|
5
|
+
manifestation_id: 1
|
6
|
+
checkouts_count: 1
|
7
|
+
|
8
|
+
two:
|
9
|
+
manifestation_checkout_stat_id: 2
|
10
|
+
manifestation_id: 1
|
11
|
+
checkouts_count: 1
|
12
|
+
|
13
|
+
# == Schema Information
|
14
|
+
#
|
15
|
+
# Table name: checkout_stat_has_manifestations
|
16
|
+
#
|
17
|
+
# id :integer not null, primary key
|
18
|
+
# manifestation_checkout_stat_id :integer not null
|
19
|
+
# manifestation_id :integer not null
|
20
|
+
# checkouts_count :integer
|
21
|
+
# created_at :datetime not null
|
22
|
+
# updated_at :datetime not null
|
23
|
+
#
|
24
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
|
+
|
3
|
+
one:
|
4
|
+
user_checkout_stat_id: 1
|
5
|
+
user_id: 1
|
6
|
+
checkouts_count: 1
|
7
|
+
|
8
|
+
two:
|
9
|
+
user_checkout_stat_id: 2
|
10
|
+
user_id: 1
|
11
|
+
checkouts_count: 1
|
12
|
+
|
13
|
+
# == Schema Information
|
14
|
+
#
|
15
|
+
# Table name: checkout_stat_has_users
|
16
|
+
#
|
17
|
+
# id :integer not null, primary key
|
18
|
+
# user_checkout_stat_id :integer not null
|
19
|
+
# user_id :integer not null
|
20
|
+
# checkouts_count :integer default(0), not null
|
21
|
+
# created_at :datetime not null
|
22
|
+
# updated_at :datetime not null
|
23
|
+
#
|
24
|
+
|
@@ -104,3 +104,17 @@ circulation_status_00016:
|
|
104
104
|
id: 16
|
105
105
|
note: ""
|
106
106
|
position: 16
|
107
|
+
|
108
|
+
# == Schema Information
|
109
|
+
#
|
110
|
+
# Table name: circulation_statuses
|
111
|
+
#
|
112
|
+
# id :integer not null, primary key
|
113
|
+
# name :string(255) not null
|
114
|
+
# display_name :text
|
115
|
+
# note :text
|
116
|
+
# position :integer
|
117
|
+
# created_at :datetime not null
|
118
|
+
# updated_at :datetime not null
|
119
|
+
#
|
120
|
+
|
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
event_category_00002:
|
3
|
+
name: closed
|
4
|
+
display_name: 休館日
|
5
|
+
updated_at: 2008-01-01 16:24:32.561469 +09:00
|
6
|
+
id: 2
|
7
|
+
note: ""
|
8
|
+
created_at: 2008-01-01 16:17:34.642433 +09:00
|
9
|
+
position: 2
|
10
|
+
event_category_00003:
|
11
|
+
name: おはなし会
|
12
|
+
display_name: おはなし会
|
13
|
+
updated_at: 2008-01-01 16:24:45.267241 +09:00
|
14
|
+
id: 3
|
15
|
+
note: ""
|
16
|
+
created_at: 2008-01-01 16:17:45.415487 +09:00
|
17
|
+
position: 3
|
18
|
+
event_category_00004:
|
19
|
+
name: 上映会
|
20
|
+
display_name: 上映会
|
21
|
+
updated_at: 2008-01-01 16:24:55.261682 +09:00
|
22
|
+
id: 4
|
23
|
+
note: ""
|
24
|
+
created_at: 2008-01-01 16:18:08.868680 +09:00
|
25
|
+
position: 4
|
26
|
+
event_category_00005:
|
27
|
+
name: 講演会
|
28
|
+
display_name: 講演会
|
29
|
+
updated_at: 2008-01-01 16:25:04.251141 +09:00
|
30
|
+
id: 5
|
31
|
+
note: ""
|
32
|
+
created_at: 2008-01-01 16:25:04.251141 +09:00
|
33
|
+
position: 5
|
34
|
+
event_category_00001:
|
35
|
+
name: unknown
|
36
|
+
display_name: (not specified)
|
37
|
+
updated_at: 2008-01-01 16:24:17.869192 +09:00
|
38
|
+
id: 1
|
39
|
+
note: ""
|
40
|
+
created_at: 2008-01-01 16:17:12.549565 +09:00
|
41
|
+
position: 1
|
42
|
+
|
43
|
+
# == Schema Information
|
44
|
+
#
|
45
|
+
# Table name: event_categories
|
46
|
+
#
|
47
|
+
# id :integer not null, primary key
|
48
|
+
# name :string(255) not null
|
49
|
+
# display_name :text
|
50
|
+
# note :text
|
51
|
+
# position :integer
|
52
|
+
# created_at :datetime
|
53
|
+
# updated_at :datetime
|
54
|
+
#
|
55
|
+
|