enju_biblio 0.1.0.pre42 → 0.1.0.pre43

Sign up to get free protection for your applications and to get access to all the features.
Files changed (319) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/creates_controller.rb +11 -11
  3. data/app/controllers/items_controller.rb +3 -3
  4. data/app/controllers/manifestations_controller.rb +14 -14
  5. data/app/controllers/owns_controller.rb +10 -10
  6. data/app/controllers/patron_import_files_controller.rb +34 -34
  7. data/app/controllers/patron_import_results_controller.rb +5 -5
  8. data/app/controllers/patron_relationship_types_controller.rb +3 -3
  9. data/app/controllers/patron_relationships_controller.rb +7 -7
  10. data/app/controllers/patron_types_controller.rb +3 -3
  11. data/app/controllers/patrons_controller.rb +61 -61
  12. data/app/controllers/picture_files_controller.rb +4 -4
  13. data/app/controllers/produces_controller.rb +11 -11
  14. data/app/controllers/realizes_controller.rb +11 -11
  15. data/app/helpers/{patrons_helper.rb → agents_helper.rb} +5 -5
  16. data/app/models/{patron.rb → agent.rb} +36 -36
  17. data/app/models/{patron_import_file.rb → agent_import_file.rb} +77 -77
  18. data/app/models/agent_import_result.rb +26 -0
  19. data/app/models/{patron_relationship.rb → agent_relationship.rb} +7 -7
  20. data/app/models/{patron_relationship_type.rb → agent_relationship_type.rb} +4 -4
  21. data/app/models/{patron_sweeper.rb → agent_sweeper.rb} +6 -6
  22. data/app/models/{patron_type.rb → agent_type.rb} +4 -4
  23. data/app/models/country.rb +1 -1
  24. data/app/models/create.rb +7 -7
  25. data/app/models/donate.rb +5 -5
  26. data/app/models/enju_biblio/ability.rb +24 -24
  27. data/app/models/item.rb +5 -5
  28. data/app/models/item_sweeper.rb +2 -2
  29. data/app/models/manifestation.rb +24 -20
  30. data/app/models/own.rb +7 -7
  31. data/app/models/page_sweeper.rb +4 -4
  32. data/app/models/picture_file.rb +1 -1
  33. data/app/models/produce.rb +7 -7
  34. data/app/models/realize.rb +7 -7
  35. data/app/models/resource_import_file.rb +19 -19
  36. data/app/views/{patron_import_files → agent_import_files}/edit.html.erb +6 -6
  37. data/app/views/agent_import_files/index.html.erb +40 -0
  38. data/app/views/{patron_import_files → agent_import_files}/new.html.erb +3 -3
  39. data/app/views/agent_import_files/show.html.erb +69 -0
  40. data/app/views/agent_import_results/index.csv.erb +3 -0
  41. data/app/views/agent_import_results/index.html.erb +52 -0
  42. data/app/views/agent_import_results/show.html.erb +38 -0
  43. data/app/views/{patron_relationship_types → agent_relationship_types}/_form.html.erb +1 -1
  44. data/app/views/{patron_relationship_types → agent_relationship_types}/edit.html.erb +3 -3
  45. data/app/views/agent_relationship_types/index.html.erb +43 -0
  46. data/app/views/{patron_relationship_types → agent_relationship_types}/new.html.erb +2 -2
  47. data/app/views/agent_relationship_types/show.html.erb +29 -0
  48. data/app/views/{patron_relationships → agent_relationships}/_form.html.erb +7 -7
  49. data/app/views/{patron_relationships → agent_relationships}/edit.html.erb +3 -3
  50. data/app/views/agent_relationships/index.html.erb +34 -0
  51. data/app/views/{patron_relationships → agent_relationships}/new.html.erb +2 -2
  52. data/app/views/agent_relationships/show.html.erb +24 -0
  53. data/app/views/{patron_types → agent_types}/_form.html.erb +1 -1
  54. data/app/views/{patron_types → agent_types}/edit.html.erb +3 -3
  55. data/app/views/agent_types/index.html.erb +43 -0
  56. data/app/views/{patron_types → agent_types}/new.html.erb +2 -2
  57. data/app/views/agent_types/show.html.erb +29 -0
  58. data/app/views/{patrons → agents}/_expression_list.html.erb +3 -3
  59. data/app/views/{patrons → agents}/_form.html.erb +9 -9
  60. data/app/views/{patrons → agents}/_form_family_name_first.html.erb +0 -0
  61. data/app/views/{patrons → agents}/_form_family_name_last.html.erb +0 -0
  62. data/app/views/{patrons → agents}/_history_list.html.erb +2 -2
  63. data/app/views/{patrons → agents}/_index.html.erb +9 -9
  64. data/app/views/{patrons → agents}/_index_expression.html.erb +15 -15
  65. data/app/views/{patrons → agents}/_index_manifestation.html.erb +16 -16
  66. data/app/views/agents/_index_patron.html.erb +71 -0
  67. data/app/views/agents/_index_patron_merge_list.html.erb +53 -0
  68. data/app/views/{patrons → agents}/_index_work.html.erb +17 -17
  69. data/app/views/{patrons → agents}/_manifestation_list.html.erb +3 -3
  70. data/app/views/agents/_patron.html.erb +13 -0
  71. data/app/views/agents/_patron_list.html.erb +18 -0
  72. data/app/views/{patrons → agents}/_work_list.html.erb +1 -1
  73. data/app/views/agents/edit.html.erb +16 -0
  74. data/app/views/agents/index.atom.builder +10 -0
  75. data/app/views/{patrons → agents}/index.html.erb +4 -4
  76. data/app/views/{patrons → agents}/index.mobile.erb +5 -5
  77. data/app/views/{patrons → agents}/index.rss.builder +11 -11
  78. data/app/views/{patrons → agents}/new.html.erb +2 -2
  79. data/app/views/agents/show.html.erb +152 -0
  80. data/app/views/{patrons → agents}/show.js.erb +0 -0
  81. data/app/views/agents/show.mobile.erb +69 -0
  82. data/app/views/creates/_form.html.erb +5 -5
  83. data/app/views/creates/_index.html.erb +2 -2
  84. data/app/views/creates/_index_patron.html.erb +6 -6
  85. data/app/views/creates/_index_work.html.erb +2 -2
  86. data/app/views/creates/index.html.erb +2 -2
  87. data/app/views/creates/new.html.erb +3 -3
  88. data/app/views/creates/show.html.erb +4 -4
  89. data/app/views/donates/edit.html.erb +2 -2
  90. data/app/views/donates/index.html.erb +2 -2
  91. data/app/views/donates/new.html.erb +2 -2
  92. data/app/views/donates/show.html.erb +2 -2
  93. data/app/views/items/index.html.erb +1 -1
  94. data/app/views/languages/index.html.erb +1 -1
  95. data/app/views/layouts/patrons.html.erb +2 -2
  96. data/app/views/manifestations/_index_form_contributor.html.erb +1 -1
  97. data/app/views/manifestations/_index_form_creator.html.erb +1 -1
  98. data/app/views/manifestations/_index_form_publisher.html.erb +1 -1
  99. data/app/views/manifestations/_manifestation_list.html.erb +6 -6
  100. data/app/views/manifestations/_show.mods.builder +4 -4
  101. data/app/views/manifestations/_show.rdf.builder +4 -4
  102. data/app/views/manifestations/_show_creators.html.erb +4 -4
  103. data/app/views/manifestations/_show_creators.mobile.erb +4 -4
  104. data/app/views/manifestations/_title.html.erb +3 -3
  105. data/app/views/manifestations/_title.mobile.erb +3 -3
  106. data/app/views/manifestations/edit.html.erb +2 -2
  107. data/app/views/manifestations/index.atom.builder +2 -2
  108. data/app/views/manifestations/index.html.erb +3 -3
  109. data/app/views/manifestations/index.opds.builder +2 -2
  110. data/app/views/manifestations/index.sru.builder +6 -6
  111. data/app/views/manifestations/new.html.erb +2 -2
  112. data/app/views/notifier/manifestation_info.en.text.erb +1 -1
  113. data/app/views/notifier/manifestation_info.ja.text.erb +1 -1
  114. data/app/views/owns/_form.html.erb +1 -1
  115. data/app/views/owns/index.html.erb +2 -2
  116. data/app/views/owns/show.html.erb +4 -4
  117. data/app/views/picture_files/_index.html.erb +1 -1
  118. data/app/views/picture_files/_index_patron.html.erb +2 -2
  119. data/app/views/picture_files/index.html.erb +2 -2
  120. data/app/views/picture_files/show.html.erb +2 -2
  121. data/app/views/produces/_form.html.erb +5 -5
  122. data/app/views/produces/_index.html.erb +2 -2
  123. data/app/views/produces/_index_manifestation.html.erb +3 -3
  124. data/app/views/produces/_index_patron.html.erb +3 -3
  125. data/app/views/produces/index.html.erb +2 -2
  126. data/app/views/produces/new.html.erb +3 -3
  127. data/app/views/produces/show.html.erb +4 -4
  128. data/app/views/realizes/_form.html.erb +5 -5
  129. data/app/views/realizes/_index.html.erb +2 -2
  130. data/app/views/realizes/_index_expression.html.erb +3 -3
  131. data/app/views/realizes/_index_patron.html.erb +3 -3
  132. data/app/views/realizes/index.html.erb +2 -2
  133. data/app/views/realizes/new.html.erb +3 -3
  134. data/app/views/realizes/show.html.erb +4 -4
  135. data/app/views/resource_import_results/show.html.erb +1 -1
  136. data/config/routes.rb +16 -16
  137. data/db/migrate/{001_create_patrons.rb → 001_create_agents.rb} +8 -8
  138. data/db/migrate/012_create_owns.rb +2 -2
  139. data/db/migrate/015_create_creates.rb +2 -2
  140. data/db/migrate/047_create_produces.rb +2 -2
  141. data/db/migrate/125_create_donates.rb +2 -2
  142. data/db/migrate/20080830154109_create_realizes.rb +2 -2
  143. data/db/migrate/{20080905191442_create_patron_types.rb → 20080905191442_create_agent_types.rb} +2 -2
  144. data/db/migrate/20081028083142_create_agent_import_files.rb +22 -0
  145. data/db/migrate/{20090812151902_create_patron_relationship_types.rb → 20090812151902_create_agent_relationship_types.rb} +2 -2
  146. data/db/migrate/20091012101112_add_dcndl_schema.rb +2 -2
  147. data/db/migrate/20100606073747_create_agent_relationships.rb +13 -0
  148. data/db/migrate/20100814091104_add_position_to_agent_relationship.rb +11 -0
  149. data/db/migrate/20100925074559_create_agent_import_results.rb +12 -0
  150. data/db/migrate/20110301121550_add_birth_date_and_death_date_to_agent.rb +11 -0
  151. data/db/migrate/20120413161403_add_fingerprint_to_agent_import_file.rb +5 -0
  152. data/db/migrate/20120413170720_add_error_message_to_agent_import_file.rb +5 -0
  153. data/db/migrate/20120511072422_add_agent_identifier_to_agent.rb +6 -0
  154. data/db/migrate/20120602141129_add_edit_mode_to_agent_import_file.rb +5 -0
  155. data/lib/enju_biblio/biblio_helper.rb +8 -8
  156. data/lib/enju_biblio/version.rb +1 -1
  157. data/lib/enju_biblio.rb +3 -3
  158. data/lib/generators/enju_biblio/setup/templates/db/fixtures/patron_relationship_types.yml +3 -3
  159. data/lib/generators/enju_biblio/setup/templates/db/fixtures/patron_types.yml +2 -2
  160. data/lib/generators/enju_biblio/setup/templates/db/fixtures/patrons.yml +4 -4
  161. data/spec/controllers/agent_import_files_controller_spec.rb +321 -0
  162. data/spec/controllers/{patron_import_results_controller_spec.rb → agent_import_results_controller_spec.rb} +17 -17
  163. data/spec/controllers/agent_relationship_types_controller_spec.rb +445 -0
  164. data/spec/controllers/agent_relationships_controller_spec.rb +446 -0
  165. data/spec/controllers/agent_types_controller_spec.rb +447 -0
  166. data/spec/controllers/agents_controller_spec.rb +644 -0
  167. data/spec/controllers/countries_controller_spec.rb +1 -1
  168. data/spec/controllers/items_controller_spec.rb +4 -4
  169. data/spec/controllers/manifestation_relationship_types_controller_spec.rb +1 -1
  170. data/spec/controllers/manifestations_controller_spec.rb +4 -4
  171. data/spec/controllers/owns_controller_spec.rb +2 -2
  172. data/spec/controllers/resource_import_files_controller_spec.rb +1 -1
  173. data/spec/dummy/app/helpers/application_helper.rb +5 -222
  174. data/spec/dummy/app/models/ability.rb +31 -31
  175. data/spec/dummy/app/models/{local_patron.rb → local_agent.rb} +1 -1
  176. data/spec/dummy/app/models/user.rb +3 -3
  177. data/spec/dummy/config/application.rb +0 -1
  178. data/spec/dummy/config/environments/test.rb +1 -0
  179. data/spec/dummy/db/development.sqlite3 +0 -0
  180. data/spec/dummy/db/migrate/035_create_reserves.rb +1 -1
  181. data/spec/dummy/db/migrate/20090519203307_create_participates.rb +2 -2
  182. data/spec/dummy/db/schema.rb +132 -132
  183. data/spec/dummy/db/test.sqlite3 +0 -0
  184. data/spec/dummy/private/system/agent_import_files/agent_imports/000/000/004/original/agent_delete_file.tsv +8 -0
  185. data/spec/dummy/private/system/agent_import_files/agent_imports/000/000/004/original/agent_import_file_sample1.tsv +5 -0
  186. data/spec/dummy/private/system/agent_import_files/agent_imports/000/000/004/original/agent_import_file_sample2.tsv +8 -0
  187. data/spec/dummy/private/system/agent_import_files/agent_imports/000/000/004/original/agent_import_file_sample3.tsv +5 -0
  188. data/spec/dummy/private/system/agent_import_files/agent_imports/000/000/004/original/agent_update_file.tsv +3 -0
  189. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  190. data/spec/dummy/solr/data/test/index/segments_q76 +0 -0
  191. data/spec/factories/{patron.rb → agent.rb} +3 -3
  192. data/spec/factories/create.rb +1 -1
  193. data/spec/factories/donate.rb +1 -1
  194. data/spec/factories/own.rb +1 -1
  195. data/spec/factories/patron_relationship.rb +3 -3
  196. data/spec/factories/patron_relationship_type.rb +2 -2
  197. data/spec/factories/patron_type.rb +2 -2
  198. data/spec/factories/produce.rb +1 -1
  199. data/spec/factories/realize.rb +1 -1
  200. data/spec/fixtures/{patron_import_files.yml → agent_import_files.yml} +18 -18
  201. data/spec/fixtures/{patron_import_results.yml → agent_import_results.yml} +7 -7
  202. data/spec/fixtures/{patron_relationship_types.yml → agent_relationship_types.yml} +4 -4
  203. data/spec/fixtures/{patron_relationships.yml → agent_relationships.yml} +4 -4
  204. data/spec/fixtures/{patron_types.yml → agent_types.yml} +4 -4
  205. data/spec/fixtures/{patrons.yml → agents.yml} +47 -47
  206. data/spec/fixtures/creates.yml +8 -8
  207. data/spec/fixtures/donates.yml +4 -4
  208. data/spec/fixtures/owns.yml +3 -3
  209. data/spec/fixtures/picture_files.yml +1 -1
  210. data/spec/fixtures/produces.yml +20 -20
  211. data/spec/fixtures/realizes.yml +11 -11
  212. data/spec/fixtures/reserves.yml +1 -1
  213. data/spec/models/agent_import_file_spec.rb +96 -0
  214. data/spec/models/{patron_import_result_spec.rb → agent_import_result_spec.rb} +4 -4
  215. data/spec/models/{patron_relationship_spec.rb → agent_relationship_spec.rb} +3 -3
  216. data/spec/models/{patron_relationship_type_spec.rb → agent_relationship_type_spec.rb} +2 -2
  217. data/spec/models/{patron_spec.rb → agent_spec.rb} +16 -16
  218. data/spec/models/{patron_type_spec.rb → agent_type_spec.rb} +2 -2
  219. data/spec/models/create_spec.rb +1 -1
  220. data/spec/models/donate_spec.rb +1 -1
  221. data/spec/models/manifestation_spec.rb +1 -1
  222. data/spec/models/own_spec.rb +1 -1
  223. data/spec/models/produce_spec.rb +1 -1
  224. data/spec/models/realize_spec.rb +1 -1
  225. data/spec/models/resource_import_file_spec.rb +8 -8
  226. data/spec/requests/agents_spec.rb +9 -0
  227. data/spec/routing/agent_relationship_types_routing_spec.rb +35 -0
  228. data/spec/routing/agent_relationships_routing_spec.rb +35 -0
  229. data/spec/routing/agents_routing_spec.rb +35 -0
  230. data/spec/views/creates/edit.html.erb_spec.rb +1 -1
  231. data/spec/views/creates/index.html.erb_spec.rb +2 -2
  232. data/spec/views/creates/new.html.erb_spec.rb +1 -1
  233. data/spec/views/creates/show.html.erb_spec.rb +1 -1
  234. data/spec/views/owns/edit.html.erb_spec.rb +1 -1
  235. data/spec/views/owns/index.html.erb_spec.rb +2 -2
  236. data/spec/views/owns/new.html.erb_spec.rb +1 -1
  237. data/spec/views/owns/show.html.erb_spec.rb +1 -1
  238. data/spec/views/produces/edit.html.erb_spec.rb +2 -2
  239. data/spec/views/produces/index.html.erb_spec.rb +2 -2
  240. data/spec/views/produces/new.html.erb_spec.rb +2 -2
  241. data/spec/views/produces/show.html.erb_spec.rb +1 -1
  242. data/spec/views/realizes/edit.html.erb_spec.rb +2 -2
  243. data/spec/views/realizes/index.html.erb_spec.rb +2 -2
  244. data/spec/views/realizes/new.html.erb_spec.rb +2 -2
  245. data/spec/views/realizes/show.html.erb_spec.rb +1 -1
  246. metadata +131 -187
  247. data/app/models/patron_import_result.rb +0 -26
  248. data/app/views/patron_import_files/index.html.erb +0 -40
  249. data/app/views/patron_import_files/show.html.erb +0 -69
  250. data/app/views/patron_import_results/index.csv.erb +0 -3
  251. data/app/views/patron_import_results/index.html.erb +0 -52
  252. data/app/views/patron_import_results/show.html.erb +0 -38
  253. data/app/views/patron_relationship_types/index.html.erb +0 -43
  254. data/app/views/patron_relationship_types/show.html.erb +0 -29
  255. data/app/views/patron_relationships/index.html.erb +0 -34
  256. data/app/views/patron_relationships/show.html.erb +0 -24
  257. data/app/views/patron_types/index.html.erb +0 -43
  258. data/app/views/patron_types/show.html.erb +0 -29
  259. data/app/views/patrons/_index_patron.html.erb +0 -71
  260. data/app/views/patrons/_index_patron_merge_list.html.erb +0 -53
  261. data/app/views/patrons/_patron.html.erb +0 -13
  262. data/app/views/patrons/_patron_list.html.erb +0 -18
  263. data/app/views/patrons/edit.html.erb +0 -16
  264. data/app/views/patrons/index.atom.builder +0 -10
  265. data/app/views/patrons/show.html.erb +0 -152
  266. data/app/views/patrons/show.mobile.erb +0 -69
  267. data/db/migrate/20081028083142_create_patron_import_files.rb +0 -22
  268. data/db/migrate/20100606073747_create_patron_relationships.rb +0 -13
  269. data/db/migrate/20100814091104_add_position_to_patron_relationship.rb +0 -11
  270. data/db/migrate/20100925074559_create_patron_import_results.rb +0 -12
  271. data/db/migrate/20110301121550_add_birth_date_and_death_date_to_patron.rb +0 -11
  272. data/db/migrate/20120413161403_add_fingerprint_to_patron_import_file.rb +0 -5
  273. data/db/migrate/20120413170720_add_error_message_to_patron_import_file.rb +0 -5
  274. data/db/migrate/20120511072422_add_patron_identifier_to_patron.rb +0 -6
  275. data/db/migrate/20120602141129_add_edit_mode_to_patron_import_file.rb +0 -5
  276. data/spec/controllers/patron_import_files_controller_spec.rb +0 -321
  277. data/spec/controllers/patron_relationship_types_controller_spec.rb +0 -445
  278. data/spec/controllers/patron_relationships_controller_spec.rb +0 -446
  279. data/spec/controllers/patron_types_controller_spec.rb +0 -447
  280. data/spec/controllers/patrons_controller_spec.rb +0 -644
  281. data/spec/dummy/app/mailers/notifier.rb +0 -40
  282. data/spec/dummy/lib/plugins/ext/event-calendar.rb +0 -38
  283. data/spec/dummy/lib/plugins/ext/sunspot/abstract_search.rb +0 -12
  284. data/spec/dummy/lib/plugins/ext/sunspot/dismax.rb +0 -41
  285. data/spec/dummy/lib/plugins/ext/sunspot/start_record.rb +0 -55
  286. data/spec/dummy/lib/plugins/ext/sunspot.rb +0 -3
  287. data/spec/dummy/lib/plugins/ext.rb +0 -1
  288. data/spec/dummy/lib/plugins.rb +0 -2
  289. data/spec/dummy/solr/data/test/index/_goc.fdt +0 -0
  290. data/spec/dummy/solr/data/test/index/_goc.fdx +0 -0
  291. data/spec/dummy/solr/data/test/index/_goc.fnm +0 -7
  292. data/spec/dummy/solr/data/test/index/_goc.frq +0 -0
  293. data/spec/dummy/solr/data/test/index/_goc.nrm +0 -1
  294. data/spec/dummy/solr/data/test/index/_goc.prx +0 -0
  295. data/spec/dummy/solr/data/test/index/_goc.tii +0 -0
  296. data/spec/dummy/solr/data/test/index/_goc.tis +0 -0
  297. data/spec/dummy/solr/data/test/index/_god.fdt +0 -0
  298. data/spec/dummy/solr/data/test/index/_god.fdx +0 -0
  299. data/spec/dummy/solr/data/test/index/_god.fnm +0 -7
  300. data/spec/dummy/solr/data/test/index/_god.frq +0 -0
  301. data/spec/dummy/solr/data/test/index/_god.nrm +0 -1
  302. data/spec/dummy/solr/data/test/index/_god.prx +0 -0
  303. data/spec/dummy/solr/data/test/index/_god.tii +0 -0
  304. data/spec/dummy/solr/data/test/index/_god.tis +0 -0
  305. data/spec/dummy/solr/data/test/index/_goe.fdt +0 -0
  306. data/spec/dummy/solr/data/test/index/_goe.fdx +0 -0
  307. data/spec/dummy/solr/data/test/index/_goe.fnm +0 -8
  308. data/spec/dummy/solr/data/test/index/_goe.frq +0 -0
  309. data/spec/dummy/solr/data/test/index/_goe.nrm +0 -1
  310. data/spec/dummy/solr/data/test/index/_goe.prx +0 -0
  311. data/spec/dummy/solr/data/test/index/_goe.tii +0 -0
  312. data/spec/dummy/solr/data/test/index/_goe.tis +0 -0
  313. data/spec/dummy/solr/data/test/index/segments_otc +0 -0
  314. data/spec/dummy/tmp/cache/4AD/470/country_all +0 -0
  315. data/spec/models/patron_import_file_spec.rb +0 -96
  316. data/spec/requests/patrons_spec.rb +0 -9
  317. data/spec/routing/patron_relationship_types_routing_spec.rb +0 -35
  318. data/spec/routing/patron_relationships_routing_spec.rb +0 -35
  319. data/spec/routing/patrons_routing_spec.rb +0 -35
