enju_subject 0.3.4 → 0.4.0.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -3
  3. data/app/controllers/classifications_controller.rb +1 -0
  4. data/app/controllers/subjects_controller.rb +2 -1
  5. data/app/views/classification_types/index.html.erb +1 -1
  6. data/app/views/classification_types/show.html.erb +1 -1
  7. data/app/views/classifications/index.html.erb +1 -1
  8. data/app/views/classifications/show.html.erb +1 -1
  9. data/app/views/manifestations/_classification_detail.html.erb +1 -1
  10. data/app/views/manifestations/_classification_fields.html.erb +1 -1
  11. data/app/views/manifestations/_subject_detail.html.erb +1 -1
  12. data/app/views/manifestations/_subject_facet.html.erb +1 -1
  13. data/app/views/manifestations/_subject_fields.html.erb +2 -2
  14. data/app/views/subject_heading_types/index.html.erb +1 -1
  15. data/app/views/subject_heading_types/show.html.erb +1 -1
  16. data/app/views/subject_types/index.html.erb +1 -1
  17. data/app/views/subject_types/show.html.erb +2 -2
  18. data/app/views/subjects/_form.html.erb +2 -2
  19. data/app/views/subjects/index.atom.builder +1 -1
  20. data/app/views/subjects/index.rss.builder +1 -1
  21. data/app/views/subjects/show.html.erb +2 -2
  22. data/lib/enju_subject/version.rb +1 -1
  23. data/lib/generators/enju_subject/setup/templates/db/fixtures/classification_types.yml +20 -8
  24. data/lib/generators/enju_subject/setup/templates/db/fixtures/subject_heading_types.yml +0 -20
  25. data/lib/generators/enju_subject/setup/templates/db/fixtures/subject_types.yml +13 -0
  26. data/spec/dummy/app/models/user.rb +1 -1
  27. data/spec/dummy/bin/bundle +1 -1
  28. data/spec/dummy/bin/setup +1 -3
  29. data/spec/dummy/bin/update +4 -2
  30. data/spec/dummy/bin/yarn +3 -3
  31. data/spec/dummy/config/database.yml +70 -9
  32. data/spec/dummy/config/initializers/assets.rb +1 -1
  33. data/spec/dummy/db/development.sqlite3 +0 -0
  34. data/spec/dummy/db/migrate/20081027150907_create_picture_files.rb +2 -0
  35. data/spec/dummy/db/migrate/20190630113817_add_display_name_translations_to_library_group.rb +12 -0
  36. data/spec/dummy/db/migrate/20190630115523_add_login_banner_translations_to_library_group.rb +6 -0
  37. data/spec/dummy/db/migrate/20190630151446_add_display_name_translations_to_role.rb +5 -0
  38. data/spec/dummy/db/migrate/20190712163038_add_display_name_translations_to_carrier_type.rb +21 -0
  39. data/spec/dummy/db/migrate/20190713114940_add_profile_id_to_user.rb +5 -0
  40. data/spec/dummy/db/migrate/20190713115451_add_full_name_translations_to_profile.rb +5 -0
  41. data/spec/dummy/db/schema.rb +125 -149
  42. data/spec/dummy/db/test.sqlite3 +0 -0
  43. data/spec/factories/profile.rb +7 -1
  44. data/spec/factories/user.rb +25 -31
  45. data/spec/fixtures/agent_types.yml +11 -11
  46. data/spec/fixtures/carrier_types.yml +28 -24
  47. data/spec/fixtures/libraries.yml +102 -0
  48. data/spec/fixtures/library_groups.yml +12 -6
  49. data/spec/fixtures/profiles.yml +10 -13
  50. data/spec/fixtures/roles.yml +22 -5
  51. data/spec/fixtures/shelves.yml +47 -0
  52. data/spec/fixtures/subject_types.yml +4 -4
  53. data/spec/fixtures/user_groups.yml +26 -6
  54. data/spec/fixtures/users.yml +8 -1
  55. data/spec/rails_helper.rb +5 -1
  56. metadata +250 -330
  57. data/spec/dummy/db/migrate/20190818075603_add_memo_to_manifestation.rb +0 -5
  58. data/spec/dummy/db/migrate/20190818075628_add_memo_to_item.rb +0 -5
  59. data/spec/dummy/db/migrate/20191219122214_create_custom_properties.rb +0 -12
  60. data/spec/dummy/db/migrate/20200425072340_create_manifestation_custom_properties.rb +0 -12
  61. data/spec/dummy/db/migrate/20200425072349_create_item_custom_properties.rb +0 -12
  62. data/spec/dummy/db/migrate/20200425074758_create_manifestation_custom_values.rb +0 -12
  63. data/spec/dummy/db/migrate/20200425074822_create_item_custom_values.rb +0 -12
  64. data/spec/lib/generators/enju_subject/setup/setup_generator_spec.rb +0 -33
