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
@@ -1,40 +0,0 @@
|
|
1
|
-
<div id="content_detail" class="ui-corner-all">
|
2
|
-
<h1 class="title"><%= t('page.listing', :model => t('activerecord.models.patron_import_file')) -%></h1>
|
3
|
-
<div id="content_list">
|
4
|
-
|
5
|
-
<table class="table table-striped index">
|
6
|
-
<tr>
|
7
|
-
<th>ID</th>
|
8
|
-
<th><%= t('activerecord.attributes.patron_import_file.patron_import_file_name') -%></th>
|
9
|
-
<th><%= t('activerecord.attributes.patron_import_file.executed_at') -%></th>
|
10
|
-
<th><%= t('activerecord.models.user') -%></th>
|
11
|
-
<th><%= t('activerecord.attributes.patron_import_file.edit_mode') -%></th>
|
12
|
-
<th><%= t('activerecord.attributes.patron_import_file.state') -%></th>
|
13
|
-
<th></th>
|
14
|
-
</tr>
|
15
|
-
|
16
|
-
<%- @patron_import_files.each do |patron_import_file| -%>
|
17
|
-
<tr class="line<%= cycle("0", "1") -%>">
|
18
|
-
<td><%= link_to patron_import_file.id, patron_import_file -%></td>
|
19
|
-
<td><%= link_to patron_import_file.patron_import_file_name, patron_import_file -%></td>
|
20
|
-
<td><%= l(patron_import_file.executed_at) if patron_import_file.executed_at -%></td>
|
21
|
-
<td><%= link_to patron_import_file.user.username, patron_import_file.user -%></td>
|
22
|
-
<td><%= patron_import_file.edit_mode -%></td>
|
23
|
-
<td><%= localized_state(patron_import_file.state) -%></td>
|
24
|
-
<td>
|
25
|
-
<%= link_to t('page.show'), patron_import_file -%>
|
26
|
-
<%= link_to t('page.destroy'), patron_import_file, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
|
27
|
-
</td>
|
28
|
-
</tr>
|
29
|
-
<%- end -%>
|
30
|
-
</table>
|
31
|
-
|
32
|
-
<%= paginate(@patron_import_files) -%>
|
33
|
-
</div>
|
34
|
-
</div>
|
35
|
-
|
36
|
-
<div id="submenu" class="ui-corner-all">
|
37
|
-
<ul>
|
38
|
-
<li><%= link_to t('page.new', :model => t('activerecord.models.patron_import_file')), new_patron_import_file_path -%></li>
|
39
|
-
</ul>
|
40
|
-
</div>
|
@@ -1,69 +0,0 @@
|
|
1
|
-
<div id="content_detail" class="ui-corner-all">
|
2
|
-
<h1 class="title"><%= t('page.showing', :model => t('activerecord.models.patron_import_file')) -%></h1>
|
3
|
-
<div id="content_list">
|
4
|
-
<p id="notice"><%= notice %></p>
|
5
|
-
|
6
|
-
<p>
|
7
|
-
<strong>Id:</strong>
|
8
|
-
<%= @patron_import_file.id -%>
|
9
|
-
</p>
|
10
|
-
|
11
|
-
<p>
|
12
|
-
<strong><%= t('activerecord.attributes.patron_import_file.patron_import_file_name') -%>:</strong>
|
13
|
-
<%= link_to @patron_import_file.patron_import_file_name, patron_import_file_path(@patron_import_file, :format => :download) -%>
|
14
|
-
</p>
|
15
|
-
|
16
|
-
<p>
|
17
|
-
<strong><%= t('activerecord.attributes.patron_import_file.patron_import_content_type') -%>:</strong>
|
18
|
-
<%= @patron_import_file.patron_import_content_type -%>
|
19
|
-
</p>
|
20
|
-
|
21
|
-
<p>
|
22
|
-
<strong><%= t('activerecord.attributes.patron_import_file.patron_import_file_size') -%>:</strong>
|
23
|
-
<%= @patron_import_file.patron_import_file_size -%>
|
24
|
-
</p>
|
25
|
-
|
26
|
-
<p>
|
27
|
-
<strong><%= t('activerecord.attributes.patron_import_file.patron_import_fingerprint') -%>:</strong>
|
28
|
-
<%= @patron_import_file.patron_import_fingerprint -%>
|
29
|
-
</p>
|
30
|
-
|
31
|
-
<p>
|
32
|
-
<strong><%= t('page.created_at') -%>:</strong>
|
33
|
-
<%= l(@patron_import_file.created_at) if @patron_import_file.created_at -%>
|
34
|
-
</p>
|
35
|
-
|
36
|
-
<p>
|
37
|
-
<strong><%= t('activerecord.attributes.patron_import_file.executed_at') -%>:</strong>
|
38
|
-
<%= l(@patron_import_file.executed_at) if @patron_import_file.executed_at -%>
|
39
|
-
</p>
|
40
|
-
|
41
|
-
<p>
|
42
|
-
<strong><%= t('activerecord.attributes.patron_import_file.edit_mode') -%>:</strong>
|
43
|
-
<%= @patron_import_file.edit_mode -%>
|
44
|
-
</p>
|
45
|
-
|
46
|
-
<p>
|
47
|
-
<strong><%= t('activerecord.attributes.manifestation_import_file.state') -%>:</strong>
|
48
|
-
<%= localized_state(@patron_import_file.state) -%>
|
49
|
-
</p>
|
50
|
-
|
51
|
-
<p>
|
52
|
-
<strong><%= t('activerecord.attributes.patron_import_file.error_message') -%>:</strong>
|
53
|
-
<%= @patron_import_file.error_message -%>
|
54
|
-
</p>
|
55
|
-
|
56
|
-
<p>
|
57
|
-
<strong><%= t('activerecord.models.user') -%>:</strong>
|
58
|
-
<%= link_to @patron_import_file.user.username, @patron_import_file.user -%>
|
59
|
-
</p>
|
60
|
-
|
61
|
-
</div>
|
62
|
-
</div>
|
63
|
-
|
64
|
-
<div id="submenu" class="ui-corner-all">
|
65
|
-
<ul>
|
66
|
-
<li><%= link_to t('activerecord.models.patron_import_result'), patron_import_file_patron_import_results_path(@patron_import_file) -%></li>
|
67
|
-
<li><%= back_to_index(flash[:page_info]) -%></li>
|
68
|
-
</ul>
|
69
|
-
</div>
|
@@ -1,52 +0,0 @@
|
|
1
|
-
<div id="content_detail" class="ui-corner-all">
|
2
|
-
<h1 class="title"><%= t('page.listing', :model => t('activerecord.models.patron_import_result')) -%></h1>
|
3
|
-
<div id="content_list">
|
4
|
-
<% if @patron_import_file %>
|
5
|
-
<h2 class="patron_title">
|
6
|
-
<%= link_to @patron_import_file.patron_import_file_name, @patron_import_file %>
|
7
|
-
</h2>
|
8
|
-
<% end %>
|
9
|
-
|
10
|
-
<table class="table table-striped index">
|
11
|
-
<tr>
|
12
|
-
<th><%= t('activerecord.models.patron_import_file') %></th>
|
13
|
-
<th><%= t('activerecord.models.patron') %></th>
|
14
|
-
<th><%= t('activerecord.models.user') %></th>
|
15
|
-
<th></th>
|
16
|
-
</tr>
|
17
|
-
|
18
|
-
<% @patron_import_results.each do |patron_import_result| %>
|
19
|
-
<tr class="line<%= cycle("0", "1") -%>">
|
20
|
-
<td>
|
21
|
-
<%= link_to patron_import_result.patron_import_file.patron_import_file_name, patron_import_result.patron_import_file %>
|
22
|
-
<br />
|
23
|
-
<%=l patron_import_result.created_at %>
|
24
|
-
</td>
|
25
|
-
<td><%= link_to patron_import_result.patron.full_name, patron_import_result.patron if patron_import_result.patron %></td>
|
26
|
-
<td><%= link_to patron_import_result.user.username, patron_import_result.user if patron_import_result.user %></td>
|
27
|
-
<td>
|
28
|
-
<%= link_to t('page.show'), patron_import_result %>
|
29
|
-
<%= link_to t('page.destroy'), patron_import_result, :data => {:confirm => t('page.are_you_sure')}, :method => :delete %>
|
30
|
-
</td>
|
31
|
-
</tr>
|
32
|
-
<% end %>
|
33
|
-
</table>
|
34
|
-
|
35
|
-
<%= paginate(@patron_import_results) %>
|
36
|
-
|
37
|
-
</div>
|
38
|
-
</div>
|
39
|
-
|
40
|
-
<div id="submenu" class="ui-corner-all">
|
41
|
-
<ul>
|
42
|
-
<li>
|
43
|
-
<% if @patron_import_file %>
|
44
|
-
<%= link_to((image_tag 'icons/page_white_excel.png', :size => '16x16', :alt => 'CSV', :class => 'icon'), patron_import_file_patron_import_results_path(@patron_import_file, :format => :csv, :locale => @locale.to_s)) -%>
|
45
|
-
(<%= link_to 'CSV', patron_import_file_patron_import_results_path(:format => :csv, :locale => @locale.to_s) -%>)
|
46
|
-
<% else %>
|
47
|
-
<%= link_to((image_tag 'icons/page_white_excel.png', :size => '16x16', :alt => 'CSV', :class => 'icon'), patron_import_results_path(:format => :csv, :locale => @locale.to_s)) -%>
|
48
|
-
(<%= link_to 'CSV', patron_import_results_path(:format => :csv, :locale => @locale.to_s) -%>)
|
49
|
-
<% end %>
|
50
|
-
</li>
|
51
|
-
</ul>
|
52
|
-
</div>
|
@@ -1,38 +0,0 @@
|
|
1
|
-
<div id="content_detail" class="ui-corner-all">
|
2
|
-
<h1 class="title"><%= t('page.showing', :model => t('activerecord.models.patron_import_result')) -%></h1>
|
3
|
-
<div id="content_list">
|
4
|
-
<p id="notice"><%= notice %></p>
|
5
|
-
|
6
|
-
<p>
|
7
|
-
<b><%= t('activerecord.models.patron_import_file') %></b>
|
8
|
-
<%= @patron_import_result.patron_import_file.patron_import_file_name %>
|
9
|
-
</p>
|
10
|
-
|
11
|
-
<p>
|
12
|
-
<b><%= t('activerecord.models.patron') %></b>
|
13
|
-
<%= link_to @patron_import_result.patron.full_name, @patron_import_result.patron if @patron_import_result.patron %>
|
14
|
-
</p>
|
15
|
-
|
16
|
-
<p>
|
17
|
-
<b><%= t('activerecord.models.user') %></b>
|
18
|
-
<%= link_to @patron_import_result.user.username, @patron_import_result.user if @patron_import_result.user %>
|
19
|
-
</p>
|
20
|
-
|
21
|
-
<p>
|
22
|
-
<b><%= t('activerecord.attributes.patron_import_result.body') %></b>
|
23
|
-
<%= @patron_import_result.body %>
|
24
|
-
</p>
|
25
|
-
|
26
|
-
<p>
|
27
|
-
<b><%= t('page.created_at') %></b>
|
28
|
-
<%=l @patron_import_result.created_at %>
|
29
|
-
</p>
|
30
|
-
|
31
|
-
</div>
|
32
|
-
</div>
|
33
|
-
|
34
|
-
<div id="submenu" class="ui-corner-all">
|
35
|
-
<ul>
|
36
|
-
<li><%= back_to_index(flash[:page_info]) -%></li>
|
37
|
-
</ul>
|
38
|
-
</div>
|
@@ -1,43 +0,0 @@
|
|
1
|
-
<div id="content_detail" class="ui-corner-all">
|
2
|
-
<h1 class="title"><%= t('page.listing', :model => t('activerecord.models.patron_relationship_type')) -%></h1>
|
3
|
-
<div id="content_list">
|
4
|
-
|
5
|
-
<table class="table table-striped index">
|
6
|
-
<tr>
|
7
|
-
<th id="position"></th>
|
8
|
-
<th><%= t('activerecord.attributes.patron_relationship_type.name') -%></th>
|
9
|
-
<th><%= t('activerecord.attributes.patron_relationship_type.display_name') -%></th>
|
10
|
-
<th><%= t('activerecord.attributes.patron_relationship_type.note') -%></th>
|
11
|
-
<th></th>
|
12
|
-
</tr>
|
13
|
-
|
14
|
-
<%- @patron_relationship_types.each do |patron_relationship_type| -%>
|
15
|
-
<tr class="line<%= cycle("0", "1") -%>">
|
16
|
-
<td>
|
17
|
-
<%- if can? :update, patron_relationship_type -%>
|
18
|
-
<%= move_position(patron_relationship_type) -%>
|
19
|
-
<%- end -%>
|
20
|
-
</td>
|
21
|
-
<td><%= link_to patron_relationship_type.name, patron_relationship_type -%></td>
|
22
|
-
<td><%= link_to patron_relationship_type.display_name.localize, patron_relationship_type -%></td>
|
23
|
-
<td><%= patron_relationship_type.note -%></td>
|
24
|
-
<td>
|
25
|
-
<%- if can? :update, patron_relationship_type -%>
|
26
|
-
<%= link_to t('page.edit'), edit_patron_relationship_type_path(patron_relationship_type) -%>
|
27
|
-
<% end %>
|
28
|
-
<%- if can? :delete, patron_relationship_type -%>
|
29
|
-
<%= link_to t('page.destroy'), patron_relationship_type, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
|
30
|
-
<% end %>
|
31
|
-
</td>
|
32
|
-
</tr>
|
33
|
-
<%- end -%>
|
34
|
-
</table>
|
35
|
-
|
36
|
-
</div>
|
37
|
-
</div>
|
38
|
-
|
39
|
-
<div id="submenu" class="ui-corner-all">
|
40
|
-
<ul>
|
41
|
-
<li><%= link_to t('page.new', :model => t('activerecord.models.patron_relationship_type')), new_patron_relationship_type_path -%></li>
|
42
|
-
</ul>
|
43
|
-
</div>
|
@@ -1,29 +0,0 @@
|
|
1
|
-
<div id="content_detail" class="ui-corner-all">
|
2
|
-
<h1 class="title"><%= t('page.showing', :model => t('activerecord.models.patron_relationship_type')) -%></h1>
|
3
|
-
<div id="content_list">
|
4
|
-
<p id="notice"><%= notice %></p>
|
5
|
-
|
6
|
-
<p>
|
7
|
-
<strong><%= t('activerecord.attributes.patron_relationship_type.name') -%>:</strong>
|
8
|
-
<%= @patron_relationship_type.name -%>
|
9
|
-
</p>
|
10
|
-
|
11
|
-
<p>
|
12
|
-
<strong><%= t('activerecord.attributes.patron_relationship_type.display_name') -%>:</strong>
|
13
|
-
<%= @patron_relationship_type.display_name.localize -%>
|
14
|
-
</p>
|
15
|
-
|
16
|
-
<p>
|
17
|
-
<strong><%= t('activerecord.attributes.patron_relationship_type.note') -%>:</strong>
|
18
|
-
<%= @patron_relationship_type.note -%>
|
19
|
-
</p>
|
20
|
-
|
21
|
-
</div>
|
22
|
-
</div>
|
23
|
-
|
24
|
-
<div id="submenu" class="ui-corner-all">
|
25
|
-
<ul>
|
26
|
-
<li><%= link_to t('page.edit'), edit_patron_relationship_type_path(@patron_relationship_type) -%></li>
|
27
|
-
<li><%= back_to_index(flash[:page_info]) -%></li>
|
28
|
-
</ul>
|
29
|
-
</div>
|
@@ -1,34 +0,0 @@
|
|
1
|
-
<div id="content_detail" class="ui-corner-all">
|
2
|
-
<h1 class="title"><%= t('page.listing', :model => t('activerecord.models.patron_relationship')) -%></h1>
|
3
|
-
<div id="content_list">
|
4
|
-
|
5
|
-
<table class="table table-striped index">
|
6
|
-
<tr>
|
7
|
-
<th><%= t('activerecord.attributes.patron_relationship.parent_id') -%>:</th>
|
8
|
-
<th><%= t('activerecord.attributes.patron_relationship.child_id') -%>:</th>
|
9
|
-
<th></th>
|
10
|
-
<th></th>
|
11
|
-
<th></th>
|
12
|
-
</tr>
|
13
|
-
|
14
|
-
<% @patron_relationships.each do |patron_relationship| %>
|
15
|
-
<tr>
|
16
|
-
<td><%= link_to patron_relationship.parent.full_name, patron_relationship.parent %></td>
|
17
|
-
<td><%= link_to patron_relationship.child.full_name, patron_relationship.child %></td>
|
18
|
-
<td><%= link_to t('page.show'), patron_relationship %></td>
|
19
|
-
<td><%= link_to t('page.edit'), edit_patron_relationship_path(patron_relationship) %></td>
|
20
|
-
<td><%= link_to t('page.destroy'), patron_relationship, :data => {:confirm => t('page.are_you_sure')}, :method => :delete %></td>
|
21
|
-
</tr>
|
22
|
-
<% end %>
|
23
|
-
</table>
|
24
|
-
|
25
|
-
<%= paginate(@patron_relationships) %>
|
26
|
-
|
27
|
-
</div>
|
28
|
-
</div>
|
29
|
-
|
30
|
-
<div id="submenu" class="ui-corner-all">
|
31
|
-
<ul>
|
32
|
-
<li><%= link_to t('page.new', :model => t('activerecord.models.patron_relationship')), new_patron_relationship_path -%></li>
|
33
|
-
</ul>
|
34
|
-
</div>
|
@@ -1,24 +0,0 @@
|
|
1
|
-
<div id="content_detail" class="ui-corner-all">
|
2
|
-
<h1 class="title"><%= t('page.showing', :model => t('activerecord.models.patron_relationship')) -%></h1>
|
3
|
-
<div id="content_list">
|
4
|
-
<p id="notice"><%= notice %></p>
|
5
|
-
|
6
|
-
<p>
|
7
|
-
<strong><%= t('activerecord.attributes.patron_relationship.parent') -%>:</strong>
|
8
|
-
<%= link_to @patron_relationship.parent.full_name, @patron_relationship.parent %>
|
9
|
-
</p>
|
10
|
-
|
11
|
-
<p>
|
12
|
-
<strong><%= t('activerecord.attributes.patron_relationship.child') -%>:</strong>
|
13
|
-
<%= link_to @patron_relationship.child.full_name, @patron_relationship.child %>
|
14
|
-
</p>
|
15
|
-
|
16
|
-
</div>
|
17
|
-
</div>
|
18
|
-
|
19
|
-
<div id="submenu" class="ui-corner-all">
|
20
|
-
<ul>
|
21
|
-
<li><%= link_to t('page.edit'), edit_patron_relationship_path(@patron_relationship) %></li>
|
22
|
-
<li><%= back_to_index(flash[:page_info]) %></li>
|
23
|
-
</ul>
|
24
|
-
</div>
|
@@ -1,43 +0,0 @@
|
|
1
|
-
<div id="content_detail" class="ui-corner-all">
|
2
|
-
<h1 class="title"><%= t('page.listing', :model => t('activerecord.models.patron_type')) -%></h1>
|
3
|
-
<div id="content_list">
|
4
|
-
|
5
|
-
<table class="table table-striped index">
|
6
|
-
<tr>
|
7
|
-
<th id="position"></th>
|
8
|
-
<th><%= t('activerecord.attributes.patron_type.name') -%></th>
|
9
|
-
<th><%= t('activerecord.attributes.patron_type.display_name') -%></th>
|
10
|
-
<th><%= t('activerecord.attributes.patron_type.note') -%></th>
|
11
|
-
<th></th>
|
12
|
-
</tr>
|
13
|
-
|
14
|
-
<%- @patron_types.each do |patron_type| -%>
|
15
|
-
<tr class="line<%= cycle("0", "1") -%>">
|
16
|
-
<td>
|
17
|
-
<%- if can? :update, patron_type -%>
|
18
|
-
<%= move_position(patron_type) -%>
|
19
|
-
<%- end -%>
|
20
|
-
</td>
|
21
|
-
<td><%= link_to patron_type.name, patron_type -%></td>
|
22
|
-
<td><%= link_to patron_type.display_name.localize, patron_type -%></td>
|
23
|
-
<td><%= patron_type.note -%></td>
|
24
|
-
<td>
|
25
|
-
<%- if can? :update, patron_type -%>
|
26
|
-
<%= link_to t('page.edit'), edit_patron_type_path(patron_type) -%>
|
27
|
-
<% end %>
|
28
|
-
<%- if can? :delete, patron_type -%>
|
29
|
-
<%= link_to t('page.destroy'), patron_type, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
|
30
|
-
<%- end -%>
|
31
|
-
</td>
|
32
|
-
</tr>
|
33
|
-
<%- end -%>
|
34
|
-
</table>
|
35
|
-
|
36
|
-
</div>
|
37
|
-
</div>
|
38
|
-
|
39
|
-
<div id="submenu" class="ui-corner-all">
|
40
|
-
<ul>
|
41
|
-
<li><%= link_to t('page.new', :model => t('activerecord.models.patron_type')), new_patron_type_path -%></li>
|
42
|
-
</ul>
|
43
|
-
</div>
|
@@ -1,29 +0,0 @@
|
|
1
|
-
<div id="content_detail" class="ui-corner-all">
|
2
|
-
<h1 class="title"><%= t('page.showing', :model => t('activerecord.models.patron_type')) -%></h1>
|
3
|
-
<div id="content_list">
|
4
|
-
<p id="notice"><%= notice %></p>
|
5
|
-
|
6
|
-
<p>
|
7
|
-
<strong><%= t('activerecord.attributes.patron_type.name') -%>:</strong>
|
8
|
-
<%= @patron_type.name -%>
|
9
|
-
</p>
|
10
|
-
|
11
|
-
<p>
|
12
|
-
<strong><%= t('activerecord.attributes.patron_type.display_name') -%>:</strong>
|
13
|
-
<%= @patron_type.display_name.localize -%>
|
14
|
-
</p>
|
15
|
-
|
16
|
-
<p>
|
17
|
-
<strong><%= t('activerecord.attributes.patron_type.note') -%>:</strong>
|
18
|
-
<%= @patron_type.note -%>
|
19
|
-
</p>
|
20
|
-
|
21
|
-
</div>
|
22
|
-
</div>
|
23
|
-
|
24
|
-
<div id="submenu" class="ui-corner-all">
|
25
|
-
<ul>
|
26
|
-
<li><%= link_to t('page.edit'), edit_patron_type_path(@patron_type) -%></li>
|
27
|
-
<li><%= back_to_index(flash[:page_info]) -%></li>
|
28
|
-
</ul>
|
29
|
-
</div>
|
@@ -1,71 +0,0 @@
|
|
1
|
-
<div id="content_detail" class="ui-corner-all">
|
2
|
-
<h1 class="title"><%= t('page.listing', :model => t('activerecord.models.patron')) -%></h1>
|
3
|
-
<div id="content_list">
|
4
|
-
<h2 class="resource_title">
|
5
|
-
[P]
|
6
|
-
<%= link_to patron.full_name, patron -%>
|
7
|
-
</h2>
|
8
|
-
|
9
|
-
<div class="search_form">
|
10
|
-
<%= form_for :patrons, :url => patron_patrons_path(patron), :html => {:method => 'get'} do -%>
|
11
|
-
<p>
|
12
|
-
<%= label_tag :search_form_top, t('page.search_term') -%>: <%= search_field_tag 'query', h(@query), {:id => 'search_form_top', :class => 'search_form', :placeholder => t('page.search_term')} -%>
|
13
|
-
<%- if can? :update, patron -%>
|
14
|
-
<%= render 'page/add' %>
|
15
|
-
<%- end -%>
|
16
|
-
<%= submit_tag t('page.search') -%>
|
17
|
-
</p>
|
18
|
-
<%- end -%>
|
19
|
-
</div>
|
20
|
-
|
21
|
-
<table class="table table-striped index">
|
22
|
-
<tr>
|
23
|
-
<th><%= t('activerecord.attributes.patron.full_name') -%></th>
|
24
|
-
<th><%= t('activerecord.attributes.user.username') -%></th>
|
25
|
-
<th><%= t('activerecord.models.patron_type') -%></th>
|
26
|
-
<th><%= t('activerecord.attributes.patron.date_of_birth') -%></th>
|
27
|
-
<th></th>
|
28
|
-
<th></th>
|
29
|
-
</tr>
|
30
|
-
<%- @patrons.each do |patron| -%>
|
31
|
-
<tr class="line<%= cycle("0", "1") -%>">
|
32
|
-
<td>
|
33
|
-
<%= link_to patron.full_name, patron -%><br />
|
34
|
-
<%= patron.full_name_transcription -%>
|
35
|
-
</td>
|
36
|
-
<td>
|
37
|
-
<%= link_to patron.user.username, edit_user_path(patron.user) if patron.user -%>
|
38
|
-
</td>
|
39
|
-
<td><%= patron.patron_type.display_name.localize -%></td>
|
40
|
-
<td><%=l patron.date_of_birth if patron.date_of_birth -%></td>
|
41
|
-
<td>
|
42
|
-
<%- if can? :delete, patron -%>
|
43
|
-
<%= link_to t('page.edit'), edit_patron_path(patron) -%>
|
44
|
-
<% end %>
|
45
|
-
</td>
|
46
|
-
<td>
|
47
|
-
<%- if can? :delete, patron -%>
|
48
|
-
<%- if params[:mode] == "add" -%>
|
49
|
-
<%= link_to t('page.add'), new_patron_patron_relationship_path(patron, :child_id => patron.id) unless patron.derived_patrons.include?(patron) or patron == patron -%>
|
50
|
-
<%- else -%>
|
51
|
-
<%- patron_relationship = patron.to_patrons.where(:child_id => patron.id).first -%>
|
52
|
-
<%= link_to t('page.destroy'), patron_relationship, :data => {:confirm => t('page.are_you_sure')}, :method => :delete if patron_relationship -%>
|
53
|
-
<%- end -%>
|
54
|
-
<%- end -%>
|
55
|
-
</td>
|
56
|
-
</tr>
|
57
|
-
<%- end -%>
|
58
|
-
</table>
|
59
|
-
|
60
|
-
<%= paginate(@patrons) -%>
|
61
|
-
</div>
|
62
|
-
</div>
|
63
|
-
|
64
|
-
<div id="submenu" class="ui-corner-all">
|
65
|
-
<ul>
|
66
|
-
<%- if can? :create, Patron -%>
|
67
|
-
<li><%= link_to t('patron.add'), new_patron_path -%></li>
|
68
|
-
<li><%= link_to t('page.merge', :model => t('activerecord.models.patron')), patron_merge_lists_path -%></li>
|
69
|
-
<%- end -%>
|
70
|
-
</ul>
|
71
|
-
</div>
|
@@ -1,53 +0,0 @@
|
|
1
|
-
<div id="content_detail" class="ui-corner-all">
|
2
|
-
<h1 class="title"><%= t('page.listing', :model => t('activerecord.models.patron')) -%></h1>
|
3
|
-
<div id="content_list">
|
4
|
-
|
5
|
-
<div class="search_form">
|
6
|
-
<%= form_for :patrons, :url => patron_merge_list_patrons_path(@patron_merge_list), :html => {:method => 'get'} do -%>
|
7
|
-
<p>
|
8
|
-
<%= label_tag :search_form_top, t('page.search_term') -%>: <%= search_field_tag 'query', h(@query), {:id => 'search_form_top', :class => 'search_form', :placeholder => t('page.search_term')} -%>
|
9
|
-
<%- if can? :update, @patron_merge_list -%>
|
10
|
-
<%= render 'page/add' %>
|
11
|
-
<%- end -%>
|
12
|
-
<%= submit_tag t('page.search') -%>
|
13
|
-
<%= link_to t('page.back_to_index'), patron_merge_list_patrons_path(@patron_merge_list) -%>
|
14
|
-
</p>
|
15
|
-
<%- end -%>
|
16
|
-
</div>
|
17
|
-
|
18
|
-
<table class="table table-striped index">
|
19
|
-
<tr>
|
20
|
-
<th><%= t('activerecord.attributes.patron.full_name') -%></th>
|
21
|
-
<th><%= t('activerecord.models.patron_type') -%></th>
|
22
|
-
<th><%= t('activerecord.attributes.patron.date_of_birth') -%></th>
|
23
|
-
<th id="edit_icons"></th>
|
24
|
-
</tr>
|
25
|
-
|
26
|
-
<%- @patrons.each do |patron| -%>
|
27
|
-
<tr class="line<%= cycle("0", "1") -%>">
|
28
|
-
<td><%= link_to patron.full_name, patron_merge_list_patron_path(@patron_merge_list, patron) -%></td>
|
29
|
-
<td><%= patron.patron_type.display_name.localize -%></td>
|
30
|
-
<td><%=l patron.date_of_birth if patron.date_of_birth -%></td>
|
31
|
-
<td>
|
32
|
-
<%- if can? :delete, patron -%>
|
33
|
-
<%- if params[:mode] == 'add' -%>
|
34
|
-
<%= link_to t('page.add'), new_patron_merge_list_patron_merge_path(@patron_merge_list, :patron_id => patron.id) unless @patron_merge_list.patrons.include?(patron) -%>
|
35
|
-
<%- else -%>
|
36
|
-
<%- patron_merge = @patron_merge_list.patron_merges.where(:patron_id => patron.id).first -%>
|
37
|
-
<%= link_to t('page.destroy'), patron_merge_list_patron_merge_path(@patron_merge_list, patron_merge), :data => {:confirm => t('page.are_you_sure')}, :method => :delete if patron_merge -%>
|
38
|
-
<%- end -%>
|
39
|
-
<%- end -%>
|
40
|
-
</td>
|
41
|
-
</tr>
|
42
|
-
<%- end -%>
|
43
|
-
</table>
|
44
|
-
|
45
|
-
<%= paginate(@patrons) -%>
|
46
|
-
</div>
|
47
|
-
</div>
|
48
|
-
|
49
|
-
<div id="submenu" class="ui-corner-all">
|
50
|
-
<ul>
|
51
|
-
<li><%= link_to t('page.listing', :model => t('activerecord.models.patron_merge_list')), @patron_merge_list -%></li>
|
52
|
-
</ul>
|
53
|
-
</div>
|
@@ -1,13 +0,0 @@
|
|
1
|
-
<tr class="line<%= cycle("0", "1") -%>">
|
2
|
-
<td>
|
3
|
-
<%= link_to patron.full_name, patron -%><br />
|
4
|
-
<%= patron.full_name_transcription -%>
|
5
|
-
</td>
|
6
|
-
<td><%= patron.patron_type.display_name.localize -%></td>
|
7
|
-
<td>
|
8
|
-
<%- if can? :delete, patron -%>
|
9
|
-
<%= link_to image_tag('icons/page_white_edit.png', :size => '16x16', :alt => t('page.edit')), edit_patron_path(patron) -%>
|
10
|
-
<%= link_to image_tag('icons/arrow_divide.png', :size => '16x16', :alt => t('patron.add_derivation')), patron_patrons_path(patron, :mode => 'add') -%>
|
11
|
-
<%- end -%>
|
12
|
-
</td>
|
13
|
-
</tr>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<div id="related">
|
2
|
-
<ul>
|
3
|
-
<%- @patron.parents.each do |patron_relationship| -%>
|
4
|
-
<li>
|
5
|
-
[P]
|
6
|
-
(<%= patron_relationship.patron_relationship_type.display_name.localize -%>)
|
7
|
-
<%= link_to patron_relationship.parent.full_name, patron_relationship.parent -%>
|
8
|
-
</li>
|
9
|
-
<%- end -%>
|
10
|
-
<%- @patron.children.each do |patron_relationship| -%>
|
11
|
-
<li>
|
12
|
-
[P]
|
13
|
-
(<%= patron_relationship.patron_relationship_type.display_name.localize -%>)
|
14
|
-
<%= link_to patron_relationship.child.full_name, patron_relationship.child -%>
|
15
|
-
</li>
|
16
|
-
<%- end -%>
|
17
|
-
</ul>
|
18
|
-
</div>
|
@@ -1,16 +0,0 @@
|
|
1
|
-
<div id="content_detail" class="ui-corner-all">
|
2
|
-
<h1 class="title"><%= t('page.editing', :model => t('activerecord.models.patron')) -%></h1>
|
3
|
-
<div id="content_list">
|
4
|
-
<%= render 'form' %>
|
5
|
-
</div>
|
6
|
-
</div>
|
7
|
-
|
8
|
-
<div id="submenu" class="ui-corner-all">
|
9
|
-
<ul>
|
10
|
-
<li><%= link_to t('page.show'), @patron -%></li>
|
11
|
-
<%- if can? :delete, @patron -%>
|
12
|
-
<li><%= link_to t('page.destroy'), @patron, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%></li>
|
13
|
-
<%- end -%>
|
14
|
-
<li><%= link_to t('page.back'), patrons_path -%></li>
|
15
|
-
</ul>
|
16
|
-
</div>
|
@@ -1,10 +0,0 @@
|
|
1
|
-
atom_feed(:url => patrons_url(:format => :atom)) do |feed|
|
2
|
-
feed.title t('patron.library_group_patron', :library_group_name => @library_group.display_name.localize)
|
3
|
-
feed.updated(@patrons.first ? @patrons.first.created_at : Time.zone.now)
|
4
|
-
|
5
|
-
@patrons.each do |patron|
|
6
|
-
feed.entry(patron) do |entry|
|
7
|
-
entry.title(patron.full_name)
|
8
|
-
end
|
9
|
-
end
|
10
|
-
end
|