enju_biblio 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. data/app/controllers/items_controller.rb +5 -1
  2. data/app/controllers/manifestations_controller.rb +16 -13
  3. data/app/controllers/picture_files_controller.rb +2 -2
  4. data/app/helpers/manifestations_helper.rb +9 -5
  5. data/app/models/item.rb +11 -109
  6. data/app/models/manifestation.rb +53 -20
  7. data/app/models/page_sweeper.rb +1 -1
  8. data/app/models/patron.rb +2 -1
  9. data/app/models/patron_import_file.rb +2 -2
  10. data/app/models/picture_file.rb +4 -2
  11. data/app/models/resource_import_file.rb +8 -4
  12. data/app/models/series_statement.rb +1 -1
  13. data/app/views/carrier_types/index.html.erb +1 -1
  14. data/app/views/content_types/index.html.erb +1 -1
  15. data/app/views/countries/index.html.erb +1 -1
  16. data/app/views/create_types/index.html.erb +1 -1
  17. data/app/views/creates/_index.html.erb +1 -1
  18. data/app/views/creates/_index_patron.html.erb +1 -1
  19. data/app/views/creates/_index_work.html.erb +1 -1
  20. data/app/views/donates/index.html.erb +1 -1
  21. data/app/views/exemplifies/index.html.erb +1 -1
  22. data/app/views/extents/index.html.erb +1 -1
  23. data/app/views/form_of_works/index.html.erb +1 -1
  24. data/app/views/frequencies/index.html.erb +1 -1
  25. data/app/views/import_requests/index.html.erb +1 -1
  26. data/app/views/items/index.html.erb +1 -1
  27. data/app/views/items/index.mobile.erb +1 -1
  28. data/app/views/items/show.html.erb +1 -1
  29. data/app/views/languages/index.html.erb +1 -1
  30. data/app/views/licenses/index.html.erb +1 -1
  31. data/app/views/manifestation_relationship_types/index.html.erb +1 -1
  32. data/app/views/manifestation_relationships/index.html.erb +1 -1
  33. data/app/views/manifestations/_form.html.erb +4 -2
  34. data/app/views/manifestations/_index_form.html.erb +1 -1
  35. data/app/views/manifestations/_library_facet.html.erb +1 -6
  36. data/app/views/manifestations/_list.html.erb +1 -1
  37. data/app/views/manifestations/_paginate_id_link.html.erb +2 -0
  38. data/app/views/manifestations/_show_detail_librarian.html.erb +1 -1
  39. data/app/views/manifestations/_show_detail_user.html.erb +1 -1
  40. data/app/views/manifestations/_show_holding.html.erb +1 -1
  41. data/app/views/manifestations/_show_holding.mobile.erb +1 -1
  42. data/app/views/manifestations/_show_series_statement.html.erb +1 -1
  43. data/app/views/manifestations/index.csv.erb +1 -1
  44. data/app/views/manifestations/index.html.erb +1 -1
  45. data/app/views/manifestations/show.mobile.erb +1 -1
  46. data/app/views/medium_of_performances/index.html.erb +1 -1
  47. data/app/views/owns/index.html.erb +1 -1
  48. data/app/views/patron_import_files/index.html.erb +1 -1
  49. data/app/views/patron_import_results/index.html.erb +1 -1
  50. data/app/views/patron_relationship_types/index.html.erb +1 -1
  51. data/app/views/patron_relationships/index.html.erb +1 -1
  52. data/app/views/patron_types/index.html.erb +1 -1
  53. data/app/views/patrons/_index.html.erb +1 -3
  54. data/app/views/patrons/_index_expression.html.erb +1 -1
  55. data/app/views/patrons/_index_manifestation.html.erb +1 -1
  56. data/app/views/patrons/_index_patron.html.erb +1 -1
  57. data/app/views/patrons/_index_patron_merge_list.html.erb +1 -1
  58. data/app/views/patrons/_index_work.html.erb +1 -1
  59. data/app/views/patrons/_patron.html.erb +0 -4
  60. data/app/views/patrons/show.html.erb +3 -3
  61. data/app/views/patrons/show.mobile.erb +1 -1
  62. data/app/views/picture_files/_index.html.erb +1 -1
  63. data/app/views/picture_files/_index_event.html.erb +1 -1
  64. data/app/views/picture_files/_index_manifestation.html.erb +1 -1
  65. data/app/views/picture_files/_index_patron.html.erb +1 -1
  66. data/app/views/picture_files/_index_shelf.html.erb +1 -1
  67. data/app/views/produce_types/index.html.erb +1 -1
  68. data/app/views/produces/_index.html.erb +1 -1
  69. data/app/views/produces/_index_manifestation.html.erb +1 -1
  70. data/app/views/produces/_index_patron.html.erb +1 -1
  71. data/app/views/realize_types/index.html.erb +1 -1
  72. data/app/views/realizes/_index.html.erb +1 -1
  73. data/app/views/realizes/_index_expression.html.erb +1 -1
  74. data/app/views/realizes/_index_patron.html.erb +1 -1
  75. data/app/views/resource_import_files/index.html.erb +1 -1
  76. data/app/views/resource_import_results/index.html.erb +1 -1
  77. data/app/views/series_has_manifestations/index.html.erb +1 -1
  78. data/app/views/series_statements/_index.html.erb +1 -1
  79. data/app/views/series_statements/_index_manifestation.html.erb +1 -1
  80. data/app/views/series_statements/_index_series_statement_merge_list.html.erb +1 -1
  81. data/app/views/series_statements/_manifestation_list.html.erb +1 -1
  82. data/app/views/series_statements/_merge.html.erb +1 -1
  83. data/app/views/series_statements/show.html.erb +1 -1
  84. data/config/routes.rb +13 -13
  85. data/lib/enju_biblio/biblio_helper.rb +59 -0
  86. data/lib/enju_biblio/engine.rb +1 -0
  87. data/{spec/dummy/lib/enju_leaf → lib/enju_biblio}/openurl.rb +0 -0
  88. data/{spec/dummy/lib/enju_leaf → lib/enju_biblio}/porta_cql.rb +1 -1
  89. data/{spec/dummy/lib/enju_leaf → lib/enju_biblio}/sru.rb +1 -1
  90. data/lib/enju_biblio/version.rb +1 -1
  91. data/lib/enju_biblio.rb +4 -0
  92. data/spec/cassette_library/enju_ndl/manifestation.yml +10 -10
  93. data/spec/cassette_library/enju_ndl/ndl_search.yml +18 -18
  94. data/spec/dummy/app/mailers/notifier.rb +6 -2
  95. data/spec/dummy/config/initializers/resque_mailer.rb +1 -0
  96. data/spec/dummy/db/development.sqlite3 +0 -0
  97. data/spec/dummy/db/test.sqlite3 +0 -0
  98. data/spec/dummy/lib/enju_leaf.rb +0 -2
  99. data/spec/dummy/private/system/resource_import_files/resource_imports/000/000/004/original/isbn_sample.txt +3 -0
  100. data/spec/dummy/private/system/resource_import_files/resource_imports/000/000/004/original/item_delete_file.tsv +11 -0
  101. data/spec/dummy/private/system/resource_import_files/resource_imports/000/000/004/original/item_update_file.tsv +4 -0
  102. data/spec/dummy/private/system/resource_import_files/resource_imports/000/000/004/original/resource_import_file_sample1.tsv +19 -0
  103. data/spec/dummy/private/system/resource_import_files/resource_imports/000/000/004/original/resource_import_file_sample2.tsv +19 -0
  104. data/spec/dummy/private/system/resource_import_files/resource_imports/000/000/004/original/update_series_statement.tsv +2 -0
  105. data/spec/dummy/public/system/picture_files/pictures/000/000/005/medium/spinner.gif +0 -0
  106. data/spec/dummy/public/system/picture_files/pictures/000/000/005/original/spinner.gif +0 -0
  107. data/spec/dummy/public/system/picture_files/pictures/000/000/005/thumb/spinner.gif +0 -0
  108. data/spec/dummy/solr/conf/schema.xml +7 -1
  109. data/spec/dummy/solr/data/test/index/{_39.fdt → _h.fdt} +0 -0
  110. data/spec/dummy/solr/data/test/index/_h.fdx +0 -0
  111. data/spec/dummy/solr/data/test/index/_h.fnm +5 -0
  112. data/spec/dummy/solr/data/test/index/_h.frq +0 -0
  113. data/spec/dummy/solr/data/test/index/_h.nrm +1 -0
  114. data/spec/dummy/solr/data/test/index/_h.prx +0 -0
  115. data/spec/dummy/solr/data/test/index/{_39.tii → _h.tii} +0 -0
  116. data/spec/dummy/solr/data/test/index/_h.tis +0 -0
  117. data/spec/dummy/solr/data/test/index/_h_1.del +0 -0
  118. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  119. data/spec/dummy/solr/data/test/index/segments_1e +0 -0
  120. data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
  121. data/spec/dummy/tmp/cache/4F7/F90/default_role +0 -0
  122. data/spec/dummy/tmp/cache/6E4/420/search_engine_all +0 -0
  123. data/spec/fixtures/manifestations.yml +6 -6
  124. data/spec/models/manifestation_spec.rb +8 -1
  125. data/spec/models/resource_import_file_spec.rb +1 -0
  126. metadata +58 -139
  127. data/app/views/manifestations/_form.html.erb.osakac +0 -153
  128. data/spec/dummy/solr/data/test/index/_2s.fdt +0 -0
  129. data/spec/dummy/solr/data/test/index/_2s.fdx +0 -0
  130. data/spec/dummy/solr/data/test/index/_2s.fnm +0 -10
  131. data/spec/dummy/solr/data/test/index/_2s.frq +0 -0
  132. data/spec/dummy/solr/data/test/index/_2s.nrm +0 -1
  133. data/spec/dummy/solr/data/test/index/_2s.prx +0 -0
  134. data/spec/dummy/solr/data/test/index/_2s.tii +0 -0
  135. data/spec/dummy/solr/data/test/index/_2s.tis +0 -0
  136. data/spec/dummy/solr/data/test/index/_2t.fdt +0 -0
  137. data/spec/dummy/solr/data/test/index/_2t.fdx +0 -0
  138. data/spec/dummy/solr/data/test/index/_2t.fnm +0 -10
  139. data/spec/dummy/solr/data/test/index/_2t.frq +0 -0
  140. data/spec/dummy/solr/data/test/index/_2t.nrm +0 -1
  141. data/spec/dummy/solr/data/test/index/_2t.prx +0 -0
  142. data/spec/dummy/solr/data/test/index/_2t.tii +0 -0
  143. data/spec/dummy/solr/data/test/index/_2t.tis +0 -0
  144. data/spec/dummy/solr/data/test/index/_2u.fdt +0 -0
  145. data/spec/dummy/solr/data/test/index/_2u.fdx +0 -0
  146. data/spec/dummy/solr/data/test/index/_2u.fnm +0 -10
  147. data/spec/dummy/solr/data/test/index/_2u.frq +0 -0
  148. data/spec/dummy/solr/data/test/index/_2u.nrm +0 -1
  149. data/spec/dummy/solr/data/test/index/_2u.prx +0 -0
  150. data/spec/dummy/solr/data/test/index/_2u.tii +0 -0
  151. data/spec/dummy/solr/data/test/index/_2u.tis +0 -0
  152. data/spec/dummy/solr/data/test/index/_2z.fdt +0 -0
  153. data/spec/dummy/solr/data/test/index/_2z.fdx +0 -0
  154. data/spec/dummy/solr/data/test/index/_2z.fnm +0 -10
  155. data/spec/dummy/solr/data/test/index/_2z.frq +0 -0
  156. data/spec/dummy/solr/data/test/index/_2z.nrm +0 -1
  157. data/spec/dummy/solr/data/test/index/_2z.prx +0 -0
  158. data/spec/dummy/solr/data/test/index/_2z.tii +0 -0
  159. data/spec/dummy/solr/data/test/index/_2z.tis +0 -0
  160. data/spec/dummy/solr/data/test/index/_39.fdx +0 -0
  161. data/spec/dummy/solr/data/test/index/_39.fnm +0 -10
  162. data/spec/dummy/solr/data/test/index/_39.frq +0 -0
  163. data/spec/dummy/solr/data/test/index/_39.nrm +0 -1
  164. data/spec/dummy/solr/data/test/index/_39.prx +0 -0
  165. data/spec/dummy/solr/data/test/index/_39.tis +0 -0
  166. data/spec/dummy/solr/data/test/index/_39_1.del +0 -0
  167. data/spec/dummy/solr/data/test/index/_k.fdt +0 -0
  168. data/spec/dummy/solr/data/test/index/_k.fdx +0 -0
  169. data/spec/dummy/solr/data/test/index/_k.fnm +0 -10
  170. data/spec/dummy/solr/data/test/index/_k.frq +0 -0
  171. data/spec/dummy/solr/data/test/index/_k.nrm +0 -1
  172. data/spec/dummy/solr/data/test/index/_k.prx +0 -0
  173. data/spec/dummy/solr/data/test/index/_k.tii +0 -0
  174. data/spec/dummy/solr/data/test/index/_k.tis +0 -0
  175. data/spec/dummy/solr/data/test/index/_k_3.del +0 -0
  176. data/spec/dummy/solr/data/test/index/_x.fdt +0 -0
  177. data/spec/dummy/solr/data/test/index/_x.fdx +0 -0
  178. data/spec/dummy/solr/data/test/index/_x.fnm +0 -10
  179. data/spec/dummy/solr/data/test/index/_x.frq +0 -0
  180. data/spec/dummy/solr/data/test/index/_x.nrm +0 -1
  181. data/spec/dummy/solr/data/test/index/_x.prx +0 -0
  182. data/spec/dummy/solr/data/test/index/_x.tii +0 -0
  183. data/spec/dummy/solr/data/test/index/_x.tis +0 -0
  184. data/spec/dummy/solr/data/test/index/_x_2.del +0 -0
  185. data/spec/dummy/solr/data/test/index/segments_39 +0 -0
