enju_biblio 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. data/app/controllers/manifestations_controller.rb +36 -20
  2. data/app/controllers/picture_files_controller.rb +25 -16
  3. data/app/controllers/series_has_manifestations_controller.rb +4 -0
  4. data/app/controllers/series_statements_controller.rb +9 -7
  5. data/app/helpers/series_statements_helper.rb +6 -0
  6. data/app/models/item.rb +3 -0
  7. data/app/models/manifestation.rb +29 -15
  8. data/app/models/patron.rb +2 -0
  9. data/app/models/resource_import_file.rb +47 -12
  10. data/app/models/series_has_manifestation.rb +2 -3
  11. data/app/views/carrier_types/index.html.erb +1 -1
  12. data/app/views/content_types/index.html.erb +1 -1
  13. data/app/views/create_types/index.html.erb +1 -1
  14. data/app/views/creates/_index.html.erb +1 -1
  15. data/app/views/creates/_index_patron.html.erb +1 -1
  16. data/app/views/creates/_index_work.html.erb +2 -9
  17. data/app/views/donates/index.html.erb +1 -1
  18. data/app/views/exemplifies/index.html.erb +1 -1
  19. data/app/views/extents/index.html.erb +1 -1
  20. data/app/views/form_of_works/index.html.erb +1 -1
  21. data/app/views/frequencies/index.html.erb +1 -1
  22. data/app/views/import_requests/index.html.erb +1 -1
  23. data/app/views/import_requests/new.html.erb +1 -1
  24. data/app/views/items/edit.html.erb +1 -1
  25. data/app/views/items/show.html.erb +2 -1
  26. data/app/views/licenses/index.html.erb +1 -1
  27. data/app/views/manifestation_relationship_types/index.html.erb +1 -1
  28. data/app/views/manifestation_relationships/index.html.erb +1 -1
  29. data/app/views/manifestations/_form.html.erb +1 -1
  30. data/app/views/manifestations/_manifestation.html.erb +21 -17
  31. data/app/views/manifestations/_paginate_id_link.html.erb +20 -2
  32. data/app/views/manifestations/_session_ids.html.erb +10 -0
  33. data/app/views/manifestations/_show_detail_librarian.html.erb +7 -5
  34. data/app/views/manifestations/_show_detail_user.html.erb +7 -5
  35. data/app/views/manifestations/_show_index.html.erb +7 -1
  36. data/app/views/manifestations/_show_series_index.html.erb +15 -0
  37. data/app/views/manifestations/_show_series_statement.html.erb +30 -0
  38. data/app/views/manifestations/_submenu_series_statement.html.erb +8 -0
  39. data/app/views/manifestations/edit.html.erb +1 -1
  40. data/app/views/manifestations/index.html.erb +11 -0
  41. data/app/views/manifestations/show.html.erb +2 -2
  42. data/app/views/medium_of_performances/index.html.erb +1 -1
  43. data/app/views/owns/index.html.erb +1 -1
  44. data/app/views/patron_import_files/index.html.erb +1 -1
  45. data/app/views/patron_import_results/index.html.erb +1 -1
  46. data/app/views/patron_relationship_types/index.html.erb +1 -1
  47. data/app/views/patron_relationships/index.html.erb +1 -1
  48. data/app/views/patron_types/index.html.erb +1 -1
  49. data/app/views/patrons/_index_expression.html.erb +2 -1
  50. data/app/views/patrons/_index_manifestation.html.erb +2 -1
  51. data/app/views/patrons/_index_patron.html.erb +1 -1
  52. data/app/views/patrons/_index_patron_merge_list.html.erb +1 -1
  53. data/app/views/patrons/_index_work.html.erb +2 -1
  54. data/app/views/patrons/edit.html.erb +1 -1
  55. data/app/views/patrons/show.html.erb +1 -1
  56. data/app/views/picture_files/_index.html.erb +1 -1
  57. data/app/views/picture_files/_index_event.html.erb +1 -1
  58. data/app/views/picture_files/_index_manifestation.html.erb +1 -1
  59. data/app/views/picture_files/_index_patron.html.erb +1 -1
  60. data/app/views/picture_files/_index_shelf.html.erb +1 -1
  61. data/app/views/picture_files/_link.mobile.erb +3 -0
  62. data/app/views/picture_files/show.mobile.erb +49 -0
  63. data/app/views/produce_types/index.html.erb +1 -1
  64. data/app/views/produces/_index.html.erb +1 -1
  65. data/app/views/produces/_index_manifestation.html.erb +5 -11
  66. data/app/views/produces/_index_patron.html.erb +1 -1
  67. data/app/views/realize_types/index.html.erb +1 -1
  68. data/app/views/realizes/_index.html.erb +1 -1
  69. data/app/views/realizes/_index_expression.html.erb +5 -11
  70. data/app/views/realizes/_index_patron.html.erb +1 -1
  71. data/app/views/resource_import_files/index.html.erb +1 -1
  72. data/app/views/resource_import_results/index.html.erb +1 -1
  73. data/app/views/series_has_manifestations/index.html.erb +1 -1
  74. data/app/views/series_statements/_index.html.erb +1 -1
  75. data/app/views/series_statements/_index_manifestation.html.erb +1 -1
  76. data/app/views/series_statements/_index_series_statement_merge_list.html.erb +1 -1
  77. data/app/views/series_statements/show.html.erb +0 -3
  78. data/config/locales/translation_en.yml +34 -0
  79. data/config/locales/translation_ja.yml +34 -0
  80. data/config/routes.rb +7 -2
  81. data/lib/enju_biblio.rb +0 -5
  82. data/lib/enju_biblio/engine.rb +2 -6
  83. data/lib/enju_biblio/version.rb +1 -1
  84. data/spec/cassette_library/enju_ndl/ndl_search.yml +1140 -0
  85. data/spec/controllers/items_controller_spec.rb +1 -1
  86. data/spec/controllers/series_statements_controller_spec.rb +26 -21
  87. data/spec/dummy/config/application.rb +1 -0
  88. data/spec/dummy/config/routes.rb +1 -1
  89. data/spec/dummy/db/schema.rb +1 -1
  90. data/spec/dummy/db/test.sqlite3 +0 -0
  91. data/spec/dummy/lib/enju_leaf.rb +0 -1
  92. data/spec/dummy/private/system/patron_import_files/patron_imports/000/000/004/original/patron_delete_file.tsv +8 -0
  93. data/spec/dummy/private/system/patron_import_files/patron_imports/000/000/004/original/patron_import_file_sample1.tsv +5 -0
  94. data/spec/dummy/private/system/patron_import_files/patron_imports/000/000/004/original/patron_import_file_sample3.tsv +5 -0
  95. data/spec/dummy/private/system/patron_import_files/patron_imports/000/000/004/original/patron_update_file.tsv +3 -0
  96. data/spec/dummy/private/system/picture_files/pictures/000/000/005/medium/spinner.gif +0 -0
  97. data/spec/dummy/private/system/picture_files/pictures/000/000/005/original/spinner.gif +0 -0
  98. data/spec/dummy/private/system/picture_files/pictures/000/000/005/thumb/spinner.gif +0 -0
  99. data/spec/dummy/private/system/resource_imports/4/original/isbn_sample.txt +3 -0
  100. data/spec/dummy/private/system/resource_imports/4/original/item_delete_file.tsv +11 -0
  101. data/spec/dummy/private/system/resource_imports/4/original/item_update_file.tsv +4 -0
  102. data/spec/dummy/private/system/resource_imports/4/original/resource_import_file_sample1.tsv +19 -0
  103. data/spec/dummy/private/system/resource_imports/4/original/resource_import_file_sample2.tsv +19 -0
  104. data/spec/dummy/private/system/resource_imports/4/original/update_series_statement.tsv +2 -0
  105. data/spec/dummy/solr/data/test/index/_2z.fdt +0 -0
  106. data/spec/dummy/solr/data/test/index/_2z.fdx +0 -0
  107. data/spec/dummy/solr/data/test/index/{_2v.fnm → _2z.fnm} +0 -0
  108. data/spec/dummy/solr/data/test/index/_2z.frq +0 -0
  109. data/spec/dummy/solr/data/test/index/_2z.nrm +1 -0
  110. data/spec/dummy/solr/data/test/index/_2z.prx +0 -0
  111. data/spec/dummy/solr/data/test/index/_2z.tii +0 -0
  112. data/spec/dummy/solr/data/test/index/_2z.tis +0 -0
  113. data/spec/dummy/solr/data/test/index/{_2v.fdt → _39.fdt} +0 -0
  114. data/spec/dummy/solr/data/test/index/{_2v.fdx → _39.fdx} +0 -0
  115. data/spec/dummy/solr/data/test/index/_39.fnm +10 -0
  116. data/spec/dummy/solr/data/test/index/_39.frq +0 -0
  117. data/spec/dummy/solr/data/test/index/_39.nrm +1 -0
  118. data/spec/dummy/solr/data/test/index/_39.prx +0 -0
  119. data/spec/dummy/solr/data/test/index/{_2v.tii → _39.tii} +0 -0
  120. data/spec/dummy/solr/data/test/index/_39.tis +0 -0
  121. data/spec/dummy/solr/data/test/index/_39_1.del +0 -0
  122. data/spec/dummy/solr/data/test/index/_k_3.del +0 -0
  123. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  124. data/spec/dummy/solr/data/test/index/{segments_2v → segments_39} +0 -0
  125. data/spec/dummy/tmp/cache/4F7/F90/default_role +0 -0
  126. data/spec/dummy/tmp/cache/6E4/420/search_engine_all +0 -0
  127. data/spec/fixtures/exemplifies.yml +6 -0
  128. data/spec/models/resource_import_file_spec.rb +8 -0
  129. metadata +88 -129
  130. data/lib/enju_biblio/expire_editable_fragment.rb +0 -30
  131. data/lib/enju_biblio/expire_fragment_cache.rb +0 -17
  132. data/lib/enju_biblio/import_file.rb +0 -13
  133. data/lib/enju_biblio/master_model.rb +0 -19
  134. data/lib/enju_biblio/url_validator.rb +0 -10
  135. data/spec/dummy/app/models/library_group.rb +0 -86
  136. data/spec/dummy/lib/enju_leaf/localized_name.rb +0 -15
  137. data/spec/dummy/solr/data/test/index/_2v.frq +0 -0
  138. data/spec/dummy/solr/data/test/index/_2v.nrm +0 -1
  139. data/spec/dummy/solr/data/test/index/_2v.prx +0 -0
  140. data/spec/dummy/solr/data/test/index/_2v.tis +0 -0
  141. data/spec/dummy/solr/data/test/index/_2v_1.del +0 -0
  142. data/spec/dummy/solr/data/test/index/_k_2.del +0 -0
  143. data/spec/dummy/tmp/cache/4AD/470/country_all +0 -0
