enju_oai 0.1.0.pre13 → 0.1.0.pre14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/manifestations/identify.oai.builder +2 -2
- data/app/views/manifestations/index.oai.builder +1 -1
- data/app/views/manifestations/list_identifiers.oai.builder +2 -2
- data/app/views/manifestations/list_metadata_formats.oai.builder +1 -1
- data/app/views/manifestations/list_records.oai.builder +2 -2
- data/app/views/manifestations/list_sets.oai.builder +1 -1
- data/app/views/manifestations/show.oai.builder +1 -1
- data/lib/enju_oai/version.rb +1 -1
- data/spec/dummy/app/models/user.rb +5 -91
- data/spec/dummy/db/migrate/001_create_agents.rb +0 -3
- data/spec/dummy/db/migrate/002_devise_create_users.rb +16 -6
- data/spec/dummy/db/migrate/005_create_manifestations.rb +0 -1
- data/spec/dummy/db/migrate/006_create_items.rb +0 -3
- data/spec/dummy/db/migrate/029_create_subjects.rb +27 -0
- data/spec/dummy/db/migrate/032_create_checkins.rb +17 -0
- data/spec/dummy/db/migrate/033_create_checkouts.rb +25 -0
- data/spec/dummy/db/migrate/035_create_reserves.rb +26 -0
- data/spec/dummy/db/migrate/080_create_library_groups.rb +0 -1
- 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/132_create_circulation_statuses.rb +16 -0
- data/spec/dummy/db/migrate/142_create_classifications.rb +19 -0
- data/spec/dummy/db/migrate/144_create_classification_types.rb +16 -0
- data/spec/dummy/db/migrate/145_create_subject_heading_types.rb +16 -0
- data/spec/dummy/db/migrate/146_create_subject_types.rb +16 -0
- data/spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb +0 -2
- data/spec/dummy/db/migrate/20081028083208_create_resource_import_files.rb +0 -2
- data/spec/dummy/db/migrate/20081028093607_create_event_import_files.rb +25 -0
- data/spec/dummy/db/migrate/20081030023412_create_checkout_types.rb +17 -0
- data/spec/dummy/db/migrate/20081030023518_create_user_group_has_checkout_types.rb +25 -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 +15 -0
- data/spec/dummy/db/migrate/20081215094302_create_user_checkout_stats.rb +15 -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 +15 -0
- data/spec/dummy/db/migrate/20081220023628_create_user_reserve_stats.rb +15 -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 +23 -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/20100129142347_create_import_requests.rb +0 -1
- 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/20110328130826_add_current_checkout_count_to_user_group_has_checkout_type.rb +9 -0
- data/spec/dummy/db/migrate/20110621093332_remove_expire_date_from_reserve.rb +9 -0
- data/spec/dummy/db/migrate/20110627034940_create_series_statement_merge_lists.rb +9 -0
- data/spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb +12 -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/20110913120629_add_lft_and_rgt_to_classification.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/20120406020752_add_url_to_subject.rb +5 -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/20130221154434_add_additional_attributes_to_user.rb +0 -10
- 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/20130416054135_add_circulation_status_id_to_item.rb +8 -0
- data/spec/dummy/db/migrate/20130504133816_add_manifestation_id_to_subject.rb +6 -0
- data/spec/dummy/db/migrate/20130504143515_add_manifestation_id_to_classification.rb +6 -0
- data/spec/dummy/db/migrate/20130504195916_add_subject_heading_type_id_to_subject.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/migrate/20140110122216_create_user_import_files.rb +18 -0
- data/spec/dummy/db/migrate/20140110131010_create_user_import_results.rb +11 -0
- data/spec/dummy/db/migrate/20140122054321_create_profiles.rb +20 -0
- data/spec/dummy/db/migrate/20140518050147_create_reserve_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140523171309_create_event_import_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140528045518_create_user_checkout_stat_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140528045539_create_user_reserve_stat_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140528045600_create_manifestation_checkout_stat_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140528045617_create_manifestation_reserve_stat_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb +11 -0
- data/spec/dummy/db/migrate/20140614065404_create_resource_export_files.rb +11 -0
- data/spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140628071719_add_user_encoding_to_event_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140628072217_add_user_encoding_to_user_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140628073524_add_user_encoding_to_agent_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140628073535_add_user_encoding_to_resource_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140709113413_create_user_export_files.rb +11 -0
- data/spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140720140916_add_binding_item_identifier_to_item.rb +8 -0
- data/spec/dummy/db/migrate/20140720170714_add_default_library_id_to_user_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140720170735_add_default_user_group_id_to_user_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140720192418_add_default_library_id_to_event_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140721151416_add_default_shelf_id_to_resource_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140802082007_add_manifestation_id_to_item.rb +6 -0
- data/spec/dummy/db/migrate/20140810061942_add_user_id_to_user_checkout_stat.rb +12 -0
- data/spec/dummy/db/migrate/20140810091231_add_checkout_icalendar_token_to_profile.rb +6 -0
- data/spec/dummy/db/migrate/20140810091417_add_save_checkout_history_to_profile.rb +5 -0
- data/spec/dummy/db/migrate/20140811031145_add_expired_at_to_profile.rb +5 -0
- data/spec/dummy/db/migrate/20140812152348_create_event_export_files.rb +11 -0
- data/spec/dummy/db/migrate/20140812153137_create_event_export_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140813182425_add_publication_place_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20140814070854_add_default_event_category_id_to_event_import_file.rb +5 -0
- data/spec/dummy/db/schema.rb +678 -42
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/default/data/index/_6y.fdt +0 -0
- data/spec/dummy/solr/default/data/index/{_5a.si → _6y.si} +0 -0
- data/spec/dummy/solr/default/data/index/{_5a_Lucene41_0.tim → _6y_Lucene41_0.tim} +0 -0
- data/spec/dummy/solr/default/data/index/_6y_Lucene41_0.tip +0 -0
- data/spec/dummy/solr/default/data/index/_6z.fdt +0 -0
- data/spec/dummy/solr/default/data/index/{_5b.si → _6z.si} +0 -0
- data/spec/dummy/solr/default/data/index/{_5b_Lucene41_0.tim → _6z_Lucene41_0.tim} +0 -0
- data/spec/dummy/solr/default/data/index/_6z_Lucene41_0.tip +0 -0
- data/spec/dummy/solr/default/data/index/_70.fdt +0 -0
- data/spec/dummy/solr/default/data/index/_70.nvd +0 -0
- data/spec/dummy/solr/default/data/index/{_5c.si → _70.si} +0 -0
- data/spec/dummy/solr/default/data/index/_70_Lucene41_0.doc +0 -0
- data/spec/dummy/solr/default/data/index/_70_Lucene41_0.pos +0 -0
- data/spec/dummy/solr/default/data/index/_70_Lucene41_0.tim +0 -0
- data/spec/dummy/solr/default/data/index/_70_Lucene41_0.tip +0 -0
- data/spec/dummy/solr/default/data/index/segments.gen +0 -0
- data/spec/dummy/solr/default/data/index/segments_9l +0 -0
- data/spec/dummy/solr/default/data/tlog/{tlog.0000000000000000261 → tlog.0000000000000000341} +0 -0
- data/spec/dummy/solr/default/data/tlog/{tlog.0000000000000000262 → tlog.0000000000000000342} +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000343 +0 -0
- data/spec/fixtures/agent_import_files.yml +12 -16
- data/spec/fixtures/agent_import_results.yml +5 -5
- data/spec/fixtures/agent_relationship_types.yml +7 -7
- data/spec/fixtures/agent_relationships.yml +6 -6
- data/spec/fixtures/agent_types.yml +7 -7
- data/spec/fixtures/agents.yml +10 -23
- data/spec/fixtures/baskets.yml +80 -0
- data/spec/fixtures/carrier_types.yml +6 -6
- data/spec/fixtures/circulation_statuses.yml +136 -0
- data/spec/fixtures/content_types.yml +4 -4
- data/spec/fixtures/countries.yml +2 -2
- data/spec/fixtures/create_types.yml +3 -3
- data/spec/fixtures/creates.yml +5 -6
- data/spec/fixtures/donates.yml +5 -5
- data/spec/fixtures/event_categories.yml +55 -0
- data/spec/fixtures/events.yml +142 -0
- data/spec/fixtures/exemplifies.yml +5 -6
- data/spec/fixtures/extents.yml +4 -4
- data/spec/fixtures/form_of_works.yml +4 -4
- data/spec/fixtures/frequencies.yml +4 -4
- data/spec/fixtures/identifier_types.yml +7 -0
- data/spec/fixtures/import_requests.yml +3 -7
- data/spec/fixtures/item_has_use_restrictions.yml +61 -0
- data/spec/fixtures/items.yml +93 -19
- data/spec/fixtures/languages.yml +3 -3
- data/spec/fixtures/library_groups.yml +0 -2
- data/spec/fixtures/licenses.yml +4 -4
- data/spec/fixtures/manifestation_relationship_types.yml +4 -4
- data/spec/fixtures/manifestation_relationships.yml +3 -3
- data/spec/fixtures/manifestations.yml +1 -2
- data/spec/fixtures/medium_of_performances.yml +4 -4
- data/spec/fixtures/owns.yml +5 -5
- data/spec/fixtures/picture_files.yml +4 -4
- data/spec/fixtures/produce_types.yml +3 -3
- data/spec/fixtures/produces.yml +5 -6
- data/spec/fixtures/profiles.yml +98 -0
- data/spec/fixtures/realize_types.yml +3 -3
- data/spec/fixtures/realizes.yml +5 -6
- data/spec/fixtures/series_statements.yml +15 -2
- data/spec/fixtures/user_group_has_checkout_types.yml +111 -0
- data/spec/fixtures/user_groups.yml +10 -3
- data/spec/fixtures/users.yml +0 -42
- data/spec/spec_helper.rb +5 -0
- metadata +282 -82
- data/spec/dummy/solr/default/data/index/_5a.fdt +0 -0
- data/spec/dummy/solr/default/data/index/_5a_Lucene41_0.tip +0 -0
- data/spec/dummy/solr/default/data/index/_5b.fdt +0 -0
- data/spec/dummy/solr/default/data/index/_5b_Lucene41_0.tip +0 -0
- data/spec/dummy/solr/default/data/index/_5c.fdt +0 -0
- data/spec/dummy/solr/default/data/index/_5c.nvd +0 -0
- data/spec/dummy/solr/default/data/index/_5c_Lucene41_0.doc +0 -0
- data/spec/dummy/solr/default/data/index/_5c_Lucene41_0.pos +0 -0
- data/spec/dummy/solr/default/data/index/_5c_Lucene41_0.tim +0 -0
- data/spec/dummy/solr/default/data/index/_5c_Lucene41_0.tip +0 -0
- data/spec/dummy/solr/default/data/index/segments_7d +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000263 +0 -0
- data/spec/fixtures/resource_import_files.yml +0 -47
- data/spec/fixtures/resource_import_results.yml +0 -29
- /data/spec/dummy/solr/default/data/index/{_5a.fdx → _6y.fdx} +0 -0
- /data/spec/dummy/solr/default/data/index/{_5a.fnm → _6y.fnm} +0 -0
- /data/spec/dummy/solr/default/data/index/{_5a.nvd → _6y.nvd} +0 -0
- /data/spec/dummy/solr/default/data/index/{_5a.nvm → _6y.nvm} +0 -0
- /data/spec/dummy/solr/default/data/index/{_5a_Lucene41_0.doc → _6y_Lucene41_0.doc} +0 -0
- /data/spec/dummy/solr/default/data/index/{_5a_Lucene41_0.pos → _6y_Lucene41_0.pos} +0 -0
- /data/spec/dummy/solr/default/data/index/{_5b.fdx → _6z.fdx} +0 -0
- /data/spec/dummy/solr/default/data/index/{_5b.fnm → _6z.fnm} +0 -0
- /data/spec/dummy/solr/default/data/index/{_5b.nvd → _6z.nvd} +0 -0
- /data/spec/dummy/solr/default/data/index/{_5b.nvm → _6z.nvm} +0 -0
- /data/spec/dummy/solr/default/data/index/{_5b_Lucene41_0.doc → _6z_Lucene41_0.doc} +0 -0
- /data/spec/dummy/solr/default/data/index/{_5b_Lucene41_0.pos → _6z_Lucene41_0.pos} +0 -0
- /data/spec/dummy/solr/default/data/index/{_5c.fdx → _70.fdx} +0 -0
- /data/spec/dummy/solr/default/data/index/{_5c.fnm → _70.fnm} +0 -0
- /data/spec/dummy/solr/default/data/index/{_5c.nvm → _70.nvm} +0 -0
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/spec/dummy/solr/default/data/tlog/{tlog.0000000000000000261 → tlog.0000000000000000341}
RENAMED
Binary file
|
data/spec/dummy/solr/default/data/tlog/{tlog.0000000000000000262 → tlog.0000000000000000342}
RENAMED
Binary file
|
Binary file
|
@@ -6,42 +6,38 @@ agent_import_file_00001:
|
|
6
6
|
agent_import_file_size: 1
|
7
7
|
user_id: 1
|
8
8
|
agent_import_content_type: text/csv
|
9
|
-
state: completed
|
10
9
|
agent_import_file_00002:
|
11
10
|
id: 2
|
12
11
|
agent_import_file_name: MyString
|
13
12
|
agent_import_file_size: 1
|
14
13
|
user_id: 1
|
15
14
|
agent_import_content_type: text/csv
|
16
|
-
state: pending
|
17
15
|
agent_import_file_00003:
|
18
16
|
id: 3
|
19
17
|
agent_import_file_name: MyString
|
20
18
|
agent_import_file_size: 1
|
21
19
|
user_id: 1
|
22
20
|
agent_import_content_type: text/csv
|
23
|
-
state: pending
|
24
21
|
|
25
22
|
# == Schema Information
|
26
23
|
#
|
27
24
|
# Table name: agent_import_files
|
28
25
|
#
|
29
|
-
# id
|
30
|
-
# parent_id
|
31
|
-
# content_type
|
32
|
-
# size
|
33
|
-
# user_id
|
34
|
-
# note
|
35
|
-
# executed_at
|
36
|
-
# state :string(255)
|
26
|
+
# id :integer not null, primary key
|
27
|
+
# parent_id :integer
|
28
|
+
# content_type :string(255)
|
29
|
+
# size :integer
|
30
|
+
# user_id :integer
|
31
|
+
# note :text
|
32
|
+
# executed_at :datetime
|
37
33
|
# agent_import_file_name :string(255)
|
38
34
|
# agent_import_content_type :string(255)
|
39
35
|
# agent_import_file_size :integer
|
40
36
|
# agent_import_updated_at :datetime
|
41
|
-
# created_at
|
42
|
-
# updated_at
|
37
|
+
# created_at :datetime not null
|
38
|
+
# updated_at :datetime not null
|
43
39
|
# agent_import_fingerprint :string(255)
|
44
|
-
# error_message
|
45
|
-
# edit_mode
|
40
|
+
# error_message :text
|
41
|
+
# edit_mode :string(255)
|
42
|
+
# user_encoding :string(255)
|
46
43
|
#
|
47
|
-
|
@@ -18,12 +18,12 @@ two:
|
|
18
18
|
#
|
19
19
|
# Table name: agent_import_results
|
20
20
|
#
|
21
|
-
# id
|
21
|
+
# id :integer not null, primary key
|
22
22
|
# agent_import_file_id :integer
|
23
23
|
# agent_id :integer
|
24
|
-
# user_id
|
25
|
-
# body
|
26
|
-
# created_at
|
27
|
-
# updated_at
|
24
|
+
# user_id :integer
|
25
|
+
# body :text
|
26
|
+
# created_at :datetime not null
|
27
|
+
# updated_at :datetime not null
|
28
28
|
#
|
29
29
|
|
@@ -2,19 +2,19 @@
|
|
2
2
|
|
3
3
|
agent_relationship_type_00001:
|
4
4
|
id: 1
|
5
|
-
name:
|
5
|
+
name: see_also
|
6
6
|
display_name: See also
|
7
7
|
note:
|
8
8
|
position: 1
|
9
9
|
agent_relationship_type_00002:
|
10
10
|
id: 2
|
11
|
-
name:
|
11
|
+
name: member
|
12
12
|
display_name: Member
|
13
13
|
note:
|
14
14
|
position: 2
|
15
15
|
agent_relationship_type_00003:
|
16
16
|
id: 3
|
17
|
-
name:
|
17
|
+
name: child
|
18
18
|
display_name: Child
|
19
19
|
note:
|
20
20
|
position: 3
|
@@ -23,12 +23,12 @@ agent_relationship_type_00003:
|
|
23
23
|
#
|
24
24
|
# Table name: agent_relationship_types
|
25
25
|
#
|
26
|
-
# id :integer
|
27
|
-
# name :string(255)
|
26
|
+
# id :integer not null, primary key
|
27
|
+
# name :string(255) not null
|
28
28
|
# display_name :text
|
29
29
|
# note :text
|
30
30
|
# position :integer
|
31
|
-
# created_at :datetime
|
32
|
-
# updated_at :datetime
|
31
|
+
# created_at :datetime not null
|
32
|
+
# updated_at :datetime not null
|
33
33
|
#
|
34
34
|
|
@@ -14,12 +14,12 @@ two:
|
|
14
14
|
#
|
15
15
|
# Table name: agent_relationships
|
16
16
|
#
|
17
|
-
# id
|
18
|
-
# parent_id
|
19
|
-
# child_id
|
17
|
+
# id :integer not null, primary key
|
18
|
+
# parent_id :integer
|
19
|
+
# child_id :integer
|
20
20
|
# agent_relationship_type_id :integer
|
21
|
-
# created_at
|
22
|
-
# updated_at
|
23
|
-
# position
|
21
|
+
# created_at :datetime not null
|
22
|
+
# updated_at :datetime not null
|
23
|
+
# position :integer
|
24
24
|
#
|
25
25
|
|
@@ -1,21 +1,21 @@
|
|
1
1
|
---
|
2
2
|
agent_type_00001:
|
3
3
|
id: 1
|
4
|
-
name:
|
4
|
+
name: person
|
5
5
|
display_name: Person
|
6
6
|
note:
|
7
7
|
position: 1
|
8
8
|
|
9
9
|
agent_type_00002:
|
10
10
|
id: 2
|
11
|
-
name:
|
11
|
+
name: corporate_body
|
12
12
|
display_name: CorporateBody
|
13
13
|
note:
|
14
14
|
position: 2
|
15
15
|
|
16
16
|
agent_type_00003:
|
17
17
|
id: 3
|
18
|
-
name:
|
18
|
+
name: conference
|
19
19
|
display_name: Conference
|
20
20
|
note:
|
21
21
|
position: 3
|
@@ -24,12 +24,12 @@ agent_type_00003:
|
|
24
24
|
#
|
25
25
|
# Table name: agent_types
|
26
26
|
#
|
27
|
-
# id :integer
|
28
|
-
# name :string(255)
|
27
|
+
# id :integer not null, primary key
|
28
|
+
# name :string(255) not null
|
29
29
|
# display_name :text
|
30
30
|
# note :text
|
31
31
|
# position :integer
|
32
|
-
# created_at :datetime
|
33
|
-
# updated_at :datetime
|
32
|
+
# created_at :datetime not null
|
33
|
+
# updated_at :datetime not null
|
34
34
|
#
|
35
35
|
|
data/spec/fixtures/agents.yml
CHANGED
@@ -15,7 +15,6 @@ agent_00001:
|
|
15
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
|
-
user_id: 1
|
19
18
|
agent_00002:
|
20
19
|
place: ""
|
21
20
|
last_name: Librarian1
|
@@ -32,7 +31,6 @@ agent_00002:
|
|
32
31
|
agent_type_id: 1
|
33
32
|
required_role_id: 4
|
34
33
|
created_at: 2007-11-19 17:06:07.724517 +09:00
|
35
|
-
user_id: 2
|
36
34
|
agent_00003:
|
37
35
|
place:
|
38
36
|
last_name: Kosuke
|
@@ -49,7 +47,6 @@ agent_00003:
|
|
49
47
|
agent_type_id: 1
|
50
48
|
required_role_id: 3
|
51
49
|
created_at: 2007-12-04 16:25:01.523618 +09:00
|
52
|
-
user_id: 3
|
53
50
|
agent_00004:
|
54
51
|
place:
|
55
52
|
last_name: Librarian2
|
@@ -66,7 +63,6 @@ agent_00004:
|
|
66
63
|
agent_type_id: 1
|
67
64
|
required_role_id: 1
|
68
65
|
created_at: 2007-12-04 16:25:01.785027 +09:00
|
69
|
-
user_id: 4
|
70
66
|
agent_00005:
|
71
67
|
place: ""
|
72
68
|
last_name: User2
|
@@ -83,7 +79,6 @@ agent_00005:
|
|
83
79
|
agent_type_id: 1
|
84
80
|
required_role_id: 2
|
85
81
|
created_at: 2007-11-19 17:24:50.153417 +09:00
|
86
|
-
user_id: 5
|
87
82
|
agent_00006:
|
88
83
|
place: ""
|
89
84
|
last_name: New agent 1
|
@@ -180,7 +175,6 @@ agent_00011:
|
|
180
175
|
agent_type_id: 1
|
181
176
|
required_role_id: 1
|
182
177
|
created_at: 2007-11-19 17:24:50.153417 +09:00
|
183
|
-
user_id: 6
|
184
178
|
agent_00101:
|
185
179
|
place: ""
|
186
180
|
last_name: テスト名字
|
@@ -278,17 +272,11 @@ agent_00202:
|
|
278
272
|
required_role_id: 1
|
279
273
|
created_at: 2010-03-15 17:00:00.579396 +09:00
|
280
274
|
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
275
|
# == Schema Information
|
287
276
|
#
|
288
277
|
# Table name: agents
|
289
278
|
#
|
290
|
-
# id :integer
|
291
|
-
# user_id :integer
|
279
|
+
# id :integer not null, primary key
|
292
280
|
# last_name :string(255)
|
293
281
|
# middle_name :string(255)
|
294
282
|
# first_name :string(255)
|
@@ -300,8 +288,8 @@ agent_00202:
|
|
300
288
|
# full_name :string(255)
|
301
289
|
# full_name_transcription :text
|
302
290
|
# full_name_alternative :text
|
303
|
-
# created_at :datetime
|
304
|
-
# updated_at :datetime
|
291
|
+
# created_at :datetime not null
|
292
|
+
# updated_at :datetime not null
|
305
293
|
# deleted_at :datetime
|
306
294
|
# zip_code_1 :string(255)
|
307
295
|
# zip_code_2 :string(255)
|
@@ -321,18 +309,17 @@ agent_00202:
|
|
321
309
|
# region :text
|
322
310
|
# date_of_birth :datetime
|
323
311
|
# date_of_death :datetime
|
324
|
-
# language_id :integer
|
325
|
-
# country_id :integer
|
326
|
-
# agent_type_id
|
327
|
-
# lock_version :integer
|
312
|
+
# language_id :integer default(1), not null
|
313
|
+
# country_id :integer default(1), not null
|
314
|
+
# agent_type_id :integer default(1), not null
|
315
|
+
# lock_version :integer default(0), not null
|
328
316
|
# note :text
|
329
|
-
# required_role_id :integer
|
330
|
-
# required_score :integer
|
331
|
-
# state :string(255)
|
317
|
+
# required_role_id :integer default(1), not null
|
318
|
+
# required_score :integer default(0), not null
|
332
319
|
# email :text
|
333
320
|
# url :text
|
334
321
|
# full_name_alternative_transcription :text
|
335
322
|
# birth_date :string(255)
|
336
323
|
# death_date :string(255)
|
324
|
+
# agent_identifier :string(255)
|
337
325
|
#
|
338
|
-
|
@@ -0,0 +1,80 @@
|
|
1
|
+
---
|
2
|
+
basket_00001:
|
3
|
+
updated_at: 2008-01-21 17:21:58.554146 +09:00
|
4
|
+
id: 1
|
5
|
+
note:
|
6
|
+
user_id: 1
|
7
|
+
created_at: 2008-01-21 17:21:58.554146 +09:00
|
8
|
+
basket_00002:
|
9
|
+
updated_at: 2008-01-21 17:26:14.585596 +09:00
|
10
|
+
id: 2
|
11
|
+
note:
|
12
|
+
user_id: 2
|
13
|
+
created_at: 2008-01-21 17:26:14.585596 +09:00
|
14
|
+
basket_00003:
|
15
|
+
updated_at: 2008-01-21 17:26:14.585596 +09:00
|
16
|
+
id: 3
|
17
|
+
note:
|
18
|
+
user_id: 3
|
19
|
+
created_at: 2008-01-21 17:26:14.585596 +09:00
|
20
|
+
basket_00004:
|
21
|
+
updated_at: 2008-01-21 17:26:14.585596 +09:00
|
22
|
+
id: 4
|
23
|
+
note:
|
24
|
+
user_id: 2
|
25
|
+
created_at: 2008-01-21 17:26:14.585596 +09:00
|
26
|
+
basket_00005:
|
27
|
+
updated_at: 2008-01-21 17:26:14.585596 +09:00
|
28
|
+
id: 5
|
29
|
+
note:
|
30
|
+
user_id: 1
|
31
|
+
created_at: 2008-01-21 17:26:14.585596 +09:00
|
32
|
+
basket_00006:
|
33
|
+
updated_at: 2008-01-21 17:26:14.585596 +09:00
|
34
|
+
id: 6
|
35
|
+
note:
|
36
|
+
user_id: 2
|
37
|
+
created_at: 2008-01-21 17:26:14.585596 +09:00
|
38
|
+
basket_00007:
|
39
|
+
updated_at: 2008-01-21 17:26:14.585596 +09:00
|
40
|
+
id: 7
|
41
|
+
note:
|
42
|
+
user_id: 3
|
43
|
+
created_at: 2008-01-21 17:26:14.585596 +09:00
|
44
|
+
basket_00008:
|
45
|
+
updated_at: 2008-01-21 17:26:14.585596 +09:00
|
46
|
+
id: 8
|
47
|
+
note:
|
48
|
+
user_id: 3
|
49
|
+
created_at: 2008-01-21 17:26:14.585596 +09:00
|
50
|
+
basket_00009:
|
51
|
+
updated_at: 2008-01-21 17:26:14.585596 +09:00
|
52
|
+
id: 9
|
53
|
+
note:
|
54
|
+
user_id: 2
|
55
|
+
created_at: 2008-01-21 17:26:14.585596 +09:00
|
56
|
+
basket_00010:
|
57
|
+
updated_at: 2008-01-21 17:26:14.585596 +09:00
|
58
|
+
id: 10
|
59
|
+
note:
|
60
|
+
user_id: 3
|
61
|
+
created_at: 2008-01-21 17:26:14.585596 +09:00
|
62
|
+
basket_00011:
|
63
|
+
updated_at: 2008-01-21 17:26:14.585596 +09:00
|
64
|
+
id: 11
|
65
|
+
note:
|
66
|
+
user_id: 4
|
67
|
+
created_at: 2008-01-21 17:26:14.585596 +09:00
|
68
|
+
|
69
|
+
# == Schema Information
|
70
|
+
#
|
71
|
+
# Table name: baskets
|
72
|
+
#
|
73
|
+
# id :integer not null, primary key
|
74
|
+
# user_id :integer
|
75
|
+
# note :text
|
76
|
+
# lock_version :integer default(0), not null
|
77
|
+
# created_at :datetime not null
|
78
|
+
# updated_at :datetime not null
|
79
|
+
#
|
80
|
+
|
@@ -20,7 +20,7 @@ carrier_type_00001:
|
|
20
20
|
created_at: 2007-11-20 15:47:03.641530 +09:00
|
21
21
|
position: 1
|
22
22
|
carrier_type_00002:
|
23
|
-
name:
|
23
|
+
name: cd
|
24
24
|
display_name: CD
|
25
25
|
updated_at: 2007-12-19 01:45:26.040674 +09:00
|
26
26
|
id: 2
|
@@ -28,7 +28,7 @@ carrier_type_00002:
|
|
28
28
|
created_at: 2007-12-19 01:45:26.040674 +09:00
|
29
29
|
position: 2
|
30
30
|
carrier_type_00003:
|
31
|
-
name:
|
31
|
+
name: dvd
|
32
32
|
display_name: DVD
|
33
33
|
updated_at: 2007-12-23 04:24:23.151410 +09:00
|
34
34
|
id: 3
|
@@ -40,12 +40,12 @@ carrier_type_00003:
|
|
40
40
|
#
|
41
41
|
# Table name: carrier_types
|
42
42
|
#
|
43
|
-
# id :integer
|
44
|
-
# name :string(255)
|
43
|
+
# id :integer not null, primary key
|
44
|
+
# name :string(255) not null
|
45
45
|
# display_name :text
|
46
46
|
# note :text
|
47
47
|
# position :integer
|
48
|
-
# created_at :datetime
|
49
|
-
# updated_at :datetime
|
48
|
+
# created_at :datetime not null
|
49
|
+
# updated_at :datetime not null
|
50
50
|
#
|
51
51
|
|
@@ -0,0 +1,136 @@
|
|
1
|
+
---
|
2
|
+
circulation_status_00005:
|
3
|
+
name: In Process
|
4
|
+
display_name: In Process
|
5
|
+
updated_at: 2008-02-15 17:31:42.422676 +09:00
|
6
|
+
id: 5
|
7
|
+
note: ""
|
8
|
+
created_at: 2008-02-15 17:31:42.422676 +09:00
|
9
|
+
position: 5
|
10
|
+
circulation_status_00006:
|
11
|
+
name: In Transit Between Library Locations
|
12
|
+
display_name: In Transit Between Library Locations
|
13
|
+
updated_at: 2008-02-15 17:31:51.227056 +09:00
|
14
|
+
id: 6
|
15
|
+
note: ""
|
16
|
+
created_at: 2008-02-15 17:31:51.227056 +09:00
|
17
|
+
position: 6
|
18
|
+
circulation_status_00007:
|
19
|
+
name: Lost
|
20
|
+
display_name: Lost
|
21
|
+
updated_at: 2008-02-15 17:31:58.627987 +09:00
|
22
|
+
id: 7
|
23
|
+
note: ""
|
24
|
+
created_at: 2008-02-15 17:31:58.627987 +09:00
|
25
|
+
position: 7
|
26
|
+
circulation_status_00008:
|
27
|
+
name: Missing
|
28
|
+
display_name: Missing
|
29
|
+
updated_at: 2008-02-15 17:32:07.006541 +09:00
|
30
|
+
id: 8
|
31
|
+
note: ""
|
32
|
+
created_at: 2008-02-15 17:32:07.006541 +09:00
|
33
|
+
position: 8
|
34
|
+
circulation_status_00010:
|
35
|
+
name: On Loan
|
36
|
+
display_name: On Loan
|
37
|
+
updated_at: 2008-02-15 17:32:22.969896 +09:00
|
38
|
+
id: 10
|
39
|
+
note: ""
|
40
|
+
created_at: 2008-02-15 17:32:22.969896 +09:00
|
41
|
+
position: 10
|
42
|
+
circulation_status_00009:
|
43
|
+
name: Not Available
|
44
|
+
display_name: Not Available
|
45
|
+
updated_at: 2008-02-15 17:32:15.454067 +09:00
|
46
|
+
id: 9
|
47
|
+
note: ""
|
48
|
+
created_at: 2008-02-15 17:32:15.454067 +09:00
|
49
|
+
position: 9
|
50
|
+
circulation_status_00011:
|
51
|
+
name: On Order
|
52
|
+
display_name: On Order
|
53
|
+
updated_at: 2008-02-15 17:32:30.675735 +09:00
|
54
|
+
id: 11
|
55
|
+
note: ""
|
56
|
+
created_at: 2008-02-15 17:32:30.675735 +09:00
|
57
|
+
position: 11
|
58
|
+
circulation_status_00012:
|
59
|
+
name: Pending Transfer
|
60
|
+
display_name: Pending Transfer
|
61
|
+
updated_at: 2008-02-15 17:32:39.395000 +09:00
|
62
|
+
id: 12
|
63
|
+
note: ""
|
64
|
+
created_at: 2008-02-15 17:32:39.395000 +09:00
|
65
|
+
position: 12
|
66
|
+
circulation_status_00001:
|
67
|
+
name: Available For Pickup
|
68
|
+
display_name: Available For Pickup
|
69
|
+
updated_at: 2008-02-15 17:31:10.588524 +09:00
|
70
|
+
id: 1
|
71
|
+
note: ""
|
72
|
+
created_at: 2008-02-15 17:31:10.588524 +09:00
|
73
|
+
position: 1
|
74
|
+
circulation_status_00002:
|
75
|
+
name: Available On Shelf
|
76
|
+
display_name: Available On Shelf
|
77
|
+
updated_at: 2008-02-15 17:31:18.946298 +09:00
|
78
|
+
id: 2
|
79
|
+
note: ""
|
80
|
+
created_at: 2008-02-15 17:31:18.946298 +09:00
|
81
|
+
position: 2
|
82
|
+
circulation_status_00013:
|
83
|
+
name: Recalled
|
84
|
+
display_name: Recalled
|
85
|
+
updated_at: 2008-02-15 17:32:48.355304 +09:00
|
86
|
+
id: 13
|
87
|
+
note: ""
|
88
|
+
created_at: 2008-02-15 17:32:48.355304 +09:00
|
89
|
+
position: 13
|
90
|
+
circulation_status_00014:
|
91
|
+
name: Waiting To Be Reshelved
|
92
|
+
display_name: Waiting To Be Reshelved
|
93
|
+
updated_at: 2008-02-15 17:32:59.078750 +09:00
|
94
|
+
id: 14
|
95
|
+
note: ""
|
96
|
+
created_at: 2008-02-15 17:32:59.078750 +09:00
|
97
|
+
position: 14
|
98
|
+
circulation_status_00003:
|
99
|
+
name: Circulation Status Undefined
|
100
|
+
display_name: Circulation Status Undefined
|
101
|
+
updated_at: 2008-02-15 17:31:26.564769 +09:00
|
102
|
+
id: 3
|
103
|
+
note: ""
|
104
|
+
created_at: 2008-02-15 17:31:26.564769 +09:00
|
105
|
+
position: 3
|
106
|
+
circulation_status_00004:
|
107
|
+
name: Claimed Returned Or Never Borrowed
|
108
|
+
display_name: Claimed Returned Or Never Borrowed
|
109
|
+
updated_at: 2008-02-15 17:31:35.786404 +09:00
|
110
|
+
id: 4
|
111
|
+
note: ""
|
112
|
+
created_at: 2008-02-15 17:31:35.786404 +09:00
|
113
|
+
position: 4
|
114
|
+
circulation_status_00015:
|
115
|
+
name: Removed
|
116
|
+
display_name: "en: Removed\r\n\
|
117
|
+
ja: 除籍済み"
|
118
|
+
id: 15
|
119
|
+
updated_at: 2008-02-15 17:31:35.786404 +09:00
|
120
|
+
note: ""
|
121
|
+
created_at: 2008-02-15 17:31:35.786404 +09:00
|
122
|
+
position: 15
|
123
|
+
|
124
|
+
# == Schema Information
|
125
|
+
#
|
126
|
+
# Table name: circulation_statuses
|
127
|
+
#
|
128
|
+
# id :integer not null, primary key
|
129
|
+
# name :string(255) not null
|
130
|
+
# display_name :text
|
131
|
+
# note :text
|
132
|
+
# position :integer
|
133
|
+
# created_at :datetime
|
134
|
+
# updated_at :datetime
|
135
|
+
#
|
136
|
+
|
@@ -25,12 +25,12 @@ three:
|
|
25
25
|
#
|
26
26
|
# Table name: content_types
|
27
27
|
#
|
28
|
-
# id :integer
|
29
|
-
# name :string(255)
|
28
|
+
# id :integer not null, primary key
|
29
|
+
# name :string(255) not null
|
30
30
|
# display_name :text
|
31
31
|
# note :text
|
32
32
|
# position :integer
|
33
|
-
# created_at :datetime
|
34
|
-
# updated_at :datetime
|
33
|
+
# created_at :datetime not null
|
34
|
+
# updated_at :datetime not null
|
35
35
|
#
|
36
36
|
|
data/spec/fixtures/countries.yml
CHANGED
@@ -2047,8 +2047,8 @@ country_00170:
|
|
2047
2047
|
#
|
2048
2048
|
# Table name: countries
|
2049
2049
|
#
|
2050
|
-
# id :integer
|
2051
|
-
# name :string(255)
|
2050
|
+
# id :integer not null, primary key
|
2051
|
+
# name :string(255) not null
|
2052
2052
|
# display_name :text
|
2053
2053
|
# alpha_2 :string(255)
|
2054
2054
|
# alpha_3 :string(255)
|
@@ -36,12 +36,12 @@ illustrator:
|
|
36
36
|
#
|
37
37
|
# Table name: create_types
|
38
38
|
#
|
39
|
-
# id :integer
|
39
|
+
# id :integer not null, primary key
|
40
40
|
# name :string(255)
|
41
41
|
# display_name :text
|
42
42
|
# note :text
|
43
43
|
# position :integer
|
44
|
-
# created_at :datetime
|
45
|
-
# updated_at :datetime
|
44
|
+
# created_at :datetime not null
|
45
|
+
# updated_at :datetime not null
|
46
46
|
#
|
47
47
|
|
data/spec/fixtures/creates.yml
CHANGED
@@ -49,17 +49,16 @@ create_00104:
|
|
49
49
|
position: 2
|
50
50
|
created_at: 2010-03-16 19:00:00.538796 +09:00
|
51
51
|
|
52
|
-
|
53
52
|
# == Schema Information
|
54
53
|
#
|
55
54
|
# Table name: creates
|
56
55
|
#
|
57
|
-
# id :integer
|
58
|
-
# agent_id
|
59
|
-
# work_id :integer
|
56
|
+
# id :integer not null, primary key
|
57
|
+
# agent_id :integer not null
|
58
|
+
# work_id :integer not null
|
60
59
|
# position :integer
|
61
|
-
# created_at :datetime
|
62
|
-
# updated_at :datetime
|
60
|
+
# created_at :datetime not null
|
61
|
+
# updated_at :datetime not null
|
63
62
|
# create_type_id :integer
|
64
63
|
#
|
65
64
|
|
data/spec/fixtures/donates.yml
CHANGED
@@ -22,10 +22,10 @@ donate_00003:
|
|
22
22
|
#
|
23
23
|
# Table name: donates
|
24
24
|
#
|
25
|
-
# id :integer
|
26
|
-
# agent_id
|
27
|
-
# item_id :integer
|
28
|
-
# created_at :datetime
|
29
|
-
# updated_at :datetime
|
25
|
+
# id :integer not null, primary key
|
26
|
+
# agent_id :integer not null
|
27
|
+
# item_id :integer not null
|
28
|
+
# created_at :datetime not null
|
29
|
+
# updated_at :datetime not null
|
30
30
|
#
|
31
31
|
|