enju_oai 0.1.0.pre10 → 0.1.0.pre11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/config/initializers/mime_types.rb +1 -1
  3. data/lib/enju_oai/version.rb +1 -1
  4. data/spec/dummy/db/migrate/{001_create_patrons.rb → 001_create_agents.rb} +9 -8
  5. data/spec/dummy/db/migrate/002_devise_create_users.rb +0 -35
  6. data/spec/dummy/db/migrate/005_create_manifestations.rb +7 -18
  7. data/spec/dummy/db/migrate/012_create_owns.rb +2 -2
  8. data/spec/dummy/db/migrate/015_create_creates.rb +2 -2
  9. data/spec/dummy/db/migrate/047_create_produces.rb +2 -2
  10. data/spec/dummy/db/migrate/080_create_library_groups.rb +1 -3
  11. data/spec/dummy/db/migrate/120_create_baskets.rb +12 -0
  12. data/spec/dummy/db/migrate/125_create_donates.rb +2 -2
  13. data/spec/dummy/db/migrate/20080830154109_create_realizes.rb +2 -2
  14. data/spec/dummy/db/migrate/{20080905191442_create_patron_types.rb → 20080905191442_create_agent_types.rb} +2 -2
  15. data/spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb +22 -0
  16. data/spec/dummy/db/migrate/20081028083208_create_resource_import_files.rb +1 -1
  17. data/spec/dummy/db/migrate/{20090812151902_create_patron_relationship_types.rb → 20090812151902_create_agent_relationship_types.rb} +2 -2
  18. data/spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb +2 -2
  19. data/spec/dummy/db/migrate/20100314190054_add_opening_hour_to_library.rb +9 -0
  20. data/spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb +13 -0
  21. data/spec/dummy/db/migrate/20100814091104_add_position_to_agent_relationship.rb +11 -0
  22. data/spec/dummy/db/migrate/20100925074559_create_agent_import_results.rb +12 -0
  23. data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_agent.rb +11 -0
  24. data/spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb +0 -2
  25. data/spec/dummy/db/migrate/20120319173203_create_accepts.rb +14 -0
  26. data/spec/dummy/db/migrate/20120413161403_add_fingerprint_to_agent_import_file.rb +5 -0
  27. data/spec/dummy/db/migrate/20120413170720_add_error_message_to_agent_import_file.rb +5 -0
  28. data/spec/dummy/db/migrate/20120511072422_add_agent_identifier_to_agent.rb +6 -0
  29. data/spec/dummy/db/migrate/20120602141129_add_edit_mode_to_agent_import_file.rb +5 -0
  30. data/spec/dummy/db/migrate/20121116031206_add_fulltext_content_to_manifestation.rb +5 -0
  31. data/spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb +26 -0
  32. data/spec/dummy/db/migrate/{20100502171926_add_latitude_and_longitude_to_library.rb → 20130412083556_add_latitude_and_longitude_to_library.rb} +1 -6
  33. data/spec/dummy/db/migrate/20130506175834_create_identifiers.rb +1 -0
  34. data/spec/dummy/db/schema.rb +172 -216
  35. data/spec/dummy/db/test.sqlite3 +0 -0
  36. data/spec/dummy/solr/conf/schema.xml +1 -0
  37. data/spec/dummy/solr/data/test/index/{_43.frq → _r.frq} +0 -0
  38. data/spec/dummy/solr/data/test/index/{_43.nrm → _r.nrm} +1 -1
  39. data/spec/dummy/solr/data/test/index/{_43.prx → _r.prx} +0 -0
  40. data/spec/dummy/solr/data/test/index/_r.tii +0 -0
  41. data/spec/dummy/solr/data/test/index/{_43.tis → _r.tis} +0 -0
  42. data/spec/dummy/solr/data/test/index/{_44.frq → _s.frq} +0 -0
  43. data/spec/dummy/solr/data/test/index/{_44.prx → _s.prx} +0 -0
  44. data/spec/dummy/solr/data/test/index/_s.tii +0 -0
  45. data/spec/dummy/solr/data/test/index/{_44.tis → _s.tis} +0 -0
  46. data/spec/dummy/solr/data/test/index/{_45.fnm → _t.fnm} +3 -2
  47. data/spec/dummy/solr/data/test/index/_t.frq +0 -0
  48. data/spec/dummy/solr/data/test/index/{_45.nrm → _t.nrm} +1 -1
  49. data/spec/dummy/solr/data/test/index/_t.prx +0 -0
  50. data/spec/dummy/solr/data/test/index/_t.tii +0 -0
  51. data/spec/dummy/solr/data/test/index/_t.tis +0 -0
  52. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  53. data/spec/dummy/solr/data/test/index/segments_15 +0 -0
  54. data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
  55. data/spec/dummy/tmp/cache/4F7/F90/default_role +0 -0
  56. data/spec/dummy/tmp/cache/6E4/420/search_engine_all +0 -0
  57. data/spec/fixtures/{patron_import_files.yml → agent_import_files.yml} +18 -18
  58. data/spec/fixtures/{patron_import_results.yml → agent_import_results.yml} +7 -7
  59. data/spec/fixtures/{patron_relationship_types.yml → agent_relationship_types.yml} +4 -4
  60. data/spec/fixtures/{patron_relationships.yml → agent_relationships.yml} +4 -4
  61. data/spec/fixtures/{patron_types.yml → agent_types.yml} +4 -4
  62. data/spec/fixtures/{patrons.yml → agents.yml} +46 -46
  63. data/spec/fixtures/creates.yml +8 -8
  64. data/spec/fixtures/donates.yml +4 -4
  65. data/spec/fixtures/manifestations.yml +25 -162
  66. data/spec/fixtures/owns.yml +3 -3
  67. data/spec/fixtures/produces.yml +20 -20
  68. data/spec/fixtures/realizes.yml +11 -11
  69. data/spec/fixtures/user_groups.yml +0 -7
  70. metadata +101 -139
  71. data/spec/dummy/app/models/role.rb +0 -46
  72. data/spec/dummy/app/models/user_has_role.rb +0 -4
  73. data/spec/dummy/db/migrate/20081028083142_create_patron_import_files.rb +0 -22
  74. data/spec/dummy/db/migrate/20100326024214_add_date_index_to_resource.rb +0 -11
  75. data/spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb +0 -13
  76. data/spec/dummy/db/migrate/20100627193848_add_enju_access_key_to_user.rb +0 -10
  77. data/spec/dummy/db/migrate/20100814091104_add_position_to_patron_relationship.rb +0 -11
  78. data/spec/dummy/db/migrate/20100919121500_drop_user_email_unique_index.rb +0 -11
  79. data/spec/dummy/db/migrate/20100925074559_create_patron_import_results.rb +0 -12
  80. data/spec/dummy/db/migrate/20101103090330_add_title_to_patron.rb +0 -9
  81. data/spec/dummy/db/migrate/20101103090457_rename_manifestation_identifier_to_identifier.rb +0 -9
  82. data/spec/dummy/db/migrate/20110115022329_add_position_to_library_group.rb +0 -9
  83. data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_patron.rb +0 -11
  84. data/spec/dummy/db/migrate/20110425133109_add_issn_to_series_statement.rb +0 -9
  85. data/spec/dummy/db/migrate/20110618091240_add_periodical_to_series_statement.rb +0 -9
  86. data/spec/dummy/db/migrate/20110627034940_create_series_statement_merge_lists.rb +0 -9
  87. data/spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb +0 -12
  88. data/spec/dummy/db/migrate/20110627122938_add_number_of_day_to_notify_overdue_to_user_group.rb +0 -13
  89. data/spec/dummy/db/migrate/20110820131417_create_series_has_manifestations.rb +0 -13
  90. data/spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb +0 -13
  91. data/spec/dummy/db/migrate/20110927135845_add_missing_since_to_item.rb +0 -9
  92. data/spec/dummy/db/migrate/20111009183423_add_ndc_to_manifestation.rb +0 -9
  93. data/spec/dummy/db/migrate/20111103221239_rename_manifestation_identifier_to_manifestation_identifier.rb +0 -9
  94. data/spec/dummy/db/migrate/20120413161403_add_fingerprint_to_patron_import_file.rb +0 -5
  95. data/spec/dummy/db/migrate/20120413170720_add_error_message_to_patron_import_file.rb +0 -5
  96. data/spec/dummy/db/migrate/20120413225628_add_fingerprint_to_manifestation.rb +0 -5
  97. data/spec/dummy/db/migrate/20120415060308_rename_resource_import_file_imported_at_to_executed_at.rb +0 -9
  98. data/spec/dummy/db/migrate/20120415060323_rename_patron_import_file_imported_at_to_executed_at.rb +0 -9
  99. data/spec/dummy/db/migrate/20120426034355_add_unique_index_to_item_identifier.rb +0 -11
  100. data/spec/dummy/db/migrate/20120426042730_add_unique_index_to_manifestation_identifier.rb +0 -11
  101. data/spec/dummy/db/migrate/20120511072422_add_patron_identifier_to_patron.rb +0 -6
  102. data/spec/dummy/db/migrate/20120602141129_add_edit_mode_to_patron_import_file.rb +0 -5
  103. data/spec/dummy/db/migrate/20120728204337_create_series_statement_relationships.rb +0 -11
  104. data/spec/dummy/solr/data/test/index/_43.tii +0 -0
  105. data/spec/dummy/solr/data/test/index/_44.tii +0 -0
  106. data/spec/dummy/solr/data/test/index/_45.frq +0 -0
  107. data/spec/dummy/solr/data/test/index/_45.prx +0 -0
  108. data/spec/dummy/solr/data/test/index/_45.tii +0 -0
  109. data/spec/dummy/solr/data/test/index/_45.tis +0 -0
  110. data/spec/dummy/solr/data/test/index/segments_5v +0 -0
  111. /data/spec/dummy/solr/data/test/index/{_43.fdt → _r.fdt} +0 -0
  112. /data/spec/dummy/solr/data/test/index/{_43.fdx → _r.fdx} +0 -0
  113. /data/spec/dummy/solr/data/test/index/{_43.fnm → _r.fnm} +0 -0
  114. /data/spec/dummy/solr/data/test/index/{_44.fdt → _s.fdt} +0 -0
  115. /data/spec/dummy/solr/data/test/index/{_44.fdx → _s.fdx} +0 -0
  116. /data/spec/dummy/solr/data/test/index/{_44.fnm → _s.fnm} +0 -0
  117. /data/spec/dummy/solr/data/test/index/{_44.nrm → _s.nrm} +0 -0
  118. /data/spec/dummy/solr/data/test/index/{_45.fdt → _t.fdt} +0 -0
  119. /data/spec/dummy/solr/data/test/index/{_45.fdx → _t.fdx} +0 -0