@@ -2,7 +2,7 @@
2
2
  <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.form_of_work')) -%></h1>
3
3
  <div id="content_list">
4
4
 
5
- <table class="index">
5
+ <table class="table table-striped index">
6
6
  <tr>
7
7
  <th id="position"></th>
8
8
  <th><%= t('activerecord.attributes.form_of_work.name') -%></th>
@@ -2,7 +2,7 @@
2
2
  <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.frequency')) -%></h1>
3
3
  <div id="content_list">
4
4
 
5
- <table class="index">
5
+ <table class="table table-striped index">
6
6
  <tr>
7
7
  <th id="position"></th>
8
8
  <th><%= t('activerecord.attributes.frequency.name') -%></th>
@@ -2,7 +2,7 @@
2
2
  <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.import_request')) -%></h1>
3
3
  <div id="content_list">
4
4
 
5
- <table class="index">
5
+ <table class="table table-striped index">
6
6
  <tr>
7
7
  <th id="edit_icons">Id</th>
8
8
  <th><%= t('activerecord.models.user') -%></th>
@@ -16,7 +16,7 @@
16
16
  <%- end -%>
17
17
  </div>
18
18
 
19
- <table class="index">
19
+ <table class="table table-striped index">
20
20
  <tr>
21
21
  <th><%= t('activerecord.attributes.item.item_identifier') -%></th>