@@ -13,6 +13,125 @@
13
13
 
14
14
  ActiveRecord::Schema.define(:version => 20130509185724) do
15
15
 
16
+ create_table "agent_import_files", :force => true do |t|
17
+ t.integer "parent_id"
18
+ t.string "content_type"
19
+ t.integer "size"
20
+ t.integer "user_id"
21
+ t.text "note"
22
+ t.datetime "executed_at"
23
+ t.string "state"
24
+ t.string "agent_import_file_name"
25
+ t.string "agent_import_content_type"
26
+ t.integer "agent_import_file_size"
27
+ t.datetime "agent_import_updated_at"
28
+ t.datetime "created_at", :null => false
29
+ t.datetime "updated_at", :null => false
30
+ t.string "agent_import_fingerprint"
31
+ t.text "error_message"
32
+ t.string "edit_mode"
33
+ end
34
+
35
+ add_index "agent_import_files", ["parent_id"], :name => "index_agent_import_files_on_parent_id"
36
+ add_index "agent_import_files", ["state"], :name => "index_agent_import_files_on_state"
37
+ add_index "agent_import_files", ["user_id"], :name => "index_agent_import_files_on_user_id"
38
+
39
+ create_table "agent_import_results", :force => true do |t|
40
+ t.integer "agent_import_file_id"
41
+ t.integer "agent_id"
42
+ t.integer "user_id"
43
+ t.text "body"
44
+ t.datetime "created_at", :null => false
45
+ t.datetime "updated_at", :null => false
46
+ end
47
+
48
+ create_table "agent_relationship_types", :force => true do |t|
49
+ t.string "name", :null => false
50
+ t.text "display_name"
51
+ t.text "note"
52
+ t.integer "position"
53
+ t.datetime "created_at", :null => false
54
+ t.datetime "updated_at", :null => false
55
+ end
56
+
57
+ create_table "agent_relationships", :force => true do |t|
58
+ t.integer "parent_id"
59
+ t.integer "child_id"
60
+ t.integer "agent_relationship_type_id"
61
+ t.datetime "created_at", :null => false
62
+ t.datetime "updated_at", :null => false
63
+ t.integer "position"
64
+ end
65
+
66
+ add_index "agent_relationships", ["child_id"], :name => "index_agent_relationships_on_child_id"
67
+ add_index "agent_relationships", ["parent_id"], :name => "index_agent_relationships_on_parent_id"
68
+
69
+ create_table "agent_types", :force => true do |t|
70
+ t.string "name", :null => false
71
+ t.text "display_name"
72
+ t.text "note"
73
+ t.integer "position"
74
+ t.datetime "created_at", :null => false
75
+ t.datetime "updated_at", :null => false
76
+ end
77
+
78
+ create_table "agents", :force => true do |t|
79
+ t.integer "user_id"
80
+ t.string "last_name"
81
+ t.string "middle_name"
82
+ t.string "first_name"
83
+ t.string "last_name_transcription"
84
+ t.string "middle_name_transcription"
85
+ t.string "first_name_transcription"
86
+ t.string "corporate_name"
87
+ t.string "corporate_name_transcription"
88
+ t.string "full_name"
89
+ t.text "full_name_transcription"
90
+ t.text "full_name_alternative"
91
+ t.datetime "created_at", :null => false
92
+ t.datetime "updated_at", :null => false
93
+ t.datetime "deleted_at"
94
+ t.string "zip_code_1"
95
+ t.string "zip_code_2"
96
+ t.text "address_1"
97
+ t.text "address_2"
98
+ t.text "address_1_note"
99
+ t.text "address_2_note"
100
+ t.string "telephone_number_1"
101
+ t.string "telephone_number_2"
102
+ t.string "fax_number_1"
103
+ t.string "fax_number_2"
104
+ t.text "other_designation"
105
+ t.text "place"
106
+ t.string "postal_code"
107
+ t.text "street"
108
+ t.text "locality"
109
+ t.text "region"
110
+ t.datetime "date_of_birth"
111
+ t.datetime "date_of_death"
112
+ t.integer "language_id", :default => 1, :null => false
113
+ t.integer "country_id", :default => 1, :null => false
114
+ t.integer "agent_type_id", :default => 1, :null => false
115
+ t.integer "lock_version", :default => 0, :null => false
116
+ t.text "note"
117
+ t.integer "required_role_id", :default => 1, :null => false
118
+ t.integer "required_score", :default => 0, :null => false
119
+ t.string "state"
120
+ t.text "email"
121
+ t.text "url"
122
+ t.text "full_name_alternative_transcription"
123
+ t.string "birth_date"
124
+ t.string "death_date"
125
+ t.string "agent_identifier"
126
+ end
127
+
128
+ add_index "agents", ["agent_identifier"], :name => "index_agents_on_agent_identifier"
129
+ add_index "agents", ["country_id"], :name => "index_agents_on_country_id"
130
+ add_index "agents", ["full_name"], :name => "index_agents_on_full_name"
131
+ add_index "agents", ["language_id"], :name => "index_agents_on_language_id"
132
+ add_index "agents", ["required_role_id"], :name => "index_agents_on_required_role_id"
133
+ add_index "agents", ["user_id"], :name => "index_agents_on_user_id", :unique => true
134
+
16
135
  create_table "baskets", :force => true do |t|
