enju_oai 0.1.0.pre13 → 0.1.0.pre14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (202) hide show
  1. checksums.yaml +4 -4
  2. data/app/views/manifestations/identify.oai.builder +2 -2
  3. data/app/views/manifestations/index.oai.builder +1 -1
  4. data/app/views/manifestations/list_identifiers.oai.builder +2 -2
  5. data/app/views/manifestations/list_metadata_formats.oai.builder +1 -1
  6. data/app/views/manifestations/list_records.oai.builder +2 -2
  7. data/app/views/manifestations/list_sets.oai.builder +1 -1
  8. data/app/views/manifestations/show.oai.builder +1 -1
  9. data/lib/enju_oai/version.rb +1 -1
  10. data/spec/dummy/app/models/user.rb +5 -91
  11. data/spec/dummy/db/migrate/001_create_agents.rb +0 -3
  12. data/spec/dummy/db/migrate/002_devise_create_users.rb +16 -6
  13. data/spec/dummy/db/migrate/005_create_manifestations.rb +0 -1
  14. data/spec/dummy/db/migrate/006_create_items.rb +0 -3
  15. data/spec/dummy/db/migrate/029_create_subjects.rb +27 -0
  16. data/spec/dummy/db/migrate/032_create_checkins.rb +17 -0
  17. data/spec/dummy/db/migrate/033_create_checkouts.rb +25 -0
  18. data/spec/dummy/db/migrate/035_create_reserves.rb +26 -0
  19. data/spec/dummy/db/migrate/080_create_library_groups.rb +0 -1
  20. data/spec/dummy/db/migrate/113_create_events.rb +23 -0
  21. data/spec/dummy/db/migrate/114_create_event_categories.rb +16 -0
  22. data/spec/dummy/db/migrate/121_create_checked_items.rb +17 -0
  23. data/spec/dummy/db/migrate/127_create_use_restrictions.rb +16 -0
  24. data/spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb +16 -0
  25. data/spec/dummy/db/migrate/132_create_circulation_statuses.rb +16 -0
  26. data/spec/dummy/db/migrate/142_create_classifications.rb +19 -0
  27. data/spec/dummy/db/migrate/144_create_classification_types.rb +16 -0
  28. data/spec/dummy/db/migrate/145_create_subject_heading_types.rb +16 -0
  29. data/spec/dummy/db/migrate/146_create_subject_types.rb +16 -0
  30. data/spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb +0 -2
  31. data/spec/dummy/db/migrate/20081028083208_create_resource_import_files.rb +0 -2
  32. data/spec/dummy/db/migrate/20081028093607_create_event_import_files.rb +25 -0
  33. data/spec/dummy/db/migrate/20081030023412_create_checkout_types.rb +17 -0
  34. data/spec/dummy/db/migrate/20081030023518_create_user_group_has_checkout_types.rb +25 -0
  35. data/spec/dummy/db/migrate/20081030023615_create_carrier_type_has_checkout_types.rb +18 -0
  36. data/spec/dummy/db/migrate/20081212075554_create_checkout_stat_has_manifestations.rb +17 -0
  37. data/spec/dummy/db/migrate/20081212080038_create_manifestation_checkout_stats.rb +15 -0
  38. data/spec/dummy/db/migrate/20081215094302_create_user_checkout_stats.rb +15 -0
  39. data/spec/dummy/db/migrate/20081215094955_create_checkout_stat_has_users.rb +17 -0
  40. data/spec/dummy/db/migrate/20081216190517_create_reserve_stat_has_manifestations.rb +17 -0
  41. data/spec/dummy/db/migrate/20081216190724_create_manifestation_reserve_stats.rb +15 -0
  42. data/spec/dummy/db/migrate/20081220023628_create_user_reserve_stats.rb +15 -0
  43. data/spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb +17 -0
  44. data/spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb +23 -0
  45. data/spec/dummy/db/migrate/20090519203307_create_participates.rb +17 -0
  46. data/spec/dummy/db/migrate/20090831220301_create_lending_policies.rb +21 -0
  47. data/spec/dummy/db/migrate/20100129142347_create_import_requests.rb +0 -1
  48. data/spec/dummy/db/migrate/20100925074639_create_event_import_results.rb +15 -0
  49. data/spec/dummy/db/migrate/20110301134521_add_expire_date_to_reserve.rb +9 -0
  50. data/spec/dummy/db/migrate/20110328130826_add_current_checkout_count_to_user_group_has_checkout_type.rb +9 -0
  51. data/spec/dummy/db/migrate/20110621093332_remove_expire_date_from_reserve.rb +9 -0
  52. data/spec/dummy/db/migrate/20110627034940_create_series_statement_merge_lists.rb +9 -0
  53. data/spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb +12 -0
  54. data/spec/dummy/db/migrate/20110627122938_add_number_of_day_to_notify_overdue_to_user_group.rb +13 -0
  55. data/spec/dummy/db/migrate/20110913120629_add_lft_and_rgt_to_classification.rb +11 -0
  56. data/spec/dummy/db/migrate/20111217234412_add_save_checkout_history_to_user.rb +5 -0
  57. data/spec/dummy/db/migrate/20111218002349_add_checkout_icalendar_token_to_user.rb +6 -0
  58. data/spec/dummy/db/migrate/20120406020752_add_url_to_subject.rb +5 -0
  59. data/spec/dummy/db/migrate/20120413051535_add_event_import_fingerprint_to_event_import_file.rb +5 -0
  60. data/spec/dummy/db/migrate/20120413170734_add_error_message_to_event_import_file.rb +5 -0
  61. data/spec/dummy/db/migrate/20120415060342_rename_event_import_file_imported_at_to_executed_at.rb +9 -0
  62. data/spec/dummy/db/migrate/20120424103932_add_librarian_id_to_checked_item.rb +5 -0
  63. data/spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb +0 -10
  64. data/spec/dummy/db/migrate/20130303124821_add_retained_at_to_reserve.rb +5 -0
  65. data/spec/dummy/db/migrate/20130304015019_add_postponed_at_to_reserve.rb +5 -0
  66. data/spec/dummy/db/migrate/20130416054135_add_circulation_status_id_to_item.rb +8 -0
  67. data/spec/dummy/db/migrate/20130504133816_add_manifestation_id_to_subject.rb +6 -0
  68. data/spec/dummy/db/migrate/20130504143515_add_manifestation_id_to_classification.rb +6 -0
  69. data/spec/dummy/db/migrate/20130504195916_add_subject_heading_type_id_to_subject.rb +5 -0
  70. data/spec/dummy/db/migrate/20130519065638_add_lock_version_to_reserve.rb +5 -0
  71. data/spec/dummy/db/migrate/20130519065837_add_lock_version_to_checkin.rb +5 -0
  72. data/spec/dummy/db/migrate/20140110122216_create_user_import_files.rb +18 -0
  73. data/spec/dummy/db/migrate/20140110131010_create_user_import_results.rb +11 -0
  74. data/spec/dummy/db/migrate/20140122054321_create_profiles.rb +20 -0
  75. data/spec/dummy/db/migrate/20140518050147_create_reserve_transitions.rb +14 -0
  76. data/spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb +14 -0
  77. data/spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb +14 -0
  78. data/spec/dummy/db/migrate/20140523171309_create_event_import_file_transitions.rb +14 -0
  79. data/spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb +14 -0
  80. data/spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb +14 -0
  81. data/spec/dummy/db/migrate/20140528045518_create_user_checkout_stat_transitions.rb +14 -0
  82. data/spec/dummy/db/migrate/20140528045539_create_user_reserve_stat_transitions.rb +14 -0
  83. data/spec/dummy/db/migrate/20140528045600_create_manifestation_checkout_stat_transitions.rb +14 -0
  84. data/spec/dummy/db/migrate/20140528045617_create_manifestation_reserve_stat_transitions.rb +14 -0
  85. data/spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb +11 -0
  86. data/spec/dummy/db/migrate/20140614065404_create_resource_export_files.rb +11 -0
  87. data/spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb +14 -0
  88. data/spec/dummy/db/migrate/20140628071719_add_user_encoding_to_event_import_file.rb +5 -0
  89. data/spec/dummy/db/migrate/20140628072217_add_user_encoding_to_user_import_file.rb +5 -0
  90. data/spec/dummy/db/migrate/20140628073524_add_user_encoding_to_agent_import_file.rb +5 -0
  91. data/spec/dummy/db/migrate/20140628073535_add_user_encoding_to_resource_import_file.rb +5 -0
  92. data/spec/dummy/db/migrate/20140709113413_create_user_export_files.rb +11 -0
  93. data/spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb +14 -0
  94. data/spec/dummy/db/migrate/20140720140916_add_binding_item_identifier_to_item.rb +8 -0
  95. data/spec/dummy/db/migrate/20140720170714_add_default_library_id_to_user_import_file.rb +5 -0
  96. data/spec/dummy/db/migrate/20140720170735_add_default_user_group_id_to_user_import_file.rb +5 -0
  97. data/spec/dummy/db/migrate/20140720192418_add_default_library_id_to_event_import_file.rb +5 -0
  98. data/spec/dummy/db/migrate/20140721151416_add_default_shelf_id_to_resource_import_file.rb +5 -0
  99. data/spec/dummy/db/migrate/20140802082007_add_manifestation_id_to_item.rb +6 -0
  100. data/spec/dummy/db/migrate/20140810061942_add_user_id_to_user_checkout_stat.rb +12 -0
  101. data/spec/dummy/db/migrate/20140810091231_add_checkout_icalendar_token_to_profile.rb +6 -0
  102. data/spec/dummy/db/migrate/20140810091417_add_save_checkout_history_to_profile.rb +5 -0
  103. data/spec/dummy/db/migrate/20140811031145_add_expired_at_to_profile.rb +5 -0
  104. data/spec/dummy/db/migrate/20140812152348_create_event_export_files.rb +11 -0
  105. data/spec/dummy/db/migrate/20140812153137_create_event_export_file_transitions.rb +14 -0
  106. data/spec/dummy/db/migrate/20140813182425_add_publication_place_to_manifestation.rb +5 -0
  107. data/spec/dummy/db/migrate/20140814070854_add_default_event_category_id_to_event_import_file.rb +5 -0
  108. data/spec/dummy/db/schema.rb +678 -42
  109. data/spec/dummy/db/test.sqlite3 +0 -0
  110. data/spec/dummy/solr/default/data/index/_6y.fdt +0 -0
  111. data/spec/dummy/solr/default/data/index/{_5a.si → _6y.si} +0 -0
  112. data/spec/dummy/solr/default/data/index/{_5a_Lucene41_0.tim → _6y_Lucene41_0.tim} +0 -0
  113. data/spec/dummy/solr/default/data/index/_6y_Lucene41_0.tip +0 -0
  114. data/spec/dummy/solr/default/data/index/_6z.fdt +0 -0
  115. data/spec/dummy/solr/default/data/index/{_5b.si → _6z.si} +0 -0
  116. data/spec/dummy/solr/default/data/index/{_5b_Lucene41_0.tim → _6z_Lucene41_0.tim} +0 -0
  117. data/spec/dummy/solr/default/data/index/_6z_Lucene41_0.tip +0 -0
  118. data/spec/dummy/solr/default/data/index/_70.fdt +0 -0
  119. data/spec/dummy/solr/default/data/index/_70.nvd +0 -0
  120. data/spec/dummy/solr/default/data/index/{_5c.si → _70.si} +0 -0
  121. data/spec/dummy/solr/default/data/index/_70_Lucene41_0.doc +0 -0
  122. data/spec/dummy/solr/default/data/index/_70_Lucene41_0.pos +0 -0
  123. data/spec/dummy/solr/default/data/index/_70_Lucene41_0.tim +0 -0
  124. data/spec/dummy/solr/default/data/index/_70_Lucene41_0.tip +0 -0
  125. data/spec/dummy/solr/default/data/index/segments.gen +0 -0
  126. data/spec/dummy/solr/default/data/index/segments_9l +0 -0
  127. data/spec/dummy/solr/default/data/tlog/{tlog.0000000000000000261 → tlog.0000000000000000341} +0 -0
  128. data/spec/dummy/solr/default/data/tlog/{tlog.0000000000000000262 → tlog.0000000000000000342} +0 -0
  129. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000343 +0 -0
  130. data/spec/fixtures/agent_import_files.yml +12 -16
  131. data/spec/fixtures/agent_import_results.yml +5 -5
  132. data/spec/fixtures/agent_relationship_types.yml +7 -7
  133. data/spec/fixtures/agent_relationships.yml +6 -6
  134. data/spec/fixtures/agent_types.yml +7 -7
  135. data/spec/fixtures/agents.yml +10 -23
  136. data/spec/fixtures/baskets.yml +80 -0
  137. data/spec/fixtures/carrier_types.yml +6 -6
  138. data/spec/fixtures/circulation_statuses.yml +136 -0
  139. data/spec/fixtures/content_types.yml +4 -4
  140. data/spec/fixtures/countries.yml +2 -2
  141. data/spec/fixtures/create_types.yml +3 -3
  142. data/spec/fixtures/creates.yml +5 -6
  143. data/spec/fixtures/donates.yml +5 -5
  144. data/spec/fixtures/event_categories.yml +55 -0
  145. data/spec/fixtures/events.yml +142 -0
  146. data/spec/fixtures/exemplifies.yml +5 -6
  147. data/spec/fixtures/extents.yml +4 -4
  148. data/spec/fixtures/form_of_works.yml +4 -4
  149. data/spec/fixtures/frequencies.yml +4 -4
  150. data/spec/fixtures/identifier_types.yml +7 -0
  151. data/spec/fixtures/import_requests.yml +3 -7
  152. data/spec/fixtures/item_has_use_restrictions.yml +61 -0
  153. data/spec/fixtures/items.yml +93 -19
  154. data/spec/fixtures/languages.yml +3 -3
  155. data/spec/fixtures/library_groups.yml +0 -2
  156. data/spec/fixtures/licenses.yml +4 -4
  157. data/spec/fixtures/manifestation_relationship_types.yml +4 -4
  158. data/spec/fixtures/manifestation_relationships.yml +3 -3
  159. data/spec/fixtures/manifestations.yml +1 -2
  160. data/spec/fixtures/medium_of_performances.yml +4 -4
  161. data/spec/fixtures/owns.yml +5 -5
  162. data/spec/fixtures/picture_files.yml +4 -4
  163. data/spec/fixtures/produce_types.yml +3 -3
  164. data/spec/fixtures/produces.yml +5 -6
  165. data/spec/fixtures/profiles.yml +98 -0
  166. data/spec/fixtures/realize_types.yml +3 -3
  167. data/spec/fixtures/realizes.yml +5 -6
  168. data/spec/fixtures/series_statements.yml +15 -2
  169. data/spec/fixtures/user_group_has_checkout_types.yml +111 -0
  170. data/spec/fixtures/user_groups.yml +10 -3
  171. data/spec/fixtures/users.yml +0 -42
  172. data/spec/spec_helper.rb +5 -0
  173. metadata +282 -82
  174. data/spec/dummy/solr/default/data/index/_5a.fdt +0 -0
  175. data/spec/dummy/solr/default/data/index/_5a_Lucene41_0.tip +0 -0
  176. data/spec/dummy/solr/default/data/index/_5b.fdt +0 -0
  177. data/spec/dummy/solr/default/data/index/_5b_Lucene41_0.tip +0 -0
  178. data/spec/dummy/solr/default/data/index/_5c.fdt +0 -0
  179. data/spec/dummy/solr/default/data/index/_5c.nvd +0 -0
  180. data/spec/dummy/solr/default/data/index/_5c_Lucene41_0.doc +0 -0
  181. data/spec/dummy/solr/default/data/index/_5c_Lucene41_0.pos +0 -0
  182. data/spec/dummy/solr/default/data/index/_5c_Lucene41_0.tim +0 -0
  183. data/spec/dummy/solr/default/data/index/_5c_Lucene41_0.tip +0 -0
  184. data/spec/dummy/solr/default/data/index/segments_7d +0 -0
  185. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000263 +0 -0
  186. data/spec/fixtures/resource_import_files.yml +0 -47
  187. data/spec/fixtures/resource_import_results.yml +0 -29
  188. /data/spec/dummy/solr/default/data/index/{_5a.fdx → _6y.fdx} +0 -0
  189. /data/spec/dummy/solr/default/data/index/{_5a.fnm → _6y.fnm} +0 -0
  190. /data/spec/dummy/solr/default/data/index/{_5a.nvd → _6y.nvd} +0 -0
  191. /data/spec/dummy/solr/default/data/index/{_5a.nvm → _6y.nvm} +0 -0
  192. /data/spec/dummy/solr/default/data/index/{_5a_Lucene41_0.doc → _6y_Lucene41_0.doc} +0 -0
  193. /data/spec/dummy/solr/default/data/index/{_5a_Lucene41_0.pos → _6y_Lucene41_0.pos} +0 -0
  194. /data/spec/dummy/solr/default/data/index/{_5b.fdx → _6z.fdx} +0 -0
  195. /data/spec/dummy/solr/default/data/index/{_5b.fnm → _6z.fnm} +0 -0
  196. /data/spec/dummy/solr/default/data/index/{_5b.nvd → _6z.nvd} +0 -0
  197. /data/spec/dummy/solr/default/data/index/{_5b.nvm → _6z.nvm} +0 -0
  198. /data/spec/dummy/solr/default/data/index/{_5b_Lucene41_0.doc → _6z_Lucene41_0.doc} +0 -0
  199. /data/spec/dummy/solr/default/data/index/{_5b_Lucene41_0.pos → _6z_Lucene41_0.pos} +0 -0
  200. /data/spec/dummy/solr/default/data/index/{_5c.fdx → _70.fdx} +0 -0
  201. /data/spec/dummy/solr/default/data/index/{_5c.fnm → _70.fnm} +0 -0
  202. /data/spec/dummy/solr/default/data/index/{_5c.nvm → _70.nvm} +0 -0