@@ -10,7 +10,7 @@
10
10
  <ul>
11
11
  <li><%= link_to t('page.show'), @manifestation -%></li>
12
12
  <% if can? :destroy, @manifestation %>
13
- <li><%= link_to t('page.destroy'), @manifestation, :confirm => t('page.are_you_sure'), :method => :delete -%></li>
13
+ <li><%= link_to t('page.destroy'), @manifestation, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%></li>
14
14
  <% end %>
15
15
  <%- case when @patron -%>
16
16
  <li><%= link_to t('page.back'), publisher_manifestations_path(@patron) -%></li>
@@ -21,6 +21,10 @@
21
21
  <% end %>
22
22
  <%= set_focus_on_search_form %>
23
23
 
24
+ <% if @series_statement %>
25
+ <%= render 'show_series_statement' %>
26
+ <% end %>
27
+
24
28
  <%- if @manifestations.total_entries > 0 -%>
25
29
  <p>
26
30
  <%= t('page.number_of_search_results', :count => @count[:query_result], :numdocs => Manifestation.search.total, :seconds => sprintf("%.3f", @seconds)) -%>
@@ -75,6 +79,9 @@
75
79
  </div>
76
80
 
77
81
  <div id="submenu" class="ui-corner-all">
82
+ <% if @series_statement and can?(:update, @series_statement) %>
83
+ <%= render 'submenu_series_statement' %>
84
+ <% end %>
78
85
  <h3><%= link_to h("#{t('page.total')}: #{@count[:query_result]}"), url_for(params.merge(:action => 'index', :view => nil, :carrier_type => nil, :library => nil, :language => nil, :subject => nil, :only_path => true)) -%></h3>