Binary file
@@ -4,6 +4,12 @@ FactoryBot.define do
4
4
  f.required_role_id {Role.where(name: 'User').first.id}
5
5
  f.sequence(:user_number){|n| "user_number_#{n}"}
6
6
  f.library_id { 2 }
7
- f.locale { 'ja' }
7
+ f.locale { "ja" }
8
+ factory :librarian_profile, class: Profile do |profile|
9
+ profile.required_role_id {Role.where(name: 'Librarian').first.id}
10
+ end
11
+ factory :admin_profile, class: Profile do |profile|
12
+ profile.required_role_id {Role.where(name: 'Administrator').first.id}
13
+ end
8
14
  end
9
15
  end
@@ -1,43 +1,37 @@
1
1
  FactoryBot.define do
2
- factory :admin, class: User do |f|
3
- f.sequence(:username){|n| "admin_#{n}"}
4
- f.sequence(:email){|n| "admin_#{n}@example.jp"}
5
- f.password { 'adminpassword' }
6
- f.password_confirmation { 'adminpassword' }
7
- f.after(:create) do |user|
8
- user_has_role = UserHasRole.new
9
- user_has_role.assign_attributes({user_id: user.id, role_id: Role.find_by(name: 'Administrator').id})
10
- user_has_role.save
11
- user.reload
2
+ factory :admin, class: User do
3
+ sequence(:username){|n| "admin_#{n}"}
4
+ sequence(:email){|n| "admin_#{n}@example.jp"}
5
+ password { 'adminpassword' }
6
+ password_confirmation { 'adminpassword' }
7
+ association :profile
8
+ after(:create) do |user|
9
+ user.role = Role.find_by(name: 'Administrator')
12
10
  end
13
11
  end
14
12
 
15
- factory :librarian, class: User do |f|
16
- f.sequence(:username){|n| "librarian_#{n}"}
17
- f.sequence(:email){|n| "librarian_#{n}@example.jp"}
18
- f.password { 'librarianpassword' }
19
- f.password_confirmation { 'librarianpassword' }
20
- f.after(:create) do |user|
21
- user_has_role = UserHasRole.new
22
- user_has_role.assign_attributes({user_id: user.id, role_id: Role.find_by(name: 'Librarian').id})
23
- user_has_role.save
24
- user.reload
13
+ factory :librarian, class: User do
14
+ sequence(:username){|n| "librarian_#{n}"}
15
+ sequence(:email){|n| "librarian_#{n}@example.jp"}
16
+ password { 'librarianpassword' }
17
+ password_confirmation { 'librarianpassword' }
18
+ association :profile
19
+ after(:create) do |user|
20
+ user.role = Role.find_by(name: 'Librarian')
25
21
  end
26
22
  end
27
23
 
28
- factory :user, class: User do |f|
29
- f.sequence(:username){|n| "user_#{n}"}
30
- f.sequence(:email){|n| "user_#{n}@example.jp"}
31
- f.password { 'userpassword' }
32
- f.password_confirmation { 'userpassword' }
33
- f.after(:create) do |user|
34
- user_has_role = UserHasRole.new
35
- user_has_role.assign_attributes({user_id: user.id, role_id: Role.find_by(name: 'User').id})
36
- user_has_role.save
37
- user.reload
24
+ factory :user, class: User do
25
+ sequence(:username){|n| "user_#{n}"}
26
+ sequence(:email){|n| "user_#{n}@example.jp"}
27
+ password { 'userpassword' }
28
+ password_confirmation { 'userpassword' }
29
+ association :profile
30
+ after(:create) do |user|
31
+ user.role = Role.find_by(name: 'User')
38
32
  end