@@ -4,7 +4,6 @@ one:
4
4
  name: enju_library
5
5
  display_name: "<%= I18n.locale %>: Enju Library"
6
6
  short_name: enju
7
- email: next-l@library.example.jp
8
7
  note:
9
8
  my_networks: 0.0.0.0/0
10
9
  url: "http://localhost:3000/"
@@ -18,7 +17,6 @@ one:
18
17
  # name :string(255) not null
19
18
  # display_name :text
20
19
  # short_name :string(255) not null
21
- # email :string(255)
22
20
  # my_networks :text
23
21
  # login_banner :text
24
22
  # note :text
@@ -18,12 +18,12 @@ two:
18
18
  #
19
19
  # Table name: licenses
20
20
  #
21
- # id :integer not null, primary key
22
- # name :string(255) not null
21
+ # id :integer not null, primary key
22
+ # name :string(255) not null
23
23
  # display_name :string(255)
24
24
  # note :text
25
25
  # position :integer
26
- # created_at :datetime
27
- # updated_at :datetime
26
+ # created_at :datetime not null
27
+ # updated_at :datetime not null
28
28
  #
29
29
 
@@ -18,12 +18,12 @@ two:
18
18
  #
19
19
  # Table name: manifestation_relationship_types
20
20
  #
21
- # id :integer not null, primary key
22
- # name :string(255) not null
21
+ # id :integer not null, primary key
22
+ # name :string(255) not null
23
23
  # display_name :text
