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
@@ -4,14 +4,14 @@
4
4
 
5
5
  <table class="table table-striped index">
6
6
  <tr>
7
- <th><%= t('activerecord.models.patron') -%></th>
7
+ <th><%= t('activerecord.models.agent') -%></th>
8
8
  <th><%= t('activerecord.models.work') -%></th>
9
9
  <th></th>
10
10
  </tr>
11
11
 
12
12
  <%- @creates.each do |create| -%>
13
13
  <tr class="line<%= cycle("0", "1") -%>">
14
- <td><%= link_to create.patron.full_name, create.patron -%></td>
14
+ <td><%= link_to create.agent.full_name, create.agent -%></td>
15
15
  <td><%= link_to create.work.original_title, create.work -%></td>
16
16
  <td>
17
17
  <%- if can? :delete, create -%>
@@ -2,7 +2,7 @@
2
2
  <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.create')) -%></h1>
3
3
  <div id="content_list">
4
4
  <h2 class="resource_title">
5
- <%= link_to patron.full_name, patron -%>
5
+ <%= link_to agent.full_name, agent -%>
6
6
  </h2>
7
7
 
8
8
  <table class="table table-striped index">
@@ -18,8 +18,8 @@
18
18
  <tr class="line<%= cycle("0", "1") -%>">
19
19
  <td>
20
20
  <%- if can? :delete, create -%>
21
- <%= create.first? ? image_tag('icons/stop.png', :size => '16x16') : link_to(image_tag('icons/arrow_up.png', :size => '16x16', :alt => t('page.asc')), {:action => 'update', :move => 'higher', :id => create.id, :patron_id => patron.id}, :method => :put) -%>
22
- <%= create.last? ? image_tag('icons/stop.png', :size => '16x16') : link_to(image_tag('icons/arrow_down.png', :size => '16x16', :alt => t('page.desc')), {:action => 'update', :move => 'lower', :id => create.id, :patron_id => patron.id}, :method => :put) -%>
21
+ <%= create.first? ? image_tag('icons/stop.png', :size => '16x16') : link_to(image_tag('icons/arrow_up.png', :size => '16x16', :alt => t('page.asc')), {:action => 'update', :move => 'higher', :id => create.id, :agent_id => agent.id}, :method => :put) -%>
22
+ <%= create.last? ? image_tag('icons/stop.png', :size => '16x16') : link_to(image_tag('icons/arrow_down.png', :size => '16x16', :alt => t('page.desc')), {:action => 'update', :move => 'lower', :id => create.id, :agent_id => agent.id}, :method => :put) -%>
23
23
  <%- end -%>
24
24
  </td>
25
25
  <td><%= link_to create.work.try(:original_title), create.work -%></td>
@@ -27,8 +27,8 @@
27
27
  <td><%= l(create.updated_at) -%></td>
28
28
  <td>
29
29
  <%- if can? :delete, create -%>
30
- <%= link_to t('page.show'), patron_create_path(patron, create) -%>
31
- <%= link_to t('page.destroy'), patron_create_path(patron, create), :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
30
+ <%= link_to t('page.show'), agent_create_path(agent, create) -%>
31
+ <%= link_to t('page.destroy'), agent_create_path(agent, create), :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
32
32
  <%- end -%>
33
33
  </td>
34
34
  </tr>
@@ -42,7 +42,7 @@
42
42
  <div id="submenu" class="ui-corner-all">
43
43
  <ul>
44
44
  <%- if can? :create, Create -%>
45
- <li><%= link_to t('page.new', :model => t('activerecord.models.create')), new_patron_create_path(patron) -%></li>
45
+ <li><%= link_to t('page.new', :model => t('activerecord.models.create')), new_agent_create_path(agent) -%></li>
46
46
  <%- end -%>
47
47
  </ul>
48
48
  </div>
@@ -8,7 +8,7 @@
8
8
  <table class="table table-striped index">
9
9
  <tr>
10
10
  <th id="position"></th>
11
- <th><%= t('activerecord.models.patron') -%></th>
11
+ <th><%= t('activerecord.models.agent') -%></th>
12
12
  <th><%= t('page.created_at') -%></th>
13
13
  <th><%= t('page.updated_at') -%></th>
14
14
  </tr>
@@ -21,7 +21,7 @@
21
21
  <%= create.last? ? image_tag('icons/stop.png') : link_to(image_tag('icons/arrow_down.png', :size => '16x16', :alt => t('page.desc')), work_create_path(create.work, create, :move => 'lower'), :method => :put) -%>
22
22
  <%- end-%>
