enju_circulation 0.1.0.pre29 → 0.1.0.pre30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/checked_item.rb +32 -19
  3. data/app/models/reserve.rb +8 -8
  4. data/app/views/checked_items/_list.html.erb +4 -2
  5. data/app/views/reserves/_title.html.erb +3 -3
  6. data/lib/enju_circulation/version.rb +1 -1
  7. data/spec/controllers/checked_items_controller_spec.rb +15 -1
  8. data/spec/dummy/app/models/local_agent.rb +1 -1
  9. data/spec/dummy/app/models/user.rb +1 -1
  10. data/spec/dummy/db/migrate/001_create_agents.rb +8 -8
  11. data/spec/dummy/db/migrate/012_create_owns.rb +2 -2
  12. data/spec/dummy/db/migrate/015_create_creates.rb +2 -2
  13. data/spec/dummy/db/migrate/047_create_produces.rb +2 -2
  14. data/spec/dummy/db/migrate/059_create_libraries.rb +2 -2
  15. data/spec/dummy/db/migrate/125_create_donates.rb +2 -2
  16. data/spec/dummy/db/migrate/20080830154109_create_realizes.rb +2 -2
  17. data/spec/dummy/db/migrate/20080905191442_create_agent_types.rb +2 -2
  18. data/spec/dummy/db/migrate/20090812151902_create_agent_relationship_types.rb +2 -2
  19. data/spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb +2 -2
  20. data/spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb +5 -5
  21. data/spec/dummy/db/migrate/20100814091104_add_position_to_agent_relationship.rb +3 -3
  22. data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_agent.rb +5 -5
  23. data/spec/dummy/db/schema.rb +102 -102
  24. data/spec/dummy/db/test.sqlite3 +0 -0
  25. data/spec/dummy/solr/data/test/index/{_2fp.fdt → _2hv.fdt} +0 -0
  26. data/spec/dummy/solr/data/test/index/{_2fp.fdx → _2hv.fdx} +0 -0
  27. data/spec/dummy/solr/data/test/index/{_2fp.fnm → _2hv.fnm} +0 -0
  28. data/spec/dummy/solr/data/test/index/{_2fp.frq → _2hv.frq} +0 -0
  29. data/spec/dummy/solr/data/test/index/{_2fp.nrm → _2hv.nrm} +0 -0
  30. data/spec/dummy/solr/data/test/index/{_2fp.prx → _2hv.prx} +0 -0
  31. data/spec/dummy/solr/data/test/index/{_2fp.tii → _2hv.tii} +0 -0
  32. data/spec/dummy/solr/data/test/index/{_2fp.tis → _2hv.tis} +0 -0
  33. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  34. data/spec/dummy/solr/data/test/index/segments_4zj +0 -0
  35. data/spec/fixtures/agent_types.yml +4 -4
  36. data/spec/fixtures/agents.yml +46 -46
  37. data/spec/fixtures/libraries.yml +6 -6
  38. data/spec/fixtures/reserves.yml +1 -1
  39. metadata +30 -48
  40. data/spec/dummy/app/models/local_patron.rb +0 -13
  41. data/spec/dummy/db/migrate/001_create_patrons.rb +0 -58
  42. data/spec/dummy/db/migrate/20080905191442_create_patron_types.rb +0 -12
  43. data/spec/dummy/db/migrate/20090812151902_create_patron_relationship_types.rb +0 -12
  44. data/spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb +0 -13
  45. data/spec/dummy/db/migrate/20100814091104_add_position_to_patron_relationship.rb +0 -11
  46. data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_patron.rb +0 -11
  47. data/spec/dummy/solr/data/test/index/segments_4v7 +0 -0
  48. data/spec/fixtures/patron_types.yml +0 -35
  49. data/spec/fixtures/patrons.yml +0 -338
@@ -13,6 +13,95 @@
13
13
 
14
14
  ActiveRecord::Schema.define(:version => 20130519065837) do
15
15
 