@@ -2,13 +2,13 @@
2
2
  own_00001:
3
3
  item_id: 1
4
4
  updated_at: 2007-11-21 21:22:57.654360 +09:00
5
- patron_id: 1
5
+ agent_id: 1
6
6
  id: 1
7
7
  created_at: 2007-11-21 21:22:57.654360 +09:00
8
8
  own_00002:
9
9
  item_id: 2
10
10
  updated_at: 2007-11-21 21:22:13.685287 +09:00
11
- patron_id: 2
11
+ agent_id: 2
12
12
  id: 2
13
13
  created_at: 2007-11-21 21:22:13.685287 +09:00
14
14
 
@@ -17,7 +17,7 @@ own_00002:
17
17
  # Table name: owns
18
18
  #
19
19
  # id :integer not null, primary key
20
- # patron_id :integer not null
20
+ # agent_id :integer not null
21
21
  # item_id :integer not null
22
22
  # position :integer
23
23
  # created_at :datetime not null
@@ -2,133 +2,133 @@
2
2
  produce_00001:
3
3
  updated_at: 2008-01-11 23:28:19.277110 +09:00
4
4
  manifestation_id: 1
5
- patron_id: 1
5
+ agent_id: 1
6
6
  id: 1
7
7
  position: 1
8
8
  created_at: 2008-01-11 23:28:19.277110 +09:00