79
86
  <%- if @manifestations.total_entries > 0 -%>
80
87
  <%= render 'manifestations/all_facet' -%>
@@ -99,3 +106,7 @@
99
106
  }
100
107
  </script>
101
108
  <% end %>
109
+
110
+ <% if @manifestation_ids and @search_query %>
111
+ <%= render 'session_ids' %>
112
+ <% end %>
@@ -46,7 +46,7 @@
46
46
  <ul>
47
47
  <%- if user_signed_in? -%>
48
48
  <%- if current_user.email.present? -%>
49
- <li><%= link_to t('manifestation.send_email'), manifestation_path(:mode => 'send_email'), :confirm => t('page.are_you_sure') -%></li>
49
+ <li><%= link_to t('manifestation.send_email'), manifestation_path(:mode => 'send_email'), :data => {:confirm => t('page.are_you_sure')} -%></li>
50
50
  <%- end -%>
51
51
  <% if defined?(EnjuBookmark) %>
52
52
  <li><%= link_to_bookmark(@manifestation) %></li>
@@ -95,7 +95,7 @@
95
95
  </ul>
96
96
  </li>
97
97
  <% if can? :destroy, @manifestation %>
98
- <li><%= link_to t('page.destroy'), @manifestation, :confirm => t('page.are_you_sure'), :method => :delete -%></li>
98
+ <li><%= link_to t('page.destroy'), @manifestation, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%></li>
99
99
  <% end %>