39
33
  end
40
34
 
41
- factory :invalid_user, class: User do |f|
35
+ factory :invalid_user, class: User do
42
36
  end
43
37
  end
@@ -1,21 +1,21 @@
1
1
  ---
2
2
  agent_type_00001:
3
3
  id: 1
4
- name: Person
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: CorporateBody
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: Conference
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 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
27
+ # id :integer not null, primary key
28
+ # name :string not null
29
+ # display_name :text
30
+ # note :text
31
+ # position :integer
32
+ # created_at :datetime
33
+ # updated_at :datetime
34
+ # display_name_translations :jsonb not null
34
35
  #
35
-
@@ -1,17 +1,7 @@
1
1
  ---
2
- carrier_type_00004:
3
- name: file
4
- display_name: file
5
- updated_at: 2007-12-24 01:30:50.637433 +09:00
6
- id: 4
7
- note: !binary |
8
- 44Kz44Oz44OU44Ol44O844K/44Gu44OV44Kh44Kk44Or44Gn44GZ44CC
9
-
10
- created_at: 2007-12-24 01:30:50.637433 +09:00
11
- position: 4
12
2
  carrier_type_00001:
13
- name: print
14
- display_name: print
3
+ name: volume
4
+ display_name_translations: {"en": "Volume", "ja": "Volume"}
15
5
  updated_at: 2007-11-20 16:04:29.853828 +09:00
16
6
  id: 1
17
7
  note: !binary |
@@ -20,32 +10,46 @@ carrier_type_00001:
20
10
  created_at: 2007-11-20 15:47:03.641530 +09:00
21
11
  position: 1
22
12
  carrier_type_00002:
23
- name: CD
24
- display_name: CD
13
+ name: audio_disc
14
+ display_name_translations: {"en": "Audio disc", "ja": "Audio disc"}
25
15
  updated_at: 2007-12-19 01:45:26.040674 +09:00
26
16
  id: 2
27
17
  note: "\xE9\x9F\xB3\xE6\xA5\xBDCD\xE3\x81\xA7\xE3\x81\x99\xE3\x80\x82"
28
18
  created_at: 2007-12-19 01:45:26.040674 +09:00
29
19
  position: 2
30
20
  carrier_type_00003:
31
- name: DVD
32
- display_name: DVD
21
+ name: videodisc
22
+ display_name_translations: {"en": "Video disc", "ja": "Video disc"}
33
23
  updated_at: 2007-12-23 04:24:23.151410 +09:00
34
24
  id: 3
35
25
  note: "DVD\xE3\x81\xA7\xE3\x81\x99\xE3\x80\x82"
36
26
  created_at: 2007-12-23 04:24:23.151410 +09:00
37
27
  position: 3
28
+ carrier_type_00004:
29
+ name: online_resource
30
+ display_name_translations: {"en": "online_resource", "ja": "online_resource"}
31
+ updated_at: 2007-12-24 01:30:50.637433 +09:00
32
+ id: 4
33
+ note: !binary |
34
+ 44Kz44Oz44OU44Ol44O844K/44Gu44OV44Kh44Kk44Or44Gn44GZ44CC
35
+
36
+ created_at: 2007-12-24 01:30:50.637433 +09:00
37
+ position: 4
38
38
 
39
39
  # == Schema Information
40
40
  #
41
41
  # Table name: carrier_types
42
42
  #
43
- # id :integer not null, primary key
44
- # name :string(255) not null
45
- # display_name :text
46
- # note :text
47
- # position :integer
48
- # created_at :datetime
49
- # updated_at :datetime
43
+ # id :integer not null, primary key
44
+ # name :string not null
45
+ # display_name :text
46
+ # note :text
47
+ # position :integer
48
+ # created_at :datetime
49
+ # updated_at :datetime
50
+ # attachment_file_name :string
51
+ # attachment_content_type :string
52
+ # attachment_file_size :bigint
53
+ # attachment_updated_at :datetime
54
+ # display_name_translations :jsonb not null
50
55
  #