17
136
  t.integer "user_id"
18
137
  t.text "note"
@@ -252,7 +371,7 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
252
371
  end
253
372
 
254
373
  create_table "creates", :force => true do |t|
255
- t.integer "patron_id", :null => false
374
+ t.integer "agent_id", :null => false
256
375
  t.integer "work_id", :null => false
257
376
  t.integer "position"
258
377
  t.datetime "created_at", :null => false
@@ -260,7 +379,7 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
260
379
  t.integer "create_type_id"
261
380
  end
262
381
 
263
- add_index "creates", ["patron_id"], :name => "index_creates_on_patron_id"
382
+ add_index "creates", ["agent_id"], :name => "index_creates_on_agent_id"
264
383
  add_index "creates", ["work_id"], :name => "index_creates_on_work_id"
265
384
 
266
385
  create_table "delayed_jobs", :force => true do |t|
@@ -280,14 +399,14 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
280
399
  add_index "delayed_jobs", ["priority", "run_at"], :name => "delayed_jobs_priority"
281
400
 
282
401
  create_table "donates", :force => true do |t|
283
- t.integer "patron_id", :null => false
402
+ t.integer "agent_id", :null => false
284
403
  t.integer "item_id", :null => false
285
404
  t.datetime "created_at", :null => false
286
405
  t.datetime "updated_at", :null => false