100
100
  <li><%= link_to t('manifestation.add_derivation'), manifestation_manifestations_path(@manifestation, :mode => 'add') -%></li>
101
101
  <% if defined?(EnjuSubject) %>
@@ -26,7 +26,7 @@
26
26
  <%= link_to t('page.edit'), edit_medium_of_performance_path(medium_of_performance) -%>
27
27
  <% end %>
28
28
  <%- if can? :destroy, medium_of_performance -%>
29
- <%= link_to t('page.destroy'), medium_of_performance, :confirm => t('page.are_you_sure'), :method => :delete -%>
29
+ <%= link_to t('page.destroy'), medium_of_performance, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
30
30
  <%- end -%>
31
31
  </td>
32
32
  </tr>
@@ -26,7 +26,7 @@
26
26
  <td>
27
27
  <%- if can? :destroy, own -%>
28
28
  <%= link_to t('page.show'), own -%>
29
- <%= link_to t('page.destroy'), own, :confirm => t('page.are_you_sure'), :method => :delete -%>
29
+ <%= link_to t('page.destroy'), own, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
30
30
  <%- end -%>
31
31
  </td>
32
32
  </tr>
@@ -23,7 +23,7 @@
23
23
  <td><%= localized_state(patron_import_file.state) -%></td>
24
24
  <td>
25
25
  <%= link_to t('page.show'), patron_import_file -%>
26
- <%= link_to t('page.destroy'), patron_import_file, :confirm => t('page.are_you_sure'), :method => :delete -%>
26
+ <%= link_to t('page.destroy'), patron_import_file, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
27
27
  </td>
28
28
  </tr>
29
29
  <%- end -%>
@@ -26,7 +26,7 @@
26
26
  <td><%= link_to patron_import_result.user.username, patron_import_result.user if patron_import_result.user %></td>
27
27
  <td>
28
28
  <%= link_to t('page.show'), patron_import_result %>
29
- <%= link_to t('page.destroy'), patron_import_result, :confirm => t('page.are_you_sure'), :method => :delete %>
29
+ <%= link_to t('page.destroy'), patron_import_result, :data => {:confirm => t('page.are_you_sure')}, :method => :delete %>
30
30
  </td>
31
31
  </tr>
32
32
  <% end %>
@@ -26,7 +26,7 @@
26
26
  <%= link_to t('page.edit'), edit_patron_relationship_type_path(patron_relationship_type) -%>
27
27
  <% end %>
28
28
  <%- if can? :destroy, patron_relationship_type -%>
29
- <%= link_to t('page.destroy'), patron_relationship_type, :confirm => t('page.are_you_sure'), :method => :delete -%>
29
+ <%= link_to t('page.destroy'), patron_relationship_type, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
30
30
  <% end %>
31
31
  </td>
32
32
  </tr>
@@ -17,7 +17,7 @@
17
17
  <td><%= link_to patron_relationship.child.full_name, patron_relationship.child %></td>
18
18
  <td><%= link_to t('page.show'), patron_relationship %></td>
19
19
  <td><%= link_to t('page.edit'), edit_patron_relationship_path(patron_relationship) %></td>
20
- <td><%= link_to t('page.destroy'), patron_relationship, :confirm => t('page.are_you_sure'), :method => :delete %></td>
20
+ <td><%= link_to t('page.destroy'), patron_relationship, :data => {:confirm => t('page.are_you_sure')}, :method => :delete %></td>
21
21
  </tr>
22
22
  <% end %>
23
23
  </table>
@@ -26,7 +26,7 @@
26
26
  <%= link_to t('page.edit'), edit_patron_type_path(patron_type) -%>
27
27
  <% end %>
28
28
  <%- if can? :destroy, patron_type -%>
29
- <%= link_to t('page.destroy'), patron_type, :confirm => t('page.are_you_sure'), :method => :delete -%>
29
+ <%= link_to t('page.destroy'), patron_type, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
30
30
  <%- end -%>