51
-
@@ -0,0 +1,102 @@
1
+ ---
2
+ library_00001:
3
+ name: web
4
+ short_display_name: Web
5
+ display_name_translations: {"en": "World Wide Web", "ja": "ウェブ"}
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_translations: {"en": "Kamata Library", "ja": "蒲田図書館"}
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_translations: {"en": "Hachioji Library", "ja": "八王子図書館"}
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_translations: {"en": "Mita Library", "ja": "三田図書館"}
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 not null
78
+ # display_name :text
79
+ # short_display_name :string not null
80
+ # zip_code :string
81
+ # street :text
82
+ # locality :text
83
+ # region :text
84
+ # telephone_number_1 :string
85
+ # telephone_number_2 :string
86
+ # fax_number :string
87
+ # note :text
88
+ # call_number_rows :integer default(1), not null
89
+ # call_number_delimiter :string default("|"), not null
90
+ # library_group_id :integer not null
91
+ # users_count :integer default(0), not null
92
+ # position :integer
93
+ # country_id :integer
94
+ # created_at :datetime
95
+ # updated_at :datetime
96
+ # deleted_at :datetime
97
+ # opening_hour :text
98
+ # isil :string
99
+ # latitude :float
100
+ # longitude :float
101
+ # display_name_translations :jsonb not null
102
+ #
@@ -1,15 +1,18 @@
1
1
  # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
2
  one:
3
3
  id: 1
4
- name: unknown
5
- display_name: unknown
6
- short_name: unknown
4
+ name: enju_library
5
+ display_name_translations: {"en": "Enju Library", "ja": "えんじゅ図書館"}
6
+ short_name: enju_library
7
7
  note:
8
8
  my_networks: "0.0.0.0/0\r\n\
9
9
  ::/0"
10
10
  url: "http://localhost:3000/"
11
11
  position: 1
12
- old_login_banner: "*Next-L Enju*"
12
+ login_banner_translations: {"ja": "オープンソース図書館システム Next-L Enju です。このメッセージは管理者としてログインした後に変更することができます。",
13
+ "en": "Next-L Enju, an open-source integrated library system. You can edit this message after logging in as Administrator."}
14
+ footer_banner_translations: {"en":"[Next-L Enju Leaf __VERSION__](https://github.com/next-l/enju_leaf), an open source integrated library system | [About this system](/page/about) | [Report bugs](https://github.com/next-l/enju_leaf/issues) | [Manual](https://next-l.github.io/manual/1.3/)",
15
+ "ja":"[Next-L Enju Leaf __VERSION__](https://github.com/next-l/enju_leaf), オープンソース統合図書館システム | [このシステムについて](/page/about) | [不具合を報告する](https://github.com/next-l/enju_leaf/issues) | [マニュアル](https://next-l.github.io/manual/1.3/)"}
13
16
  admin_networks: "0.0.0.0/0\r\n\
14
17
  ::/0"
15
18
  user_id: 1
@@ -27,7 +30,7 @@ one:
27
30
  # old_login_banner :text
28
31
  # note :text
29
32
  # country_id :integer
30
- # position :integer default(1), not null
33
+ # position :integer
31
34
  # created_at :datetime
32
35
  # updated_at :datetime
33
36
  # admin_networks :text
@@ -44,7 +47,10 @@ one:
44
47
  # csv_charset_conversion :boolean default(FALSE), not null
45
48
  # header_logo_file_name :string
46
49
  # header_logo_content_type :string
47
- # header_logo_file_size :integer
50
+ # header_logo_file_size :bigint
48
51
  # header_logo_updated_at :datetime
49
52
  # header_logo_meta :text
53
+ # display_name_translations :jsonb not null
54
+ # login_banner_translations :jsonb not null
55
+ # footer_banner_translations :jsonb not null
50
56
  #
@@ -3,18 +3,16 @@ admin:
3
3
  updated_at: 2008-05-31 13:16:30.163731 +09:00
4
4
  user_group_id: 2
5
5
  id: 1
6
- user_id: 1
7
6
  note:
8
7
  library_id: 2
9
8
  created_at: 2007-11-19 16:58:32.111941 +09:00