23
23
  </td>
24
- <td><%= link_to create.patron.try(:full_name), create.patron -%></td>
24
+ <td><%= link_to create.agent.try(:full_name), create.agent -%></td>
25
25
  <td><%= l(create.created_at) -%></td>
26
26
  <td><%= l(create.updated_at) -%></td>
27
27
  </tr>
@@ -1,5 +1,5 @@
1
- <% if @patron %>
2
- <%= render 'index_patron', :patron => @patron %>
1
+ <% if @agent %>
2
+ <%= render 'index_agent', :agent => @agent %>
3
3
  <% elsif @work %>
4
4
  <%= render 'index_work', :work => @work %>
5
5
  <% else %>
@@ -7,11 +7,11 @@
7
7
 
8
8
  <div id="submenu" class="ui-corner-all">
9
9
  <ul>
10
- <%- if @create.patron -%>
11
- <li><%= link_to t('page.listing', :model => t('activerecord.models.work')), creator_manifestations_path(@create.patron) -%></li>
10
+ <%- if @create.agent -%>
11
+ <li><%= link_to t('page.listing', :model => t('activerecord.models.work')), creator_manifestations_path(@create.agent) -%></li>
12
12
  <%- end -%>
13
13
  <%- if @create.work -%>
14
- <li><%= link_to t('page.listing', :model => t('activerecord.models.patron')), work_patrons_path(@create.work) -%></li>
14
+ <li><%= link_to t('page.listing', :model => t('activerecord.models.agent')), work_agents_path(@create.work) -%></li>
15
15
  <%- end -%>
16
16
  </ul>
17
17
  </div>
@@ -4,8 +4,8 @@
4
4
  <p id="notice"><%= notice %></p>
5
5
 
6
6
  <p>
7
- <strong><%= t('activerecord.models.patron') -%>:</strong>
8
- <%= link_to @create.patron.full_name, @create.patron -%>
7
+ <strong><%= t('activerecord.models.agent') -%>:</strong>
8
+ <%= link_to @create.agent.full_name, @create.agent -%>
9
9
  </p>
10
10
 
11
11
  <p>
@@ -18,7 +18,7 @@
18
18
 
19
19
  <div id="submenu" class="ui-corner-all">
20
20
  <ul>
21
- <li><%= link_to t('page.back_to', :model => t('activerecord.models.patron')), work_patrons_path(@create.work) -%></li>
22
- <li><%= link_to t('page.back_to', :model => t('activerecord.models.work')), creator_manifestations_path(@create.patron) -%></li>
21
+ <li><%= link_to t('page.back_to', :model => t('activerecord.models.agent')), work_agents_path(@create.work) -%></li>
22
+ <li><%= link_to t('page.back_to', :model => t('activerecord.models.work')), creator_manifestations_path(@create.agent) -%></li>
23
23
  </ul>
24
24
  </div>
@@ -5,8 +5,8 @@
5
5
  <%= form_for(@donate) do |f| -%>
6
6
  <%= f.error_messages -%>
7
7
  <div class="field">
8
- <%= f.label t('activerecord.models.patron') -%><br />
9
- <%= f.text_field :patron_id -%>
8
+ <%= f.label t('activerecord.models.agent') -%><br />
9
+ <%= f.text_field :agent_id -%>
10
10
  </div>
11
11
 
12
12
  <div class="field">
@@ -4,7 +4,7 @@
4
4
 
5
5
  <table class="table table-striped index">
6
6
  <tr>
7
- <th><%= t('activerecord.models.patron') -%></th>
7
+ <th><%= t('activerecord.models.agent') -%></th>
8
8
  <th><%= t('activerecord.models.manifestation') -%></th>
9
9
  <th><%= t('activerecord.models.item') -%></th>
10
10
  <th></th>
@@ -13,7 +13,7 @@
13
13
 
14
14
  <%- @donates.each do |donate| -%>
15
15
  <tr class="line<%= cycle("0", "1") -%>">
16
- <td><%= link_to donate.patron.full_name, donate.patron -%></td>
16
+ <td><%= link_to donate.agent.full_name, donate.agent -%></td>
17
17
  <td>
18
18
  <%= render 'manifestations/show_index', :manifestation => donate.item.manifestation -%>
19
19
  </td>
@@ -5,8 +5,8 @@
5
5
  <%= form_for(@donate) do |f| -%>
6
6
  <%= f.error_messages -%>
7
7
  <div class="field">
8
- <%= f.label t('activerecord.models.patron') -%><br />
9
- <%= f.text_field :patron_id -%>
8
+ <%= f.label t('activerecord.models.agent') -%><br />
9
+ <%= f.text_field :agent_id -%>
10
10
  </div>