24
24
  # note :text
25
25
  # position :integer
26
- # created_at :datetime
27
- # updated_at :datetime
26
+ # created_at :datetime not null
27
+ # updated_at :datetime not null
28
28
  #
29
29
 
@@ -19,12 +19,12 @@ serial:
19
19
  #
20
20
  # Table name: manifestation_relationships
21
21
  #
22
- # id :integer not null, primary key
22
+ # id :integer not null, primary key
23
23
  # parent_id :integer
24
24
  # child_id :integer
25
25
  # manifestation_relationship_type_id :integer
26
- # created_at :datetime
27
- # updated_at :datetime
26
+ # created_at :datetime not null
27
+ # updated_at :datetime not null
28
28
  # position :integer
29
29
  #
30
30
 
@@ -1850,7 +1850,6 @@ manifestation_00216:
1850
1850
  # repository_content :boolean default(FALSE), not null
1851
1851
  # lock_version :integer default(0), not null
1852
1852
  # required_role_id :integer default(1), not null
1853
- # state :string(255)
1854
1853
  # required_score :integer default(0), not null
1855
1854
  # frequency_id :integer default(1), not null
1856
1855
  # subscription_master :boolean default(FALSE), not null
@@ -1879,5 +1878,5 @@ manifestation_00216:
1879
1878
  # doi :string(255)