10
9
  required_role_id: 4
11
10
  user_number: "00001"
12
- locale: "ja"
11
+ locale: "en"
13
12
  librarian1:
14
13
  updated_at: 2008-05-31 12:41:16.337474 +09:00
15
14
  user_group_id: 1
16
15
  id: 2
17
- user_id: 2
18
16
  note:
19
17
  library_id: 1
20
18
  created_at: 2007-11-19 16:58:33.172441 +09:00
@@ -25,7 +23,6 @@ user1:
25
23
  updated_at: 2008-05-31 13:02:25.101261 +09:00
26
24
  user_group_id: 1
27
25
  id: 3
28
- user_id: 3
29
26
  note:
30
27
  library_id: 2
31
28
  created_at: 2007-11-19 16:58:34.637413 +09:00
@@ -36,7 +33,6 @@ librarian2:
36
33
  updated_at: 2008-05-31 12:42:23.340575 +09:00
37
34
  user_group_id: 1
38
35
  id: 4
39
- user_id: 4
40
36
  note:
41
37
  library_id: 2
42
38
  created_at: 2008-01-18 12:24:04.222344 +09:00
@@ -47,7 +43,6 @@ user2:
47
43
  updated_at: 2008-05-31 12:42:44.711117 +09:00
48
44
  user_group_id: 1
49
45
  id: 5
50
- user_id: 5
51
46
  note:
52
47
  library_id: 1
53
48
  created_at: 2008-01-18 13:29:06.922728 +09:00
@@ -58,7 +53,6 @@ user3:
58
53
  updated_at: 2008-05-31 13:02:25.101261 +09:00
59
54
  user_group_id: 1
60
55
  id: 6
61
- user_id: 6
62
56
  note:
63
57
  library_id: 2
64
58
  created_at: 2007-11-19 16:58:34.637413 +09:00
@@ -69,7 +63,6 @@ user4:
69
63
  updated_at: 2008-05-31 13:02:25.101261 +09:00
70
64
  user_group_id: 1
71
65
  id: 7
72
- user_id: 7
73
66
  note:
74
67
  library_id: 2
75
68
  created_at: 2007-11-19 16:58:34.637413 +09:00
@@ -85,14 +78,18 @@ user4:
85
78
  # user_id :integer
86
79
  # user_group_id :integer
87
80
  # library_id :integer
88
- # locale :string(255)
89
- # user_number :string(255)
81
+ # locale :string
82
+ # user_number :string
90
83
  # full_name :text
91
84
  # note :text
92
85
  # keyword_list :text
93
86
  # required_role_id :integer
94
- # created_at :datetime not null
95
- # updated_at :datetime not null
96
- # checkout_icalendar_token :string(255)
87
+ # created_at :datetime
88
+ # updated_at :datetime
89
+ # checkout_icalendar_token :string
97
90
  # save_checkout_history :boolean default(FALSE), not null
91
+ # expired_at :datetime
92
+ # full_name_transcription :text
93
+ # date_of_birth :datetime
94
+ # full_name_translations :jsonb not null
98
95
  #
@@ -1,21 +1,38 @@
1
1
  ---
2
2
  role_00001:
3
3
  name: Guest
4
- display_name: Guest
4
+ display_name_translations: {"en": "Guest", "ja": "ゲスト"}
5
5
  id: 1
6
6
  note:
7
+ position: 1
7
8
  role_00002:
8
9
  name: User
9
- display_name: User
10
+ display_name_translations: {"en": "User", "ja": "一般利用者"}
10
11
  id: 2
11
12
  note:
13
+ position: 2
12
14
  role_00003:
13
15
  name: Librarian
14
- display_name: Librarian
16
+ display_name_translations: {"en": "Librarian", "ja": "図書館員"}
15
17
  id: 3
16
18
  note:
19
+ position: 3
17
20
  role_00004:
18
21
  name: Administrator
19
- display_name: Administrator
22
+ display_name_translations: {"en": "Administrator", "ja": "管理者"}
20
23
  id: 4