9
9
  produce_00002:
10
10
  updated_at: 2008-01-11 23:28:57.068191 +09:00
11
11
  manifestation_id: 2
12
- patron_id: 2
12
+ agent_id: 2
13
13
  id: 2
14
14
  position: 1
15
15
  created_at: 2008-01-11 23:28:57.068191 +09:00
16
16
  produce_00003:
17
17
  updated_at: 2008-01-11 23:32:03.701425 +09:00
18
18
  manifestation_id: 3
19
- patron_id: 3
19
+ agent_id: 3
20
20
  id: 3
21
21
  position: 1
22
22
  created_at: 2008-01-11 23:32:03.701425 +09:00
23
23
  produce_00004:
24
24
  updated_at: 2008-01-11 02:34:20.183962 +09:00
25
25
  manifestation_id: 4
26
- patron_id: 1
26
+ agent_id: 1
27
27
  id: 4
28
28
  position: 1
29
29
  created_at: 2008-01-11 02:34:20.183962 +09:00
30
30
  produce_00005:
31
31
  updated_at: 2008-01-11 02:34:32.352223 +09:00
32
32
  manifestation_id: 5
33
- patron_id: 2
33
+ agent_id: 2
34
34
  id: 5
35
35
  position: 2
36
36
  created_at: 2008-01-11 02:34:32.352223 +09:00
