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.
- checksums.yaml +4 -4
- data/app/controllers/creates_controller.rb +11 -11
- data/app/controllers/items_controller.rb +3 -3
- data/app/controllers/manifestations_controller.rb +14 -14
- data/app/controllers/owns_controller.rb +10 -10
- data/app/controllers/patron_import_files_controller.rb +34 -34
- data/app/controllers/patron_import_results_controller.rb +5 -5
- data/app/controllers/patron_relationship_types_controller.rb +3 -3
- data/app/controllers/patron_relationships_controller.rb +7 -7
- data/app/controllers/patron_types_controller.rb +3 -3
- data/app/controllers/patrons_controller.rb +61 -61
- data/app/controllers/picture_files_controller.rb +4 -4
- data/app/controllers/produces_controller.rb +11 -11
- data/app/controllers/realizes_controller.rb +11 -11
- data/app/helpers/{patrons_helper.rb → agents_helper.rb} +5 -5
- data/app/models/{patron.rb → agent.rb} +36 -36
- data/app/models/{patron_import_file.rb → agent_import_file.rb} +77 -77
- data/app/models/agent_import_result.rb +26 -0
- data/app/models/{patron_relationship.rb → agent_relationship.rb} +7 -7
- data/app/models/{patron_relationship_type.rb → agent_relationship_type.rb} +4 -4
- data/app/models/{patron_sweeper.rb → agent_sweeper.rb} +6 -6
- data/app/models/{patron_type.rb → agent_type.rb} +4 -4
- data/app/models/country.rb +1 -1
- data/app/models/create.rb +7 -7
- data/app/models/donate.rb +5 -5
- data/app/models/enju_biblio/ability.rb +24 -24
- data/app/models/item.rb +5 -5
- data/app/models/item_sweeper.rb +2 -2
- data/app/models/manifestation.rb +24 -20
- data/app/models/own.rb +7 -7
- data/app/models/page_sweeper.rb +4 -4
- data/app/models/picture_file.rb +1 -1
- data/app/models/produce.rb +7 -7
- data/app/models/realize.rb +7 -7
- data/app/models/resource_import_file.rb +19 -19
- data/app/views/{patron_import_files → agent_import_files}/edit.html.erb +6 -6
- data/app/views/agent_import_files/index.html.erb +40 -0
- data/app/views/{patron_import_files → agent_import_files}/new.html.erb +3 -3
- data/app/views/agent_import_files/show.html.erb +69 -0
- data/app/views/agent_import_results/index.csv.erb +3 -0
- data/app/views/agent_import_results/index.html.erb +52 -0
- data/app/views/agent_import_results/show.html.erb +38 -0
- data/app/views/{patron_relationship_types → agent_relationship_types}/_form.html.erb +1 -1
- data/app/views/{patron_relationship_types → agent_relationship_types}/edit.html.erb +3 -3
- data/app/views/agent_relationship_types/index.html.erb +43 -0
- data/app/views/{patron_relationship_types → agent_relationship_types}/new.html.erb +2 -2
- data/app/views/agent_relationship_types/show.html.erb +29 -0
- data/app/views/{patron_relationships → agent_relationships}/_form.html.erb +7 -7
- data/app/views/{patron_relationships → agent_relationships}/edit.html.erb +3 -3
- data/app/views/agent_relationships/index.html.erb +34 -0
- data/app/views/{patron_relationships → agent_relationships}/new.html.erb +2 -2
- data/app/views/agent_relationships/show.html.erb +24 -0
- data/app/views/{patron_types → agent_types}/_form.html.erb +1 -1
- data/app/views/{patron_types → agent_types}/edit.html.erb +3 -3
- data/app/views/agent_types/index.html.erb +43 -0
- data/app/views/{patron_types → agent_types}/new.html.erb +2 -2
- data/app/views/agent_types/show.html.erb +29 -0
- data/app/views/{patrons → agents}/_expression_list.html.erb +3 -3
- data/app/views/{patrons → agents}/_form.html.erb +9 -9
- data/app/views/{patrons → agents}/_form_family_name_first.html.erb +0 -0
- data/app/views/{patrons → agents}/_form_family_name_last.html.erb +0 -0
- data/app/views/{patrons → agents}/_history_list.html.erb +2 -2
- data/app/views/{patrons → agents}/_index.html.erb +9 -9
- data/app/views/{patrons → agents}/_index_expression.html.erb +15 -15
- data/app/views/{patrons → agents}/_index_manifestation.html.erb +16 -16
- data/app/views/agents/_index_patron.html.erb +71 -0
- data/app/views/agents/_index_patron_merge_list.html.erb +53 -0
- data/app/views/{patrons → agents}/_index_work.html.erb +17 -17
- data/app/views/{patrons → agents}/_manifestation_list.html.erb +3 -3
- data/app/views/agents/_patron.html.erb +13 -0
- data/app/views/agents/_patron_list.html.erb +18 -0
- data/app/views/{patrons → agents}/_work_list.html.erb +1 -1
- data/app/views/agents/edit.html.erb +16 -0
- data/app/views/agents/index.atom.builder +10 -0
- data/app/views/{patrons → agents}/index.html.erb +4 -4
- data/app/views/{patrons → agents}/index.mobile.erb +5 -5
- data/app/views/{patrons → agents}/index.rss.builder +11 -11
- data/app/views/{patrons → agents}/new.html.erb +2 -2
- data/app/views/agents/show.html.erb +152 -0
- data/app/views/{patrons → agents}/show.js.erb +0 -0
- data/app/views/agents/show.mobile.erb +69 -0
- data/app/views/creates/_form.html.erb +5 -5
- data/app/views/creates/_index.html.erb +2 -2
- data/app/views/creates/_index_patron.html.erb +6 -6
- data/app/views/creates/_index_work.html.erb +2 -2
- data/app/views/creates/index.html.erb +2 -2
- data/app/views/creates/new.html.erb +3 -3
- data/app/views/creates/show.html.erb +4 -4
- data/app/views/donates/edit.html.erb +2 -2
- data/app/views/donates/index.html.erb +2 -2
- data/app/views/donates/new.html.erb +2 -2
- data/app/views/donates/show.html.erb +2 -2
- data/app/views/items/index.html.erb +1 -1
- data/app/views/languages/index.html.erb +1 -1
- data/app/views/layouts/patrons.html.erb +2 -2
- data/app/views/manifestations/_index_form_contributor.html.erb +1 -1
- data/app/views/manifestations/_index_form_creator.html.erb +1 -1
- data/app/views/manifestations/_index_form_publisher.html.erb +1 -1
- data/app/views/manifestations/_manifestation_list.html.erb +6 -6
- data/app/views/manifestations/_show.mods.builder +4 -4
- data/app/views/manifestations/_show.rdf.builder +4 -4
- data/app/views/manifestations/_show_creators.html.erb +4 -4
- data/app/views/manifestations/_show_creators.mobile.erb +4 -4
- data/app/views/manifestations/_title.html.erb +3 -3
- data/app/views/manifestations/_title.mobile.erb +3 -3
- data/app/views/manifestations/edit.html.erb +2 -2
- data/app/views/manifestations/index.atom.builder +2 -2
- data/app/views/manifestations/index.html.erb +3 -3
- data/app/views/manifestations/index.opds.builder +2 -2
- data/app/views/manifestations/index.sru.builder +6 -6
- data/app/views/manifestations/new.html.erb +2 -2
- data/app/views/notifier/manifestation_info.en.text.erb +1 -1
- data/app/views/notifier/manifestation_info.ja.text.erb +1 -1
- data/app/views/owns/_form.html.erb +1 -1
- data/app/views/owns/index.html.erb +2 -2
- data/app/views/owns/show.html.erb +4 -4
- data/app/views/picture_files/_index.html.erb +1 -1
- data/app/views/picture_files/_index_patron.html.erb +2 -2
- data/app/views/picture_files/index.html.erb +2 -2
- data/app/views/picture_files/show.html.erb +2 -2
- data/app/views/produces/_form.html.erb +5 -5
- data/app/views/produces/_index.html.erb +2 -2
- data/app/views/produces/_index_manifestation.html.erb +3 -3
- data/app/views/produces/_index_patron.html.erb +3 -3
- data/app/views/produces/index.html.erb +2 -2
- data/app/views/produces/new.html.erb +3 -3
- data/app/views/produces/show.html.erb +4 -4
- data/app/views/realizes/_form.html.erb +5 -5
- data/app/views/realizes/_index.html.erb +2 -2
- data/app/views/realizes/_index_expression.html.erb +3 -3
- data/app/views/realizes/_index_patron.html.erb +3 -3
- data/app/views/realizes/index.html.erb +2 -2
- data/app/views/realizes/new.html.erb +3 -3
- data/app/views/realizes/show.html.erb +4 -4
- data/app/views/resource_import_results/show.html.erb +1 -1
- data/config/routes.rb +16 -16
- data/db/migrate/{001_create_patrons.rb → 001_create_agents.rb} +8 -8
- data/db/migrate/012_create_owns.rb +2 -2
- data/db/migrate/015_create_creates.rb +2 -2
- data/db/migrate/047_create_produces.rb +2 -2
- data/db/migrate/125_create_donates.rb +2 -2
- data/db/migrate/20080830154109_create_realizes.rb +2 -2
- data/db/migrate/{20080905191442_create_patron_types.rb → 20080905191442_create_agent_types.rb} +2 -2
- data/db/migrate/20081028083142_create_agent_import_files.rb +22 -0
- data/db/migrate/{20090812151902_create_patron_relationship_types.rb → 20090812151902_create_agent_relationship_types.rb} +2 -2
- data/db/migrate/20091012101112_add_dcndl_schema.rb +2 -2
- data/db/migrate/20100606073747_create_agent_relationships.rb +13 -0
- data/db/migrate/20100814091104_add_position_to_agent_relationship.rb +11 -0
- data/db/migrate/20100925074559_create_agent_import_results.rb +12 -0
- data/db/migrate/20110301121550_add_birth_date_and_death_date_to_agent.rb +11 -0
- data/db/migrate/20120413161403_add_fingerprint_to_agent_import_file.rb +5 -0
- data/db/migrate/20120413170720_add_error_message_to_agent_import_file.rb +5 -0
- data/db/migrate/20120511072422_add_agent_identifier_to_agent.rb +6 -0
- data/db/migrate/20120602141129_add_edit_mode_to_agent_import_file.rb +5 -0
- data/lib/enju_biblio/biblio_helper.rb +8 -8
- data/lib/enju_biblio/version.rb +1 -1
- data/lib/enju_biblio.rb +3 -3
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/patron_relationship_types.yml +3 -3
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/patron_types.yml +2 -2
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/patrons.yml +4 -4
- data/spec/controllers/agent_import_files_controller_spec.rb +321 -0
- data/spec/controllers/{patron_import_results_controller_spec.rb → agent_import_results_controller_spec.rb} +17 -17
- data/spec/controllers/agent_relationship_types_controller_spec.rb +445 -0
- data/spec/controllers/agent_relationships_controller_spec.rb +446 -0
- data/spec/controllers/agent_types_controller_spec.rb +447 -0
- data/spec/controllers/agents_controller_spec.rb +644 -0
- data/spec/controllers/countries_controller_spec.rb +1 -1
- data/spec/controllers/items_controller_spec.rb +4 -4
- data/spec/controllers/manifestation_relationship_types_controller_spec.rb +1 -1
- data/spec/controllers/manifestations_controller_spec.rb +4 -4
- data/spec/controllers/owns_controller_spec.rb +2 -2
- data/spec/controllers/resource_import_files_controller_spec.rb +1 -1
- data/spec/dummy/app/helpers/application_helper.rb +5 -222
- data/spec/dummy/app/models/ability.rb +31 -31
- data/spec/dummy/app/models/{local_patron.rb → local_agent.rb} +1 -1
- data/spec/dummy/app/models/user.rb +3 -3
- data/spec/dummy/config/application.rb +0 -1
- data/spec/dummy/config/environments/test.rb +1 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/035_create_reserves.rb +1 -1
- data/spec/dummy/db/migrate/20090519203307_create_participates.rb +2 -2
- data/spec/dummy/db/schema.rb +132 -132
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/private/system/agent_import_files/agent_imports/000/000/004/original/agent_delete_file.tsv +8 -0
- data/spec/dummy/private/system/agent_import_files/agent_imports/000/000/004/original/agent_import_file_sample1.tsv +5 -0
- data/spec/dummy/private/system/agent_import_files/agent_imports/000/000/004/original/agent_import_file_sample2.tsv +8 -0
- data/spec/dummy/private/system/agent_import_files/agent_imports/000/000/004/original/agent_import_file_sample3.tsv +5 -0
- data/spec/dummy/private/system/agent_import_files/agent_imports/000/000/004/original/agent_update_file.tsv +3 -0
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/segments_q76 +0 -0
- data/spec/factories/{patron.rb → agent.rb} +3 -3
- data/spec/factories/create.rb +1 -1
- data/spec/factories/donate.rb +1 -1
- data/spec/factories/own.rb +1 -1
- data/spec/factories/patron_relationship.rb +3 -3
- data/spec/factories/patron_relationship_type.rb +2 -2
- data/spec/factories/patron_type.rb +2 -2
- data/spec/factories/produce.rb +1 -1
- data/spec/factories/realize.rb +1 -1
- data/spec/fixtures/{patron_import_files.yml → agent_import_files.yml} +18 -18
- data/spec/fixtures/{patron_import_results.yml → agent_import_results.yml} +7 -7
- data/spec/fixtures/{patron_relationship_types.yml → agent_relationship_types.yml} +4 -4
- data/spec/fixtures/{patron_relationships.yml → agent_relationships.yml} +4 -4
- data/spec/fixtures/{patron_types.yml → agent_types.yml} +4 -4
- data/spec/fixtures/{patrons.yml → agents.yml} +47 -47
- data/spec/fixtures/creates.yml +8 -8
- data/spec/fixtures/donates.yml +4 -4
- data/spec/fixtures/owns.yml +3 -3
- data/spec/fixtures/picture_files.yml +1 -1
- data/spec/fixtures/produces.yml +20 -20
- data/spec/fixtures/realizes.yml +11 -11
- data/spec/fixtures/reserves.yml +1 -1
- data/spec/models/agent_import_file_spec.rb +96 -0
- data/spec/models/{patron_import_result_spec.rb → agent_import_result_spec.rb} +4 -4
- data/spec/models/{patron_relationship_spec.rb → agent_relationship_spec.rb} +3 -3
- data/spec/models/{patron_relationship_type_spec.rb → agent_relationship_type_spec.rb} +2 -2
- data/spec/models/{patron_spec.rb → agent_spec.rb} +16 -16
- data/spec/models/{patron_type_spec.rb → agent_type_spec.rb} +2 -2
- data/spec/models/create_spec.rb +1 -1
- data/spec/models/donate_spec.rb +1 -1
- data/spec/models/manifestation_spec.rb +1 -1
- data/spec/models/own_spec.rb +1 -1
- data/spec/models/produce_spec.rb +1 -1
- data/spec/models/realize_spec.rb +1 -1
- data/spec/models/resource_import_file_spec.rb +8 -8
- data/spec/requests/agents_spec.rb +9 -0
- data/spec/routing/agent_relationship_types_routing_spec.rb +35 -0
- data/spec/routing/agent_relationships_routing_spec.rb +35 -0
- data/spec/routing/agents_routing_spec.rb +35 -0
- data/spec/views/creates/edit.html.erb_spec.rb +1 -1
- data/spec/views/creates/index.html.erb_spec.rb +2 -2
- data/spec/views/creates/new.html.erb_spec.rb +1 -1
- data/spec/views/creates/show.html.erb_spec.rb +1 -1
- data/spec/views/owns/edit.html.erb_spec.rb +1 -1
- data/spec/views/owns/index.html.erb_spec.rb +2 -2
- data/spec/views/owns/new.html.erb_spec.rb +1 -1
- data/spec/views/owns/show.html.erb_spec.rb +1 -1
- data/spec/views/produces/edit.html.erb_spec.rb +2 -2
- data/spec/views/produces/index.html.erb_spec.rb +2 -2
- data/spec/views/produces/new.html.erb_spec.rb +2 -2
- data/spec/views/produces/show.html.erb_spec.rb +1 -1
- data/spec/views/realizes/edit.html.erb_spec.rb +2 -2
- data/spec/views/realizes/index.html.erb_spec.rb +2 -2
- data/spec/views/realizes/new.html.erb_spec.rb +2 -2
- data/spec/views/realizes/show.html.erb_spec.rb +1 -1
- metadata +131 -187
- data/app/models/patron_import_result.rb +0 -26
- data/app/views/patron_import_files/index.html.erb +0 -40
- data/app/views/patron_import_files/show.html.erb +0 -69
- data/app/views/patron_import_results/index.csv.erb +0 -3
- data/app/views/patron_import_results/index.html.erb +0 -52
- data/app/views/patron_import_results/show.html.erb +0 -38
- data/app/views/patron_relationship_types/index.html.erb +0 -43
- data/app/views/patron_relationship_types/show.html.erb +0 -29
- data/app/views/patron_relationships/index.html.erb +0 -34
- data/app/views/patron_relationships/show.html.erb +0 -24
- data/app/views/patron_types/index.html.erb +0 -43
- data/app/views/patron_types/show.html.erb +0 -29
- data/app/views/patrons/_index_patron.html.erb +0 -71
- data/app/views/patrons/_index_patron_merge_list.html.erb +0 -53
- data/app/views/patrons/_patron.html.erb +0 -13
- data/app/views/patrons/_patron_list.html.erb +0 -18
- data/app/views/patrons/edit.html.erb +0 -16
- data/app/views/patrons/index.atom.builder +0 -10
- data/app/views/patrons/show.html.erb +0 -152
- data/app/views/patrons/show.mobile.erb +0 -69
- data/db/migrate/20081028083142_create_patron_import_files.rb +0 -22
- data/db/migrate/20100606073747_create_patron_relationships.rb +0 -13
- data/db/migrate/20100814091104_add_position_to_patron_relationship.rb +0 -11
- data/db/migrate/20100925074559_create_patron_import_results.rb +0 -12
- data/db/migrate/20110301121550_add_birth_date_and_death_date_to_patron.rb +0 -11
- data/db/migrate/20120413161403_add_fingerprint_to_patron_import_file.rb +0 -5
- data/db/migrate/20120413170720_add_error_message_to_patron_import_file.rb +0 -5
- data/db/migrate/20120511072422_add_patron_identifier_to_patron.rb +0 -6
- data/db/migrate/20120602141129_add_edit_mode_to_patron_import_file.rb +0 -5
- data/spec/controllers/patron_import_files_controller_spec.rb +0 -321
- data/spec/controllers/patron_relationship_types_controller_spec.rb +0 -445
- data/spec/controllers/patron_relationships_controller_spec.rb +0 -446
- data/spec/controllers/patron_types_controller_spec.rb +0 -447
- data/spec/controllers/patrons_controller_spec.rb +0 -644
- data/spec/dummy/app/mailers/notifier.rb +0 -40
- data/spec/dummy/lib/plugins/ext/event-calendar.rb +0 -38
- data/spec/dummy/lib/plugins/ext/sunspot/abstract_search.rb +0 -12
- data/spec/dummy/lib/plugins/ext/sunspot/dismax.rb +0 -41
- data/spec/dummy/lib/plugins/ext/sunspot/start_record.rb +0 -55
- data/spec/dummy/lib/plugins/ext/sunspot.rb +0 -3
- data/spec/dummy/lib/plugins/ext.rb +0 -1
- data/spec/dummy/lib/plugins.rb +0 -2
- data/spec/dummy/solr/data/test/index/_goc.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_goc.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_goc.fnm +0 -7
- data/spec/dummy/solr/data/test/index/_goc.frq +0 -0
- data/spec/dummy/solr/data/test/index/_goc.nrm +0 -1
- data/spec/dummy/solr/data/test/index/_goc.prx +0 -0
- data/spec/dummy/solr/data/test/index/_goc.tii +0 -0
- data/spec/dummy/solr/data/test/index/_goc.tis +0 -0
- data/spec/dummy/solr/data/test/index/_god.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_god.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_god.fnm +0 -7
- data/spec/dummy/solr/data/test/index/_god.frq +0 -0
- data/spec/dummy/solr/data/test/index/_god.nrm +0 -1
- data/spec/dummy/solr/data/test/index/_god.prx +0 -0
- data/spec/dummy/solr/data/test/index/_god.tii +0 -0
- data/spec/dummy/solr/data/test/index/_god.tis +0 -0
- data/spec/dummy/solr/data/test/index/_goe.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_goe.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_goe.fnm +0 -8
- data/spec/dummy/solr/data/test/index/_goe.frq +0 -0
- data/spec/dummy/solr/data/test/index/_goe.nrm +0 -1
- data/spec/dummy/solr/data/test/index/_goe.prx +0 -0
- data/spec/dummy/solr/data/test/index/_goe.tii +0 -0
- data/spec/dummy/solr/data/test/index/_goe.tis +0 -0
- data/spec/dummy/solr/data/test/index/segments_otc +0 -0
- data/spec/dummy/tmp/cache/4AD/470/country_all +0 -0
- data/spec/models/patron_import_file_spec.rb +0 -96
- data/spec/requests/patrons_spec.rb +0 -9
- data/spec/routing/patron_relationship_types_routing_spec.rb +0 -35
- data/spec/routing/patron_relationships_routing_spec.rb +0 -35
- 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.
|
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.
|
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
|
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, :
|
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, :
|
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'),
|
31
|
-
<%= link_to t('page.destroy'),
|
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')),
|
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.
|
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.
|
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>
|
@@ -7,11 +7,11 @@
|
|
7
7
|
|
8
8
|
<div id="submenu" class="ui-corner-all">
|
9
9
|
<ul>
|
10
|
-
<%- if @create.
|
11
|
-
<li><%= link_to t('page.listing', :model => t('activerecord.models.work')), creator_manifestations_path(@create.
|
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.
|
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.
|
8
|
-
<%= link_to @create.
|
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.
|
22
|
-
<li><%= link_to t('page.back_to', :model => t('activerecord.models.work')), creator_manifestations_path(@create.
|
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.
|
9
|
-
<%= f.text_field :
|
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.
|
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.
|
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.
|
9
|
-
<%= f.text_field :
|
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.
|
8
|
-
<%= link_to @donate.
|
7
|
+
<strong><%= t('activerecord.models.agent') -%>:</strong>
|
8
|
+
<%= link_to @donate.agent.full_name, @donate.agent -%>
|
9
9
|
</p>
|
10
10
|
|
11
11
|
<p>
|
@@ -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('
|
9
|
-
<%= auto_discovery_link_tag(:atom, url_for(params.merge(:format => 'atom', :page => nil, :commit => nil, :only_path => true)), :title => (t('
|
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(@
|
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(@
|
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(@
|
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
|
-
<%=
|
10
|
-
<%=
|
11
|
-
<%=
|
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
|
-
<%=
|
24
|
-
<%=
|
25
|
-
<%=
|
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.
|
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.
|
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 |
|
53
|
-
xml.publisher
|
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.
|
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.
|
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 |
|
53
|
-
xml.publisher
|
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
|
-
<%=
|
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
|
-
<%=
|
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
|
-
<%=
|
14
|
-
<%=
|
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
|
-
<%=
|
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
|
-
<%=
|
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
|
-
<%=
|
14
|
-
<%=
|
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('
|
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('
|
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('
|
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('
|
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('
|
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('
|
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 @
|
16
|
-
<li><%= link_to t('page.back'), publisher_manifestations_path(@
|
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 |
|
9
|
+
manifestation.creators.readable_by(current_user).each do |agent|
|
10
10
|
entry.author do |author|
|
11
|
-
author.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 @
|
7
|
+
<% when @index_agent[:creator] %>
|
8
8
|
<%= render 'index_form_creator' %>
|
9
|
-
<% when @
|
9
|
+
<% when @index_agent[:contributor] %>
|
10
10
|
<%= render 'index_form_contributor' %>
|
11
|
-
<% when @
|
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 |
|
14
|
+
manifestation.creators.readable_by(current_user).each do |agent|
|
15
15
|
entry.author do |author|
|
16
|
-
author.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 |
|
75
|
-
xml.tag! 'dc:creator',
|
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 |
|
78
|
-
xml.tag! 'dc:contributor',
|
77
|
+
manifestation.contributors.each do |agent|
|
78
|
+
xml.tag! 'dc:contributor', agent.full_name
|
79
79
|
end
|
80
|
-
manifestation.publishers.each do |
|
81
|
-
xml.tag! 'dc:publisher',
|
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 @
|
11
|
-
<li><%= link_to t('page.back'), publisher_manifestations_path(@
|
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 -%>
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
<table class="table table-striped index">
|
6
6
|
<tr>
|
7
|
-
<th><%= t('activerecord.models.
|
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.
|
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.
|
8
|
-
<%= link_to @own.
|
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.
|
23
|
-
<li><%= link_to t('page.back_to', :model => t('activerecord.models.item')),
|
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.
|
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
|
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')),
|
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 '
|
6
|
-
<%= render '
|
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?(
|
59
|
-
<li><%= link_to t('page.listing', :model => t('activerecord.models.picture_file')),
|
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 -%>
|