287
406
  end
288
407
 
408
+ add_index "donates", ["agent_id"], :name => "index_donates_on_agent_id"
289
409
  add_index "donates", ["item_id"], :name => "index_donates_on_item_id"
290
- add_index "donates", ["patron_id"], :name => "index_donates_on_patron_id"
291
410
 
292
411
  create_table "event_categories", :force => true do |t|
293
412
  t.string "name", :null => false
@@ -743,145 +862,26 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
743
862
  add_index "messages", ["sender_id"], :name => "index_messages_on_sender_id"
744
863
 
745
864
  create_table "owns", :force => true do |t|
746
- t.integer "patron_id", :null => false
865
+ t.integer "agent_id", :null => false
747
866
  t.integer "item_id", :null => false
748
867
  t.integer "position"
749
868
  t.datetime "created_at", :null => false
750
869
  t.datetime "updated_at", :null => false
751
870
  end
752
871
 
872
+ add_index "owns", ["agent_id"], :name => "index_owns_on_agent_id"
753
873
  add_index "owns", ["item_id"], :name => "index_owns_on_item_id"
754
- add_index "owns", ["patron_id"], :name => "index_owns_on_patron_id"
755
874
 
756
875
  create_table "participates", :force => true do |t|
757
- t.integer "patron_id", :null => false
876
+ t.integer "agent_id", :null => false
758
877
  t.integer "event_id", :null => false