22
22
  <th><%= t('activerecord.models.library') -%></th>
@@ -12,7 +12,7 @@
12
12
  </p>
13
13
  <%- end -%>
14
14
 
15
- <table class="index">
15
+ <table class="table table-striped index">
16
16
  <tr>
17
17
  <th><%= t('activerecord.attributes.item.item_identifier') -%></th>
18
18
  <th><%= t('activerecord.attributes.item.call_number') -%></th>
@@ -101,7 +101,7 @@
101
101
 
102
102
  <p>
103
103
  <strong><%= t('activerecord.attributes.item.acquired_at') -%>:</strong>
104
- <%= l(@item.acquired_at, :format => :only_date) if @item.acquired_at -%>
104
+ <%= l(@item.acquired_at, :formats => :only_date) if @item.acquired_at -%>
105
105
  </p>
106
106
 
107
107
  <p>
@@ -2,7 +2,7 @@
2
2
  <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.language')) -%></h1>
3
3
  <div id="content_list">
4
4
 
5
- <table class="index">
5
+ <table class="table table-striped index">
6
6
  <tr>
7
7
  <th id="position"></th>
8
8
  <th><%= t('activerecord.attributes.language.native_name') -%></th>
@@ -2,7 +2,7 @@
2
2
  <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.license')) -%></h1>
