enju_oai 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/app/views/manifestations/list_identifiers.oai.builder +1 -1
- data/app/views/manifestations/list_records.oai.builder +1 -1
- data/lib/enju_oai/oai_controller.rb +32 -0
- data/lib/enju_oai/version.rb +1 -1
- data/spec/controllers/manifestations_controller_spec.rb +45 -0
- data/spec/dummy/README.rdoc +261 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +76 -0
- data/spec/dummy/app/controllers/manifestations_controller.rb +519 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/models/ability.rb +29 -0
- data/spec/dummy/app/models/carrier_type.rb +33 -0
- data/spec/dummy/app/models/create.rb +38 -0
- data/spec/dummy/app/models/exemplify.rb +45 -0
- data/spec/dummy/app/models/item.rb +276 -0
- data/spec/dummy/app/models/manifestation.rb +631 -0
- data/spec/dummy/app/models/patron.rb +290 -0
- data/spec/dummy/app/models/produce.rb +39 -0
- data/spec/dummy/app/models/realize.rb +38 -0
- data/spec/dummy/app/models/role.rb +46 -0
- data/spec/dummy/app/models/search_engine.rb +51 -0
- data/spec/dummy/app/models/user.rb +94 -0
- data/spec/dummy/app/models/user_has_role.rb +4 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/config/application.rb +57 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/configatron/cucumber.rb +4 -0
- data/spec/dummy/config/configatron/defaults.rb +28 -0
- data/spec/dummy/config/configatron/development.rb +4 -0
- data/spec/dummy/config/configatron/production.rb.sample +12 -0
- data/spec/dummy/config/configatron/test.rb +7 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +67 -0
- data/spec/dummy/config/environments/test.rb +37 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/configatron.rb +2 -0
- data/spec/dummy/config/initializers/devise.rb +209 -0
- data/spec/dummy/config/initializers/inflections.rb +15 -0
- data/spec/dummy/config/initializers/mime_types.rb +14 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +60 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/migrate/001_create_patrons.rb +53 -0
- data/spec/dummy/db/migrate/002_devise_create_users.rb +71 -0
- data/spec/dummy/db/migrate/005_create_manifestations.rb +59 -0
- data/spec/dummy/db/migrate/006_create_items.rb +28 -0
- data/spec/dummy/db/migrate/012_create_owns.rb +14 -0
- data/spec/dummy/db/migrate/015_create_creates.rb +14 -0
- data/spec/dummy/db/migrate/041_create_roles.rb +13 -0
- data/spec/dummy/db/migrate/047_create_produces.rb +14 -0
- data/spec/dummy/db/migrate/059_create_libraries.rb +30 -0
- data/spec/dummy/db/migrate/073_create_carrier_types.rb +11 -0
- data/spec/dummy/db/migrate/077_create_user_groups.rb +12 -0
- data/spec/dummy/db/migrate/080_create_library_groups.rb +21 -0
- data/spec/dummy/db/migrate/112_create_frequencies.rb +12 -0
- data/spec/dummy/db/migrate/117_create_form_of_works.rb +12 -0
- data/spec/dummy/db/migrate/20080830154109_create_realizes.rb +15 -0
- data/spec/dummy/db/migrate/20080830172106_create_exemplifies.rb +15 -0
- data/spec/dummy/db/migrate/20080905191442_create_patron_types.rb +12 -0
- data/spec/dummy/db/migrate/20081023092436_create_search_engines.rb +17 -0
- data/spec/dummy/db/migrate/20081025083323_create_countries.rb +28 -0
- data/spec/dummy/db/migrate/20081025083905_create_languages.rb +23 -0
- data/spec/dummy/db/migrate/20090719201843_create_extents.rb +12 -0
- data/spec/dummy/db/migrate/20090720091106_create_medium_of_performances.rb +12 -0
- data/spec/dummy/db/migrate/20090720091429_create_content_types.rb +12 -0
- data/spec/dummy/db/migrate/20090812151902_create_patron_relationship_types.rb +12 -0
- data/spec/dummy/db/migrate/20091025080447_create_licenses.rb +12 -0
- data/spec/dummy/db/migrate/20091202124834_create_versions.rb +18 -0
- data/spec/dummy/db/migrate/20100211105551_add_admin_networks_to_library_group.rb +9 -0
- data/spec/dummy/db/migrate/20100326024214_add_date_index_to_resource.rb +11 -0
- data/spec/dummy/db/migrate/20100502171926_add_latitude_and_longitude_to_library.rb +11 -0
- data/spec/dummy/db/migrate/20100525124311_create_manifestation_relationships.rb +13 -0
- data/spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb +12 -0
- data/spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb +13 -0
- data/spec/dummy/db/migrate/20100607044753_create_manifestation_relationship_types.rb +12 -0
- data/spec/dummy/db/migrate/20100627193848_add_enju_access_key_to_user.rb +10 -0
- data/spec/dummy/db/migrate/20100814091104_add_position_to_patron_relationship.rb +11 -0
- data/spec/dummy/db/migrate/20100919121500_drop_user_email_unique_index.rb +11 -0
- data/spec/dummy/db/migrate/20101103090330_add_title_to_patron.rb +9 -0
- data/spec/dummy/db/migrate/20101103090457_rename_manifestation_identifier_to_identifier.rb +9 -0
- data/spec/dummy/db/migrate/20101212070145_add_acquired_at_to_item.rb +9 -0
- data/spec/dummy/db/migrate/20101228081401_rename_postal_code_to_zip_code.rb +11 -0
- data/spec/dummy/db/migrate/20110115022329_add_position_to_library_group.rb +9 -0
- data/spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb +9 -0
- data/spec/dummy/db/migrate/20110301035123_add_pub_date_to_manifestation.rb +9 -0
- data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_patron.rb +11 -0
- data/spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb +13 -0
- data/spec/dummy/db/migrate/20110619064807_add_edition_string_to_manifestation.rb +9 -0
- data/spec/dummy/db/migrate/20110627122938_add_number_of_day_to_notify_overdue_to_user_group.rb +13 -0
- data/spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb +13 -0
- data/spec/dummy/db/migrate/20110916091020_add_volume_number_to_manifestation.rb +13 -0
- data/spec/dummy/db/migrate/20110927135845_add_missing_since_to_item.rb +9 -0
- data/spec/dummy/db/migrate/20111103221239_rename_manifestation_identifier_to_manifestation_identifier.rb +9 -0
- data/spec/dummy/db/migrate/20111124110059_create_create_types.rb +12 -0
- data/spec/dummy/db/migrate/20111124110319_create_realize_types.rb +12 -0
- data/spec/dummy/db/migrate/20111124110355_create_produce_types.rb +12 -0
- data/spec/dummy/db/migrate/20111124112131_add_create_type_to_create.rb +7 -0
- data/spec/dummy/db/migrate/20120105074911_add_isil_to_library.rb +5 -0
- data/spec/dummy/db/migrate/20120319120638_add_content_type_id_to_manifestation.rb +6 -0
- data/spec/dummy/db/migrate/20120410104851_add_year_of_publication_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20120413225628_add_fingerprint_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20120415164821_add_attachment_meta_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20120418081407_add_month_of_publication_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20120426034355_add_unique_index_to_item_identifier.rb +11 -0
- data/spec/dummy/db/migrate/20120426042730_add_unique_index_to_manifestation_identifier.rb +11 -0
- data/spec/dummy/db/schema.rb +564 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/lib/enju_leaf/calculate_stat.rb +30 -0
- data/spec/dummy/lib/enju_leaf/expire_editable_fragment.rb +30 -0
- data/spec/dummy/lib/enju_leaf/expire_fragment_cache.rb +17 -0
- data/spec/dummy/lib/enju_leaf/import_file.rb +13 -0
- data/spec/dummy/lib/enju_leaf/localized_name.rb +13 -0
- data/spec/dummy/lib/enju_leaf/master_model.rb +19 -0
- data/spec/dummy/lib/enju_leaf/url_validator.rb +10 -0
- data/spec/dummy/lib/enju_leaf.rb +8 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +25 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/dummy/tmp/cache/4F7/F90/default_role +0 -0
- data/spec/dummy/tmp/cache/6E4/420/search_engine_all +0 -0
- data/spec/factories/manifestation.rb +6 -0
- data/spec/factories/user.rb +34 -0
- data/spec/fixtures/carrier_types.yml +51 -0
- data/spec/fixtures/creates.yml +66 -0
- data/spec/fixtures/exemplifies.yml +156 -0
- data/spec/fixtures/items.yml +262 -0
- data/spec/fixtures/libraries.yml +109 -0
- data/spec/fixtures/library_groups.yml +36 -0
- data/spec/fixtures/manifestations.yml +2024 -0
- data/spec/fixtures/patron_types.yml +41 -0
- data/spec/fixtures/patrons.yml +338 -0
- data/spec/fixtures/produces.yml +150 -0
- data/spec/fixtures/realizes.yml +87 -0
- data/spec/fixtures/roles.yml +21 -0
- data/spec/fixtures/user_has_roles.yml +41 -0
- data/spec/fixtures/users.yml +93 -0
- data/spec/spec_helper.rb +38 -0
- data/spec/support/controller_macros.rb +48 -0
- data/spec/support/devise.rb +4 -0
- metadata +290 -6
- data/test/enju_oai_test.rb +0 -7
- data/test/test_helper.rb +0 -15
@@ -0,0 +1,262 @@
|
|
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
|
+
|
234
|
+
# == Schema Information
|
235
|
+
#
|
236
|
+
# Table name: items
|
237
|
+
#
|
238
|
+
# id :integer not null, primary key
|
239
|
+
# call_number :string(255)
|
240
|
+
# item_identifier :string(255)
|
241
|
+
# circulation_status_id :integer default(5), not null
|
242
|
+
# checkout_type_id :integer default(1), not null
|
243
|
+
# created_at :datetime not null
|
244
|
+
# updated_at :datetime not null
|
245
|
+
# deleted_at :datetime
|
246
|
+
# shelf_id :integer default(1), not null
|
247
|
+
# include_supplements :boolean default(FALSE), not null
|
248
|
+
# checkouts_count :integer default(0), not null
|
249
|
+
# owns_count :integer default(0), not null
|
250
|
+
# note :text
|
251
|
+
# url :string(255)
|
252
|
+
# price :integer
|
253
|
+
# lock_version :integer default(0), not null
|
254
|
+
# required_role_id :integer default(1), not null
|
255
|
+
# state :string(255)
|
256
|
+
# required_score :integer default(0), not null
|
257
|
+
# acquired_at :datetime
|
258
|
+
# bookstore_id :integer
|
259
|
+
# missing_since :datetime
|
260
|
+
# budget_type_id :integer
|
261
|
+
#
|
262
|
+
|
@@ -0,0 +1,109 @@
|
|
1
|
+
---
|
2
|
+
library_00001:
|
3
|
+
name: web
|
4
|
+
short_display_name: Web
|
5
|
+
display_name: World Wide Web
|
6
|
+
fax_number:
|
7
|
+
updated_at: 2007-08-31 00:18:06.662349 +09:00
|
8
|
+
telephone_number_1:
|
9
|
+
telephone_number_2:
|
10
|
+
id: 1
|
11
|
+
zip_code:
|
12
|
+
region:
|
13
|
+
locality:
|
14
|
+
street:
|
15
|
+
created_at: 2007-08-13 18:10:00 +09:00
|
16
|
+
library_group_id: 1
|
17
|
+
patron_id: 1
|
18
|
+
call_number_delimiter: "|"
|
19
|
+
position: 1
|
20
|
+
library_00002:
|
21
|
+
name: kamata
|
22
|
+
short_display_name: 蒲田
|
23
|
+
display_name: Kamata Library
|
24
|
+
fax_number: ""
|
25
|
+
updated_at: 2007-08-31 00:18:06.662349 +09:00
|
26
|
+
telephone_number_1: 81-3-3732-5111
|
27
|
+
telephone_number_2: ""
|
28
|
+
id: 2
|
29
|
+
zip_code: 144-8535
|
30
|
+
region: Tokyo
|
31
|
+
locality:
|
32
|
+
street:
|
33
|
+
created_at: 2007-08-13 18:10:00 +09:00
|
34
|
+
library_group_id: 1
|
35
|
+
patron_id: 2
|
36
|
+
call_number_delimiter: "|"
|
37
|
+
position: 2
|
38
|
+
isil: "JP-0000000"
|
39
|
+
library_00003:
|
40
|
+
name: hachioji
|
41
|
+
short_display_name: 八王子
|
42
|
+
display_name: Hachioji Library
|
43
|
+
fax_number: 042-637-2116
|
44
|
+
updated_at: 2007-08-31 00:18:16.188285 +09:00
|
45
|
+
telephone_number_1: 042-637-2033
|
46
|
+
telephone_number_2: ""
|
47
|
+
id: 3
|
48
|
+
zip_code: 192-0982
|
49
|
+
region: Tokyo
|
50
|
+
locality: Hachioji
|
51
|
+
street:
|
52
|
+
created_at: 2007-08-14 16:37:00 +09:00
|
53
|
+
library_group_id: 1
|
54
|
+
patron_id: 3
|
55
|
+
call_number_delimiter: "|"
|
56
|
+
position: 3
|
57
|
+
library_00004:
|
58
|
+
name: mita
|
59
|
+
short_display_name: 三田
|
60
|
+
display_name: Mita Library
|
61
|
+
fax_number: ""
|
62
|
+
updated_at: 2007-08-31 00:18:20.043951 +09:00
|
63
|
+
telephone_number_1: ""
|
64
|
+
telephone_number_2: ""
|
65
|
+
id: 4
|
66
|
+
zip_code: 108-8345
|
67
|
+
region: Tokyo
|
68
|
+
locality: Minato
|
69
|
+
street:
|
70
|
+
created_at: 2007-08-23 19:51:00 +09:00
|
71
|
+
library_group_id: 1
|
72
|
+
patron_id: 4
|
73
|
+
call_number_delimiter: "|"
|
74
|
+
position: 4
|
75
|
+
|
76
|
+
# == Schema Information
|
77
|
+
#
|
78
|
+
# Table name: libraries
|
79
|
+
#
|
80
|
+
# id :integer not null, primary key
|
81
|
+
# patron_id :integer
|
82
|
+
# patron_type :string(255)
|
83
|
+
# name :string(255) not null
|
84
|
+
# display_name :text
|
85
|
+
# short_display_name :string(255) not null
|
86
|
+
# zip_code :string(255)
|
87
|
+
# street :text
|
88
|
+
# locality :text
|
89
|
+
# region :text
|
90
|
+
# telephone_number_1 :string(255)
|
91
|
+
# telephone_number_2 :string(255)
|
92
|
+
# fax_number :string(255)
|
93
|
+
# note :text
|
94
|
+
# call_number_rows :integer default(1), not null
|
95
|
+
# call_number_delimiter :string(255) default("|"), not null
|
96
|
+
# library_group_id :integer default(1), not null
|
97
|
+
# users_count :integer default(0), not null
|
98
|
+
# position :integer
|
99
|
+
# country_id :integer
|
100
|
+
# created_at :datetime
|
101
|
+
# updated_at :datetime
|
102
|
+
# deleted_at :datetime
|
103
|
+
# opening_hour :text
|
104
|
+
# latitude :float
|
105
|
+
# longitude :float
|
106
|
+
# calil_systemid :string(255)
|
107
|
+
# calil_neighborhood_systemid :text
|
108
|
+
#
|
109
|
+
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
|
+
one:
|
3
|
+
id: 1
|
4
|
+
name: enju_library
|
5
|
+
display_name: "<%= I18n.locale %>: Enju Library"
|
6
|
+
short_name: enju
|
7
|
+
email: next-l@library.example.jp
|
8
|
+
note:
|
9
|
+
my_networks: 0.0.0.0/0
|
10
|
+
url: "http://localhost:3000/"
|
11
|
+
created_at: <%= Time.zone.now %>
|
12
|
+
updated_at: <%= Time.zone.now %>
|
13
|
+
|
14
|
+
|
15
|
+
# == Schema Information
|
16
|
+
#
|
17
|
+
# Table name: library_groups
|
18
|
+
#
|
19
|
+
# id :integer not null, primary key
|
20
|
+
# name :string(255) not null
|
21
|
+
# display_name :text
|
22
|
+
# short_name :string(255) not null
|
23
|
+
# email :string(255)
|
24
|
+
# my_networks :text
|
25
|
+
# login_banner :text
|
26
|
+
# note :text
|
27
|
+
# post_to_union_catalog :boolean default(FALSE), not null
|
28
|
+
# country_id :integer
|
29
|
+
# created_at :datetime
|
30
|
+
# updated_at :datetime
|
31
|
+
# admin_networks :text
|
32
|
+
# allow_bookmark_external_url :boolean default(FALSE), not null
|
33
|
+
# position :integer
|
34
|
+
# url :string(255) default("http://localhost:3000/")
|
35
|
+
#
|
36
|
+
|