16
+ create_table "agent_relationship_types", :force => true do |t|
17
+ t.string "name", :null => false
18
+ t.text "display_name"
19
+ t.text "note"
20
+ t.integer "position"
21
+ t.datetime "created_at", :null => false
22
+ t.datetime "updated_at", :null => false
23
+ end
24
+
25
+ create_table "agent_relationships", :force => true do |t|
26
+ t.integer "parent_id"
27
+ t.integer "child_id"
28
+ t.integer "agent_relationship_type_id"
29
+ t.datetime "created_at", :null => false
30
+ t.datetime "updated_at", :null => false
31
+ t.integer "position"
32
+ end
33
+
34
+ add_index "agent_relationships", ["child_id"], :name => "index_agent_relationships_on_child_id"
35
+ add_index "agent_relationships", ["parent_id"], :name => "index_agent_relationships_on_parent_id"
36
+
37
+ create_table "agent_types", :force => true do |t|
38
+ t.string "name", :null => false
39
+ t.text "display_name"
40
+ t.text "note"
41
+ t.integer "position"
42
+ t.datetime "created_at", :null => false
43
+ t.datetime "updated_at", :null => false
44
+ end
45
+
46
+ create_table "agents", :force => true do |t|
47
+ t.integer "user_id"
48
+ t.string "last_name"
49
+ t.string "middle_name"
50
+ t.string "first_name"
51
+ t.string "last_name_transcription"
52
+ t.string "middle_name_transcription"
53
+ t.string "first_name_transcription"
54
+ t.string "corporate_name"
55
+ t.string "corporate_name_transcription"
56
+ t.string "full_name"
57
+ t.text "full_name_transcription"
58
+ t.text "full_name_alternative"
59
+ t.datetime "created_at", :null => false
60
+ t.datetime "updated_at", :null => false
61
+ t.datetime "deleted_at"
62
+ t.string "zip_code_1"
63
+ t.string "zip_code_2"
64
+ t.text "address_1"
65
+ t.text "address_2"
66
+ t.text "address_1_note"
67
+ t.text "address_2_note"
68
+ t.string "telephone_number_1"
69
+ t.string "telephone_number_2"
70
+ t.string "fax_number_1"
71
+ t.string "fax_number_2"
72
+ t.text "other_designation"
73
+ t.text "place"
74
+ t.string "postal_code"
75
+ t.text "street"
76
+ t.text "locality"
77
+ t.text "region"
78
+ t.datetime "date_of_birth"
79
+ t.datetime "date_of_death"
80
+ t.integer "language_id", :default => 1, :null => false
81
+ t.integer "country_id", :default => 1, :null => false
82
+ t.integer "agent_type_id", :default => 1, :null => false
83
+ t.integer "lock_version", :default => 0, :null => false
84
+ t.text "note"
85
+ t.integer "creates_count", :default => 0, :null => false
86
+ t.integer "realizes_count", :default => 0, :null => false
87
+ t.integer "produces_count", :default => 0, :null => false
88
+ t.integer "owns_count", :default => 0, :null => false
89
+ t.integer "required_role_id", :default => 1, :null => false
90
+ t.integer "required_score", :default => 0, :null => false
91
+ t.string "state"
92
+ t.text "email"
93
+ t.text "url"
94
+ t.text "full_name_alternative_transcription"
95
+ t.string "birth_date"
96
+ t.string "death_date"
97
+ end
98
+
99
+ add_index "agents", ["country_id"], :name => "index_agents_on_country_id"
100
+ add_index "agents", ["full_name"], :name => "index_agents_on_full_name"
101
+ add_index "agents", ["language_id"], :name => "index_agents_on_language_id"
102
+ add_index "agents", ["required_role_id"], :name => "index_agents_on_required_role_id"
103
+ add_index "agents", ["user_id"], :name => "index_agents_on_user_id", :unique => true
104
+
16
105
  create_table "baskets", :force => true do |t|
17
106
  t.integer "user_id"
18
107
  t.text "note"
@@ -156,7 +245,7 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
156
245
  end
157
246
 
158
247
  create_table "creates", :force => true do |t|
159
- t.integer "patron_id", :null => false
248
+ t.integer "agent_id", :null => false
160
249
  t.integer "work_id", :null => false
161
250
  t.integer "position"
162
251
  t.datetime "created_at", :null => false
@@ -164,7 +253,7 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
164
253
  t.integer "create_type_id"
165
254
  end
166
255
 
167
- add_index "creates", ["patron_id"], :name => "index_creates_on_patron_id"
256
+ add_index "creates", ["agent_id"], :name => "index_creates_on_agent_id"
168
257
  add_index "creates", ["work_id"], :name => "index_creates_on_work_id"