3
3
  <div id="content_list">
4
4
 
5
- <table class="index">
5
+ <table class="table table-striped index">
6
6
  <tr>
7
7
  <th id="position"></th>
8
8
  <th><%= t('activerecord.attributes.license.name') -%></th>
@@ -2,7 +2,7 @@
2
2
  <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.manifestation_relationship_type')) -%></h1>
3
3
  <div id="content_list">
4
4
 
5
- <table class="index">
5
+ <table class="table table-striped index">
6
6
  <tr>
7
7
  <th id="position"></th>
8
8
  <th><%= t('activerecord.attributes.manifestation_relationship_type.name') -%></th>
@@ -2,7 +2,7 @@
2
2
  <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.manifestation_relationship')) -%></h1>
3
3
  <div id="content_list">
4
4
 
5
- <table class="index">
5
+ <table class="table table-striped index">
6
6
  <tr>
7
7
  <th><%= t('activerecord.attributes.manifestation_relationship.parent_id') -%>:</th>
8
8
  <th><%= t('activerecord.attributes.manifestation_relationship.child_id') -%>:</th>
@@ -19,8 +19,10 @@
19
19
  (<%= link_to t('page.listing', :model => t('activerecord.models.series_statement')), manifestation_series_statements_path(@manifestation) -%>)
20
20
  <%- end -%>
21
21
  <%- end -%>
22
- <%= f.fields_for :series_has_manifestation do |s| %>
23
- <%= s.hidden_field :series_statement_id %>
22
+ <% if @series_statement %>
23
+ <%= f.fields_for :series_has_manifestation do |s| %>
24
+ <%= s.hidden_field :series_statement_id %>
25
+ <% end %>
24
26
  <% end %>
25
27
  </div>
26
28
 
@@ -1,5 +1,5 @@
1
1
  <div class="search_form">
2
- <%= form_for :manifestations, :html => {:method => 'get'} do -%>
2
+ <%= form_for :manifestations, :url => manifestations_path, :html => {:method => 'get'} do -%>
3
3
  <p>
4
4
  <%= t('page.search_term') -%>:
5
5
  <%= search_field_tag 'query', h(@query), {:id => 'search_form_top', :class => 'search_form', :placeholder => t('page.search_term')} -%>
@@ -3,12 +3,7 @@
3
3
  <%- libraries = params[:library].to_s.split -%>
4
4
  <%- @library_facet.each do |facet| -%>
5
5
  <%- current_libraries = libraries.dup -%>
6
- <%- library = Library.where(:name => facet.value).select([:name, :display_name]).first -%>
7
- <%- if library -%>
8
- <li>
9
- <%= library_facet(library, current_libraries, facet) %>
10
- </li>
11
- <%- end -%>
6
+ <%= library_facet(current_libraries, facet) %>
12
7
  <%- end -%>