21
- note:
24
+ note:
25
+ position: 4
26
+
27
+ # == Schema Information
28
+ #
29
+ # Table name: roles
30
+ #
31
+ # id :bigint not null, primary key
32
+ # name :string not null
33
+ # display_name_translations :jsonb not null
34
+ # note :text
35
+ # position :integer default(1), not null
36
+ # created_at :datetime not null
37
+ # updated_at :datetime not null
38
+ #
@@ -0,0 +1,47 @@
1
+ ---
2
+ shelf_00001:
3
+ name: web
4
+ display_name_translations: {"en": "Library bookmark", "ja": "ブックマーク"}
5
+ id: 1
6
+ note:
7
+ library_id: 1
8
+ position: 1
9
+ shelf_00002:
10
+ name: first_shelf
11
+ display_name_translations: {"en": "First shelf", "ja": "最初の書棚"}
12
+ id: 2
13
+ note:
14
+ library_id: 2
15
+ position: 2
16
+ shelf_00003:
17
+ name: second_shelf
18
+ display_name_translations: {"en": "Second shelf", "ja": "二つ目の書棚"}
19
+ id: 3
20
+ note:
21
+ library_id: 2
22
+ position: 3
23
+ shelf_00004:
24
+ name: third_shelf
25
+ display_name_translations: {"en": "Third shelf", "ja": "三つ目の書棚"}
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 not null
37
+ # display_name :text
38
+ # note :text
39
+ # library_id :integer not null
40
+ # items_count :integer default(0), not null
41
+ # position :integer
42
+ # created_at :datetime
43
+ # updated_at :datetime
44
+ # deleted_at :datetime
45
+ # closed :boolean default(FALSE), not null
46
+ # display_name_translations :jsonb not null
47
+ #
@@ -1,28 +1,28 @@
1
1
  ---
2
2
  subject_type_00001:
3
3
  id: 1
4
- name: Concept
4
+ name: concept
5
5
  display_name: Concept
6
6
  note:
7
7
  position: 1
8
8
 
9
9
  subject_type_00002:
10
10
  id: 2
11
- name: Event
11
+ name: event
12
12
  display_name: Event
13
13
  note:
14
14
  position: 2
15
15
 
16
16
  subject_type_00003:
17
17
  id: 3
18
- name: Object
18
+ name: object
19
19
  display_name: Object
20
20
  note:
21
21
  position: 3
22
22
 
23
23
  subject_type_00004:
24
24
  id: 4
25
- name: Place
25
+ name: place
26
26
  display_name: Place
27
27
  note:
28
28
  position: 4
@@ -1,25 +1,45 @@
1
1
  ---
2
2
  user_group_00001:
3
- name: (not specified)
4
- display_name: (not specified)
3
+ name: not_specified
4
+ display_name_translations: {"en": "(not specified)", "ja": "不明"}
5
5
  updated_at: 2007-12-13 21:00:51.564542 +09:00
6
6
  id: 1
7
7
  note: ""
8
8
  created_at: 2007-12-13 21:00:01.674976 +09:00
9
9
  position: 1
10
+ valid_period_for_new_user: 0
10
11
  user_group_00002:
11
- name: User
12
- display_name: User
12
+ name: user
13
+ display_name_translations: {"en": "User", "ja": "一般利用者"}
13
14
  updated_at: 2007-12-23 03:14:56.836548 +09:00
14
15
  id: 2
15
16
  note: ""
16
17
  created_at: 2007-12-23 03:14:40.173954 +09:00
17
18
  position: 2
19
+ valid_period_for_new_user: 365
18
20
  user_group_00003:
19
- name: Faculty
20
- display_name: Faculty
21
+ name: faculty
22
+ display_name_translations: {"en": "Faculty", "ja": "教職員"}
21
23
  updated_at: 2007-12-23 03:15:05.134351 +09:00
22
24
  id: 3
23
25
  note: ""
24
26
  created_at: 2007-12-23 03:15:05.126457 +09:00
25
27
  position: 3
