enju_resource_merge 0.1.0.pre7 → 0.1.0.pre8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/patron_merge_lists_controller.rb +37 -37
- data/app/controllers/patron_merges_controller.rb +35 -35
- data/app/controllers/series_statement_merge_lists_controller.rb +0 -1
- data/app/models/agent_merge.rb +21 -0
- data/app/models/agent_merge_list.rb +29 -0
- data/app/models/enju_resource_merge/ability.rb +4 -4
- data/app/models/series_statement_merge_list.rb +0 -18
- data/app/views/{patron_merge_lists → agent_merge_lists}/_form.html.erb +1 -1
- data/app/views/{patron_merge_lists → agent_merge_lists}/edit.html.erb +3 -3
- data/app/views/agent_merge_lists/index.html.erb +33 -0
- data/app/views/{patron_merge_lists → agent_merge_lists}/new.html.erb +1 -1
- data/app/views/agent_merge_lists/show.html.erb +31 -0
- data/app/views/agent_merges/edit.html.erb +31 -0
- data/app/views/agent_merges/index.html.erb +32 -0
- data/app/views/agent_merges/new.html.erb +39 -0
- data/app/views/agent_merges/show.html.erb +25 -0
- data/config/routes.rb +7 -7
- data/db/migrate/133_create_agent_merges.rb +15 -0
- data/db/migrate/134_create_agent_merge_lists.rb +13 -0
- data/lib/enju_resource_merge/version.rb +1 -1
- data/lib/enju_resource_merge.rb +2 -2
- data/spec/controllers/agent_merge_lists_controller_spec.rb +456 -0
- data/spec/controllers/agent_merges_controller_spec.rb +437 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -68
- data/spec/dummy/app/models/ability.rb +4 -4
- data/spec/dummy/app/models/user.rb +5 -25
- data/spec/dummy/config/application.rb +1 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/{001_create_patrons.rb → 001_create_agents.rb} +8 -8
- data/spec/dummy/db/migrate/012_create_owns.rb +2 -2
- data/spec/dummy/db/migrate/015_create_creates.rb +2 -2
- data/spec/dummy/db/migrate/047_create_produces.rb +2 -2
- data/spec/dummy/db/migrate/059_create_libraries.rb +28 -0
- data/spec/dummy/db/migrate/069_create_shelves.rb +15 -0
- data/spec/dummy/db/migrate/077_create_user_groups.rb +16 -0
- data/spec/dummy/db/migrate/080_create_library_groups.rb +18 -0
- data/spec/dummy/db/migrate/120_create_baskets.rb +12 -0
- data/spec/dummy/db/migrate/124_create_bookstores.rb +17 -0
- data/spec/dummy/db/migrate/125_create_donates.rb +2 -2
- data/spec/dummy/db/migrate/{20090812151902_create_patron_relationship_types.rb → 130_create_request_status_types.rb} +2 -2
- data/spec/dummy/db/migrate/131_create_request_types.rb +12 -0
- data/spec/dummy/db/migrate/20080830154109_create_realizes.rb +2 -2
- data/spec/dummy/db/migrate/{20080905191442_create_patron_types.rb → 20080905191442_create_agent_types.rb} +2 -2
- data/spec/dummy/db/migrate/20081006090811_create_subscriptions.rb +17 -0
- data/spec/dummy/db/migrate/20081006093246_create_subscribes.rb +14 -0
- data/spec/dummy/db/migrate/20081023092436_create_search_engines.rb +17 -0
- data/spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb +22 -0
- data/spec/dummy/db/migrate/20090812151902_create_agent_relationship_types.rb +12 -0
- data/spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb +2 -2
- data/spec/dummy/db/migrate/20100211105551_add_admin_networks_to_library_group.rb +9 -0
- data/spec/dummy/db/migrate/20100314190054_add_opening_hour_to_library.rb +9 -0
- data/spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb +13 -0
- data/spec/dummy/db/migrate/20100814091104_add_position_to_agent_relationship.rb +11 -0
- data/spec/dummy/db/migrate/20100925074559_create_agent_import_results.rb +12 -0
- data/spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb +9 -0
- data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_agent.rb +11 -0
- data/spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb +11 -0
- data/spec/dummy/db/migrate/20111201155456_create_users.rb +0 -5
- data/spec/dummy/db/migrate/20120105074911_add_isil_to_library.rb +5 -0
- data/spec/dummy/db/migrate/20120129014038_create_budget_types.rb +12 -0
- data/spec/dummy/db/migrate/20120319173203_create_accepts.rb +14 -0
- data/spec/dummy/db/migrate/20120413161403_add_fingerprint_to_agent_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413170720_add_error_message_to_agent_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120510140958_add_closed_to_shelf.rb +5 -0
- data/spec/dummy/db/migrate/20120511072422_add_agent_identifier_to_agent.rb +6 -0
- data/spec/dummy/db/migrate/20120602141129_add_edit_mode_to_agent_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb +26 -0
- data/spec/dummy/db/migrate/20130412083556_add_latitude_and_longitude_to_library.rb +6 -0
- data/spec/dummy/db/migrate/20130421093852_add_periodical_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20130421155019_add_creator_string_to_series_statement.rb +7 -0
- data/spec/dummy/db/migrate/20130421164124_add_series_master_to_series_statement.rb +5 -0
- data/spec/dummy/db/schema.rb +352 -154
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/factories/{patron.rb → agent.rb} +2 -2
- data/spec/factories/agent_merge.rb +6 -0
- data/spec/factories/agent_merge_list.rb +5 -0
- data/spec/factories/library.rb +13 -0
- data/spec/factories/user.rb +34 -6
- data/spec/fixtures/{patron_merge_lists.yml → agent_merge_lists.yml} +4 -4
- data/spec/fixtures/agent_merges.yml +31 -0
- data/spec/fixtures/{patron_types.yml → agent_types.yml} +4 -4
- data/spec/fixtures/{patrons.yml → agents.yml} +46 -46
- data/spec/fixtures/libraries.yml +102 -0
- data/spec/fixtures/library_groups.yml +34 -0
- data/spec/fixtures/series_statements.yml +23 -22
- data/spec/fixtures/shelves.yml +47 -0
- data/spec/fixtures/user_groups.yml +45 -0
- data/spec/models/{patron_merge_list_spec.rb → agent_merge_list_spec.rb} +2 -2
- data/spec/models/agent_merge_spec.rb +19 -0
- data/spec/models/series_statement_merge_list_spec.rb +0 -5
- metadata +136 -72
- data/app/models/patron_merge.rb +0 -21
- data/app/models/patron_merge_list.rb +0 -29
- data/app/views/patron_merge_lists/index.html.erb +0 -33
- data/app/views/patron_merge_lists/show.html.erb +0 -31
- data/app/views/patron_merges/edit.html.erb +0 -31
- data/app/views/patron_merges/index.html.erb +0 -32
- data/app/views/patron_merges/new.html.erb +0 -39
- data/app/views/patron_merges/show.html.erb +0 -25
- data/db/migrate/133_create_patron_merges.rb +0 -15
- data/db/migrate/134_create_patron_merge_lists.rb +0 -13
- data/spec/controllers/patron_merge_lists_controller_spec.rb +0 -456
- data/spec/controllers/patron_merges_controller_spec.rb +0 -437
- data/spec/dummy/app/models/role.rb +0 -47
- data/spec/dummy/app/models/user_has_role.rb +0 -4
- data/spec/dummy/db/migrate/20081028083142_create_patron_import_files.rb +0 -22
- data/spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb +0 -13
- data/spec/dummy/db/migrate/20100814091104_add_position_to_patron_relationship.rb +0 -11
- data/spec/dummy/db/migrate/20100925074559_create_patron_import_results.rb +0 -12
- data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_patron.rb +0 -11
- data/spec/dummy/db/migrate/20110918161853_rename_series_statement_manifestation_id_to_root_manifestation_id.rb +0 -13
- data/spec/dummy/db/migrate/20111009183423_add_ndc_to_manifestation.rb +0 -9
- data/spec/dummy/db/migrate/20120413161403_add_fingerprint_to_patron_import_file.rb +0 -5
- data/spec/dummy/db/migrate/20120413170720_add_error_message_to_patron_import_file.rb +0 -5
- data/spec/dummy/db/migrate/20120415060323_rename_patron_import_file_imported_at_to_executed_at.rb +0 -9
- data/spec/dummy/db/migrate/20120602141129_add_edit_mode_to_patron_import_file.rb +0 -5
- data/spec/factories/patron_merge.rb +0 -6
- data/spec/factories/patron_merge_list.rb +0 -5
- data/spec/fixtures/patron_merges.yml +0 -31
- data/spec/models/patron_merge_spec.rb +0 -19
data/spec/factories/user.rb
CHANGED
@@ -2,28 +2,56 @@ FactoryGirl.define do
|
|
2
2
|
factory :admin, :class => User do |f|
|
3
3
|
f.sequence(:username){|n| "admin_#{n}"}
|
4
4
|
f.sequence(:email){|n| "admin_#{n}@example.jp"}
|
5
|
-
f.
|
5
|
+
f.email_confirmation{|u| u.email}
|
6
|
+
f.library_id{FactoryGirl.create(:library).id}
|
6
7
|
f.password 'adminpassword'
|
7
8
|
f.password_confirmation 'adminpassword'
|
8
|
-
f.
|
9
|
+
f.user_group_id{UserGroup.where(:name => 'User').first.id}
|
10
|
+
f.required_role_id{Role.find_by_name('User').id}
|
11
|
+
f.locale 'ja'
|
12
|
+
f.after(:create) do |user|
|
13
|
+
user_has_role = UserHasRole.new
|
14
|
+
user_has_role.assign_attributes({:user_id => user.id, :role_id => Role.find_by_name('Administrator').id})
|
15
|
+
user_has_role.save
|
16
|
+
user.reload
|
17
|
+
end
|
9
18
|
end
|
10
19
|
|
11
20
|
factory :librarian, :class => User do |f|
|
12
21
|
f.sequence(:username){|n| "librarian_#{n}"}
|
13
22
|
f.sequence(:email){|n| "librarian_#{n}@example.jp"}
|
14
|
-
f.
|
23
|
+
f.email_confirmation{|u| u.email}
|
24
|
+
f.library_id{FactoryGirl.create(:library).id}
|
15
25
|
f.password 'librarianpassword'
|
16
26
|
f.password_confirmation 'librarianpassword'
|
17
|
-
f.
|
27
|
+
f.user_group_id{UserGroup.where(:name => 'User').first.id}
|
28
|
+
f.required_role_id{Role.find_by_name('User').id}
|
29
|
+
f.locale 'ja'
|
30
|
+
f.after(:create) do |user|
|
31
|
+
user_has_role = UserHasRole.new
|
32
|
+
user_has_role.assign_attributes({:user_id => user.id, :role_id => Role.find_by_name('Librarian').id})
|
33
|
+
user_has_role.save
|
34
|
+
user.reload
|
35
|
+
end
|
18
36
|
end
|
19
37
|
|
20
38
|
factory :user, :class => User do |f|
|
21
39
|
f.sequence(:username){|n| "user_#{n}"}
|
22
40
|
f.sequence(:email){|n| "user_#{n}@example.jp"}
|
23
|
-
f.
|
41
|
+
f.email_confirmation{|u| u.email}
|
42
|
+
f.library_id{FactoryGirl.create(:library).id}
|
24
43
|
f.password 'userpassword'
|
25
44
|
f.password_confirmation 'userpassword'
|
26
|
-
f.
|
45
|
+
f.user_group_id{UserGroup.where(:name => '(not specified)').first.id}
|
46
|
+
f.required_role_id{Role.find_by_name('User').id}
|
47
|
+
f.locale 'ja'
|
48
|
+
f.sequence(:user_number){|n| "user_number_#{n}"}
|
49
|
+
f.after(:create) do |user|
|
50
|
+
user_has_role = UserHasRole.new
|
51
|
+
user_has_role.assign_attributes({:user_id => user.id, :role_id => Role.find_by_name('User').id})
|
52
|
+
user_has_role.save
|
53
|
+
user.reload
|
54
|
+
end
|
27
55
|
end
|
28
56
|
|
29
57
|
factory :invalid_user, :class => User do |f|
|
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
2
|
+
agent_merge_list_00001:
|
3
3
|
updated_at: 2008-02-18 13:36:49.835774 +09:00
|
4
4
|
title: test1
|
5
5
|
id: 1
|
6
6
|
created_at: 2008-02-18 13:36:49.835774 +09:00
|
7
|
-
|
7
|
+
agent_merge_list_00002:
|
8
8
|
updated_at: 2008-02-18 16:13:10.743437 +09:00
|
9
9
|
title: test2
|
10
10
|
id: 2
|
11
11
|
created_at: 2008-02-18 16:13:10.743437 +09:00
|
12
|
-
|
12
|
+
agent_merge_list_00003:
|
13
13
|
updated_at: 2008-02-18 16:13:14.963116 +09:00
|
14
14
|
title: test3
|
15
15
|
id: 3
|
@@ -17,7 +17,7 @@ patron_merge_list_00003:
|
|
17
17
|
|
18
18
|
# == Schema Information
|
19
19
|
#
|
20
|
-
# Table name:
|
20
|
+
# Table name: agent_merge_lists
|
21
21
|
#
|
22
22
|
# id :integer not null, primary key
|
23
23
|
# title :string(255)
|
@@ -0,0 +1,31 @@
|
|
1
|
+
---
|
2
|
+
agent_merge_00001:
|
3
|
+
updated_at: 2008-02-17 18:51:36.776009 +09:00
|
4
|
+
id: 1
|
5
|
+
agent_id: 1
|
6
|
+
agent_merge_list_id: 1
|
7
|
+
created_at: 2008-02-17 18:51:36.776009 +09:00
|
8
|
+
agent_merge_00002:
|
9
|
+
updated_at: 2008-02-17 19:14:03.461761 +09:00
|
10
|
+
id: 2
|
11
|
+
agent_id: 2
|
12
|
+
agent_merge_list_id: 1
|
13
|
+
created_at: 2008-02-17 19:10:36.282814 +09:00
|
14
|
+
agent_merge_00003:
|
15
|
+
updated_at: 2008-02-17 19:19:19.265557 +09:00
|
16
|
+
agent_id: 3
|
17
|
+
agent_merge_list_id: 1
|
18
|
+
id: 3
|
19
|
+
created_at: 2008-02-17 19:19:19.265557 +09:00
|
20
|
+
|
21
|
+
# == Schema Information
|
22
|
+
#
|
23
|
+
# Table name: agent_merges
|
24
|
+
#
|
25
|
+
# id :integer not null, primary key
|
26
|
+
# agent_id :integer not null
|
27
|
+
# agent_merge_list_id :integer not null
|
28
|
+
# created_at :datetime not null
|
29
|
+
# updated_at :datetime not null
|
30
|
+
#
|
31
|
+
|
@@ -1,19 +1,19 @@
|
|
1
1
|
---
|
2
|
-
|
2
|
+
agent_type_00001:
|
3
3
|
id: 1
|
4
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
11
|
name: CorporateBody
|
12
12
|
display_name: CorporateBody
|
13
13
|
note:
|
14
14
|
position: 2
|
15
15
|
|
16
|
-
|
16
|
+
agent_type_00003:
|
17
17
|
id: 3
|
18
18
|
name: Conference
|
19
19
|
display_name: Conference
|
@@ -22,7 +22,7 @@ patron_type_00003:
|
|
22
22
|
|
23
23
|
# == Schema Information
|
24
24
|
#
|
25
|
-
# Table name:
|
25
|
+
# Table name: agent_types
|
26
26
|
#
|
27
27
|
# id :integer not null, primary key
|
28
28
|
# name :string(255) not null
|
@@ -1,5 +1,5 @@
|
|
1
1
|
---
|
2
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
87
|
+
agent_00006:
|
88
88
|
place: ""
|
89
|
-
last_name: New
|
89
|
+
last_name: New agent 1
|
90
90
|
first_name:
|
91
|
-
full_name: New
|
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
|
-
|
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
|
-
|
103
|
+
agent_00007:
|
104
104
|
place: ""
|
105
|
-
last_name: New
|
105
|
+
last_name: New agent 2
|
106
106
|
first_name:
|
107
|
-
full_name: New
|
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
|
-
|
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
|
-
|
119
|
+
agent_00008:
|
120
120
|
place: ""
|
121
|
-
last_name: New
|
121
|
+
last_name: New agent 3
|
122
122
|
first_name:
|
123
|
-
full_name: New
|
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
|
-
|
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
|
-
|
135
|
+
agent_00009:
|
136
136
|
place: ""
|
137
|
-
last_name: New
|
137
|
+
last_name: New agent 4
|
138
138
|
first_name:
|
139
|
-
full_name: New
|
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
|
-
|
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
|
-
|
151
|
+
agent_00010:
|
152
152
|
place: ""
|
153
|
-
last_name: New
|
153
|
+
last_name: New agent 5
|
154
154
|
first_name:
|
155
|
-
full_name: New
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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:
|
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
|
-
#
|
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
|
@@ -0,0 +1,102 @@
|
|
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
|
+
call_number_delimiter: "|"
|
18
|
+
position: 1
|
19
|
+
library_00002:
|
20
|
+
name: kamata
|
21
|
+
short_display_name: 蒲田
|
22
|
+
display_name: Kamata Library
|
23
|
+
fax_number: ""
|
24
|
+
updated_at: 2007-08-31 00:18:06.662349 +09:00
|
25
|
+
telephone_number_1: 81-3-3732-5111
|
26
|
+
telephone_number_2: ""
|
27
|
+
id: 2
|
28
|
+
zip_code: 144-8535
|
29
|
+
region: Tokyo
|
30
|
+
locality:
|
31
|
+
street:
|
32
|
+
created_at: 2007-08-13 18:10:00 +09:00
|
33
|
+
library_group_id: 1
|
34
|
+
call_number_delimiter: "|"
|
35
|
+
position: 2
|
36
|
+
isil: "JP-0000000"
|
37
|
+
library_00003:
|
38
|
+
name: hachioji
|
39
|
+
short_display_name: 八王子
|
40
|
+
display_name: Hachioji Library
|
41
|
+
fax_number: 042-637-2116
|
42
|
+
updated_at: 2007-08-31 00:18:16.188285 +09:00
|
43
|
+
telephone_number_1: 042-637-2033
|
44
|
+
telephone_number_2: ""
|
45
|
+
id: 3
|
46
|
+
zip_code: 192-0982
|
47
|
+
region: Tokyo
|
48
|
+
locality: Hachioji
|
49
|
+
street:
|
50
|
+
created_at: 2007-08-14 16:37:00 +09:00
|
51
|
+
library_group_id: 1
|
52
|
+
call_number_delimiter: "|"
|
53
|
+
position: 3
|
54
|
+
library_00004:
|
55
|
+
name: mita
|
56
|
+
short_display_name: 三田
|
57
|
+
display_name: Mita Library
|
58
|
+
fax_number: ""
|
59
|
+
updated_at: 2007-08-31 00:18:20.043951 +09:00
|
60
|
+
telephone_number_1: ""
|
61
|
+
telephone_number_2: ""
|
62
|
+
id: 4
|
63
|
+
zip_code: 108-8345
|
64
|
+
region: Tokyo
|
65
|
+
locality: Minato
|
66
|
+
street:
|
67
|
+
created_at: 2007-08-23 19:51:00 +09:00
|
68
|
+
library_group_id: 1
|
69
|
+
call_number_delimiter: "|"
|
70
|
+
position: 4
|
71
|
+
|
72
|
+
# == Schema Information
|
73
|
+
#
|
74
|
+
# Table name: libraries
|
75
|
+
#
|
76
|
+
# id :integer not null, primary key
|
77
|
+
# name :string(255) not null
|
78
|
+
# display_name :text
|
79
|
+
# short_display_name :string(255) not null
|
80
|
+
# zip_code :string(255)
|
81
|
+
# street :text
|
82
|
+
# locality :text
|
83
|
+
# region :text
|
84
|
+
# telephone_number_1 :string(255)
|
85
|
+
# telephone_number_2 :string(255)
|
86
|
+
# fax_number :string(255)
|
87
|
+
# note :text
|
88
|
+
# call_number_rows :integer default(1), not null
|
89
|
+
# call_number_delimiter :string(255) default("|"), not null
|
90
|
+
# library_group_id :integer default(1), not null
|
91
|
+
# users_count :integer default(0), not null
|
92
|
+
# position :integer
|
93
|
+
# country_id :integer
|
94
|
+
# created_at :datetime not null
|
95
|
+
# updated_at :datetime not null
|
96
|
+
# deleted_at :datetime
|
97
|
+
# opening_hour :text
|
98
|
+
# isil :string(255)
|
99
|
+
# latitude :float
|
100
|
+
# longitude :float
|
101
|
+
#
|
102
|
+
|
@@ -0,0 +1,34 @@
|
|
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
|
+
position: 1
|
12
|
+
login_banner: "*Next-L Enju*"
|
13
|
+
admin_networks: 0.0.0.0/0
|
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
|
+
# country_id :integer
|
28
|
+
# position :integer
|
29
|
+
# created_at :datetime not null
|
30
|
+
# updated_at :datetime not null
|
31
|
+
# admin_networks :text
|
32
|
+
# url :string(255) default("http://localhost:3000/")
|
33
|
+
#
|
34
|
+
|
@@ -1,5 +1,3 @@
|
|
1
|
-
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
|
-
|
3
1
|
one:
|
4
2
|
id: 1
|
5
3
|
original_title: title1
|
@@ -8,35 +6,38 @@ one:
|
|
8
6
|
two:
|
9
7
|
id: 2
|
10
8
|
original_title: title2
|
9
|
+
title_transcription: テスト
|
11
10
|
position: 2
|
12
|
-
|
13
|
-
|
11
|
+
manifestation_id: 202
|
12
|
+
series_master: true
|
14
13
|
|
15
14
|
three:
|
16
15
|
id: 3
|
17
|
-
original_title:
|
16
|
+
original_title: テスト雑誌
|
18
17
|
position: 3
|
19
|
-
|
20
|
-
|
18
|
+
manifestation_id: 201
|
21
19
|
|
22
20
|
# == Schema Information
|
23
21
|
#
|
24
22
|
# Table name: series_statements
|
25
23
|
#
|
26
|
-
# id
|
27
|
-
# original_title
|
28
|
-
# numbering
|
29
|
-
# title_subseries
|
30
|
-
# numbering_subseries
|
31
|
-
# position
|
32
|
-
# created_at
|
33
|
-
# updated_at
|
34
|
-
# title_transcription
|
35
|
-
# title_alternative
|
36
|
-
# series_statement_identifier
|
37
|
-
#
|
38
|
-
#
|
39
|
-
#
|
40
|
-
#
|
24
|
+
# id :integer not null, primary key
|
25
|
+
# original_title :text
|
26
|
+
# numbering :text
|
27
|
+
# title_subseries :text
|
28
|
+
# numbering_subseries :text
|
29
|
+
# position :integer
|
30
|
+
# created_at :datetime not null
|
31
|
+
# updated_at :datetime not null
|
32
|
+
# title_transcription :text
|
33
|
+
# title_alternative :text
|
34
|
+
# series_statement_identifier :string(255)
|
35
|
+
# manifestation_id :integer
|
36
|
+
# note :text
|
37
|
+
# title_subseries_transcription :text
|
38
|
+
# creator_string :text
|
39
|
+
# volume_number_string :text
|
40
|
+
# volume_number_transcription_string :text
|
41
|
+
# series_master :boolean
|
41
42
|
#
|
42
43
|
|
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
shelf_00001:
|
3
|
+
name: web
|
4
|
+
display_name: Library bookmark
|
5
|
+
id: 1
|
6
|
+
note:
|
7
|
+
library_id: 1
|
8
|
+
position: 1
|
9
|
+
shelf_00002:
|
10
|
+
name: first_shelf
|
11
|
+
display_name: First shelf
|
12
|
+
id: 2
|
13
|
+
note:
|
14
|
+
library_id: 2
|
15
|
+
position: 2
|
16
|
+
shelf_00003:
|
17
|
+
name: second_shelf
|
18
|
+
display_name: Second shelf
|
19
|
+
id: 3
|
20
|
+
note:
|
21
|
+
library_id: 2
|
22
|
+
position: 3
|
23
|
+
shelf_00004:
|
24
|
+
name: third_shelf
|
25
|
+
display_name: Third shelf
|
26
|
+
id: 4
|
27
|
+
note:
|
28
|
+
library_id: 3
|
29
|
+
position: 4
|
30
|
+
|
31
|
+
# == Schema Information
|
32
|
+
#
|
33
|
+
# Table name: shelves
|
34
|
+
#
|
35
|
+
# id :integer not null, primary key
|
36
|
+
# name :string(255) not null
|
37
|
+
# display_name :text
|
38
|
+
# note :text
|
39
|
+
# library_id :integer default(1), not null
|
40
|
+
# items_count :integer default(0), not null
|
41
|
+
# position :integer
|
42
|
+
# created_at :datetime not null
|
43
|
+
# updated_at :datetime not null
|
44
|
+
# deleted_at :datetime
|
45
|
+
# closed :boolean default(FALSE), not null
|
46
|
+
#
|
47
|
+
|