1880
1879
  # periodical :boolean
1881
1880
  # statement_of_responsibility :text
1881
+ # publication_place :text
1882
1882
  #
1883
-
@@ -18,12 +18,12 @@ two:
18
18
  #
19
19
  # Table name: medium_of_performances
20
20
  #
21
- # id :integer not null, primary key
22
- # name :string(255) not null
21
+ # id :integer not null, primary key
22
+ # name :string(255) not null
23
23
  # display_name :text
24
24
  # note :text
25
25
  # position :integer
26
- # created_at :datetime
27
- # updated_at :datetime
26
+ # created_at :datetime not null
27
+ # updated_at :datetime not null
28
28
  #
29
29
 
@@ -16,11 +16,11 @@ own_00002:
16
16
  #
17
17
  # Table name: owns
18
18
  #
19
- # id :integer not null, primary key
20
- # agent_id :integer not null
21
- # item_id :integer not null
19
+ # id :integer not null, primary key
20
+ # agent_id :integer not null
21
+ # item_id :integer not null
22
22
  # position :integer
23
- # created_at :datetime not null
24
- # updated_at :datetime not null
23
+ # created_at :datetime not null
24
+ # updated_at :datetime not null
25
25
  #
26
26
 
@@ -35,7 +35,7 @@ picture_file_00004:
35
35
  picture_file_size: 7028