31
31
  </td>
32
32
  </tr>
@@ -37,7 +37,7 @@
37
37
  <%- if params[:mode] == 'add' -%>
38
38
  <%= link_to t('page.add'), new_expression_realize_path(expression, :patron_id => patron.id) unless expression.contributors.include?(patron) -%>
39
39
  <%- else -%>
40
- <%= link_to t('page.destroy'), expression_realize_path(expression, expression.realized(patron)), :confirm => t('page.are_you_sure'), :method => :delete -%>
40
+ <%= link_to t('page.destroy'), expression_realize_path(expression, expression.realized(patron)), :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
41
41
  <%- end -%>
42
42
  <%- end -%>
43
43
  </td>
@@ -53,6 +53,7 @@
53
53
  <ul>
54
54
  <%- if can? :create, Patron -%>
55
55
  <li><%= link_to t('page.new', :model => t('activerecord.models.patron')), new_expression_patron_path(expression) -%></li>
56
+ <li><%= link_to t('page.rearrange_order'), expression_realizes_path(expression) %></li>
56
57
  <%- end -%>
57
58
  </ul>
58
59
  </div>
@@ -34,7 +34,7 @@
34
34
  <%= link_to t('page.add'), new_manifestation_produce_path(manifestation, :patron_id => patron.id) unless manifestation.publishers.include?(patron) -%>
35
35
  <%- else -%>
36
36
  <%= link_to t('page.edit'), edit_produce_path(manifestation.produced(patron)) -%>
37
- <%= link_to t('page.destroy'), manifestation_produce_path(manifestation, manifestation.produced(patron)), :confirm => t('page.are_you_sure'), :method => :delete -%>
37
+ <%= link_to t('page.destroy'), manifestation_produce_path(manifestation, manifestation.produced(patron)), :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
38
38
  <%- end -%>
39
39
  <%- end -%>
40
40
  </td>
@@ -53,6 +53,7 @@
53
53
  <li><%= link_to t('page.listing', :model => t('activerecord.models.item')), manifestation_items_path(manifestation) -%></li>
54
54
  <%- if can? :create, Patron -%>
55
55
  <li><%= link_to t('page.new', :model => t('activerecord.models.patron')), new_manifestation_patron_path(manifestation) -%></li>
56
+ <li><%= link_to t('page.rearrange_order'), manifestation_produces_path(manifestation) %></li>
56
57
  <%- end -%>
57
58
  </ul>
58
59
  </div>
@@ -49,7 +49,7 @@
49
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
50
  <%- else -%>
51
51
  <%- patron_relationship = patron.to_patrons.where(:child_id => patron.id).first -%>
52
- <%= link_to t('page.destroy'), patron_relationship, :confirm => t('page.are_you_sure'), :method => :delete if patron_relationship -%>
52
+ <%= link_to t('page.destroy'), patron_relationship, :data => {:confirm => t('page.are_you_sure')}, :method => :delete if patron_relationship -%>
53
53
  <%- end -%>
54
54
  <%- end -%>
55
55
  </td>
@@ -34,7 +34,7 @@
34
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
35
  <%- else -%>
36
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), :confirm => t('page.are_you_sure'), :method => :delete if patron_merge -%>
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
38
  <%- end -%>
39
39
  <%- end -%>
40
40
  </td>
@@ -42,7 +42,7 @@
42
42
  <%= link_to t('page.add'), new_work_create_path(work, :patron_id => patron.id) unless work.creators.include?(patron) -%>
43
43
  <%- else -%>
44
44
  <%= link_to t('page.edit'), edit_create_path(work.created(patron)) -%>
45
- <%= link_to t('page.destroy'), work_create_path(work, work.created(patron)), :confirm => t('page.are_you_sure'), :method => :delete -%>
45
+ <%= link_to t('page.destroy'), work_create_path(work, work.created(patron)), :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
46
46
  <%- end -%>
47
47
  <%- end -%>
48
48
  </td>
@@ -58,6 +58,7 @@
58
58
  <ul>
59
59
  <%- if can? :create, Patron -%>
60
60
  <li><%= link_to t('page.new', :model => t('activerecord.models.patron')), new_work_patron_path(work) -%></li>
61
+ <li><%= link_to t('page.rearrange_order'), work_creates_path(work) %></li>
61
62
  <%- end -%>
62
63
  </ul>
63
64
  </div>
@@ -9,7 +9,7 @@
9
9
  <ul>
10
10
  <li><%= link_to t('page.show'), @patron -%></li>
11
11
  <%- if can? :destroy, @patron -%>