169
258
 
170
259
  create_table "delayed_jobs", :force => true do |t|
@@ -184,14 +273,14 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
184
273
  add_index "delayed_jobs", ["priority", "run_at"], :name => "delayed_jobs_priority"
185
274
 
186
275
  create_table "donates", :force => true do |t|
187
- t.integer "patron_id", :null => false
276
+ t.integer "agent_id", :null => false
188
277
  t.integer "item_id", :null => false
189
278
  t.datetime "created_at", :null => false
190
279
  t.datetime "updated_at", :null => false
191
280
  end
192
281
 
282
+ add_index "donates", ["agent_id"], :name => "index_donates_on_agent_id"
193
283
  add_index "donates", ["item_id"], :name => "index_donates_on_item_id"
194
- add_index "donates", ["patron_id"], :name => "index_donates_on_patron_id"
195
284
 
196
285
  create_table "event_categories", :force => true do |t|
197
286
  t.string "name", :null => false
@@ -323,8 +412,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
323
412
  add_index "lending_policies", ["item_id", "user_group_id"], :name => "index_lending_policies_on_item_id_and_user_group_id", :unique => true
324
413
 
325
414
  create_table "libraries", :force => true do |t|
326
- t.integer "patron_id"
327
- t.string "patron_type"
415
+ t.integer "agent_id"
416
+ t.string "agent_type"
328
417
  t.string "name", :null => false
329
418
  t.text "display_name"
330
419
  t.string "short_display_name", :null => false
@@ -348,9 +437,9 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
348
437
  t.string "isil"
349
438
  end
350
439
 
440
+ add_index "libraries", ["agent_id"], :name => "index_libraries_on_agent_id", :unique => true
351
441
  add_index "libraries", ["library_group_id"], :name => "index_libraries_on_library_group_id"
352
442
  add_index "libraries", ["name"], :name => "index_libraries_on_name", :unique => true
353
- add_index "libraries", ["patron_id"], :name => "index_libraries_on_patron_id", :unique => true
354
443
 
355
444
  create_table "library_groups", :force => true do |t|
356
445
  t.string "name", :null => false
@@ -542,104 +631,15 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
542
631
  add_index "messages", ["sender_id"], :name => "index_messages_on_sender_id"
543
632
 
544
633
  create_table "owns", :force => true do |t|
545
- t.integer "patron_id", :null => false
634
+ t.integer "agent_id", :null => false
546
635
  t.integer "item_id", :null => false
547
636
  t.integer "position"
548
637
  t.datetime "created_at", :null => false
549
638
  t.datetime "updated_at", :null => false
550
639
  end
551
640
 
641
+ add_index "owns", ["agent_id"], :name => "index_owns_on_agent_id"
552
642
  add_index "owns", ["item_id"], :name => "index_owns_on_item_id"