13
8
  <%- if params[:library] -%>
14
9
  <li><%= link_to t('page.remove_this_facet'), url_for(params.merge(:library => nil, :page => nil, :view => nil, :only_path => true)) -%></li>
@@ -1,4 +1,4 @@
1
- <table class="index" id="manifestation_list">
1
+ <table class="table table-striped index" id="manifestation_list">
2
2
  <%= render manifestations %>
3
3
  </table>
4
4
 
@@ -1,3 +1,4 @@
1
+ <% if flash[:search_query] %>
1
2
  <script>
2
3
  $(function(){
3
4
  if(typeof sessionStorage === "undefined"){
@@ -14,6 +15,7 @@
14
15
  };
15
16
  });
16
17
  </script>
18
+ <% end %>
17
19
 
18
20
  <%= form_for :manifestations, :url => manifestations_path, :html => {:method => 'get'} do -%>
19
21
  <div>
@@ -5,7 +5,7 @@
5
5
  <%= google_book_search_preview(manifestation.isbn) -%>
6
6
  <%- end -%>
7
7
  <% cache([:manifestation => manifestation.id, :fragment => 'show_detail_librarian_html', :role => current_user_role_name, :locale => @locale]) do %>
8
- <table id="resource_detail">
8
+ <table class="table table-striped" id="resource_detail">
9
9
  <%= embed_content(manifestation) -%>
10
10
  <% if manifestation.title_alternative? %>
11
11
  <tr>
@@ -5,7 +5,7 @@
5
5
  <%= google_book_search_preview(manifestation.isbn) -%>
6
6
  <%- end -%>
7
7
  <% cache([:manifestation => manifestation.id, :fragment => 'show_detail_user_html', :role => current_user_role_name, :locale => @locale]) do %>
8
- <table id="resource_detail">
8
+ <table class="table table-striped" id="resource_detail">
9
9
  <%= embed_content(manifestation) -%>
10
10
  <% if manifestation.title_alternative? %>
11
11
  <tr>
@@ -1,5 +1,5 @@
1
1
  <div id="holding">
2
- <table class="holding">
2
+ <table class="table table-striped holding">
3
3
  <tr>
4
4
  <th><%= t('activerecord.attributes.item.item_identifier') -%></th>
5
5
  <th><%= t('activerecord.models.library') -%></th>
@@ -1,4 +1,4 @@
1
- <table style="width: 100%">
1
+ <table class="table table-striped">
2
2
  <tr>
3
3
  <th><%= t('activerecord.models.library') -%></th>
4
4
  <th><%= t('activerecord.models.shelf') -%></th>
@@ -1,4 +1,4 @@
1
- <table id="resource_detail">
1
+ <table class="table table-striped" id="resource_detail">
2
2
  <tr>
3
3
  <td style="width: 200px"><%= t('activerecord.attributes.series_statement.title_transcription') -%></td>
4
4
  <td style="width: 490px"><%= @series_statement.title_transcription %></td>
@@ -1,4 +1,4 @@
1
1
  manifestation_identifier original_title creator publisher isbn pub_date note
2
2
  <%- @manifestations.each do |manifestation| -%>
3
- <%= manifestation.manifestation_identifier %> "<%=raw manifestation.original_title.gsub(/"/, '""') -%>" <%=raw manifestation.creators.collect(&:full_name).join('; ') -%> <%=raw manifestation.publishers.collect(&:full_name).join('; ') -%> <%= manifestation.isbn -%> <%= manifestation.pub_date -%> <%= manifestation.note -%><%= "\n" -%>
3
+ <%= manifestation.manifestation_identifier %> "<%=raw manifestation.original_title.gsub(/"/, '""') -%>" <%=raw manifestation.creators.pluck(:full_name).join('; ') -%> <%=raw manifestation.publishers.pluck(:full_name).join('; ') -%> <%= manifestation.isbn -%> <%= manifestation.pub_date -%> <%= manifestation.note -%><%= "\n" -%>
4
4
  <%- end -%>
@@ -49,7 +49,7 @@
49
49
  <%- if params[:sort_by] == 'title' -%>
50
50
  <strong><%= t('page.title') -%></strong>
51
51
  <%- else -%>
52
- <%= link_to t('page.title'), url_for(params.merge(:sort_by => 'sort_title', :only_path => true)) -%>
52
+ <%= link_to t('page.title'), url_for(params.merge(:sort_by => 'title', :only_path => true)) -%>
53
53
  <%- end -%>
54
54
  </p>
55
55
 
@@ -4,7 +4,7 @@
4
4
  </div>
5
5
  <div data-role="content">
6
6
  <%= render 'title', :manifestation => @manifestation %>
7
- <table>
7
+ <table class="table table-striped">
8
8
  <tr>
9
9
  <th>ISBN</th>
10
10
  <td><%= @manifestation.isbn %></td>
@@ -2,7 +2,7 @@
2
2
  <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.medium_of_performance')) -%></h1>
