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.
- data/app/controllers/items_controller.rb +5 -1
- data/app/controllers/manifestations_controller.rb +16 -13
- data/app/controllers/picture_files_controller.rb +2 -2
- data/app/helpers/manifestations_helper.rb +9 -5
- data/app/models/item.rb +11 -109
- data/app/models/manifestation.rb +53 -20
- data/app/models/page_sweeper.rb +1 -1
- data/app/models/patron.rb +2 -1
- data/app/models/patron_import_file.rb +2 -2
- data/app/models/picture_file.rb +4 -2
- data/app/models/resource_import_file.rb +8 -4
- data/app/models/series_statement.rb +1 -1
- data/app/views/carrier_types/index.html.erb +1 -1
- data/app/views/content_types/index.html.erb +1 -1
- data/app/views/countries/index.html.erb +1 -1
- data/app/views/create_types/index.html.erb +1 -1
- data/app/views/creates/_index.html.erb +1 -1
- data/app/views/creates/_index_patron.html.erb +1 -1
- data/app/views/creates/_index_work.html.erb +1 -1
- data/app/views/donates/index.html.erb +1 -1
- data/app/views/exemplifies/index.html.erb +1 -1
- data/app/views/extents/index.html.erb +1 -1
- data/app/views/form_of_works/index.html.erb +1 -1
- data/app/views/frequencies/index.html.erb +1 -1
- data/app/views/import_requests/index.html.erb +1 -1
- data/app/views/items/index.html.erb +1 -1
- data/app/views/items/index.mobile.erb +1 -1
- data/app/views/items/show.html.erb +1 -1
- data/app/views/languages/index.html.erb +1 -1
- data/app/views/licenses/index.html.erb +1 -1
- data/app/views/manifestation_relationship_types/index.html.erb +1 -1
- data/app/views/manifestation_relationships/index.html.erb +1 -1
- data/app/views/manifestations/_form.html.erb +4 -2
- data/app/views/manifestations/_index_form.html.erb +1 -1
- data/app/views/manifestations/_library_facet.html.erb +1 -6
- data/app/views/manifestations/_list.html.erb +1 -1
- data/app/views/manifestations/_paginate_id_link.html.erb +2 -0
- data/app/views/manifestations/_show_detail_librarian.html.erb +1 -1
- data/app/views/manifestations/_show_detail_user.html.erb +1 -1
- data/app/views/manifestations/_show_holding.html.erb +1 -1
- data/app/views/manifestations/_show_holding.mobile.erb +1 -1
- data/app/views/manifestations/_show_series_statement.html.erb +1 -1
- data/app/views/manifestations/index.csv.erb +1 -1
- data/app/views/manifestations/index.html.erb +1 -1
- data/app/views/manifestations/show.mobile.erb +1 -1
- data/app/views/medium_of_performances/index.html.erb +1 -1
- data/app/views/owns/index.html.erb +1 -1
- data/app/views/patron_import_files/index.html.erb +1 -1
- data/app/views/patron_import_results/index.html.erb +1 -1
- data/app/views/patron_relationship_types/index.html.erb +1 -1
- data/app/views/patron_relationships/index.html.erb +1 -1
- data/app/views/patron_types/index.html.erb +1 -1
- data/app/views/patrons/_index.html.erb +1 -3
- data/app/views/patrons/_index_expression.html.erb +1 -1
- data/app/views/patrons/_index_manifestation.html.erb +1 -1
- data/app/views/patrons/_index_patron.html.erb +1 -1
- data/app/views/patrons/_index_patron_merge_list.html.erb +1 -1
- data/app/views/patrons/_index_work.html.erb +1 -1
- data/app/views/patrons/_patron.html.erb +0 -4
- data/app/views/patrons/show.html.erb +3 -3
- data/app/views/patrons/show.mobile.erb +1 -1
- data/app/views/picture_files/_index.html.erb +1 -1
- data/app/views/picture_files/_index_event.html.erb +1 -1
- data/app/views/picture_files/_index_manifestation.html.erb +1 -1
- data/app/views/picture_files/_index_patron.html.erb +1 -1
- data/app/views/picture_files/_index_shelf.html.erb +1 -1
- data/app/views/produce_types/index.html.erb +1 -1
- data/app/views/produces/_index.html.erb +1 -1
- data/app/views/produces/_index_manifestation.html.erb +1 -1
- data/app/views/produces/_index_patron.html.erb +1 -1
- data/app/views/realize_types/index.html.erb +1 -1
- data/app/views/realizes/_index.html.erb +1 -1
- data/app/views/realizes/_index_expression.html.erb +1 -1
- data/app/views/realizes/_index_patron.html.erb +1 -1
- data/app/views/resource_import_files/index.html.erb +1 -1
- data/app/views/resource_import_results/index.html.erb +1 -1
- data/app/views/series_has_manifestations/index.html.erb +1 -1
- data/app/views/series_statements/_index.html.erb +1 -1
- data/app/views/series_statements/_index_manifestation.html.erb +1 -1
- data/app/views/series_statements/_index_series_statement_merge_list.html.erb +1 -1
- data/app/views/series_statements/_manifestation_list.html.erb +1 -1
- data/app/views/series_statements/_merge.html.erb +1 -1
- data/app/views/series_statements/show.html.erb +1 -1
- data/config/routes.rb +13 -13
- data/lib/enju_biblio/biblio_helper.rb +59 -0
- data/lib/enju_biblio/engine.rb +1 -0
- data/{spec/dummy/lib/enju_leaf → lib/enju_biblio}/openurl.rb +0 -0
- data/{spec/dummy/lib/enju_leaf → lib/enju_biblio}/porta_cql.rb +1 -1
- data/{spec/dummy/lib/enju_leaf → lib/enju_biblio}/sru.rb +1 -1
- data/lib/enju_biblio/version.rb +1 -1
- data/lib/enju_biblio.rb +4 -0
- data/spec/cassette_library/enju_ndl/manifestation.yml +10 -10
- data/spec/cassette_library/enju_ndl/ndl_search.yml +18 -18
- data/spec/dummy/app/mailers/notifier.rb +6 -2
- data/spec/dummy/config/initializers/resque_mailer.rb +1 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/lib/enju_leaf.rb +0 -2
- data/spec/dummy/private/system/resource_import_files/resource_imports/000/000/004/original/isbn_sample.txt +3 -0
- data/spec/dummy/private/system/resource_import_files/resource_imports/000/000/004/original/item_delete_file.tsv +11 -0
- data/spec/dummy/private/system/resource_import_files/resource_imports/000/000/004/original/item_update_file.tsv +4 -0
- data/spec/dummy/private/system/resource_import_files/resource_imports/000/000/004/original/resource_import_file_sample1.tsv +19 -0
- data/spec/dummy/private/system/resource_import_files/resource_imports/000/000/004/original/resource_import_file_sample2.tsv +19 -0
- data/spec/dummy/private/system/resource_import_files/resource_imports/000/000/004/original/update_series_statement.tsv +2 -0
- data/spec/dummy/public/system/picture_files/pictures/000/000/005/medium/spinner.gif +0 -0
- data/spec/dummy/public/system/picture_files/pictures/000/000/005/original/spinner.gif +0 -0
- data/spec/dummy/public/system/picture_files/pictures/000/000/005/thumb/spinner.gif +0 -0
- data/spec/dummy/solr/conf/schema.xml +7 -1
- data/spec/dummy/solr/data/test/index/{_39.fdt → _h.fdt} +0 -0
- data/spec/dummy/solr/data/test/index/_h.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_h.fnm +5 -0
- data/spec/dummy/solr/data/test/index/_h.frq +0 -0
- data/spec/dummy/solr/data/test/index/_h.nrm +1 -0
- data/spec/dummy/solr/data/test/index/_h.prx +0 -0
- data/spec/dummy/solr/data/test/index/{_39.tii → _h.tii} +0 -0
- data/spec/dummy/solr/data/test/index/_h.tis +0 -0
- data/spec/dummy/solr/data/test/index/_h_1.del +0 -0
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/segments_1e +0 -0
- data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
- data/spec/dummy/tmp/cache/4F7/F90/default_role +0 -0
- data/spec/dummy/tmp/cache/6E4/420/search_engine_all +0 -0
- data/spec/fixtures/manifestations.yml +6 -6
- data/spec/models/manifestation_spec.rb +8 -1
- data/spec/models/resource_import_file_spec.rb +1 -0
- metadata +58 -139
- data/app/views/manifestations/_form.html.erb.osakac +0 -153
- data/spec/dummy/solr/data/test/index/_2s.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_2s.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_2s.fnm +0 -10
- data/spec/dummy/solr/data/test/index/_2s.frq +0 -0
- data/spec/dummy/solr/data/test/index/_2s.nrm +0 -1
- data/spec/dummy/solr/data/test/index/_2s.prx +0 -0
- data/spec/dummy/solr/data/test/index/_2s.tii +0 -0
- data/spec/dummy/solr/data/test/index/_2s.tis +0 -0
- data/spec/dummy/solr/data/test/index/_2t.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_2t.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_2t.fnm +0 -10
- data/spec/dummy/solr/data/test/index/_2t.frq +0 -0
- data/spec/dummy/solr/data/test/index/_2t.nrm +0 -1
- data/spec/dummy/solr/data/test/index/_2t.prx +0 -0
- data/spec/dummy/solr/data/test/index/_2t.tii +0 -0
- data/spec/dummy/solr/data/test/index/_2t.tis +0 -0
- data/spec/dummy/solr/data/test/index/_2u.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_2u.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_2u.fnm +0 -10
- data/spec/dummy/solr/data/test/index/_2u.frq +0 -0
- data/spec/dummy/solr/data/test/index/_2u.nrm +0 -1
- data/spec/dummy/solr/data/test/index/_2u.prx +0 -0
- data/spec/dummy/solr/data/test/index/_2u.tii +0 -0
- data/spec/dummy/solr/data/test/index/_2u.tis +0 -0
- data/spec/dummy/solr/data/test/index/_2z.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_2z.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_2z.fnm +0 -10
- data/spec/dummy/solr/data/test/index/_2z.frq +0 -0
- data/spec/dummy/solr/data/test/index/_2z.nrm +0 -1
- data/spec/dummy/solr/data/test/index/_2z.prx +0 -0
- data/spec/dummy/solr/data/test/index/_2z.tii +0 -0
- data/spec/dummy/solr/data/test/index/_2z.tis +0 -0
- data/spec/dummy/solr/data/test/index/_39.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_39.fnm +0 -10
- data/spec/dummy/solr/data/test/index/_39.frq +0 -0
- data/spec/dummy/solr/data/test/index/_39.nrm +0 -1
- data/spec/dummy/solr/data/test/index/_39.prx +0 -0
- data/spec/dummy/solr/data/test/index/_39.tis +0 -0
- data/spec/dummy/solr/data/test/index/_39_1.del +0 -0
- data/spec/dummy/solr/data/test/index/_k.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_k.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_k.fnm +0 -10
- data/spec/dummy/solr/data/test/index/_k.frq +0 -0
- data/spec/dummy/solr/data/test/index/_k.nrm +0 -1
- data/spec/dummy/solr/data/test/index/_k.prx +0 -0
- data/spec/dummy/solr/data/test/index/_k.tii +0 -0
- data/spec/dummy/solr/data/test/index/_k.tis +0 -0
- data/spec/dummy/solr/data/test/index/_k_3.del +0 -0
- data/spec/dummy/solr/data/test/index/_x.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_x.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_x.fnm +0 -10
- data/spec/dummy/solr/data/test/index/_x.frq +0 -0
- data/spec/dummy/solr/data/test/index/_x.nrm +0 -1
- data/spec/dummy/solr/data/test/index/_x.prx +0 -0
- data/spec/dummy/solr/data/test/index/_x.tii +0 -0
- data/spec/dummy/solr/data/test/index/_x.tis +0 -0
- data/spec/dummy/solr/data/test/index/_x_2.del +0 -0
- 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>
|
@@ -101,7 +101,7 @@
|
|
101
101
|
|
102
102
|
<p>
|
103
103
|
<strong><%= t('activerecord.attributes.item.acquired_at') -%>:</strong>
|
104
|
-
<%= l(@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
|
-
|
23
|
-
<%=
|
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
|
-
|
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,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,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.
|
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 => '
|
52
|
+
<%= link_to t('page.title'), url_for(params.merge(:sort_by => 'title', :only_path => true)) -%>
|
53
53
|
<%- end -%>
|
54
54
|
</p>
|
55
55
|
|
@@ -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>
|
@@ -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 %>
|
@@ -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, :
|
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, :
|
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 -%>
|
@@ -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>
|
@@ -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>
|
@@ -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>
|
@@ -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>
|
@@ -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>
|
@@ -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") -%>">
|