553
- add_index "owns", ["patron_id"], :name => "index_owns_on_patron_id"
554
-
555
- create_table "patron_relationship_types", :force => true do |t|
556
- t.string "name", :null => false
557
- t.text "display_name"
558
- t.text "note"
559
- t.integer "position"
560
- t.datetime "created_at", :null => false
561
- t.datetime "updated_at", :null => false
562
- end
563
-
564
- create_table "patron_relationships", :force => true do |t|
565
- t.integer "parent_id"
566
- t.integer "child_id"
567
- t.integer "patron_relationship_type_id"
568
- t.datetime "created_at", :null => false
569
- t.datetime "updated_at", :null => false
570
- t.integer "position"
571
- end
572
-
573
- add_index "patron_relationships", ["child_id"], :name => "index_patron_relationships_on_child_id"
574
- add_index "patron_relationships", ["parent_id"], :name => "index_patron_relationships_on_parent_id"
575
-
576
- create_table "patron_types", :force => true do |t|
577
- t.string "name", :null => false
578
- t.text "display_name"
579
- t.text "note"
580
- t.integer "position"
581
- t.datetime "created_at", :null => false
582
- t.datetime "updated_at", :null => false
583
- end
584
-
585
- create_table "patrons", :force => true do |t|
586
- t.integer "user_id"
587
- t.string "last_name"
588
- t.string "middle_name"
589
- t.string "first_name"
590
- t.string "last_name_transcription"
591
- t.string "middle_name_transcription"
592
- t.string "first_name_transcription"
593
- t.string "corporate_name"
594
- t.string "corporate_name_transcription"
595
- t.string "full_name"
596
- t.text "full_name_transcription"
597
- t.text "full_name_alternative"
598
- t.datetime "created_at", :null => false
599
- t.datetime "updated_at", :null => false
600
- t.datetime "deleted_at"
601
- t.string "zip_code_1"
602
- t.string "zip_code_2"
603
- t.text "address_1"
604
- t.text "address_2"
605
- t.text "address_1_note"
606
- t.text "address_2_note"
607
- t.string "telephone_number_1"
608
- t.string "telephone_number_2"
609
- t.string "fax_number_1"
610
- t.string "fax_number_2"
611
- t.text "other_designation"
612
- t.text "place"
613
- t.string "postal_code"
614
- t.text "street"
615
- t.text "locality"
616
- t.text "region"
617
- t.datetime "date_of_birth"
618
- t.datetime "date_of_death"
619
- t.integer "language_id", :default => 1, :null => false
620
- t.integer "country_id", :default => 1, :null => false
621
- t.integer "patron_type_id", :default => 1, :null => false
622
- t.integer "lock_version", :default => 0, :null => false
623
- t.text "note"
624
- t.integer "creates_count", :default => 0, :null => false
625
- t.integer "realizes_count", :default => 0, :null => false
626
- t.integer "produces_count", :default => 0, :null => false
627
- t.integer "owns_count", :default => 0, :null => false
628
- t.integer "required_role_id", :default => 1, :null => false
629
- t.integer "required_score", :default => 0, :null => false
630
- t.string "state"
631
- t.text "email"
632
- t.text "url"
633
- t.text "full_name_alternative_transcription"
634
- t.string "birth_date"
635
- t.string "death_date"
636
- end
637
-
638
- add_index "patrons", ["country_id"], :name => "index_patrons_on_country_id"
639
- add_index "patrons", ["full_name"], :name => "index_patrons_on_full_name"
640
- add_index "patrons", ["language_id"], :name => "index_patrons_on_language_id"
641
- add_index "patrons", ["required_role_id"], :name => "index_patrons_on_required_role_id"
642
- add_index "patrons", ["user_id"], :name => "index_patrons_on_user_id", :unique => true
643
643
 
644
644
  create_table "picture_files", :force => true do |t|
645
645
  t.integer "picture_attachable_id"
@@ -664,7 +664,7 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
664
664
  end
665
665
 
666
666
  create_table "produces", :force => true do |t|
667
- t.integer "patron_id", :null => false
667
+ t.integer "agent_id", :null => false
668
668
  t.integer "manifestation_id", :null => false
669
669
  t.integer "position"
670
670
  t.datetime "created_at", :null => false
@@ -672,8 +672,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
672
672
  t.integer "produce_type_id"
673
673
  end
674
674
 
675
+ add_index "produces", ["agent_id"], :name => "index_produces_on_agent_id"
675
676
  add_index "produces", ["manifestation_id"], :name => "index_produces_on_manifestation_id"
676
- add_index "produces", ["patron_id"], :name => "index_produces_on_patron_id"
677
677
 
678
678
  create_table "realize_types", :force => true do |t|
679
679
  t.string "name"
@@ -685,7 +685,7 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
685
685
  end
686
686
 
687
687
  create_table "realizes", :force => true do |t|
688
- t.integer "patron_id", :null => false
688
+ t.integer "agent_id", :null => false
689
689
  t.integer "expression_id", :null => false
690
690
  t.integer "position"
691
691
  t.datetime "created_at", :null => false
@@ -693,8 +693,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
693
693
  t.integer "realize_type_id"
694
694
  end
695
695
 
696
+ add_index "realizes", ["agent_id"], :name => "index_realizes_on_agent_id"
696
697
  add_index "realizes", ["expression_id"], :name => "index_realizes_on_expression_id"
697
- add_index "realizes", ["patron_id"], :name => "index_realizes_on_patron_id"
698
698
 
699
699
  create_table "request_status_types", :force => true do |t|
700
700
  t.string "name", :null => false
Binary file
@@ -1,19 +1,19 @@
1
1
  ---