11
11
 
12
12
  <div class="field">
@@ -4,8 +4,8 @@
4
4
  <p id="notice"><%= notice %></p>
5
5
 
6
6
  <p>
7
- <strong><%= t('activerecord.models.patron') -%>:</strong>
8
- <%= link_to @donate.patron.full_name, @donate.patron -%>
7
+ <strong><%= t('activerecord.models.agent') -%>:</strong>
8
+ <%= link_to @donate.agent.full_name, @donate.agent -%>
9
9
  </p>
10
10
 
11
11
  <p>
@@ -32,7 +32,7 @@
32
32
  <% end %>
33
33
  </tr>
34
34
  <%- @items.each do |item| -%>
35
- <tr>
35
+ <tr class="line<%= cycle("0", "1") -%>">
36
36
  <td>
37
37
  <%- if item.item_identifier? -%>
38
38
  <%= link_to item.item_identifier, item -%>
@@ -41,7 +41,7 @@
41
41
  </div>
42
42
 
43
43
  <div id="submenu" class="ui-corner-all">
44
- <%- if can? :create, Country -%>
44
+ <%- if can? :create, Language -%>
45
45
  <ul>
46
46
  <li><%= link_to t('page.new', :model => t('activerecord.models.language')), new_language_path -%></li>
47
47
  </ul>
@@ -5,8 +5,8 @@
5
5
  <title><%= title(controller.controller_name) %></title>
6
6
  <%= render 'page/include' %>
7
7
  <%- if controller.action_name == 'index' -%>
8
- <%= auto_discovery_link_tag(:rss, url_for(params.merge(:format => 'rss', :page => nil, :commit => nil, :only_path => true)), :title => (t('patron.library_group_patron', :library_group_name => @library_group.display_name.localize) + " (RSS)")) %>
9
- <%= auto_discovery_link_tag(:atom, url_for(params.merge(:format => 'atom', :page => nil, :commit => nil, :only_path => true)), :title => (t('patron.library_group_patron', :library_group_name => @library_group.display_name.localize) + " (Atom)")) %>
8
+ <%= auto_discovery_link_tag(:rss, url_for(params.merge(:format => 'rss', :page => nil, :commit => nil, :only_path => true)), :title => (t('agent.library_group_agent', :library_group_name => @library_group.display_name.localize) + " (RSS)")) %>
9
+ <%= auto_discovery_link_tag(:atom, url_for(params.merge(:format => 'atom', :page => nil, :commit => nil, :only_path => true)), :title => (t('agent.library_group_agent', :library_group_name => @library_group.display_name.localize) + " (Atom)")) %>
10
10
  <%- end -%>
11
11
  </head>
12
12
  <body>
@@ -1,5 +1,5 @@
1
1
  <div class="search_form">
2
- <%= form_for :manifestations, :url => contributor_manifestations_path(@index_patron[:contributor]), :html => {:method => 'get'} do -%>
2
+ <%= form_for :manifestations, :url => contributor_manifestations_path(@index_agent[:contributor]), :html => {:method => 'get'} do -%>
3
3
  <p>
4
4
  <%= label_tag :search_form_top, t('page.search_term') -%>:
5
5
  <%= search_field_tag 'query', h(@query), {:id => 'search_form_top', :class => 'search_form', :placeholder => t('page.search_term')} -%>
@@ -1,5 +1,5 @@
1
1
  <div class="search_form">
2
- <%= form_for :manifestations, :url => creator_manifestations_path(@index_patron[:creator]), :html => {:method => 'get'} do -%>
2
+ <%= form_for :manifestations, :url => creator_manifestations_path(@index_agent[:creator]), :html => {:method => 'get'} do -%>
3
3
  <p>
4
4
  <%= label_tag :search_form_top, t('page.search_term') -%>:
5
5
  <%= search_field_tag 'query', h(@query), {:id => 'search_form_top', :class => 'search_form', :placeholder => t('page.search_term')} -%>
@@ -1,5 +1,5 @@
1
1
  <div class="search_form">
2
- <%= form_for :manifestations, :url => publisher_manifestations_path(@index_patron[:publisher]), :html => {:method => 'get'} do -%>
2
+ <%= form_for :manifestations, :url => publisher_manifestations_path(@index_agent[:publisher]), :html => {:method => 'get'} do -%>
3
3
  <p>
4
4
  <%= label_tag :search_form_top, t('page.search_term') -%>:
5
5
  <%= search_field_tag 'query', h(@query), {:id => 'search_form_top', :class => 'search_form', :placeholder => t('page.search_term')} -%>
@@ -6,9 +6,9 @@
6
6
  <%= link_to manifestation.original_title, manifestation -%>
7
7
  <%= form_icon(manifestation.carrier_type) -%>
8
8
  <%= link_to image_tag('icons/world_go.png', :size => '16x16', :alt => ('Web')), manifestation.access_address if manifestation.access_address? -%>
9
- <%= patrons_list(manifestation.creators.readable_by(current_user)) -%>
10
- <%= patrons_list(manifestation.contributors.readable_by(current_user)) -%>
11
- <%= patrons_list(manifestation.publishers.readable_by(current_user)) -%>
9
+ <%= agents_list(manifestation.creators.readable_by(current_user)) -%>
10
+ <%= agents_list(manifestation.contributors.readable_by(current_user)) -%>
11
+ <%= agents_list(manifestation.publishers.readable_by(current_user)) -%>
12
12
  <%- if manifestation.pub_date? -%>
13
13
  (<%= manifestation.pub_date -%>)
14
14
  <%- end -%>
@@ -20,9 +20,9 @@
20
20
  <%= link_to manifestation.original_title, manifestation -%>
21
21
  <%= form_icon(manifestation.carrier_type) -%>
22
22
  <%= link_to image_tag('icons/world_go.png', :size => '16x16', :alt => ('Web')), manifestation.access_address if manifestation.access_address? -%>
23
- <%= patrons_list(manifestation.creators.readable_by(current_user)) -%>
24
- <%= patrons_list(manifestation.contributors.readable_by(current_user)) -%>
25
- <%= patrons_list(manifestation.publishers.readable_by(current_user)) -%>
23
+ <%= agents_list(manifestation.creators.readable_by(current_user)) -%>
24
+ <%= agents_list(manifestation.contributors.readable_by(current_user)) -%>
25
+ <%= agents_list(manifestation.publishers.readable_by(current_user)) -%>
26
26
  <%- if manifestation.pub_date? -%>
27
27
  (<%= manifestation.pub_date -%>)
28
28
  <%- end -%>
@@ -5,7 +5,7 @@
5
5
  xml.title manifestation.title_alternative
6
6
  }
7
7
  manifestation.creators.readable_by(current_user).each do |creator|
8
- case creator.patron_type.name
8
+ case creator.agent_type.name
9
9
  when "Person"