12
- <li><%= link_to t('page.destroy'), @patron, :confirm => t('page.are_you_sure'), :method => :delete -%></li>
12
+ <li><%= link_to t('page.destroy'), @patron, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%></li>
13
13
  <%- end -%>
14
14
  <li><%= link_to t('page.back'), patrons_path -%></li>
15
15
  </ul>
@@ -193,7 +193,7 @@
193
193
  <%- end -%>
194
194
  <%- if can? :destroy, @patron -%>
195
195
  <li><%= link_to t('page.new', :model => t('activerecord.models.patron')), new_patron_path -%></li>
196
- <li><%= link_to t('page.destroy'), @patron, :confirm => t('page.are_you_sure'), :method => :delete -%></li>
196
+ <li><%= link_to t('page.destroy'), @patron, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%></li>
197
197
  <%- end -%>
198
198
  </ul>
199
199
  <ul>
@@ -27,7 +27,7 @@
27
27
  <%= link_to t('page.edit'), edit_picture_file_path(picture_file) -%>
28
28
  <% end %>
29
29
  <%- if can? :destroy, picture_file -%>
30
- <%= link_to t('page.destroy'), picture_file, :confirm => t('page.are_you_sure'), :method => :delete -%>
30
+ <%= link_to t('page.destroy'), picture_file, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
31
31
  <%- end -%>
32
32
  </td>
33
33
  </tr>
@@ -32,7 +32,7 @@
32
32
  <%= link_to t('page.edit'), edit_picture_file_path(picture_file) -%>
33
33
  <% end %>
34
34
  <%- if can? :destroy, picture_file -%>
35
- <%= link_to t('page.destroy'), picture_file, :confirm => t('page.are_you_sure'), :method => :delete -%>
35
+ <%= link_to t('page.destroy'), picture_file, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
36
36
  <%- end -%>
37
37
  </td>
38
38
  </tr>
@@ -34,7 +34,7 @@
34
34
  <%= link_to t('page.edit'), edit_picture_file_path(picture_file) -%>
35
35
  <% end %>
36
36
  <%- if can? :destroy, picture_file -%>
37
- <%= link_to t('page.destroy'), picture_file, :confirm => t('page.are_you_sure'), :method => :delete -%>
37
+ <%= link_to t('page.destroy'), picture_file, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
38
38
  <%- end -%>
39
39
  </td>
40
40
  </tr>
@@ -34,7 +34,7 @@
34
34
  <%= link_to t('page.edit'), edit_picture_file_path(picture_file) -%>
35
35
  <% end %>
36
36
  <%- if can? :destroy, picture_file -%>
37
- <%= link_to t('page.destroy'), picture_file, :confirm => t('page.are_you_sure'), :method => :delete -%>
37
+ <%= link_to t('page.destroy'), picture_file, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
38
38
  <%- end -%>
39
39
  </td>
40
40
  </tr>
@@ -32,7 +32,7 @@
32
32
  <%= link_to t('page.edit'), edit_picture_file_path(picture_file) -%>
33
33
  <% end %>
34
34
  <%- if can? :destroy, picture_file -%>
35
- <%= link_to t('page.destroy'), picture_file, :confirm => t('page.are_you_sure'), :method => :delete -%>
35
+ <%= link_to t('page.destroy'), picture_file, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
36
36
  <%- end -%>
37
37
  </td>
38
38
  </tr>