28
+ valid_period_for_new_user: 730
29
+
30
+ # == Schema Information
31
+ #
32
+ # Table name: user_groups
33
+ #
34
+ # id :integer not null, primary key
35
+ # name :string
36
+ # display_name :text
37
+ # note :text
38
+ # position :integer
39
+ # created_at :datetime
40
+ # updated_at :datetime
41
+ # deleted_at :datetime
42
+ # valid_period_for_new_user :integer default(0), not null
43
+ # expired_at :datetime
44
+ # display_name_translations :jsonb not null
45
+ #
@@ -3,9 +3,10 @@ admin:
3
3
  updated_at: 2008-05-31 13:16:30.163731 +09:00
4
4
  encrypted_password: $2a$10$vHohD1WflnTIqAa8zMkF9evwAgIZRw3XuR4d3bi29M.jph/MB/AJi
5
5
  id: 1
6
- username: admin
6
+ username: enjuadmin
7
7
  email: tanabe@kamata.lib.teu.ac.jp
8
8
  created_at: 2007-11-19 16:58:32.111941 +09:00
9
+ profile_id: 1
9
10
  librarian1:
10
11
  updated_at: 2008-05-31 12:41:16.337474 +09:00
11
12
  encrypted_password: $2a$10$9O2VuTccN4gHq36ARg0QReSrb1D7WrBBhZZ759RM9moHbB0W5zCzS
@@ -13,6 +14,7 @@ librarian1:
13
14
  username: librarian1
14
15
  email: librarian1@kamata.lib.teu.ac.jp
15
16
  created_at: 2007-11-19 16:58:33.172441 +09:00
17
+ profile_id: 2
16
18
  user1:
17
19
  updated_at: 2008-05-31 13:02:25.101261 +09:00
18
20
  encrypted_password: $2a$10$JthS59A0BNkDOoFpCXM0V.GhhffKaoWKbzpPahYp/vTFrOyM7h/uW
@@ -20,6 +22,7 @@ user1:
20
22
  username: user1
21
23
  email: user1@kamata.lib.teu.ac.jp
22
24
  created_at: 2007-11-19 16:58:34.637413 +09:00
25
+ profile_id: 3
23
26
  librarian2:
24
27
  updated_at: 2008-05-31 12:42:23.340575 +09:00
25
28
  encrypted_password: $2a$10$YmmTGrYQ1Ir6oc7wXnp.GuNeO1eYLoP3sv8wMSIrTdaGw2BPwRrpS
@@ -27,6 +30,7 @@ librarian2:
27
30
  username: librarian2
28
31
  email: librarian2@library.example.jp
29
32
  created_at: 2008-01-18 12:24:04.222344 +09:00
33
+ profile_id: 4
30
34
  user2:
31
35
  updated_at: 2008-05-31 12:42:44.711117 +09:00
32
36
  encrypted_password: $2a$10$i7UjJhLVrJM/J7qaTwW39OXw1NiwowUEbtNHVDV0sqMLjX9.UO9ca
@@ -34,6 +38,7 @@ user2:
34
38
  username: user2
35
39
  email: user2@library.example.jp
36
40
  created_at: 2008-01-18 13:29:06.922728 +09:00
41
+ profile_id: 5
37
42
  user3:
38
43
  updated_at: 2008-05-31 13:02:25.101261 +09:00
39
44
  encrypted_password: cc53de0c2d9a1a228daa9a673ec824473747e17507a6c3c4f7e5eff8821f531d4b9e23616b3ddc66fe17006b2298a556fbd567ac080e87f00f37eef8cee6c417
@@ -41,6 +46,7 @@ user3:
41
46
  username: user3
42
47
  email: user3@kamata.lib.teu.ac.jp
43
48
  created_at: 2007-11-19 16:58:34.637413 +09:00
49
+ profile_id: 6
44
50
  user4:
45
51
  updated_at: 2008-05-31 13:02:25.101261 +09:00
46
52
  encrypted_password: cc53de0c2d9a1a228daa9a673ec824473747e17507a6c3c4f7e5eff8821f531d4b9e23616b3ddc66fe17006b2298a556fbd567ac080e87f00f37eef8cee6c417
@@ -49,3 +55,4 @@ user4:
49
55
  email: user4@kamata.lib.teu.ac.jp
50
56
  created_at: 2007-11-19 16:58:34.637413 +09:00
51
57
  locked_at: <%= 1.day.ago.to_s(:db) %>
58
+ profile_id: 7