759
878
  t.integer "position"
760
879
  t.datetime "created_at", :null => false
761
880
  t.datetime "updated_at", :null => false
762
881
  end
763
882
 
883
+ add_index "participates", ["agent_id"], :name => "index_participates_on_agent_id"
764
884
  add_index "participates", ["event_id"], :name => "index_participates_on_event_id"
765
- add_index "participates", ["patron_id"], :name => "index_participates_on_patron_id"
766
-
767
- create_table "patron_import_files", :force => true do |t|
768
- t.integer "parent_id"
769
- t.string "content_type"
770
- t.integer "size"
771
- t.integer "user_id"
772
- t.text "note"
773
- t.datetime "executed_at"
774
- t.string "state"
775
- t.string "patron_import_file_name"
776
- t.string "patron_import_content_type"
777
- t.integer "patron_import_file_size"
778
- t.datetime "patron_import_updated_at"
779
- t.datetime "created_at", :null => false
780
- t.datetime "updated_at", :null => false
781
- t.string "patron_import_fingerprint"
782
- t.text "error_message"
783
- t.string "edit_mode"
784
- end
785
-
786
- add_index "patron_import_files", ["parent_id"], :name => "index_patron_import_files_on_parent_id"
787
- add_index "patron_import_files", ["state"], :name => "index_patron_import_files_on_state"
788
- add_index "patron_import_files", ["user_id"], :name => "index_patron_import_files_on_user_id"
789
-
790
- create_table "patron_import_results", :force => true do |t|
791
- t.integer "patron_import_file_id"
792
- t.integer "patron_id"
793
- t.integer "user_id"
794
- t.text "body"
795
- t.datetime "created_at", :null => false
796
- t.datetime "updated_at", :null => false
797
- end
798
-
799
- create_table "patron_relationship_types", :force => true do |t|
800
- t.string "name", :null => false
801
- t.text "display_name"
802
- t.text "note"
803
- t.integer "position"
804
- t.datetime "created_at", :null => false
805
- t.datetime "updated_at", :null => false
806
- end
807
-
808
- create_table "patron_relationships", :force => true do |t|
809
- t.integer "parent_id"
810
- t.integer "child_id"
811
- t.integer "patron_relationship_type_id"
812
- t.datetime "created_at", :null => false
813
- t.datetime "updated_at", :null => false
814
- t.integer "position"
815
- end
816
-
817
- add_index "patron_relationships", ["child_id"], :name => "index_patron_relationships_on_child_id"
818
- add_index "patron_relationships", ["parent_id"], :name => "index_patron_relationships_on_parent_id"
819
-
820
- create_table "patron_types", :force => true do |t|
821
- t.string "name", :null => false
822
- t.text "display_name"
823
- t.text "note"
824
- t.integer "position"
825
- t.datetime "created_at", :null => false
826
- t.datetime "updated_at", :null => false
827
- end
828
-
829
- create_table "patrons", :force => true do |t|
830
- t.integer "user_id"
831
- t.string "last_name"
832
- t.string "middle_name"
833
- t.string "first_name"
834
- t.string "last_name_transcription"
835
- t.string "middle_name_transcription"
836
- t.string "first_name_transcription"
837
- t.string "corporate_name"
838
- t.string "corporate_name_transcription"
839
- t.string "full_name"
840
- t.text "full_name_transcription"
841
- t.text "full_name_alternative"
842
- t.datetime "created_at", :null => false
843
- t.datetime "updated_at", :null => false
844
- t.datetime "deleted_at"
845
- t.string "zip_code_1"
846
- t.string "zip_code_2"
847
- t.text "address_1"
848
- t.text "address_2"
849
- t.text "address_1_note"
850
- t.text "address_2_note"
851
- t.string "telephone_number_1"
852
- t.string "telephone_number_2"
853
- t.string "fax_number_1"
854
- t.string "fax_number_2"
855
- t.text "other_designation"
856
- t.text "place"
857
- t.string "postal_code"
858
- t.text "street"
859
- t.text "locality"
860
- t.text "region"
861
- t.datetime "date_of_birth"
862
- t.datetime "date_of_death"
863
- t.integer "language_id", :default => 1, :null => false
864
- t.integer "country_id", :default => 1, :null => false
865
- t.integer "patron_type_id", :default => 1, :null => false
866
- t.integer "lock_version", :default => 0, :null => false
867
- t.text "note"
868
- t.integer "required_role_id", :default => 1, :null => false
869
- t.integer "required_score", :default => 0, :null => false
870
- t.string "state"
871
- t.text "email"
872
- t.text "url"
873
- t.text "full_name_alternative_transcription"
874
- t.string "birth_date"
875
- t.string "death_date"
876
- t.string "patron_identifier"
877
- end
878
-
879
- add_index "patrons", ["country_id"], :name => "index_patrons_on_country_id"
880
- add_index "patrons", ["full_name"], :name => "index_patrons_on_full_name"
881
- add_index "patrons", ["language_id"], :name => "index_patrons_on_language_id"
882
- add_index "patrons", ["patron_identifier"], :name => "index_patrons_on_patron_identifier"
883
- add_index "patrons", ["required_role_id"], :name => "index_patrons_on_required_role_id"
884
- add_index "patrons", ["user_id"], :name => "index_patrons_on_user_id", :unique => true
885
885
 