3
3
  <div id="content_list">
4
4
 
5
- <table class="index">
5
+ <table class="table table-striped index">
6
6
  <tr>
7
7
  <th id="position"></th>
8
8
  <th><%= t('activerecord.attributes.medium_of_performance.name') -%></th>
@@ -2,7 +2,7 @@
2
2
  <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.own')) -%></h1>
3
3
  <div id="content_list">
4
4
 
5
- <table class="index">
5
+ <table class="table table-striped index">
6
6
  <tr>
7
7
  <th><%= t('activerecord.models.patron') -%></th>
8
8
  <th><%= t('activerecord.models.item') -%></th>
@@ -2,7 +2,7 @@
2
2
  <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.patron_import_file')) -%></h1>
3
3
  <div id="content_list">
4
4
 
5
- <table class="index">
5
+ <table class="table table-striped index">
6
6
  <tr>
7
7
  <th>Id</th>
8
8
  <th><%= t('activerecord.attributes.patron_import_file.patron_import_file_name') -%></th>
@@ -7,7 +7,7 @@
7
7
  </h2>
8
8
  <% end %>
9
9
 
10
- <table class="index">
10
+ <table class="table table-striped index">
11
11
  <tr>
12
12
  <th><%= t('activerecord.models.patron_import_file') %></th>
13
13
  <th><%= t('activerecord.models.patron') %></th>
@@ -2,7 +2,7 @@
2
2
  <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.patron_relationship_type')) -%></h1>
3
3
  <div id="content_list">
4
4
 
5
- <table class="index">
5
+ <table class="table table-striped index">
6
6
  <tr>
7
7
  <th id="position"></th>
8
8
  <th><%= t('activerecord.attributes.patron_relationship_type.name') -%></th>
@@ -2,7 +2,7 @@
2
2
  <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.patron_relationship')) -%></h1>
3
3
  <div id="content_list">
4
4
 
5
- <table class="index">
5
+ <table class="table table-striped index">
6
6
  <tr>
7
7
  <th><%= t('activerecord.attributes.patron_relationship.parent_id') -%>:</th>
8
8
  <th><%= t('activerecord.attributes.patron_relationship.child_id') -%>:</th>
@@ -2,7 +2,7 @@
2
2
  <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.patron_type')) -%></h1>
3
3
  <div id="content_list">
4
4
 
5
- <table class="index">
5
+ <table class="table table-striped index">
6
6
  <tr>
7
7
  <th id="position"></th>
8
8
  <th><%= t('activerecord.attributes.patron_type.name') -%></th>
@@ -11,12 +11,10 @@
11
11
  <%- end -%>
12
12
  </div>
13
13
 
14
- <table class="index">
14
+ <table class="table table-striped index">
15
15
  <tr>
16
16
  <th><%= t('activerecord.attributes.patron.full_name') -%></th>
17
- <th><%= t('activerecord.attributes.user.username') -%></th>
18
17
  <th><%= t('activerecord.models.patron_type') -%></th>
19
- <th><%= t('activerecord.attributes.patron.date_of_birth') -%></th>
20
18
  <th id="edit_icons"></th>
21
19
  </tr>
22
20
  <%= render @patrons %>
@@ -20,7 +20,7 @@
20
20
  <%- end -%>
21
21
  </div>
22
22
 
23
- <table class="index">
23
+ <table class="table table-striped index">
24
24
  <tr>
25
25
  <th><%= t('activerecord.attributes.patron.full_name') -%></th>
26
26
  <th><%= t('activerecord.models.realize_type') -%></th>
@@ -16,7 +16,7 @@
16
16
  <%- end -%>
17
17
  </div>
18
18
 
19
- <table class="index">
19
+ <table class="table table-striped index">
20
20
  <tr>
21
21
  <th><%= t('activerecord.attributes.patron.full_name') -%></th>
22
22
  <th><%= t('activerecord.models.produce_type') -%></th>
@@ -18,7 +18,7 @@
18
18
  <%- end -%>
19
19
  </div>
20
20
 
21
- <table class="index">
21
+ <table class="table table-striped index">
22
22
  <tr>
23
23
  <th><%= t('activerecord.attributes.patron.full_name') -%></th>
24
24
  <th><%= t('activerecord.attributes.user.username') -%></th>
@@ -15,7 +15,7 @@
15
15
  <%- end -%>
16
16
  </div>
17
17
 
18
- <table class="index">
18
+ <table class="table table-striped index">
19
19
  <tr>
20
20
  <th><%= t('activerecord.attributes.patron.full_name') -%></th>
21
21
  <th><%= t('activerecord.models.patron_type') -%></th>
@@ -23,7 +23,7 @@
23
23
  <%- end -%>
24
24
  </div>
25
25
 
26
- <table class="index">
26
+ <table class="table table-striped index">
27
27
  <tr>
28
28
  <th><%= t('activerecord.attributes.patron.full_name') -%></th>
29
29
  <th><%= t('activerecord.models.create_type') -%></th>
