enju_inter_library_loan 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +3 -0
  3. data/Rakefile +45 -0
  4. data/app/controllers/inter_library_loans_controller.rb +125 -0
  5. data/app/models/inter_library_loan.rb +111 -0
  6. data/app/views/inter_library_loans/edit.html.erb +149 -0
  7. data/app/views/inter_library_loans/index.atom.builder +11 -0
  8. data/app/views/inter_library_loans/index.html.erb +50 -0
  9. data/app/views/inter_library_loans/index.rss.builder +31 -0
  10. data/app/views/inter_library_loans/new.html.erb +42 -0
  11. data/app/views/inter_library_loans/show.html.erb +58 -0
  12. data/config/locales/translation_en.yml +20 -0
  13. data/config/locales/translation_ja.yml +20 -0
  14. data/config/routes.rb +6 -0
  15. data/db/migrate/148_create_inter_library_loans.rb +23 -0
  16. data/lib/enju_inter_library_loan.rb +4 -0
  17. data/lib/enju_inter_library_loan/engine.rb +13 -0
  18. data/lib/enju_inter_library_loan/version.rb +3 -0
  19. data/lib/tasks/enju_inter_library_loan_tasks.rake +4 -0
  20. data/spec/controllers/inter_library_loans_controller_spec.rb +185 -0
  21. data/spec/dummy/Rakefile +7 -0
  22. data/spec/dummy/app/assets/javascripts/application.js +9 -0
  23. data/spec/dummy/app/assets/stylesheets/application.css +7 -0
  24. data/spec/dummy/app/controllers/application_controller.rb +71 -0
  25. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  26. data/spec/dummy/app/models/ability.rb +12 -0
  27. data/spec/dummy/app/models/item.rb +7 -0
  28. data/spec/dummy/app/models/library.rb +128 -0
  29. data/spec/dummy/app/models/library_group.rb +86 -0
  30. data/spec/dummy/app/models/manifestation.rb +6 -0
  31. data/spec/dummy/app/models/patron.rb +167 -0
  32. data/spec/dummy/app/models/patron_type.rb +19 -0
  33. data/spec/dummy/app/models/role.rb +5 -0
  34. data/spec/dummy/app/models/shelf.rb +54 -0
  35. data/spec/dummy/app/models/user.rb +27 -0
  36. data/spec/dummy/app/models/user_has_role.rb +4 -0
  37. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  38. data/spec/dummy/app/views/page/403.html.erb +9 -0
  39. data/spec/dummy/app/views/page/403.mobile.erb +5 -0
  40. data/spec/dummy/app/views/page/403.xml.erb +4 -0
  41. data/spec/dummy/app/views/page/404.html.erb +9 -0
  42. data/spec/dummy/app/views/page/404.mobile.erb +5 -0
  43. data/spec/dummy/app/views/page/404.xml.erb +4 -0
  44. data/spec/dummy/config.ru +4 -0
  45. data/spec/dummy/config/application.rb +47 -0
  46. data/spec/dummy/config/boot.rb +10 -0
  47. data/spec/dummy/config/database.yml +25 -0
  48. data/spec/dummy/config/environment.rb +5 -0
  49. data/spec/dummy/config/environments/development.rb +30 -0
  50. data/spec/dummy/config/environments/production.rb +60 -0
  51. data/spec/dummy/config/environments/test.rb +39 -0
  52. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  53. data/spec/dummy/config/initializers/devise.rb +209 -0
  54. data/spec/dummy/config/initializers/inflections.rb +10 -0
  55. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  56. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  57. data/spec/dummy/config/initializers/session_store.rb +8 -0
  58. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  59. data/spec/dummy/config/locales/en.yml +5 -0
  60. data/spec/dummy/config/routes.rb +60 -0
  61. data/spec/dummy/db/migrate/001_create_patrons.rb +62 -0
  62. data/spec/dummy/db/migrate/005_create_manifestations.rb +68 -0
  63. data/spec/dummy/db/migrate/006_create_items.rb +36 -0
  64. data/spec/dummy/db/migrate/059_create_libraries.rb +34 -0
  65. data/spec/dummy/db/migrate/069_create_shelves.rb +19 -0
  66. data/spec/dummy/db/migrate/080_create_library_groups.rb +25 -0
  67. data/spec/dummy/db/migrate/20080905191442_create_patron_types.rb +16 -0
  68. data/spec/dummy/db/migrate/20100211105551_add_admin_networks_to_library_group.rb +9 -0
  69. data/spec/dummy/db/migrate/20100222124420_add_allow_bookmark_external_url_to_library_group.rb +9 -0
  70. data/spec/dummy/db/migrate/20110115022329_add_position_to_library_group.rb +9 -0
  71. data/spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb +9 -0
  72. data/spec/dummy/db/migrate/20111020063828_remove_dsbl_from_library_group.rb +11 -0
  73. data/spec/dummy/db/migrate/20111201121844_create_roles.rb +12 -0
  74. data/spec/dummy/db/migrate/20111201155456_create_users.rb +13 -0
  75. data/spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb +31 -0
  76. data/spec/dummy/db/migrate/20111201163718_create_user_has_roles.rb +10 -0
  77. data/spec/dummy/db/schema.rb +289 -0
  78. data/spec/dummy/db/test.sqlite3 +0 -0
  79. data/spec/dummy/lib/master_model.rb +41 -0
  80. data/spec/dummy/lib/url_validator.rb +10 -0
  81. data/spec/dummy/log/test.log +5034 -0
  82. data/spec/dummy/public/404.html +26 -0
  83. data/spec/dummy/public/422.html +26 -0
  84. data/spec/dummy/public/500.html +26 -0
  85. data/spec/dummy/public/favicon.ico +0 -0
  86. data/spec/dummy/script/rails +6 -0
  87. data/spec/factories/inter_library_loan.rb +6 -0
  88. data/spec/factories/item.rb +7 -0
  89. data/spec/factories/library.rb +13 -0
  90. data/spec/factories/manifestation.rb +5 -0
  91. data/spec/factories/user.rb +31 -0
  92. data/spec/fixtures/inter_library_loans.yml +84 -0
  93. data/spec/fixtures/libraries.yml +108 -0
  94. data/spec/fixtures/library_groups.yml +34 -0
  95. data/spec/fixtures/patron_types.yml +35 -0
  96. data/spec/fixtures/patrons.yml +338 -0
  97. data/spec/fixtures/roles.yml +21 -0
  98. data/spec/fixtures/user_has_roles.yml +41 -0
  99. data/spec/fixtures/users.yml +69 -0
  100. data/spec/models/inter_library_loan_spec.rb +26 -0
  101. data/spec/spec_helper.rb +46 -0
  102. data/spec/support/controller_macros.rb +48 -0
  103. data/spec/support/devise.rb +4 -0
  104. metadata +386 -0
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ <p>We've been notified about this issue and we'll take a look at it shortly.</p>
24
+ </div>
25
+ </body>
26
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,6 @@
1
+ FactoryGirl.define do
2
+ factory :inter_library_loan do |f|
3
+ f.item{FactoryGirl.create(:item)}
4
+ f.borrowing_library{FactoryGirl.create(:library)}
5
+ end
6
+ end
@@ -0,0 +1,7 @@
1
+ FactoryGirl.define do
2
+ factory :item do |f|
3
+ f.sequence(:item_identifier){|n| "item_#{n}"}
4
+ f.circulation_status_id{CirculationStatus.find(1).id} if defined?(EnjuCircuation)
5
+ f.manifestation_id{FactoryGirl.create(:manifestation).id}
6
+ end
7
+ end
@@ -0,0 +1,13 @@
1
+ FactoryGirl.define do
2
+ factory :library do |f|
3
+ f.sequence(:name){|n| "library#{n}"}
4
+ f.sequence(:short_display_name){|n| "library_#{n}"}
5
+ f.library_group_id{LibraryGroup.first.id}
6
+ end
7
+ end
8
+
9
+ FactoryGirl.define do
10
+ factory :invalid_library, :class => Library do |f|
11
+ f.library_group_id{LibraryGroup.first.id}
12
+ end
13
+ end
@@ -0,0 +1,5 @@
1
+ FactoryGirl.define do
2
+ factory :manifestation do |f|
3
+ f.sequence(:original_title){|n| "manifestation_title_#{n}"}
4
+ end
5
+ end
@@ -0,0 +1,31 @@
1
+ FactoryGirl.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.role {Role.find_by_name('Administrator')}
6
+ f.password 'adminpassword'
7
+ f.password_confirmation 'adminpassword'
8
+ f.required_role {Role.find_by_name('User')}
9
+ end
10
+
11
+ factory :librarian, :class => User do |f|
12
+ f.sequence(:username){|n| "librarian_#{n}"}
13
+ f.sequence(:email){|n| "librarian_#{n}@example.jp"}
14
+ f.role {Role.find_by_name('Librarian')}
15
+ f.password 'librarianpassword'
16
+ f.password_confirmation 'librarianpassword'
17
+ f.required_role {Role.find_by_name('User')}
18
+ end
19
+
20
+ factory :user, :class => User do |f|
21
+ f.sequence(:username){|n| "user_#{n}"}
22
+ f.sequence(:email){|n| "user_#{n}@example.jp"}
23
+ f.role {Role.find_by_name('User')}
24
+ f.password 'userpassword'
25
+ f.password_confirmation 'userpassword'
26
+ f.required_role {Role.find_by_name('User')}
27
+ end
28
+
29
+ factory :invalid_user, :class => User do |f|
30
+ end
31
+ end
@@ -0,0 +1,84 @@
1
+ inter_library_loan_00001:
2
+ item_id: 1
3
+ borrowing_library_id: 1
4
+ shipped_at: 2008-03-19 13:48:29
5
+ received_at: 2008-03-19 13:48:29
6
+ return_shipped_at: 2008-03-19 13:48:29
7
+ return_received_at: 2008-03-19 13:48:29
8
+ id: 1
9
+ state: requested
10
+ inter_library_loan_00002:
11
+ item_id: 2
12
+ borrowing_library_id: 1
13
+ shipped_at: 2008-03-19 13:48:29
14
+ received_at: 2008-03-19 13:48:29
15
+ return_shipped_at: 2008-03-19 13:48:29
16
+ return_received_at: 2008-03-19 13:48:29
17
+ id: 2
18
+ state: shipped
19
+ inter_library_loan_00003:
20
+ item_id: 3
21
+ borrowing_library_id: 1
22
+ shipped_at: 2008-03-19 13:48:29
23
+ received_at: 2008-03-19 13:48:29
24
+ return_shipped_at: 2008-03-19 13:48:29
25
+ return_received_at: 2008-03-19 13:48:29
26
+ id: 3
27
+ state: received
28
+ inter_library_loan_00004:
29
+ item_id: 4
30
+ borrowing_library_id: 2
31
+ shipped_at: 2008-03-19 13:48:29
32
+ received_at: 2008-03-19 13:48:29
33
+ return_shipped_at: 2008-03-19 13:48:29
34
+ return_received_at: 2008-03-19 13:48:29
35
+ id: 4
36
+ state: return_shipped
37
+ inter_library_loan_00005:
38
+ item_id: 5
39
+ borrowing_library_id: 3
40
+ shipped_at: 2008-03-19 13:48:29
41
+ received_at: 2008-03-19 13:48:29
42
+ return_shipped_at: 2008-03-19 13:48:29
43
+ return_received_at: 2008-03-19 13:48:29
44
+ id: 5
45
+ state: return_received
46
+ inter_library_loan_00006:
47
+ item_id: 6
48
+ borrowing_library_id: 3
49
+ requested_at: 2008-03-19 13:48:29
50
+ shipped_at:
51
+ received_at:
52
+ return_shipped_at:
53
+ return_received_at:
54
+ id: 6
55
+ state: requested
56
+ inter_library_loan_00007:
57
+ item_id: 7
58
+ borrowing_library_id: 3
59
+ requested_at: 2008-03-19 13:48:29
60
+ shipped_at: 2008-03-19 13:48:29
61
+ received_at:
62
+ return_shipped_at:
63
+ return_received_at:
64
+ id: 7
65
+ state: shipped
66
+
67
+ # == Schema Information
68
+ #
69
+ # Table name: inter_library_loans
70
+ #
71
+ # id :integer not null, primary key
72
+ # item_id :integer not null
73
+ # borrowing_library_id :integer not null
74
+ # requested_at :datetime
75
+ # shipped_at :datetime
76
+ # received_at :datetime
77
+ # return_shipped_at :datetime
78
+ # return_received_at :datetime
79
+ # deleted_at :datetime
80
+ # state :string(255)
81
+ # created_at :datetime
82
+ # updated_at :datetime
83
+ #
84
+
@@ -0,0 +1,108 @@
1
+ ---
2
+ library_00001:
3
+ name: web
4
+ short_display_name: Web
5
+ display_name: World Wide Web
6
+ fax_number:
7
+ updated_at:
8
+ telephone_number_1:
9
+ telephone_number_2:
10
+ id: 1
11
+ zip_code:
12
+ region:
13
+ locality:
14
+ street:
15
+ created_at:
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
+ library_00003:
39
+ name: hachioji
40
+ short_display_name: 八王子
41
+ display_name: Hachioji Library
42
+ fax_number: 042-637-2116
43
+ updated_at: 2007-08-31 00:18:16.188285 +09:00
44
+ telephone_number_1: 042-637-2033
45
+ telephone_number_2: ""
46
+ id: 3
47
+ zip_code: 192-0982
48
+ region: Tokyo
49
+ locality: Hachioji
50
+ street:
51
+ created_at: 2007-08-14 16:37:00 +09:00
52
+ library_group_id: 1
53
+ patron_id: 3
54
+ call_number_delimiter: "|"
55
+ position: 3
56
+ library_00004:
57
+ name: mita
58
+ short_display_name: 三田
59
+ display_name: Mita Library
60
+ fax_number: ""
61
+ updated_at: 2007-08-31 00:18:20.043951 +09:00
62
+ telephone_number_1: ""
63
+ telephone_number_2: ""
64
+ id: 4
65
+ zip_code: 108-8345
66
+ region: Tokyo
67
+ locality: Minato
68
+ street:
69
+ created_at: 2007-08-23 19:51:00 +09:00
70
+ library_group_id: 1
71
+ patron_id: 4
72
+ call_number_delimiter: "|"
73
+ position: 4
74
+
75
+ # == Schema Information
76
+ #
77
+ # Table name: libraries
78
+ #
79
+ # id :integer not null, primary key
80
+ # patron_id :integer
81
+ # patron_type :string(255)
82
+ # name :string(255) not null
83
+ # display_name :text
84
+ # short_display_name :string(255) not null
85
+ # zip_code :string(255)
86
+ # street :text
87
+ # locality :text
88
+ # region :text
89
+ # telephone_number_1 :string(255)
90
+ # telephone_number_2 :string(255)
91
+ # fax_number :string(255)
92
+ # note :text
93
+ # call_number_rows :integer default(1), not null
94
+ # call_number_delimiter :string(255) default("|"), not null
95
+ # library_group_id :integer default(1), not null
96
+ # users_count :integer default(0), not null
97
+ # position :integer
98
+ # country_id :integer
99
+ # created_at :datetime
100
+ # updated_at :datetime
101
+ # deleted_at :datetime
102
+ # opening_hour :text
103
+ # latitude :float
104
+ # longitude :float
105
+ # calil_systemid :string(255)
106
+ # calil_neighborhood_systemid :text
107
+ #
108
+
@@ -0,0 +1,34 @@
1
+ # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
+ one:
3
+ id: 1
4
+ name: unknown
5
+ display_name: unknown
6
+ short_name: unknown
7
+ email: next-l@library.example.jp
8
+ note:
9
+ my_networks: 0.0.0.0/0
10
+ url: "http://localhost:3000/"
11
+
12
+
13
+ # == Schema Information
14
+ #
15
+ # Table name: library_groups
16
+ #
17
+ # id :integer not null, primary key
18
+ # name :string(255) not null
19
+ # display_name :text
20
+ # short_name :string(255) not null
21
+ # email :string(255)
22
+ # my_networks :text
23
+ # login_banner :text
24
+ # note :text
25
+ # post_to_union_catalog :boolean default(FALSE), not null
26
+ # country_id :integer
27
+ # created_at :datetime
28
+ # updated_at :datetime
29
+ # admin_networks :text
30
+ # allow_bookmark_external_url :boolean default(FALSE), not null
31
+ # position :integer
32
+ # url :string(255) default("http://localhost:3000/")
33
+ #
34
+
@@ -0,0 +1,35 @@
1
+ ---
2
+ patron_type_00001:
3
+ id: 1
4
+ name: Person
5
+ display_name: Person
6
+ note:
7
+ position: 1
8
+
9
+ patron_type_00002:
10
+ id: 2
11
+ name: CorporateBody
12
+ display_name: CorporateBody
13
+ note:
14
+ position: 2
15
+
16
+ patron_type_00003:
17
+ id: 3
18
+ name: Conference
19
+ display_name: Conference
20
+ note:
21
+ position: 3
22
+
23
+ # == Schema Information
24
+ #
25
+ # Table name: patron_types
26
+ #
27
+ # id :integer not null, primary key
28
+ # name :string(255) not null
29
+ # display_name :text
30
+ # note :text
31
+ # position :integer
32
+ # created_at :datetime
33
+ # updated_at :datetime
34
+ #
35
+
@@ -0,0 +1,338 @@
1
+ ---
2
+ patron_00001:
3
+ place: ""
4
+ last_name: Administrator
5
+ first_name:
6
+ full_name: Administrator
7
+ updated_at: 2007-11-21 22:01:56.137409 +09:00
8
+ other_designation: ""
9
+ id: 1
10
+ date_of_birth: 2000-01-01
11
+ date_of_death:
12
+ address_1:
13
+ language_id: 1
14
+ country_id: 1
15
+ patron_type_id: 1
16
+ required_role_id: 1
17
+ created_at: 2007-11-19 17:06:06.507237 +09:00
18
+ user_id: 1
19
+ patron_00002:
20
+ place: ""
21
+ last_name: Librarian1
22
+ first_name:
23
+ full_name: Librarian1
24
+ updated_at: 2007-11-21 22:02:10.359793 +09:00
25
+ other_designation: ""
26
+ id: 2
27
+ date_of_birth: 2000-01-01
28
+ date_of_death:
29
+ address_1:
30
+ language_id: 1
31
+ country_id: 1
32
+ patron_type_id: 1
33
+ required_role_id: 4
34
+ created_at: 2007-11-19 17:06:07.724517 +09:00
35
+ user_id: 2
36
+ patron_00003:
37
+ place:
38
+ last_name: Kosuke
39
+ first_name: Tanabe
40
+ full_name: Kosuke Tanabe
41
+ updated_at: 2007-12-04 16:25:01.523618 +09:00
42
+ other_designation:
43
+ id: 3
44
+ date_of_birth: 2000-01-01
45
+ date_of_death:
46
+ address_1:
47
+ language_id: 1
48
+ country_id: 1
49
+ patron_type_id: 1
50
+ required_role_id: 3
51
+ created_at: 2007-12-04 16:25:01.523618 +09:00
52
+ user_id: 3
53
+ patron_00004:
54
+ place:
55
+ last_name: Librarian2
56
+ first_name:
57
+ full_name: Librarian2
58
+ updated_at: 2007-12-04 16:25:01.785027 +09:00
59
+ other_designation:
60
+ id: 4
61
+ date_of_birth: 2000-01-01
62
+ date_of_death:
63
+ address_1:
64
+ language_id: 1
65
+ country_id: 1
66
+ patron_type_id: 1
67
+ required_role_id: 1
68
+ created_at: 2007-12-04 16:25:01.785027 +09:00
69
+ user_id: 4
70
+ patron_00005:
71
+ place: ""
72
+ last_name: User2
73
+ first_name:
74
+ full_name: User2
75
+ updated_at: 2007-11-21 22:02:35.579396 +09:00
76
+ other_designation: ""
77
+ id: 5
78
+ date_of_birth: 2000-01-01
79
+ date_of_death:
80
+ address_1:
81
+ language_id: 1
82
+ country_id: 1
83
+ patron_type_id: 1
84
+ required_role_id: 2
85
+ created_at: 2007-11-19 17:24:50.153417 +09:00
86
+ user_id: 5
87
+ patron_00006:
88
+ place: ""
89
+ last_name: New patron 1
90
+ first_name:
91
+ full_name: New patron 1
92
+ updated_at: 2007-11-21 22:02:35.579396 +09:00
93
+ other_designation: ""
94
+ id: 6
95
+ date_of_birth: 2000-01-01
96
+ date_of_death:
97
+ address_1:
98
+ language_id: 1
99
+ country_id: 1
100
+ patron_type_id: 1
101
+ required_role_id: 1
102
+ created_at: 2007-11-19 17:24:50.153417 +09:00
103
+ patron_00007:
104
+ place: ""
105
+ last_name: New patron 2
106
+ first_name:
107
+ full_name: New patron 2
108
+ updated_at: 2007-11-21 22:02:35.579396 +09:00
109
+ other_designation: ""
110
+ id: 7
111
+ date_of_birth: 2000-01-01
112
+ date_of_death:
113
+ address_1:
114
+ language_id: 1
115
+ country_id: 1
116
+ patron_type_id: 1
117
+ required_role_id: 1
118
+ created_at: 2007-11-19 17:24:50.153417 +09:00
119
+ patron_00008:
120
+ place: ""
121
+ last_name: New patron 3
122
+ first_name:
123
+ full_name: New patron 3
124
+ updated_at: 2007-11-21 22:02:35.579396 +09:00
125
+ other_designation: ""
126
+ id: 8
127
+ date_of_birth: 2000-01-01
128
+ date_of_death:
129
+ address_1:
130
+ language_id: 1
131
+ country_id: 1
132
+ patron_type_id: 1
133
+ required_role_id: 1
134
+ created_at: 2007-11-19 17:24:50.153417 +09:00
135
+ patron_00009:
136
+ place: ""
137
+ last_name: New patron 4
138
+ first_name:
139
+ full_name: New patron 4
140
+ updated_at: 2007-11-21 22:02:35.579396 +09:00
141
+ other_designation: ""
142
+ id: 9
143
+ date_of_birth: 2000-01-01
144
+ date_of_death:
145
+ address_1:
146
+ language_id: 1
147
+ country_id: 1
148
+ patron_type_id: 1
149
+ required_role_id: 1
150
+ created_at: 2007-11-19 17:24:50.153417 +09:00
151
+ patron_00010:
152
+ place: ""
153
+ last_name: New patron 5
154
+ first_name:
155
+ full_name: New patron 5
156
+ updated_at: 2007-11-21 22:02:35.579396 +09:00
157
+ other_designation: ""
158
+ id: 10
159
+ date_of_birth: 2000-01-01
160
+ date_of_death:
161
+ address_1:
162
+ language_id: 1
163
+ country_id: 1
164
+ patron_type_id: 1
165
+ required_role_id: 1
166
+ created_at: 2007-11-19 17:24:50.153417 +09:00
167
+ patron_00011:
168
+ place: ""
169
+ last_name: User3
170
+ first_name:
171
+ full_name: User3
172
+ updated_at: 2007-11-21 22:02:35.579396 +09:00
173
+ other_designation: ""
174
+ id: 11
175
+ date_of_birth: 2000-01-01
176
+ date_of_death:
177
+ address_1:
178
+ language_id: 1
179
+ country_id: 1
180
+ patron_type_id: 1
181
+ required_role_id: 1
182
+ created_at: 2007-11-19 17:24:50.153417 +09:00
183
+ user_id: 6
184
+ patron_00101:
185
+ place: ""
186
+ last_name: テスト名字
187
+ first_name: テスト名前
188
+ full_name: テスト正式名称
189
+ updated_at: 2010-03-03 17:00:00.579396 +09:00
190
+ other_designation: ""
191
+ id: 101
192
+ date_of_birth: 2000-01-01
193
+ date_of_death:
194
+ address_1:
195
+ language_id: 1
196
+ country_id: 1
197
+ patron_type_id: 1
198
+ required_role_id: 1
199
+ created_at: 2010-03-03 17:00:00.579396 +09:00
200
+ patron_00102:
201
+ place: ""
202
+ last_name:
203
+ first_name:
204
+ full_name: 出版社テスト
205
+ updated_at: 2010-03-03 17:00:00.579396 +09:00
206
+ other_designation: ""
207
+ id: 102
208
+ date_of_birth:
209
+ date_of_death:
210
+ address_1:
211
+ language_id: 1
212
+ country_id: 1
213
+ patron_type_id: 1
214
+ required_role_id: 1
215
+ created_at: 2010-03-03 17:00:00.579396 +09:00
216
+ patron_00103:
217
+ place: ""
218
+ last_name:
219
+ first_name:
220
+ full_name: 作者ダミー
221
+ updated_at: 2010-03-16 19:00:00.579396 +09:00
222
+ other_designation: ""
223
+ id: 103
224
+ date_of_birth:
225
+ date_of_death:
226
+ address_1:
227
+ language_id: 1
228
+ country_id: 1
229
+ patron_type_id: 1
230
+ required_role_id: 1
231
+ created_at: 2010-03-16 19:00:00.579396 +09:00
232
+ patron_00104:
233
+ place: ""
234
+ last_name:
235
+ first_name:
236
+ full_name: 試験用会社
237
+ updated_at: 2010-03-16 19:00:00.579396 +09:00
238
+ other_designation: ""
239
+ id: 104
240
+ date_of_birth:
241
+ date_of_death:
242
+ address_1:
243
+ language_id: 1
244
+ country_id: 1
245
+ patron_type_id: 1
246
+ required_role_id: 1
247
+ created_at: 2010-03-16 19:00:00.579396 +09:00
248
+ patron_00201:
249
+ place: ""
250
+ last_name:
251
+ first_name:
252
+ full_name: オーム社
253
+ updated_at: 2010-03-15 17:00:00.579396 +09:00
254
+ other_designation: ""
255
+ id: 201
256
+ date_of_birth:
257
+ date_of_death:
258
+ address_1:
259
+ language_id: 1
260
+ country_id: 1
261
+ patron_type_id: 1
262
+ required_role_id: 1
263
+ created_at: 2010-03-15 17:00:00.579396 +09:00
264
+ patron_00202:
265
+ place: ""
266
+ last_name:
267
+ first_name:
268
+ full_name: Ruby社
269
+ updated_at: 2010-03-15 17:00:00.579396 +09:00
270
+ other_designation: ""
271
+ id: 202
272
+ date_of_birth:
273
+ date_of_death:
274
+ address_1:
275
+ language_id: 1
276
+ country_id: 1
277
+ patron_type_id: 1
278
+ required_role_id: 1
279
+ created_at: 2010-03-15 17:00:00.579396 +09:00
280
+
281
+
282
+
283
+
284
+
285
+
286
+ # == Schema Information
287
+ #
288
+ # Table name: patrons
289
+ #
290
+ # id :integer not null, primary key
291
+ # user_id :integer
292
+ # last_name :string(255)
293
+ # middle_name :string(255)
294
+ # first_name :string(255)
295
+ # last_name_transcription :string(255)
296
+ # middle_name_transcription :string(255)
297
+ # first_name_transcription :string(255)
298
+ # corporate_name :string(255)
299
+ # corporate_name_transcription :string(255)
300
+ # full_name :string(255)
301
+ # full_name_transcription :text
302
+ # full_name_alternative :text
303
+ # created_at :datetime
304
+ # updated_at :datetime
305
+ # deleted_at :datetime
306
+ # zip_code_1 :string(255)
307
+ # zip_code_2 :string(255)
308
+ # address_1 :text
309
+ # address_2 :text
310
+ # address_1_note :text
311
+ # address_2_note :text
312
+ # telephone_number_1 :string(255)
313
+ # telephone_number_2 :string(255)
314
+ # fax_number_1 :string(255)
315
+ # fax_number_2 :string(255)
316
+ # other_designation :text
317
+ # place :text
318
+ # street :text
319
+ # locality :text
320
+ # region :text
321
+ # date_of_birth :datetime
322
+ # date_of_death :datetime
323
+ # language_id :integer default(1), not null
324
+ # country_id :integer default(1), not null
325
+ # patron_type_id :integer default(1), not null
326
+ # lock_version :integer default(0), not null
327
+ # note :text
328
+ # required_role_id :integer default(1), not null
329
+ # required_score :integer default(0), not null
330
+ # state :string(255)
331
+ # email :text
332
+ # url :text
333
+ # full_name_alternative_transcription :text
334
+ # title :string(255)
335
+ # birth_date :string(255)
336
+ # death_date :string(255)
337
+ #
338
+