36
36
  id: 4
37
37
  picture_file_name: overlay_spinner_geometry.gif
38
- picture_attachable_type: Patron
38
+ picture_attachable_type: Agent
39
39
  picture_attachable_id: 1
40
40
  created_at: 2007-12-22 15:06:30.464930 +09:00
41
41
  position: 4
@@ -44,15 +44,15 @@ picture_file_00004:
44
44
  #
45
45
  # Table name: picture_files
46
46
  #
47
- # id :integer not null, primary key
47
+ # id :integer not null, primary key
48
48
  # picture_attachable_id :integer
49
49
  # picture_attachable_type :string(255)
50
50
  # content_type :string(255)
51
51
  # title :text
52
52
  # thumbnail :string(255)
53
53
  # position :integer
54
- # created_at :datetime not null
55
- # updated_at :datetime not null
54
+ # created_at :datetime not null
55
+ # updated_at :datetime not null
56
56
  # picture_file_name :string(255)
57
57
  # picture_content_type :string(255)
58
58
  # picture_file_size :integer
@@ -20,12 +20,12 @@ seller:
20
20
  #
21
21
  # Table name: produce_types
22
22
  #
23
- # id :integer not null, primary key
23
+ # id :integer not null, primary key
24
24
  # name :string(255)
25
25
  # display_name :text
26
26
  # note :text
27
27
  # position :integer
28
- # created_at :datetime
29
- # updated_at :datetime
28
+ # created_at :datetime not null
29
+ # updated_at :datetime not null
30
30
  #
31
31
 
@@ -133,17 +133,16 @@ produce_00202:
133
133
  position: 1
134
134
  created_at: 2010-03-15 20:00:00.135721 +09:00
135
135
 
136
-
137
136
  # == Schema Information
138
137
  #
139
138
  # Table name: produces
140
139
  #
141
- # id :integer not null, primary key
142
- # agent_id :integer not null
143
- # manifestation_id :integer not null
140
+ # id :integer not null, primary key
141
+ # agent_id :integer not null
142
+ # manifestation_id :integer not null
144
143
  # position :integer
145
- # created_at :datetime not null
146
- # updated_at :datetime not null
144
+ # created_at :datetime not null
145
+ # updated_at :datetime not null
147
146
  # produce_type_id :integer
148
147
  #
149
148
 