37
37
  produce_00006:
38
38
  updated_at: 2008-01-11 23:35:36.467584 +09:00
39
39
  manifestation_id: 1
40
- patron_id: 3
40
+ agent_id: 3
41
41
  id: 6
42
42
  position: 2
43
43
  created_at: 2008-01-11 23:35:36.467584 +09:00
44
44
  produce_00007:
45
45
  updated_at: 2008-01-11 02:40:24.038276 +09:00
46
46
  manifestation_id: 2
47
- patron_id: 1
47
+ agent_id: 1
48
48
  id: 7
49
49
  position: 1
50
50
  created_at: 2008-01-11 02:40:24.038276 +09:00
51
51
  produce_00008:
52
52
  updated_at: 2008-01-11 02:40:40.316742 +09:00
53
53
  manifestation_id: 3
54
- patron_id: 2
54
+ agent_id: 2
55
55
  id: 8
56
56
  position: 2
57
57
  created_at: 2008-01-11 02:40:40.316742 +09:00
58
58
  produce_00009:
59
59
  updated_at: 2008-01-11 02:40:55.664604 +09:00
60
60
  manifestation_id: 4
61
- patron_id: 3
61
+ agent_id: 3
62
62
  id: 9
63
63
  position: 3
64
64
  created_at: 2008-01-11 02:40:55.664604 +09:00
65
65
  produce_00010:
66
66
  updated_at: 2008-01-11 02:44:37.135721 +09:00
67
67
  manifestation_id: 5
68
- patron_id: 1
68
+ agent_id: 1
69
69
  id: 10
70
70
  position: 1
71
71
  created_at: 2008-01-11 02:44:37.135721 +09:00
72
72
  produce_00101:
73
73
  updated_at: 2010-03-03 20:00:00.135721 +09:00
74
74
  manifestation_id: 207
75
- patron_id: 102
75
+ agent_id: 102
76
76
  id: 101
77
77
  position: 1