886
886
  create_table "picture_files", :force => true do |t|
887
887
  t.integer "picture_attachable_id"
@@ -912,7 +912,7 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
912
912
  end
913
913
 
914
914
  create_table "produces", :force => true do |t|
915
- t.integer "patron_id", :null => false
915
+ t.integer "agent_id", :null => false
916
916
  t.integer "manifestation_id", :null => false
917
917
  t.integer "position"
918
918
  t.datetime "created_at", :null => false
@@ -920,8 +920,8 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
920
920
  t.integer "produce_type_id"
921
921
  end
922
922
 
923
+ add_index "produces", ["agent_id"], :name => "index_produces_on_agent_id"
923
924
  add_index "produces", ["manifestation_id"], :name => "index_produces_on_manifestation_id"
924
- add_index "produces", ["patron_id"], :name => "index_produces_on_patron_id"
925
925
 
926
926
  create_table "realize_types", :force => true do |t|
927
927
  t.string "name"
@@ -933,7 +933,7 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
933
933
  end
934
934
 
935
935
  create_table "realizes", :force => true do |t|
936
- t.integer "patron_id", :null => false
936
+ t.integer "agent_id", :null => false
937
937
  t.integer "expression_id", :null => false
938
938
  t.integer "position"
939
939
  t.datetime "created_at", :null => false