@@ -0,0 +1,3 @@
1
+ <a href="<%= picture_file_path(picture_file, :format => :download, :size => 'original') -%>">
2
+ <%= show_image(picture_file) %>
3
+ </a>
@@ -0,0 +1,49 @@
1
+ <div data-role="header">
2
+ <a href="javascript:history.back()" data-icon="back" data-iconpos="notext" class="ui-btn-left"><%= t('page.back') %></a>
3
+ <h1 class="title"><%= t('page.showing', :model => t('activerecord.models.shelf')) -%></h1>
4
+ </div>
5
+ <div data-role="content">
6
+
7
+ <p>
8
+ <strong><%= t('page.attachable') -%>:</strong>
9
+ <%= link_to h("#{(@picture_file.picture_attachable_type)}/#{(@picture_file.picture_attachable_id)}"), @picture_file.picture_attachable if @picture_file.picture_attachable_type? -%>
10
+ </p>
11
+
12
+ <p>
13
+ <strong><%= t('activerecord.attributes.picture_file.picture_file_size') -%>:</strong>
14
+ <%= @picture_file.picture_file_size -%>
15
+ </p>
16
+
17
+ <p>
18
+ <strong><%= t('activerecord.attributes.picture_file.picture_content_type') -%>:</strong>
19
+ <%= @picture_file.picture_content_type -%>
20
+ </p>
21
+
22
+ <p>
23
+ <strong><%= t('activerecord.attributes.picture_file.picture_file_name') -%>:</strong>
24
+ <%= link_to @picture_file.picture_file_name, picture_file_path(@picture_file, :format => :download, :size => 'original') -%><br />
25
+ <%= render 'picture_files/link', :picture_file => @picture_file %>
26
+ </p>
27
+
28
+ <p>
29
+ <strong><%= t('activerecord.attributes.picture_file.width') -%>:</strong>
30
+ <%= @picture_file.picture.width -%>
31
+ </p>
32
+
33
+ <p>
34
+ <strong><%= t('activerecord.attributes.picture_file.height') -%>:</strong>
35
+ <%= @picture_file.picture.height -%>
36
+ </p>
37
+
38
+ <p>
39
+ <strong><%= t('activerecord.attributes.picture_file.picture_fingerprint') -%>:</strong>
40
+ <%= @picture_file.picture_fingerprint -%>
41
+ </p>
42
+
43
+ <p>
44
+ <strong><%= t('activerecord.attributes.picture_file.picture_updated_at') -%>:</strong>
45
+ <%= l(@picture_file.picture_updated_at) if @picture_file.picture_updated_at -%>
46
+ </p>
47
+
48
+ </div>
49
+ </div>
@@ -26,7 +26,7 @@
26
26
  <%= link_to t('page.edit'), edit_produce_type_path(produce_type) -%>
27
27
  <% end %>
28
28
  <%- if can? :destroy, produce_type -%>
29
- <%= link_to t('page.destroy'), produce_type, :confirm => t('page.are_you_sure'), :method => :delete -%>
29
+ <%= link_to t('page.destroy'), produce_type, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
30
30
  <% end %>
31
31
  </td>
32
32
  </tr>
@@ -16,7 +16,7 @@
16
16
  <td>
17
17
  <%- if can? :destroy, produce -%>
18
18
  <%= link_to t('page.show'), produce -%>
19
- <%= link_to t('page.destroy'), produce, :confirm => t('page.are_you_sure'), :method => :delete -%>
19
+ <%= link_to t('page.destroy'), produce, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
20
20
  <%- end -%>
21
21
  </td>
22
22
  </tr>
@@ -11,25 +11,19 @@
11
11
  <th><%= t('activerecord.models.patron') -%></th>
12
12
  <th><%= t('page.created_at') -%></th>
13
13
  <th><%= t('page.updated_at') -%></th>
14
- <th></th>
15
14
  </tr>
16
15
 
17
16
  <%- @produces.each do |produce| -%>
18
17
  <tr class="line<%= cycle("0", "1") -%>">
19
18
  <td>
20
19
  <%- if can? :destroy, produce -%>
21
- <%= produce.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 => produce.id, :manifestation_id => manifestation.id}, :method => :put) -%>
22
- <%= produce.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 => produce.id, :manifestation_id => manifestation.id}, :method => :put) -%>
23
- <%- end -%>
24
- </td>
25
- <td><%= link_to create.patron.try(:full_name), create.patron -%></td>
26
- <td><%= l(create.created_at) -%></td>
27
- <td><%= l(create.updated_at) -%></td>
28
- <td>
29
- <%- if can? :destroy, produce -%>
30
- <%= link_to t('page.destroy'), manifestation_produce_path(manifestation, produce), :confirm => t('page.are_you_sure'), :method => :delete -%>
20
+ <%= produce.first? ? image_tag('icons/stop.png', :size => '16x16') : link_to(image_tag('icons/arrow_up.png', :size => '16x16', :alt => t('page.asc')), manifestation_produce_path(produce.manifestation, produce, :move => 'higher'), :method => :put) -%>
21
+ <%= produce.last? ? image_tag('icons/stop.png', :size => '16x16') : link_to(image_tag('icons/arrow_down.png', :size => '16x16', :alt => t('page.desc')), manifestation_produce_path(produce.manifestation, produce, :move => 'lower'), :method => :put) -%>
31
22
  <%- end -%>
32
23
  </td>
24
+ <td><%= link_to produce.patron.try(:full_name), produce.patron -%></td>
25
+ <td><%= l(produce.created_at) -%></td>
26
+ <td><%= l(produce.updated_at) -%></td>
33
27
  </tr>
34
28
  <%- end -%>