@@ -0,0 +1,98 @@
1
+ ---
2
+ admin:
3
+ updated_at: 2008-05-31 13:16:30.163731 +09:00
4
+ user_group_id: 2
5
+ id: 1
6
+ user_id: 1
7
+ note:
8
+ library_id: 2
9
+ created_at: 2007-11-19 16:58:32.111941 +09:00
10
+ required_role_id: 4
11
+ user_number: "00001"
12
+ locale: "en"
13
+ librarian1:
14
+ updated_at: 2008-05-31 12:41:16.337474 +09:00
15
+ user_group_id: 1
16
+ id: 2
17
+ user_id: 2
18
+ note:
19
+ library_id: 1
20
+ created_at: 2007-11-19 16:58:33.172441 +09:00
21
+ required_role_id: 1
22
+ user_number: "00002"
23
+ locale: "ja"
24
+ user1:
25
+ updated_at: 2008-05-31 13:02:25.101261 +09:00
26
+ user_group_id: 1
27
+ id: 3
28
+ user_id: 3
29
+ note:
30
+ library_id: 2
31
+ created_at: 2007-11-19 16:58:34.637413 +09:00
32
+ required_role_id: 3
33
+ user_number: "00003"
34
+ locale: "ja"
35
+ librarian2:
36
+ updated_at: 2008-05-31 12:42:23.340575 +09:00
37
+ user_group_id: 1
38
+ id: 4
39
+ user_id: 4
40
+ note:
41
+ library_id: 2
42
+ created_at: 2008-01-18 12:24:04.222344 +09:00
43
+ required_role_id: 1
44
+ user_number: "00004"
45
+ locale: "ja"
46
+ user2:
47
+ updated_at: 2008-05-31 12:42:44.711117 +09:00
48
+ user_group_id: 1
49
+ id: 5
50
+ user_id: 5
51
+ note:
52
+ library_id: 1
53
+ created_at: 2008-01-18 13:29:06.922728 +09:00
54
+ required_role_id: 2
55
+ # user_number: '00005'
56
+ locale: "ja"
57
+ user3:
58
+ updated_at: 2008-05-31 13:02:25.101261 +09:00
59
+ user_group_id: 1
60
+ id: 6
61
+ user_id: 6
62
+ note:
63
+ library_id: 2
64
+ created_at: 2007-11-19 16:58:34.637413 +09:00
65
+ required_role_id: 3
66
+ user_number: "00006"
67
+ locale: "ja"
68
+ user4:
69
+ updated_at: 2008-05-31 13:02:25.101261 +09:00
70
+ user_group_id: 1
71
+ id: 7
72
+ user_id: 7
73
+ note:
74
+ library_id: 2
75
+ created_at: 2007-11-19 16:58:34.637413 +09:00
76
+ required_role_id: 3
77
+ user_number: "00007"
78
+ locale: "ja"
79
+
80
+ # == Schema Information
81
+ #
82
+ # Table name: profiles
83
+ #
84
+ # id :integer not null, primary key
85
+ # user_id :integer
86
+ # user_group_id :integer
87
+ # library_id :integer
88
+ # locale :string(255)
89
+ # user_number :string(255)
90
+ # full_name :text
91
+ # note :text
92
+ # keyword_list :text
93
+ # required_role_id :integer
94
+ # created_at :datetime not null
95
+ # updated_at :datetime not null
96
+ # checkout_icalendar_token :string(255)
97
+ # save_checkout_history :boolean default(FALSE), not null
98
+ #
@@ -28,12 +28,12 @@ illustrator:
28
28
  #
29
29
  # Table name: realize_types
30
30
  #
31
- # id :integer not null, primary key
31
+ # id :integer not null, primary key
32
32
  # name :string(255)
33
33
  # display_name :text
34
34
  # note :text
35
35
  # position :integer
36
- # created_at :datetime
37
- # updated_at :datetime
36
+ # created_at :datetime not null
37
+ # updated_at :datetime not null
38
38
  #
39
39
 
@@ -70,17 +70,16 @@ realize_00010:
70
70
  position: 2
71
71
  created_at: 2008-01-11 02:44:37.135721 +09:00
72
72
 
73
-
74
73
  # == Schema Information
75
74
  #
76
75
  # Table name: realizes
77
76
  #
78
- # id :integer not null, primary key
79
- # agent_id :integer not null
80
- # expression_id :integer not null
77
+ # id :integer not null, primary key
78
+ # agent_id :integer not null
79
+ # expression_id :integer not null
81
80
  # position :integer
82
- # created_at :datetime not null
83
- # updated_at :datetime not null
81
+ # created_at :datetime not null
82
+ # updated_at :datetime not null
84
83
  # realize_type_id :integer
85
84
  #
86
85
 
@@ -9,13 +9,25 @@ two:
9
9
  title_transcription: テスト
10
10
  position: 2
11
11
  manifestation_id: 202
12
- series_master: true
13
12
 
14
13
  three:
15
14
  id: 3
16
15
  original_title: テスト雑誌
17
16
  position: 3
18
- manifestation_id: 201
17
+ root_manifestation_id: 201
18
+
19
+ four:
20
+ id: 4
21
+ original_title: テスト雑誌
22
+ position: 4
23
+ root_manifestation_id: 202
24
+
25
+ five:
26
+ id: 5
27
+ original_title: テスト雑誌
28
+ position: 5
29
+ manifestation_id: 204
30
+ root_manifestation_id: 202
19
31
 
20
32
  # == Schema Information
21
33
  #
@@ -39,5 +51,6 @@ three:
39
51
  # volume_number_string :text
40
52
  # volume_number_transcription_string :text
41
53
  # series_master :boolean
54
+ # root_manifestation_id :integer
42
55
  #
43
56
 