@@ -941,8 +941,8 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
941
941
  t.integer "realize_type_id"
942
942
  end
943
943
 
944
+ add_index "realizes", ["agent_id"], :name => "index_realizes_on_agent_id"
944
945
  add_index "realizes", ["expression_id"], :name => "index_realizes_on_expression_id"
945
- add_index "realizes", ["patron_id"], :name => "index_realizes_on_patron_id"
946
946
 
947
947
  create_table "request_status_types", :force => true do |t|
948
948
  t.string "name", :null => false
@@ -996,7 +996,7 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
996
996
  t.datetime "expired_at"
997
997
  t.datetime "deleted_at"
998
998
  t.string "state"
999
- t.boolean "expiration_notice_to_patron", :default => false
999
+ t.boolean "expiration_notice_to_agent", :default => false
1000
1000
  t.boolean "expiration_notice_to_library", :default => false
1001
1001
  t.datetime "retained_at"
1002
1002
  t.datetime "postponed_at"
Binary file
@@ -0,0 +1,5 @@
1
+ "full_name" "first_name" "last_name" "middle_name" "username" "email" "library_short_name" "user_group_name" "role_name" "language" "country" "address_1" "address_2" "zip_code_1" "zip_code_2" "telephone_number_1" "telephone_number_2" "fax_number_1" "fax_number_2" "birth_date" "note" "dummy"
2
+ "フルネーム" "名" "姓" "ミドルネーム" "ユーザ名" "メールアドレス" "所属館名" "所属グループ名" "権限" "言語名" "国名" "住所1" "住所2" "郵便番号1" "郵便番号2" "電話番号1" "電話番号2" "ファックス番号1" "ファックス番号2" "誕生日" "備考" "インポート省略"
3
+ "hogehoge" 1978
4
+ "田辺浩介" "tanabe" "tanabe@library.example.jp" "kamata" "User" "Administrator" "Japanese" "Japan" "東京都港区" "東京都港区" "108-8345" "108-8345" "03-xxxx-xxxx" "03-xxxx-xxxx" "03-xxxx-xxxx" "03-xxxx-xxxx" "1978-4-12" "備考"
5
+ "隆史" "原田" "ushi" "ushi" "ushi@slis.keio.ac.jp" "kamata" "Faculty" "Librarian" "English" "Japan" "備考"
@@ -0,0 +1,8 @@
1
+ "full_name" "username" "email" "library_short_name" "user_group_name" "user_number" "note"
2
+ "日本語の名前" "tanabe" "tanabe@library.example.jp" "kamata" 100001
3
+ "kosuke" "kosuke" 100001 "user_number重複"
4
+ "tanabe" "tanabe" 100002 "username重複"
5
+ "tanabe2" "tanabe2" "kamata" 100002 "emailなし"
6
+ "tanabe" "tanabe3" 100003 "full_name重複"
7
+ "tanabe" "tanabe4" "tanabe@library.example.jp" 100004 "email重複"
8
+ "tanabe" "tanabe5" "user_numberなし"
@@ -0,0 +1,5 @@
1
+ "full_name" "first_name" "last_name" "middle_name" "username" "email" "library_short_name" "user_group_name" "role_name" "language" "country" "address_1" "address_2" "zip_code_1" "zip_code_2" "telephone_number_1" "telephone_number_2" "fax_number_1" "fax_number_2" "birth_date" "required_role_name" "note"
2
+ "hogehoge"
3
+ "fugafuga" "fugafuga@example.jp" "Guest"
4
+ "�c�Ӎ_��" "tanabe" "tanabe@library.example.jp" "kamata" "User" "Administrator" "Japanese" "Japan" "�����s�`��" "�����s�`��" "108-8345" "108-8345" "03-xxxx-xxxx" "03-xxxx-xxxx" "03-xxxx-xxxx" "03-xxxx-xxxx" "1978-4-12" "User" "���l"
5
+ "���j" "���c" "ushi" "ushi" "ushi@slis.keio.ac.jp" "kamata" "Faculty" "Librarian" "English" "Japan" "Librarian" "���l"
@@ -0,0 +1,3 @@
1
+ id full_name address_1
2
+ 1 たなべこうすけ 東京都
3
+ 2 田辺浩介 岡山県
@@ -1,13 +1,13 @@
1
1
  FactoryGirl.define do
2
- factory :patron do |f|
2
+ factory :agent do |f|
3
3
  f.sequence(:full_name){|n| "full_name_#{n}"}
4
- f.patron_type_id{PatronType.find_by_name('Person').id}
4
+ f.agent_type_id{AgentType.find_by_name('Person').id}
5
5
  f.country_id{Country.first.id}
6
6
  f.language_id{Language.first.id}
7
7
  end
8
8
  end
9
9
 
10
10
  FactoryGirl.define do
11
- factory :invalid_patron, :class => Patron do |f|
11
+ factory :invalid_agent, :class => Agent do |f|
12
12
  end
13
13
  end
@@ -1,6 +1,6 @@
1
1
  FactoryGirl.define do
2
2
  factory :create do |f|
3
3
  f.work_id{FactoryGirl.create(:manifestation).id}
4
- f.patron_id{FactoryGirl.create(:patron).id}
4
+ f.agent_id{FactoryGirl.create(:agent).id}
5
5
  end
6
6
  end
@@ -1,6 +1,6 @@
1
1
  FactoryGirl.define do
2
2
  factory :donate do |f|
3
3
  f.item_id{FactoryGirl.create(:item).id}
4
- f.patron_id{FactoryGirl.create(:patron).id}
4
+ f.agent_id{FactoryGirl.create(:agent).id}
5
5
  end
6
6
  end
@@ -1,6 +1,6 @@
1
1
  FactoryGirl.define do
2
2
  factory :own do |f|
3
3
  f.item_id{FactoryGirl.create(:item).id}
4
- f.patron_id{FactoryGirl.create(:patron).id}
4
+ f.agent_id{FactoryGirl.create(:agent).id}
5
5
  end
6
6
  end
@@ -1,6 +1,6 @@
1
1
  FactoryGirl.define do
2
- factory :patron_relationship do |f|
3
- f.parent_id{FactoryGirl.create(:patron).id}
4
- f.child_id{FactoryGirl.create(:patron).id}
2
+ factory :agent_relationship do |f|
3
+ f.parent_id{FactoryGirl.create(:agent).id}
4
+ f.child_id{FactoryGirl.create(:agent).id}
5
5
  end
6
6
  end
@@ -1,5 +1,5 @@
1
1
  FactoryGirl.define do