78
78
  created_at: 2010-03-03 20:00:00.135721 +09:00
79
79
  produce_00102:
80
80
  updated_at: 2010-03-03 20:00:00.135721 +09:00
81
81
  manifestation_id: 201
82
- patron_id: 102
82
+ agent_id: 102
83
83
  id: 102
84
84
  position: 1
85
85
  created_at: 2010-03-03 20:00:00.135721 +09:00
86
86
  produce_00103:
87
87
  updated_at: 2010-03-03 20:00:00.135721 +09:00
88
88
  manifestation_id: 202
89
- patron_id: 102
89
+ agent_id: 102
90
90
  id: 103
91
91
  position: 1
92
92
  created_at: 2010-03-03 20:00:00.135721 +09:00
93
93
  produce_00104:
94
94
  updated_at: 2010-03-16 11:00:00.135721 +09:00
95
95
  manifestation_id: 208
96
- patron_id: 101
96
+ agent_id: 101
97
97
  id: 104
98
98
  position: 1
99
99
  created_at: 2010-03-16 11:00:00.135721 +09:00
100
100
  produce_00105:
101
101
  updated_at: 2010-03-16 19:00:00.135721 +09:00
102
102
  manifestation_id: 204
103
- patron_id: 104
103
+ agent_id: 104
104
104
  id: 105
105
105
  position: 1
106
106
  created_at: 2010-03-16 19:00:00.135721 +09:00
107
107
  produce_00106:
108
108
  updated_at: 2010-03-16 19:00:00.135721 +09:00
109
109
  manifestation_id: 205
110
- patron_id: 104
110
+ agent_id: 104
111
111
  id: 106
112
112
  position: 1
113
113
  created_at: 2010-03-16 19:00:00.135721 +09:00
114
114
  produce_00107:
115
115
  updated_at: 2010-03-16 19:00:00.135721 +09:00
116
116
  manifestation_id: 206
117
- patron_id: 104
117
+ agent_id: 104
118
118
  id: 107
119
119
  position: 1
120
120
  created_at: 2010-03-16 19:00:00.135721 +09:00
121
121
  produce_00201:
122
122
  updated_at: 2010-03-15 20:00:00.135721 +09:00
123
123
  manifestation_id: 120
124
- patron_id: 201
124
+ agent_id: 201
125
125
  id: 201
126
126
  position: 1
127
127
  created_at: 2010-03-15 20:00:00.135721 +09:00
128
128
  produce_00202:
129
129
  updated_at: 2010-03-15 20:00:00.135721 +09:00
130
130
  manifestation_id: 198
131
- patron_id: 202
131
+ agent_id: 202
132
132
  id: 202
133
133
  position: 1
134
134
  created_at: 2010-03-15 20:00:00.135721 +09:00
@@ -139,7 +139,7 @@ produce_00202:
139
139
  # Table name: produces
140
140
  #
141
141
  # id :integer not null, primary key
142
- # patron_id :integer not null
142
+ # agent_id :integer not null
143
143
  # manifestation_id :integer not null
144
144
  # position :integer
145
145
  # created_at :datetime not null
@@ -2,70 +2,70 @@
2
2
  realize_00001:
3
3
  updated_at: 2008-01-11 23:28:19.277110 +09:00
4
4
  expression_id: 1
5
- patron_id: 1
5
+ agent_id: 1
6
6
  id: 1
7
7
  position: 1
8
8
  created_at: 2008-01-11 23:28:19.277110 +09:00
9
9
  realize_00002:
10
10
  updated_at: 2008-01-11 23:28:57.068191 +09:00
11
11
  expression_id: 2
12
- patron_id: 2
12
+ agent_id: 2
13
13
  id: 2
14
14
  position: 2
15
15
  created_at: 2008-01-11 23:28:57.068191 +09:00
16
16
  realize_00003:
17
17
  updated_at: 2008-01-11 23:32:03.701425 +09:00