@@ -0,0 +1,111 @@
1
+ ---
2
+ user_group_has_checkout_type_00001:
3
+ checkout_type_id: 1
4
+ updated_at: 2007-12-23 03:13:08.107022 +09:00
5
+ checkout_limit: 3
6
+ reservation_limit: 2
7
+ user_group_id: 1
8
+ checkout_period: 0
9
+ checkout_renewal_limit: 1
10
+ id: 1
11
+ created_at: 2007-12-23 03:13:08.107022 +09:00
12
+ set_due_date_before_closing_day: false
13
+ user_group_has_checkout_type_00002:
14
+ checkout_type_id: 2
15
+ updated_at: 2007-12-23 03:13:15.620143 +09:00
16
+ checkout_limit: 3
17
+ reservation_limit: 2
18
+ user_group_id: 1
19
+ checkout_period: 10
20
+ checkout_renewal_limit: 1
21
+ id: 2
22
+ created_at: 2007-12-23 03:13:15.620143 +09:00
23
+ set_due_date_before_closing_day: false
24
+ user_group_has_checkout_type_00003:
25
+ checkout_type_id: 1
26
+ updated_at: 2007-12-23 03:13:23.416856 +09:00
27
+ checkout_limit: 3
28
+ reservation_limit: 2
29
+ user_group_id: 2
30
+ checkout_period: 21
31
+ checkout_renewal_limit: 1
32
+ id: 3
33
+ created_at: 2007-12-23 03:13:23.416856 +09:00
34
+ set_due_date_before_closing_day: false
35
+ user_group_has_checkout_type_00004:
36
+ checkout_type_id: 2
37
+ updated_at: 2007-12-23 03:13:29.880538 +09:00
38
+ checkout_limit: 3
39
+ reservation_limit: 2
40
+ user_group_id: 2
41
+ checkout_period: 21
42
+ checkout_renewal_limit: 1
43
+ id: 4
44
+ created_at: 2007-12-23 03:13:29.880538 +09:00
45
+ set_due_date_before_closing_day: false
46
+ user_group_has_checkout_type_00005:
47
+ checkout_type_id: 1
48
+ updated_at: 2007-12-23 03:13:37.440462 +09:00
49
+ checkout_limit: 3
50
+ reservation_limit: 3
51
+ user_group_id: 3
52
+ checkout_period: 14
53
+ checkout_renewal_limit: 1
54
+ id: 5
55
+ created_at: 2007-12-23 03:13:37.440462 +09:00
56
+ set_due_date_before_closing_day: false
57
+ user_group_has_checkout_type_00006:
58
+ checkout_type_id: 2
59
+ updated_at: 2007-12-23 03:13:46.312751 +09:00
60
+ checkout_limit: 3
61
+ reservation_limit: 3
62
+ user_group_id: 3
63
+ checkout_period: 7
64
+ checkout_renewal_limit: 1
65
+ id: 6
66
+ created_at: 2007-12-23 03:13:46.312751 +09:00
67
+ set_due_date_before_closing_day: false
68
+ user_group_has_checkout_type_00007:
69
+ checkout_type_id: 3
70
+ updated_at: 2007-12-23 03:13:46.312751 +09:00
71
+ checkout_limit: 3
72
+ reservation_limit: 3
73
+ user_group_id: 2
74
+ checkout_period: 3
75
+ checkout_renewal_limit: 1
76
+ id: 7
77
+ created_at: 2007-12-23 03:13:46.312751 +09:00
78
+ set_due_date_before_closing_day: true
79
+ user_group_has_checkout_type_00008:
80
+ checkout_type_id: 3
81
+ updated_at: 2007-12-23 03:13:46.312751 +09:00
82
+ checkout_limit: 3
83
+ reservation_limit: 3
84
+ user_group_id: 1
85
+ checkout_period: 3
86
+ checkout_renewal_limit: 1
87
+ id: 8
88
+ created_at: 2007-12-23 03:13:46.312751 +09:00
89
+ set_due_date_before_closing_day: true
90
+
91
+ # == Schema Information
92
+ #
93
+ # Table name: user_group_has_checkout_types
94
+ #
95
+ # id :integer not null, primary key
96
+ # user_group_id :integer not null
97
+ # checkout_type_id :integer not null
98
+ # checkout_limit :integer default(0), not null
99
+ # checkout_period :integer default(0), not null
100
+ # checkout_renewal_limit :integer default(0), not null
101
+ # reservation_limit :integer default(0), not null
102
+ # reservation_expired_period :integer default(7), not null
103
+ # set_due_date_before_closing_day :boolean default(FALSE), not null
104
+ # fixed_due_date :datetime
105
+ # note :text
106
+ # position :integer
107
+ # created_at :datetime
108
+ # updated_at :datetime
109
+ # current_checkout_count :integer
110
+ #
111
+
@@ -1,14 +1,16 @@
1
1
  ---
2
2
  user_group_00001:
3
- name: (not specified)
3
+ name: not_specified
4
4
  display_name: (not specified)
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
11
+ number_of_day_to_notify_due_date: 2
10
12
  user_group_00002:
11
- name: User
13
+ name: user
12
14
  display_name: User
13
15
  updated_at: 2007-12-23 03:14:56.836548 +09:00
14
16
  id: 2
@@ -16,8 +18,10 @@ user_group_00002:
16
18
  created_at: 2007-12-23 03:14:40.173954 +09:00
17
19
  position: 2
18
20
  valid_period_for_new_user: 365
21
+ number_of_day_to_notify_overdue: 30
22
+ number_of_time_to_notify_overdue: 6
19
23
  user_group_00003:
20
- name: Faculty
24
+ name: faculty
21
25
  display_name: Faculty
22
26
  updated_at: 2007-12-23 03:15:05.134351 +09:00
23
27
  id: 3
@@ -40,5 +44,8 @@ user_group_00003:
40
44
  # deleted_at :datetime