2
- factory :patron_relationship_type do |f|
3
- f.sequence(:name){|n| "patron_relationship_type_#{n}"}
2
+ factory :agent_relationship_type do |f|
3
+ f.sequence(:name){|n| "agent_relationship_type_#{n}"}
4
4
  end
5
5
  end
@@ -1,5 +1,5 @@
1
1
  FactoryGirl.define do
2
- factory :patron_type do |f|
3
- f.sequence(:name){|n| "patron_type_#{n}"}
2
+ factory :agent_type do |f|
3
+ f.sequence(:name){|n| "agent_type_#{n}"}
4
4
  end
5
5
  end
@@ -1,6 +1,6 @@
1
1
  FactoryGirl.define do
2
2
  factory :produce do |f|
3
3
  f.manifestation_id{FactoryGirl.create(:manifestation).id}
4
- f.patron_id{FactoryGirl.create(:patron).id}
4
+ f.agent_id{FactoryGirl.create(:agent).id}
5
5
  end
6
6
  end
@@ -1,6 +1,6 @@
1
1
  FactoryGirl.define do
2
2
  factory :realize do |f|
3
3
  f.expression_id{FactoryGirl.create(:manifestation).id}
4
- f.patron_id{FactoryGirl.create(:patron).id}
4
+ f.agent_id{FactoryGirl.create(:agent).id}
5
5
  end
6
6
  end
@@ -1,30 +1,30 @@
1
1
  # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
2
 
3
- patron_import_file_00001:
3
+ agent_import_file_00001:
4
4
  id: 1
5
- patron_import_file_name: MyString
6
- patron_import_file_size: 1
5
+ agent_import_file_name: MyString
6
+ agent_import_file_size: 1
7
7
  user_id: 1
8
- patron_import_content_type: text/csv
8
+ agent_import_content_type: text/csv
9
9
  state: completed
10
- patron_import_file_00002:
10
+ agent_import_file_00002:
11
11
  id: 2
12
- patron_import_file_name: MyString
13
- patron_import_file_size: 1
12
+ agent_import_file_name: MyString
13
+ agent_import_file_size: 1
14
14
  user_id: 1
15
- patron_import_content_type: text/csv
15
+ agent_import_content_type: text/csv
16
16
  state: pending
17
- patron_import_file_00003:
17
+ agent_import_file_00003:
18
18
  id: 3
19
- patron_import_file_name: MyString
20
- patron_import_file_size: 1
19
+ agent_import_file_name: MyString
20
+ agent_import_file_size: 1
21
21
  user_id: 1
22
- patron_import_content_type: text/csv
22
+ agent_import_content_type: text/csv
23
23
  state: pending
24
24
 
25
25
  # == Schema Information
26
26
  #
27
- # Table name: patron_import_files
27
+ # Table name: agent_import_files
28
28
  #
29
29
  # id :integer not null, primary key
30
30
  # parent_id :integer
@@ -34,13 +34,13 @@ patron_import_file_00003:
34
34
  # note :text
35
35
  # executed_at :datetime
36
36
  # state :string(255)
37
- # patron_import_file_name :string(255)
38
- # patron_import_content_type :string(255)
39
- # patron_import_file_size :integer
40
- # patron_import_updated_at :datetime
37
+ # agent_import_file_name :string(255)
38
+ # agent_import_content_type :string(255)
39
+ # agent_import_file_size :integer
40
+ # agent_import_updated_at :datetime
41
41
  # created_at :datetime not null
42
42
  # updated_at :datetime not null
43
- # patron_import_fingerprint :string(255)
43
+ # agent_import_fingerprint :string(255)
44
44
  # error_message :text
45
45
  # edit_mode :string(255)
46
46
  #
@@ -2,25 +2,25 @@
2
2
 
3
3
  one:
4
4
  id: 1
5
- patron_import_file_id: 1
6
- patron_id: 1
5
+ agent_import_file_id: 1
6
+ agent_id: 1
7
7
  user_id: 1
8
8
  body: MyText
9
9
 
10
10
  two:
11
11
  id: 2
12
- patron_import_file_id: 1
13
- patron_id: 1
12
+ agent_import_file_id: 1
13
+ agent_id: 1
14
14
  user_id: 1
15
15
  body: MyText
16
16
 
17
17
  # == Schema Information
18
18
  #
19
- # Table name: patron_import_results
19
+ # Table name: agent_import_results
20
20
  #
21
21
  # id :integer not null, primary key
22
- # patron_import_file_id :integer
23
- # patron_id :integer
22
+ # agent_import_file_id :integer
23
+ # agent_id :integer
24
24
  # user_id :integer
25
25
  # body :text
26
26
  # created_at :datetime not null
@@ -1,18 +1,18 @@
1
1
  # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
2
 
3
- patron_relationship_type_00001:
3
+ agent_relationship_type_00001:
4
4
  id: 1
5
5
  name: See also
6
6
  display_name: See also
7
7
  note:
8
8
  position: 1
9
- patron_relationship_type_00002:
9
+ agent_relationship_type_00002:
10
10
  id: 2
11
11
  name: Member
12
12
  display_name: Member
13
13
  note:
14
14
  position: 2
15
- patron_relationship_type_00003:
15
+ agent_relationship_type_00003:
16
16
  id: 3
17
17
  name: Child
18
18
  display_name: Child
@@ -21,7 +21,7 @@ patron_relationship_type_00003:
21
21
 
22
22
  # == Schema Information
23
23
  #
24
- # Table name: patron_relationship_types
24
+ # Table name: agent_relationship_types
25
25
  #
26
26
  # id :integer not null, primary key
27
27
  # name :string(255) not null
@@ -3,21 +3,21 @@
3
3
  one:
4
4
  parent_id: 1
5
5
  child_id: 2
6
- patron_relationship_type_id: 1
6
+ agent_relationship_type_id: 1
7
7
 
8
8
  two:
9
9
  parent_id: 2
10
10
  child_id: 3
11
- patron_relationship_type_id: 1
11
+ agent_relationship_type_id: 1
12
12
 
13
13
  # == Schema Information
14
14
  #
15
- # Table name: patron_relationships
15
+ # Table name: agent_relationships
16
16
  #
17
17
  # id :integer not null, primary key
18
18
  # parent_id :integer
19
19
  # child_id :integer
20
- # patron_relationship_type_id :integer
20
+ # agent_relationship_type_id :integer
21
21
  # created_at :datetime not null
22
22
  # updated_at :datetime not null
23
23
  # position :integer