2
- patron_type_00001:
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
- patron_type_00002:
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
- patron_type_00003:
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: patron_types
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
- patron_00001:
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
- patron_type_id: 1
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
- patron_00002:
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
- patron_type_id: 1
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
- patron_00003:
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
- patron_type_id: 1
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
- patron_00004:
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
- patron_type_id: 1
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
- patron_00005:
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
- patron_type_id: 1
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
- patron_00006:
87
+ agent_00006:
88
88
  place: ""
89
- last_name: New patron 1
89
+ last_name: New agent 1
90
90
  first_name:
91
- full_name: New patron 1
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
- patron_type_id: 1
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
- patron_00007:
103
+ agent_00007:
104
104
  place: ""
105
- last_name: New patron 2
105
+ last_name: New agent 2
106
106
  first_name:
107
- full_name: New patron 2
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
- patron_type_id: 1
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
- patron_00008:
119
+ agent_00008:
120
120
  place: ""
121
- last_name: New patron 3
121
+ last_name: New agent 3
122
122
  first_name:
123
- full_name: New patron 3
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
- patron_type_id: 1
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
- patron_00009:
135
+ agent_00009:
136
136
  place: ""
137
- last_name: New patron 4
137
+ last_name: New agent 4
138
138
  first_name:
139
- full_name: New patron 4
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
- patron_type_id: 1
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
- patron_00010:
151
+ agent_00010:
152
152
  place: ""
153
- last_name: New patron 5
153
+ last_name: New agent 5
154
154
  first_name:
155
- full_name: New patron 5
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
- patron_type_id: 1
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
- patron_00011:
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
- patron_type_id: 1
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
- patron_00101:
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
- patron_type_id: 1
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
- patron_00102:
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
- patron_type_id: 1
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
- patron_00103:
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
- patron_type_id: 1
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
- patron_00104:
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
- patron_type_id: 1
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
- patron_00201:
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
- patron_type_id: 1
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
- patron_00202:
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
- patron_type_id: 1
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: patrons
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
- # patron_type_id :integer default(1), not null
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
@@ -14,7 +14,7 @@ library_00001:
14
14
  street:
15
15
  created_at: 2007-08-13 18:10:00 +09:00
16
16
  library_group_id: 1
17
- patron_id: 1
17
+ agent_id: 1
18
18
  call_number_delimiter: "|"
19
19
  position: 1
20
20
  library_00002:
@@ -32,7 +32,7 @@ library_00002:
32
32
  street:
33
33
  created_at: 2007-08-13 18:10:00 +09:00
34
34
  library_group_id: 1
35
- patron_id: 2
35
+ agent_id: 2
36
36
  call_number_delimiter: "|"
37
37
  position: 2
38
38
  isil: "JP-0000000"
@@ -51,7 +51,7 @@ library_00003:
51
51
  street:
52
52
  created_at: 2007-08-14 16:37:00 +09:00
53
53
  library_group_id: 1
54
- patron_id: 3
54
+ agent_id: 3
55
55
  call_number_delimiter: "|"
56
56
  position: 3
57
57
  library_00004:
@@ -69,7 +69,7 @@ library_00004:
69
69
  street:
70
70
  created_at: 2007-08-23 19:51:00 +09:00
71
71
  library_group_id: 1
72
- patron_id: 4
72
+ agent_id: 4
73
73
  call_number_delimiter: "|"
74
74
  position: 4
75
75
 
@@ -78,8 +78,8 @@ library_00004:
78
78
  # Table name: libraries
79
79
  #
80
80
  # id :integer not null, primary key
81
- # patron_id :integer
82
- # patron_type :string(255)
81
+ # agent_id :integer
82
+ # agent_type :string(255)
83
83
  # name :string(255) not null
84
84
  # display_name :text
85
85
  # short_display_name :string(255) not null
@@ -170,7 +170,7 @@ reserve_00015:
170
170
  # expired_at :datetime
171
171
  # deleted_at :datetime
172
172
  # state :string(255)
173
- # expiration_notice_to_patron :boolean default(FALSE)
173
+ # expiration_notice_to_agent :boolean default(FALSE)
174
174
  # expiration_notice_to_library :boolean default(FALSE)
175
175
  # retained_at :datetime
176
176
  # postponed_at :datetime