10
10
  xml.name('type' => 'personal'){
11
11
  xml.namePart creator.full_name
@@ -31,7 +31,7 @@
31
31
  end
32
32
  end
33
33
  manifestation.contributors.readable_by(current_user).each do |contributor|
34
- case contributor.patron_type.name
34
+ case contributor.agent_type.name
35
35
  when "Person"
36
36
  xml.name('type' => 'personal'){
37
37
  xml.namePart contributor.full_name
@@ -49,8 +49,8 @@
49
49
  end
50
50
  xml.typeOfResource manifestation.carrier_type.mods_type
51
51
  xml.originInfo{
52
- manifestation.publishers.readable_by(current_user).each do |patron|
53
- xml.publisher patron.full_name
52
+ manifestation.publishers.readable_by(current_user).each do |agent|
53
+ xml.publisher agent.full_name
54
54
  end
55
55
  xml.dateIssued manifestation.date_of_publication
56
56
  xml.frequency manifestation.frequency.name
@@ -5,7 +5,7 @@
5
5
  xml.title manifestation.title_alternative
6
6
  }
7
7
  manifestation.creators.readable_by(current_user).each do |creator|
8
- case creator.patron_type.name
8
+ case creator.agent_type.name
9
9
  when "Person"
10
10
  xml.name('type' => 'personal'){
11
11
  xml.namePart creator.full_name
@@ -31,7 +31,7 @@
31
31
  end
32
32
  end
33
33
  manifestation.contributors.readable_by(current_user).each do |contributor|
34
- case contributor.patron_type.name
34
+ case contributor.agent_type.name
35
35
  when "Person"
36
36
  xml.name('type' => 'personal'){
37
37
  xml.namePart contributor.full_name
@@ -49,8 +49,8 @@
49
49
  end
50
50
  xml.typeOfResource manifestation.carrier_type.mods_type
51
51
  xml.originInfo{
52
- manifestation.publishers.readable_by(current_user).each do |patron|
53
- xml.publisher patron.full_name
52
+ manifestation.publishers.readable_by(current_user).each do |agent|
53
+ xml.publisher agent.full_name
54
54
  end
55
55
  xml.dateIssued manifestation.date_of_publication
56
56
  xml.frequency manifestation.frequency.name
@@ -1,17 +1,17 @@
1
1
  <%- if params[:mode] == 'show_all_creators' -%>
2
- <%= patrons_list(manifestation.creators.readable_by(current_user)) %>
2
+ <%= agents_list(manifestation.creators.readable_by(current_user)) %>
3
3
  <%- if manifestation.creators.readable_by(current_user).size > 5 -%>
4
4
  (<a href="#" onclick="$.ajax({data:'authenticity_token=' + encodeURIComponent('<%= form_authenticity_token %>'), success:function(request){$('#creator_list_<%= manifestation.id %>').html(request);}, type:'get', url:'<%= manifestation_path(manifestation, :index_num => manifestation.id, :mode => 'show_creators') %>'}); return false;"><%= t('page.hide') %></a>)
5
5
  <%- end -%>
6
6
  <%- else -%>
7
- <%= patrons_list(manifestation.creators.readable_by(current_user)[0..2]) %>
7
+ <%= agents_list(manifestation.creators.readable_by(current_user)[0..2]) %>
8
8
  <%- if manifestation.creators.readable_by(current_user).size > 5 -%>
9
9
  (<a href="#" onclick="$.ajax({data:'authenticity_token=' + encodeURIComponent('<%= form_authenticity_token %>'), success:function(request){$('#creator_list_<%= manifestation.id %>').html(request);}, type:'get', url:'<%= manifestation_path(manifestation, :index_num => manifestation.id, :mode => 'show_all_creators') %>'}); return false;"><%= t('page.show_all') %></a>)
10
10
  <%- end -%>
11
11
  <%- end -%>
12
12
 
13
- <%= patrons_list(manifestation.contributors.readable_by(current_user)) %>
14
- <%= patrons_list(manifestation.publishers.readable_by(current_user)) %>
13
+ <%= agents_list(manifestation.contributors.readable_by(current_user)) %>
14
+ <%= agents_list(manifestation.publishers.readable_by(current_user)) %>
15
15
  <%- if manifestation.pub_date.present? -%>
16
16
  (<%= manifestation.pub_date -%>)
17
17
  <%- end -%>
@@ -1,17 +1,17 @@
1
1
  <%- if params[:mode] == 'show_all_creators' -%>
2
- <%= patrons_list(manifestation.creators.readable_by(current_user)) %>
2
+ <%= agents_list(manifestation.creators.readable_by(current_user)) %>
3
3
  <%- if manifestation.creators.readable_by(current_user).size > 5 -%>
4
4
  (<a href="#" onclick="$.ajax({data:'authenticity_token=' + encodeURIComponent('<%= form_authenticity_token %>'), success:function(request){$('#creator_list_<%= manifestation.id %>').html(request);}, type:'get', url:'<%= manifestation_path(manifestation, :index_num => manifestation.id, :mode => 'show_creators') %>'}); return false;"><%= t('page.hide') %></a>)
5
5
  <%- end -%>
6
6
  <%- else -%>
7
- <%= patrons_list(manifestation.creators.readable_by(current_user)[0..2]) %>
7
+ <%= agents_list(manifestation.creators.readable_by(current_user)[0..2]) %>
8
8
  <%- if manifestation.creators.readable_by(current_user).size > 5 -%>
9
9
  (<a href="#" onclick="$.ajax({data:'authenticity_token=' + encodeURIComponent('<%= form_authenticity_token %>'), success:function(request){$('#creator_list_<%= manifestation.id %>').html(request);}, type:'get', url:'<%= manifestation_path(manifestation, :index_num => manifestation.id, :mode => 'show_all_creators') %>'}); return false;"><%= t('page.show_all') %></a>)
10
10
  <%- end -%>
11
11
  <%- end -%>
12
12
 
13
- <%= patrons_list(manifestation.contributors.readable_by(current_user)) %>
14
- <%= patrons_list(manifestation.publishers.readable_by(current_user)) %>
13
+ <%= agents_list(manifestation.contributors.readable_by(current_user)) %>
14
+ <%= agents_list(manifestation.publishers.readable_by(current_user)) %>
15
15
  <%- if manifestation.pub_date.present? -%>
16
16
  (<%= manifestation.pub_date -%>)
17
17
  <%- end -%>
@@ -7,13 +7,13 @@
7
7
  <p>
8
8
  <%= manifestation.statement_of_responsibility %><br />
9
9
  <%- unless manifestation.creators.readable_by(current_user).empty? -%>
10
- <%= t('patron.creator') -%>: <%= patrons_list(manifestation.creators.readable_by(current_user), :itemprop => 'author') -%>
10
+ <%= t('agent.creator') -%>: <%= agents_list(manifestation.creators.readable_by(current_user), :itemprop => 'author') -%>
11
11
  <%- end -%>
12
12
  <%- unless manifestation.contributors.readable_by(current_user).empty? -%>
13
- <%= t('patron.contributor') -%>: <%= patrons_list(manifestation.contributors.readable_by(current_user), :itemprop => 'editor') -%>
13
+ <%= t('agent.contributor') -%>: <%= agents_list(manifestation.contributors.readable_by(current_user), :itemprop => 'editor') -%>
14
14
  <%- end -%>
15
15
  <%- unless manifestation.publishers.readable_by(current_user).empty? -%>
16
- <%= t('patron.publisher') -%>: <%= patrons_list(manifestation.publishers.readable_by(current_user), :itemprop => 'publisher') -%>
16
+ <%= t('agent.publisher') -%>: <%= agents_list(manifestation.publishers.readable_by(current_user), :itemprop => 'publisher') -%>
17
17
  <% end %>
18
18
  <%- if manifestation.date_of_publication? -%>
19
19
  <meta itemprop="publishDate" content="<%= manifestation.date_of_publication.iso8601 %>" />
@@ -7,13 +7,13 @@
7
7
  <p>
8
8
  <%= manifestation.statement_of_responsibility %><br />
9
9
  <%- unless manifestation.creators.readable_by(current_user).empty? -%>
10
- <%= t('patron.creator') -%>: <%= patrons_list(manifestation.creators.readable_by(current_user), :itemprop => 'author') -%>
10
+ <%= t('agent.creator') -%>: <%= agents_list(manifestation.creators.readable_by(current_user), :itemprop => 'author') -%>
11
11
  <%- end -%>
12
12
  <%- unless manifestation.contributors.readable_by(current_user).empty? -%>
13
- <%= t('patron.contributor') -%>: <%= patrons_list(manifestation.contributors.readable_by(current_user), :itemprop => 'editor') -%>
13
+ <%= t('agent.contributor') -%>: <%= agents_list(manifestation.contributors.readable_by(current_user), :itemprop => 'editor') -%>
14
14
  <%- end -%>
15
15
  <%- unless manifestation.publishers.readable_by(current_user).empty? -%>
16
- <%= t('patron.publisher') -%>: <%= patrons_list(manifestation.publishers.readable_by(current_user), :itemprop => 'publisher') -%>
16
+ <%= t('agent.publisher') -%>: <%= agents_list(manifestation.publishers.readable_by(current_user), :itemprop => 'publisher') -%>
17
17
  <% end %>
18
18
  <%- if manifestation.date_of_publication? -%>
19
19
  <meta itemprop="publishDate" content="<%= manifestation.date_of_publication.iso8601 %>" />
@@ -12,8 +12,8 @@
12
12
  <% if can? :delete, @manifestation %>
13
13
  <li><%= link_to t('page.destroy'), @manifestation, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%></li>
14
14
  <% end %>
15
- <%- case when @patron -%>
16
- <li><%= link_to t('page.back'), publisher_manifestations_path(@patron) -%></li>
15
+ <%- case when @agent -%>
16
+ <li><%= link_to t('page.back'), publisher_manifestations_path(@agent) -%></li>
17
17
  <%- else -%>
18
18
  <li><%= link_to t('page.back'), manifestations_path -%></li>
19
19
  <%- end -%>
@@ -6,9 +6,9 @@ atom_feed(:url => manifestations_url(:format => :atom)) do |feed|
6
6
  feed.entry(manifestation) do |entry|
7
7
  entry.title(manifestation.original_title)
8
8
 
9
- manifestation.creators.readable_by(current_user).each do |patron|
9
+ manifestation.creators.readable_by(current_user).each do |agent|
10
10
  entry.author do |author|
11
- author.name(patron.full_name)
11
+ author.name(agent.full_name)
12
12
  end
13
13
  end
14
14
  end
@@ -4,11 +4,11 @@
4
4
  <%= render 'manifestations/title', :manifestation => @manifestation if @manifestation -%>
5
5
 
6
6
  <% case %>
7
- <% when @index_patron[:creator] %>
7
+ <% when @index_agent[:creator] %>
8
8
  <%= render 'index_form_creator' %>
9
- <% when @index_patron[:contributor] %>
9
+ <% when @index_agent[:contributor] %>
10
10
  <%= render 'index_form_contributor' %>
11
- <% when @index_patron[:publisher] %>
11
+ <% when @index_agent[:publisher] %>
12
12
  <%= render 'index_form_publisher' %>
13
13
  <% when @manifestation %>
14
14
  <%= render 'index_form_manifestation' %>
@@ -11,9 +11,9 @@ atom_feed(:url => manifestations_url(:format => :atom),
11
11
  entry.link :rel => "http://opds-spec.org/acquisition/borrow", :href => manifestation_url(manifestation), :type => 'text/html'
12
12
  entry.title(manifestation.original_title)
13
13
 
14
- manifestation.creators.readable_by(current_user).each do |patron|
14
+ manifestation.creators.readable_by(current_user).each do |agent|
15
15
  entry.author do |author|
16
- author.name(patron.full_name)
16
+ author.name(agent.full_name)
17
17
  end
18
18
  end
19
19
  end
@@ -71,14 +71,14 @@ def get_record(manifestation)
71
71
  'xsi:schemaLocation' => "info:srw/schema/1/dc-v1.1 http://www.loc.gov/standards/sru/dc-schema.xsd" do
72
72
  cache([:manifestation => manifestation.id, :fragment => 'index_sru', :role => current_user_role_name, :locale => @locale]) do
73
73
  xml.tag! 'dc:title', manifestation.original_title
74
- manifestation.creators.readable_by(current_user).each do |patron|
75
- xml.tag! 'dc:creator', patron.full_name
74
+ manifestation.creators.readable_by(current_user).each do |agent|
75
+ xml.tag! 'dc:creator', agent.full_name
76
76
  end
77
- manifestation.contributors.each do |patron|
78
- xml.tag! 'dc:contributor', patron.full_name
77
+ manifestation.contributors.each do |agent|
78
+ xml.tag! 'dc:contributor', agent.full_name
79
79
  end
80
- manifestation.publishers.each do |patron|
81
- xml.tag! 'dc:publisher', patron.full_name
80
+ manifestation.publishers.each do |agent|
81
+ xml.tag! 'dc:publisher', agent.full_name
82
82
  end
83
83
  if defined?(EnjuSubject)
84
84
  manifestation.subjects.each do |subject|
@@ -7,8 +7,8 @@
7
7
 
8
8
  <div id="submenu" class="ui-corner-all">
9
9
  <ul>
10
- <%- if @patron -%>
11
- <li><%= link_to t('page.back'), publisher_manifestations_path(@patron) -%></li>
10
+ <%- if @agent -%>
11
+ <li><%= link_to t('page.back'), publisher_manifestations_path(@agent) -%></li>
12
12
  <%- else -%>
13
13
  <li><%= link_to t('page.back'), manifestations_path -%></li>
14
14
  <%- end -%>
@@ -1,4 +1,4 @@
1
- <%= @user.patron.full_name -%> :
1
+ <%= @user.full_name -%> :
2
2
 
3
3
  Title: <%= @manifestation.original_title %>
4
4
  Creator(s): <%= @manifestation.creators.readable_by(@user).collect(&:full_name).join("/") %>
@@ -1,4 +1,4 @@
1
- <%= @user.patron.full_name -%> さん
1
+ <%= @user.full_name -%> さん
2
2
 
3
3
  資料名: <%= @manifestation.original_title %>
4
4
  著者: <%= @manifestation.creators.readable_by(@user).collect(&:full_name).join("/") %>
@@ -3,7 +3,7 @@
3
3
 
4
4
  <div class="field">
5
5
  <%= f.label t('activerecord.models.library') -%><br />
6
- <%= f.text_field :patron_id -%>
6
+ <%= f.text_field :agent_id -%>
7
7
  </div>
8
8
 
9
9
  <div class="field">
@@ -4,7 +4,7 @@
4
4
 
5
5
  <table class="table table-striped index">
6
6
  <tr>
7
- <th><%= t('activerecord.models.patron') -%></th>
7
+ <th><%= t('activerecord.models.agent') -%></th>
8
8
  <th><%= t('activerecord.models.item') -%></th>
9
9
  <th><%= t('activerecord.models.manifestation') -%></th>
10
10
  <th></th>
@@ -12,7 +12,7 @@
12
12
 
13
13
  <%- @owns.each do |own| -%>
14
14
  <tr class="line<%= cycle("0", "1") -%>">
15
- <td><%= link_to own.patron.full_name, own.patron -%></td>
15
+ <td><%= link_to own.agent.full_name, own.agent -%></td>
16
16
  <td>
17
17
  <%- if own.item.item_identifier.blank? -%>
18
18
  (<%= link_to 'no number', own.item -%>)
@@ -4,8 +4,8 @@
4
4
  <p id="notice"><%= notice %></p>
5
5
 
6
6
  <p>
7
- <strong><%= t('activerecord.models.patron') -%>:</strong>
8
- <%= link_to @own.patron.full_name, @own.patron -%>
7
+ <strong><%= t('activerecord.models.agent') -%>:</strong>
8
+ <%= link_to @own.agent.full_name, @own.agent -%>
9
9
  </p>
10
10
 
11
11
  <p>
@@ -19,7 +19,7 @@
19
19
 
20
20
  <div id="submenu" class="ui-corner-all">
21
21
  <ul>
22
- <li><%= link_to t('page.back_to', :model => t('activerecord.models.patron')), item_patrons_path(@own.item) -%></li>
23
- <li><%= link_to t('page.back_to', :model => t('activerecord.models.item')), patron_items_path(@own.patron) -%></li>
22
+ <li><%= link_to t('page.back_to', :model => t('activerecord.models.agent')), item_agents_path(@own.item) -%></li>
23
+ <li><%= link_to t('page.back_to', :model => t('activerecord.models.item')), agent_items_path(@own.agent) -%></li>
24
24
  </ul>
25
25
  </div>
@@ -46,7 +46,7 @@
46
46
  <% if defined?(EnjuEvent) %>
47
47
  <li><%= link_to t('page.listing', :model => t('activerecord.models.event')), events_path -%></li>
48
48
  <% end %>
49
- <li><%= link_to t('page.listing', :model => t('activerecord.models.patron')), patrons_path -%></li>
49
+ <li><%= link_to t('page.listing', :model => t('activerecord.models.agent')), agents_path -%></li>
50
50
  </ul>
51
51
  <%- end -%>
52
52
  </div>
@@ -3,7 +3,7 @@
3
3
  <div id="content_list">
4
4
 
5
5
  <h2 class="resource_title">
6
- [P] <%= link_to patron.full_name, patron -%>
6
+ [P] <%= link_to agent.full_name, agent -%>
7
7
  </h2>
8
8
 
9
9
  <table class="table table-striped index">
@@ -48,7 +48,7 @@
48
48
  <div id="submenu" class="ui-corner-all">
49
49
  <%- if can? :create, PictureFile -%>
50
50
  <ul>
51
- <li><%= link_to t('page.new', :model => t('activerecord.models.picture_file')), new_patron_picture_file_path(patron) -%></li>
51
+ <li><%= link_to t('page.new', :model => t('activerecord.models.picture_file')), new_agent_picture_file_path(agent) -%></li>
52
52
  <li><%= link_to t('picture_file.all_picture'), picture_files_path -%></li>
53
53
  </ul>
54
54
  <%- end -%>
@@ -2,8 +2,8 @@
2
2
  <%= render 'index_shelf', :shelf => @attachable -%>
3
3
  <%- when 'Manifestation' -%>
4
4
  <%= render 'index_manifestation', :manifestation => @attachable -%>
5
- <%- when 'Patron' -%>
6
- <%= render 'index_patron', :patron => @attachable -%>
5
+ <%- when 'Agent' -%>
6
+ <%= render 'index_agent', :agent => @attachable -%>
7
7
  <%- when 'Event' -%>
8
8
  <%= render 'index_event', :event => @attachable -%>
9
9
  <%- else -%>
@@ -55,8 +55,8 @@
55
55
  <li><%= link_to t('page.listing', :model => t('activerecord.models.picture_file')), shelf_picture_files_path(@picture_file.picture_attachable) -%></li>
56
56
  <%- when @picture_file.picture_attachable.is_a?(Manifestation) -%>
57
57
  <li><%= link_to t('page.listing', :model => t('activerecord.models.picture_file')), manifestation_picture_files_path(@picture_file.picture_attachable) -%></li>
58
- <%- when @picture_file.picture_attachable.is_a?(Patron) -%>
59
- <li><%= link_to t('page.listing', :model => t('activerecord.models.picture_file')), patron_picture_files_path(@picture_file.picture_attachable) -%></li>
58
+ <%- when @picture_file.picture_attachable.is_a?(Agent) -%>
59
+ <li><%= link_to t('page.listing', :model => t('activerecord.models.picture_file')), agent_picture_files_path(@picture_file.picture_attachable) -%></li>
60
60
  <%- else -%>
61
61
  <li><%= link_to t('page.listing', :model => t('activerecord.models.picture_file')), picture_files_path -%></li>
62
62
  <%- end -%>