@@ -3,11 +3,7 @@
3
3
  <%= link_to patron.full_name, patron -%><br />
4
4
  <%= patron.full_name_transcription -%>
5
5
  </td>
6
- <td>
7
- <%= link_to patron.user.username, edit_user_path(patron.user) if patron.user -%>
8
- </td>
9
6
  <td><%= patron.patron_type.display_name.localize -%></td>
10
- <td><%= l(patron.date_of_birth, :format => :only_date) if patron.date_of_birth -%></td>
11
7
  <td>
12
8
  <%- if can? :destroy, patron -%>
13
9
  <%= link_to image_tag('icons/page_white_edit.png', :size => '16x16', :alt => t('page.edit')), edit_patron_path(patron) -%>
@@ -33,7 +33,7 @@
33
33
  <li><a href="#history"><em><%= t('page.history') -%></em></a></li>
34
34
  </ul>
35
35
  <div id="detail">
36
- <table class="index vcard">
36
+ <table class="table table-striped index vcard">
37
37
  <tr>
38
38
  <td><strong><%= t('activerecord.attributes.patron.full_name') -%>:</strong></td>
39
39
  <td>
@@ -122,11 +122,11 @@
122
122
  <%- if !@patron.user or (@patron.user and current_user.try(:has_role?, 'Administrator')) %>
123
123
  <tr>
124
124
  <td><strong><%= t('activerecord.attributes.patron.date_of_birth') -%>:</strong></td>
125
- <td><%= l(@patron.date_of_birth, :format => :only_date) if @patron.date_of_birth -%></td>
125
+ <td><%= l(@patron.date_of_birth, :formats => :only_date) if @patron.date_of_birth -%></td>
126
126
  </tr>
127
127
  <tr>
128
128
  <td><strong><%= t('activerecord.attributes.patron.date_of_death') -%>:</strong></td>
129
- <td><%= l(@patron.date_of_death, :format => :only_date) if @patron.date_of_death -%></td>
129
+ <td><%= l(@patron.date_of_death, :formats => :only_date) if @patron.date_of_death -%></td>
130
130
  </tr>
131
131
  <% end %>
132
132
  <%- end -%>
@@ -7,7 +7,7 @@
7
7
  <%= @patron.full_name -%>
8
8
  </h2>
9
9
  <div id="detail">
10
- <table class="index vcard">
10
+ <table class="table table-striped index vcard">
11
11
  <tr>
12
12
  <td><strong><%= t('activerecord.attributes.patron.full_name') -%>:</strong></td>
13
13
  <td>
@@ -2,7 +2,7 @@
2
2
  <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.picture_file')) -%></h1>
3
3
  <div id="content_list">
4
4
 
5
- <table class="index">
5
+ <table class="table table-striped index">
6
6
  <tr>
7
7
  <th id="position"></th>
8
8
  <th><%= t('page.attachable') -%></th>
@@ -4,7 +4,7 @@
4
4
 
5
5
  <h2 class="resource_title"><%= link_to event.display_name.localize, event -%></h2>
6
6
 
7
- <table class="index">
7
+ <table class="table table-striped index">
8
8
  <tr>
9
9
  <th id="position"></th>
10
10
  <th><%= t('page.attachable') -%></th>
@@ -6,7 +6,7 @@
6
6
  [M] <%= link_to manifestation.original_title, manifestation -%>
7
7
  </h2>
8
8
 
9
- <table class="index">
9
+ <table class="table table-striped index">
10
10
  <tr>
11
11
  <th id="position"></th>
12
12
  <th><%= t('page.attachable') -%></th>
@@ -6,7 +6,7 @@
6
6
  [P] <%= link_to patron.full_name, patron -%>
7
7
  </h2>
8
8
 
9
- <table class="index">
9
+ <table class="table table-striped index">
10
10
  <tr>
11
11
  <th id="position"></th>
12
12
  <th><%= t('page.attachable') -%></th>
@@ -4,7 +4,7 @@
4
4
 
5
5
  <h2 class="resource_title"><%= link_to shelf.display_name.localize, shelf -%></h2>
6
6
 
7
- <table class="index">
7
+ <table class="table table-striped index">
8
8
  <tr>
9
9
  <th id="position"></th>
10
10
  <th><%= t('page.attachable') -%></th>
@@ -2,7 +2,7 @@
2
2
  <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.produce_type')) -%></h1>
3
3
  <div id="content_list">
4
4
 
5
- <table class="index">
5
+ <table class="table table-striped index">
6
6
  <tr>
7
7
  <th id="position"></th>
8
8
  <th><%= t('activerecord.attributes.produce_type.name') -%></th>
@@ -2,7 +2,7 @@
2
2
  <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.produce')) -%></h1>
3
3
  <div id="content_list">
4
4
 
5
- <table class="index">
5
+ <table class="table table-striped index">
6
6
  <tr>
7
7
  <th><%= t('activerecord.models.patron') -%></th>