18
18
  expression_id: 3
19
- patron_id: 3
19
+ agent_id: 3
20
20
  id: 3
21
21
  position: 1
22
22
  created_at: 2008-01-11 23:32:03.701425 +09:00
23
23
  realize_00004:
24
24
  updated_at: 2008-01-11 02:34:20.183962 +09:00
25
25
  expression_id: 4
26
- patron_id: 1
26
+ agent_id: 1
27
27
  id: 4
28
28
  position: 1
29
29
  created_at: 2008-01-11 02:34:20.183962 +09:00
30
30
  realize_00005:
31
31
  updated_at: 2008-01-11 02:34:32.352223 +09:00
32
32
  expression_id: 5
33
- patron_id: 2
33
+ agent_id: 2
34
34
  id: 5
35
35
  position: 1
36
36
  created_at: 2008-01-11 02:34:32.352223 +09:00
37
37
  realize_00006:
38
38
  updated_at: 2008-01-11 23:35:36.467584 +09:00
39
39
  expression_id: 1
40
- patron_id: 3
40
+ agent_id: 3
41
41
  id: 6
42
42
  position: 2
43
43
  created_at: 2008-01-11 23:35:36.467584 +09:00
44
44
  realize_00007:
45
45
  updated_at: 2008-01-11 02:40:24.038276 +09:00
46
46
  expression_id: 2
47
- patron_id: 1
47
+ agent_id: 1
48
48
  id: 7
49
49
  position: 2
50
50
  created_at: 2008-01-11 02:40:24.038276 +09:00
51
51
  realize_00008:
52
52
  updated_at: 2008-01-11 02:40:40.316742 +09:00
53
53
  expression_id: 3
54
- patron_id: 2
54
+ agent_id: 2
55
55
  id: 8
56
56
  position: 2
57
57
  created_at: 2008-01-11 02:40:40.316742 +09:00
58
58
  realize_00009:
59
59
  updated_at: 2008-01-11 02:40:55.664604 +09:00
60
60
  expression_id: 4
61
- patron_id: 3
61
+ agent_id: 3
62
62
  id: 9
63
63
  position: 2
64
64
  created_at: 2008-01-11 02:40:55.664604 +09:00
65
65
  realize_00010:
66
66
  updated_at: 2008-01-11 02:44:37.135721 +09:00
67
67
  expression_id: 5
68
- patron_id: 1
68
+ agent_id: 1
69
69
  id: 10
70
70
  position: 2
71
71
  created_at: 2008-01-11 02:44:37.135721 +09:00
@@ -76,7 +76,7 @@ realize_00010:
76
76
  # Table name: realizes
77
77
  #
78
78
  # id :integer not null, primary key
79
- # patron_id :integer not null
79
+ # agent_id :integer not null
80
80
  # expression_id :integer not null
81
81
  # position :integer
82
82
  # created_at :datetime not null
@@ -7,8 +7,6 @@ user_group_00001:
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
11
- number_of_day_to_notify_due_date: 2
12
10
  user_group_00002:
13
11
  name: User
14
12
  display_name: User
@@ -18,8 +16,6 @@ user_group_00002:
18
16
  created_at: 2007-12-23 03:14:40.173954 +09:00
19
17
  position: 2
20
18
  valid_period_for_new_user: 365
21
- number_of_day_to_notify_overdue: 30
22
- number_of_time_to_notify_overdue: 6
23
19
  user_group_00003:
24
20
  name: Faculty
25
21
  display_name: Faculty
@@ -44,8 +40,5 @@ user_group_00003:
44
40
  # deleted_at :datetime
45
41
  # valid_period_for_new_user :integer default(0), not null
46
42
  # expired_at :datetime
47
- # number_of_day_to_notify_overdue :integer default(1), not null
48
- # number_of_day_to_notify_due_date :integer default(7), not null
49
- # number_of_time_to_notify_overdue :integer default(3), not null
50
43
  #
51
44