35
29
  </table>
@@ -19,7 +19,7 @@
19
19
  <td><%= l(produce.updated_at) -%></td>
20
20
  <td>
21
21
  <%- if can? :destroy, produce -%>
22
- <%= link_to t('page.destroy'), patron_produce_path(patron, produce), :confirm => t('page.are_you_sure'), :method => :delete -%>
22
+ <%= link_to t('page.destroy'), patron_produce_path(patron, produce), :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
23
23
  <%- end -%>
24
24
  </td>
25
25
  </tr>
@@ -26,7 +26,7 @@
26
26
  <%= link_to t('page.edit'), edit_realize_type_path(realize_type) -%>
27
27
  <% end %>
28
28
  <%- if can? :destroy, realize_type -%>
29
- <%= link_to t('page.destroy'), realize_type, :confirm => t('page.are_you_sure'), :method => :delete -%>
29
+ <%= link_to t('page.destroy'), realize_type, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
30
30
  <% end %>
31
31
  </td>
32
32
  </tr>
@@ -16,7 +16,7 @@
16
16
  <td>
17
17
  <%- if can? :destroy, realize -%>
18
18
  <%= link_to t('page.show'), realize -%>
19
- <%= link_to t('page.destroy'), realize, :confirm => t('page.are_you_sure'), :method => :delete -%>
19
+ <%= link_to t('page.destroy'), realize, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
20
20
  <%- end -%>
21
21
  </td>
22
22
  </tr>
@@ -11,25 +11,19 @@
11
11
  <th><%= t('activerecord.models.patron') -%></th>
12
12
  <th><%= t('page.created_at') -%></th>
13
13
  <th><%= t('page.updated_at') -%></th>
14
- <th></th>
15
14
  </tr>
16
15
 
17
16
  <%- @realizes.each do |realize| -%>
18
17
  <tr class="line<%= cycle("0", "1") -%>">
19
18
  <td>
20
19
  <%- if can? :destroy, realize -%>
21
- <%= realize.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 => realize.id, :expression_id => expression.id}, :method => :put) -%>
22
- <%= realize.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 => realize.id, :expression_id => expression.id}, :method => :put) -%>
23
- <%- end -%>
24
- </td>
25
- <td><%= link_to create.patron.try(:full_name), create.patron -%></td>
26
- <td><%= l(create.created_at) -%></td>
27
- <td><%= l(create.updated_at) -%></td>
28
- <td>
29
- <%- if can? :destroy, realize -%>
30
- <%= link_to t('page.destroy'), expression_realize_path(expression, realize), :confirm => t('page.are_you_sure'), :method => :delete -%>
20
+ <%= realize.first? ? image_tag('icons/stop.png', :size => '16x16') : link_to(image_tag('icons/arrow_up.png', :size => '16x16', :alt => t('page.asc')), expression_realize_path(realize.expression, realize, :move => 'higher'), :method => :put) -%>
21
+ <%= realize.last? ? image_tag('icons/stop.png', :size => '16x16') : link_to(image_tag('icons/arrow_down.png', :size => '16x16', :alt => t('page.desc')), expression_realize_path(realize.expression, realize, :move => 'lower'), :method => :put) -%>
31
22
  <%- end -%>
32
23
  </td>
24
+ <td><%= link_to realize.patron.try(:full_name), realize.patron -%></td>
25
+ <td><%= l(realize.created_at) -%></td>
26
+ <td><%= l(realize.updated_at) -%></td>
33
27
  </tr>
34
28
  <%- end -%>
35
29
  </table>
@@ -19,7 +19,7 @@
19
19
  <td><%= l(realize.updated_at) -%></td>
20
20
  <td>
21
21
  <%- if can? :destroy, realize -%>
22
- <%= link_to t('page.destroy'), patron_realize_path(patron, realize), :confirm => t('page.are_you_sure'), :method => :delete -%>
22
+ <%= link_to t('page.destroy'), patron_realize_path(patron, realize), :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
23
23
  <%- end -%>
24
24
  </td>
25
25
  </tr>
@@ -23,7 +23,7 @@
23
23
  <td><%= localized_state(resource_import_file.state) -%></td>
24
24
  <td>
25
25
  <%= link_to t('page.show'), resource_import_file -%>
26
- <%= link_to t('page.destroy'), resource_import_file, :confirm => t('page.are_you_sure'), :method => :delete -%>
26
+ <%= link_to t('page.destroy'), resource_import_file, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
27
27
  </td>
28
28
  </tr>
29
29
  <%- end -%>