8
8
  <th><%= t('activerecord.models.manifestation') -%></th>
@@ -5,7 +5,7 @@
5
5
  <%= link_to manifestation.original_title, manifestation -%>
6
6
  </h2>
7
7
 
8
- <table class="index">
8
+ <table class="table table-striped index">
9
9
  <tr>
10
10
  <th id="position"></th>
11
11
  <th><%= t('activerecord.models.patron') -%></th>
@@ -4,7 +4,7 @@
4
4
  <h2 class="resource_title">
5
5
  <%= link_to patron.full_name, patron -%>
6
6
  </h2>
7
- <table class="index">
7
+ <table class="table table-striped index">
8
8
  <tr>
9
9
  <th><%= t('activerecord.models.manifestation') -%></th>
10
10
  <th><%= t('page.created_at') -%></th>
@@ -2,7 +2,7 @@
2
2
  <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.realize_type')) -%></h1>
3
3
  <div id="content_list">
4
4
 
5
- <table class="index">
5
+ <table class="table table-striped index">
6
6
  <tr>
7
7
  <th id="position"></th>
8
8
  <th><%= t('activerecord.attributes.realize_type.name') -%></th>
@@ -2,7 +2,7 @@
2
2
  <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.realize')) -%></h1>
3
3
  <div id="content_list">
4
4
 
5
- <table class="index">
5
+ <table class="table table-striped index">
6
6
  <tr>
7
7
  <th><%= t('activerecord.models.patron') -%></th>
8
8
  <th><%= t('activerecord.models.manifestation') -%></th>
@@ -5,7 +5,7 @@
5
5
  <%= link_to expression.original_title, expression -%>
6
6
  </h2>
7
7
 
8
- <table class="index">
8
+ <table class="table table-striped index">
9
9
  <tr>
10
10
  <th id="position"></th>
11
11
  <th><%= t('activerecord.models.patron') -%></th>
@@ -4,7 +4,7 @@
4
4
  <h2 class="resource_title">
5
5
  <%= link_to patron.full_name, patron -%>
6
6
  </h2>
7
- <table class="index">
7
+ <table class="table table-striped index">
8
8
  <tr>
9
9
  <th><%= t('activerecord.models.manifestation') -%></th>
10
10
  <th><%= t('page.created_at') -%></th>
@@ -2,7 +2,7 @@
2
2
  <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.resource_import_file')) -%></h1>
3
3
  <div id="content_list">
4
4
 
5
- <table class="index">
5
+ <table class="table table-striped index">
6
6
  <tr>
7
7
  <th>Id</th>
8
8
  <th><%= t('activerecord.attributes.resource_import_file.resource_import_file_name') -%></th>
@@ -7,7 +7,7 @@
7
7
  </h2>
8
8
  <% end %>
9
9
 
10
- <table class="index">
10
+ <table class="table table-striped index">
11
11
  <tr>
12
12
  <th><%= t('activerecord.models.resource_import_file') %></th>
13
13
  <th><%= t('activerecord.models.manifestation') %></th>
@@ -2,7 +2,7 @@
2
2
  <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.series_has_manifestation')) -%></h1>
3
3
  <div id="content_list">
4
4
 
5
- <table class="index">
5
+ <table class="table table-striped index">
6
6
  <tr>
7
7
  <th><%= t('activerecord.models.series_statement') -%></th>
8
8
  <th><%= t('activerecord.models.manifestation') -%></th>
@@ -12,7 +12,7 @@
12
12
  <%- end -%>
13
13
  </div>
14
14
 
15
- <table class="index">
15
+ <table class="table table-striped index">
16
16
  <tr>
17
17
  <th id="position"></th>
18
18
  <th><%= t('activerecord.attributes.series_statement.original_title') -%></th>
@@ -15,7 +15,7 @@
15
15
  <%- end -%>
16
16
  </div>
17
17
 
18
- <table class="index">
18
+ <table class="table table-striped index">
19
19
  <tr>
20
20
  <th><%= t('activerecord.attributes.series_statement.original_title') -%></th>
21
21
  <th><%= t('activerecord.attributes.series_statement.issn') -%></th>
@@ -15,7 +15,7 @@
15
15
  <%- end -%>
16
16
  </div>
17
17
 
18
- <table class="index">
18
+ <table class="table table-striped index">
19
19
  <tr>
20
20
  <th><%= t('activerecord.attributes.series_statement.original_title') -%></th>
21
21
  <th><%= t('activerecord.attributes.series_statement.issn') -%></th>
@@ -1,6 +1,6 @@
1
1
  <div id="manifestation">
2
2
  <%= will_paginate(@manifestations, :param_name => :manifestation_page, :class => 'content_pagination digg_pagination') -%>
3
- <table class="index">
3
+ <table class="table table-striped index">
4
4
  <%- @manifestations.each do |manifestation| -%>
5
5
  <% next if manifestation.periodical_master? %>
6
6
  <tr class="line<%= cycle("0", "1") -%>">