41
45
  # valid_period_for_new_user :integer default(0), not null
42
46
  # 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
43
50
  #
44
51
 
@@ -2,92 +2,50 @@
2
2
  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
- user_group_id: 2
6
5
  id: 1
7
- note:
8
6
  username: admin
9
- library_id: 2
10
7
  email: tanabe@kamata.lib.teu.ac.jp
11
8
  created_at: 2007-11-19 16:58:32.111941 +09:00
12
- required_role_id: 4
13
- user_number: "00001"
14
- locale: "ja"
15
9
  librarian1:
16
10
  updated_at: 2008-05-31 12:41:16.337474 +09:00
17
11
  encrypted_password: $2a$10$9O2VuTccN4gHq36ARg0QReSrb1D7WrBBhZZ759RM9moHbB0W5zCzS
18
- user_group_id: 1
19
12
  id: 2
20
- note:
21
13
  username: librarian1
22
- library_id: 1
23
14
  email: librarian1@kamata.lib.teu.ac.jp
24
15
  created_at: 2007-11-19 16:58:33.172441 +09:00
25
- required_role_id: 1
26
- user_number: "00002"
27
- locale: "ja"
28
16
  user1:
29
17
  updated_at: 2008-05-31 13:02:25.101261 +09:00
30
18
  encrypted_password: $2a$10$JthS59A0BNkDOoFpCXM0V.GhhffKaoWKbzpPahYp/vTFrOyM7h/uW
31
- user_group_id: 1
32
19
  id: 3
33
- note:
34
20
  username: user1
35
- library_id: 2
36
21
  email: user1@kamata.lib.teu.ac.jp
37
22
  created_at: 2007-11-19 16:58:34.637413 +09:00
38
- required_role_id: 3
39
- user_number: "00003"
40
- locale: "ja"
41
23
  librarian2:
42
24
  updated_at: 2008-05-31 12:42:23.340575 +09:00
43
25
  encrypted_password: $2a$10$YmmTGrYQ1Ir6oc7wXnp.GuNeO1eYLoP3sv8wMSIrTdaGw2BPwRrpS
44
- user_group_id: 1
45
26
  id: 4
46
- note:
47
27
  username: librarian2
48
- library_id: 2
49
28
  email: librarian2@library.example.jp
50
29
  created_at: 2008-01-18 12:24:04.222344 +09:00
51
- required_role_id: 1
52
- user_number: "00004"
53
- locale: "ja"
54
30
  user2:
55
31
  updated_at: 2008-05-31 12:42:44.711117 +09:00
56
32
  encrypted_password: $2a$10$i7UjJhLVrJM/J7qaTwW39OXw1NiwowUEbtNHVDV0sqMLjX9.UO9ca
57
- user_group_id: 1
58
33
  id: 5
59
- note:
60
34
  username: user2
61
- library_id: 1
62
35
  email: user2@library.example.jp
63
36
  created_at: 2008-01-18 13:29:06.922728 +09:00
64
- required_role_id: 2
65
- # user_number: '00005'
66
- locale: "ja"
67
37
  user3:
68
38
  updated_at: 2008-05-31 13:02:25.101261 +09:00
69
39
  encrypted_password: cc53de0c2d9a1a228daa9a673ec824473747e17507a6c3c4f7e5eff8821f531d4b9e23616b3ddc66fe17006b2298a556fbd567ac080e87f00f37eef8cee6c417
70
- user_group_id: 1
71
40
  id: 6
72
- note:
73
41
  username: user3
74
- library_id: 2
75
42
  email: user3@kamata.lib.teu.ac.jp
76
43
  created_at: 2007-11-19 16:58:34.637413 +09:00
77
- required_role_id: 3
78
- user_number: "00006"
79
- locale: "ja"
80
44
  user4:
81
45
  updated_at: 2008-05-31 13:02:25.101261 +09:00
82
46
  encrypted_password: cc53de0c2d9a1a228daa9a673ec824473747e17507a6c3c4f7e5eff8821f531d4b9e23616b3ddc66fe17006b2298a556fbd567ac080e87f00f37eef8cee6c417
83
- user_group_id: 1
84
47
  id: 7
85
- note:
86
48
  username: user4
87
- library_id: 2
88
49
  email: user4@kamata.lib.teu.ac.jp
89
50
  created_at: 2007-11-19 16:58:34.637413 +09:00
90
- required_role_id: 3
91
- user_number: "00007"
92
- locale: "ja"
93
51
  locked_at: <%= 1.day.ago %>
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,6 @@
1
+ require 'simplecov'
2
+ SimpleCov.start 'rails'
3
+
1
4
  # This file is copied to spec/ when you run 'rails generate rspec:install'
2
5
  ENV["RAILS_ENV"] ||= 'test'
3
6
  require File.expand_path("../dummy/config/environment", __FILE__)
@@ -45,6 +48,8 @@ RSpec.configure do |config|
45
48
  Sunspot.session = $original_sunspot_session
46
49
  Sunspot.remove_all!
47
50
  end
51
+
52
+ config.infer_spec_type_from_file_location!
48
53
  end
49
54
 
50
55
  FactoryGirl.definition_file_paths << "#{::Rails.root}/../../spec/factories"