enju_biblio 0.3.9 → 0.3.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/content_types_controller.rb +1 -1
- data/app/controllers/item_custom_properties_controller.rb +69 -0
- data/app/controllers/items_controller.rb +3 -0
- data/app/controllers/manifestation_custom_properties_controller.rb +69 -0
- data/app/controllers/manifestations_controller.rb +9 -6
- data/app/controllers/resource_import_results_controller.rb +6 -2
- data/app/models/agent_type.rb +0 -1
- data/app/models/carrier_type.rb +0 -1
- data/app/models/content_type.rb +0 -1
- data/app/models/form_of_work.rb +1 -2
- data/app/models/frequency.rb +0 -1
- data/app/models/identifier_type.rb +0 -1
- data/app/models/item.rb +17 -6
- data/app/models/item_custom_property.rb +18 -0
- data/app/models/item_custom_value.rb +17 -0
- data/app/models/license.rb +0 -1
- data/app/models/manifestation.rb +55 -11
- data/app/models/manifestation_custom_property.rb +18 -0
- data/app/models/manifestation_custom_value.rb +17 -0
- data/app/models/medium_of_performance.rb +1 -2
- data/app/models/picture_file.rb +0 -2
- data/app/models/resource_export_file.rb +4 -2
- data/app/models/resource_import_file.rb +151 -61
- data/app/policies/item_custom_property_policy.rb +21 -0
- data/app/policies/manifestation_custom_property_policy.rb +21 -0
- data/app/views/item_custom_properties/_form.html.erb +32 -0
- data/app/views/item_custom_properties/edit.html.erb +13 -0
- data/app/views/item_custom_properties/index.html.erb +43 -0
- data/app/views/item_custom_properties/new.html.erb +12 -0
- data/app/views/item_custom_properties/show.html.erb +28 -0
- data/app/views/items/_form.html.erb +13 -0
- data/app/views/items/show.html.erb +6 -0
- data/app/views/manifestation_custom_properties/_form.html.erb +32 -0
- data/app/views/manifestation_custom_properties/edit.html.erb +13 -0
- data/app/views/manifestation_custom_properties/index.html.erb +43 -0
- data/app/views/manifestation_custom_properties/new.html.erb +12 -0
- data/app/views/manifestation_custom_properties/show.html.erb +28 -0
- data/app/views/manifestations/_export_detail.html.erb +1 -0
- data/app/views/manifestations/_export_list.html.erb +1 -0
- data/app/views/manifestations/_form.html.erb +18 -0
- data/app/views/manifestations/_show_detail_librarian.html.erb +14 -0
- data/app/views/manifestations/_show_detail_user.html.erb +8 -0
- data/app/views/manifestations/show.json.jbuilder +2 -0
- data/app/views/picture_files/edit.html.erb +4 -0
- data/config/locales/translation_en.yml +22 -8
- data/config/locales/translation_ja.yml +22 -8
- data/config/routes.rb +2 -0
- data/db/migrate/20081027150907_create_picture_files.rb +0 -2
- data/db/migrate/20200425072340_create_manifestation_custom_properties.rb +12 -0
- data/db/migrate/20200425072349_create_item_custom_properties.rb +12 -0
- data/db/migrate/20200425074758_create_manifestation_custom_values.rb +12 -0
- data/db/migrate/20200425074822_create_item_custom_values.rb +12 -0
- data/lib/enju_biblio/openurl.rb +5 -1
- data/lib/enju_biblio/sru.rb +2 -0
- data/lib/enju_biblio/version.rb +1 -1
- data/spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/when_it_is_written_in_utf-8/should_import_custom_values.yml +121 -0
- data/spec/cassette_library/resource_import_results/index_txt_ruby/renders_a_list_of_resource_import_results.yml +121 -0
- data/spec/controllers/content_types_controller_spec.rb +1 -1
- data/spec/controllers/item_custom_properties_controller_spec.rb +449 -0
- data/spec/controllers/items_controller_spec.rb +22 -0
- data/spec/controllers/manifestation_custom_properties_controller_spec.rb +449 -0
- data/spec/controllers/manifestations_controller_spec.rb +22 -0
- data/spec/dummy/db/schema.rb +43 -23
- data/spec/factories/item_custom_property.rb +6 -0
- data/spec/factories/item_custom_value.rb +6 -0
- data/spec/factories/manifestation_custom_property.rb +6 -0
- data/spec/factories/manifestation_custom_value.rb +6 -0
- data/spec/fixtures/creates.yml +2 -0
- data/spec/fixtures/item_custom_properties.yml +24 -0
- data/spec/fixtures/library_groups.yml +0 -2
- data/spec/fixtures/manifestation_custom_properties.yml +24 -0
- data/spec/fixtures/picture_files.yml +0 -2
- data/spec/fixtures/produces.yml +2 -0
- data/spec/fixtures/realizes.yml +2 -0
- data/spec/models/item_custom_property_spec.rb +18 -0
- data/spec/models/item_custom_value_spec.rb +17 -0
- data/spec/models/manifestation_custom_property_spec.rb +18 -0
- data/spec/models/manifestation_custom_value_spec.rb +17 -0
- data/spec/models/manifestation_spec.rb +16 -1
- data/spec/models/picture_file_spec.rb +0 -2
- data/spec/models/resource_export_file_spec.rb +61 -8
- data/spec/models/resource_import_file_spec.rb +43 -13
- data/spec/requests/item_custom_properties_spec.rb +129 -0
- data/spec/requests/manifestation_custom_properties_spec.rb +129 -0
- data/spec/routing/item_custom_properties_routing_spec.rb +38 -0
- data/spec/routing/manifestation_custom_properties_routing_spec.rb +38 -0
- data/spec/system/items_spec.rb +12 -0
- data/spec/system/manifestations_spec.rb +12 -0
- data/spec/views/item_custom_properties/edit.html.erb_spec.rb +21 -0
- data/spec/views/item_custom_properties/index.html.erb_spec.rb +25 -0
- data/spec/views/item_custom_properties/new.html.erb_spec.rb +21 -0
- data/spec/views/item_custom_properties/show.html.erb_spec.rb +16 -0
- data/spec/views/manifestation_custom_properties/edit.html.erb_spec.rb +21 -0
- data/spec/views/manifestation_custom_properties/index.html.erb_spec.rb +25 -0
- data/spec/views/manifestation_custom_properties/new.html.erb_spec.rb +21 -0
- data/spec/views/manifestation_custom_properties/show.html.erb_spec.rb +16 -0
- data/spec/views/manifestations/show.json.jbuilder_spec.rb +16 -0
- data/spec/views/resource_import_results/index.txt.ruby_spec.rb +4 -4
- metadata +560 -481
- data/db/migrate/20200322053443_add_default_custom_label_to_library_group.rb +0 -6
- data/db/migrate/20200322083313_create_custom_labels.rb +0 -10
- data/db/migrate/20200322083458_create_custom_properties.rb +0 -12
@@ -0,0 +1,13 @@
|
|
1
|
+
<div id="content_detail" class="ui-corner-all ui-widget-content">
|
2
|
+
<h1 class="title"><%= t('page.editing', model: t('activerecord.models.item_custom_property')) -%></h1>
|
3
|
+
<div id="content_list">
|
4
|
+
<%= render 'form', item_custom_property: @item_custom_property %>
|
5
|
+
</div>
|
6
|
+
</div>
|
7
|
+
|
8
|
+
<div id="submenu" class="ui-corner-all ui-widget-content">
|
9
|
+
<ul>
|
10
|
+
<li><%= link_to t('page.show'), @item_custom_property %></li>
|
11
|
+
<li><%= link_to t('page.back'), item_custom_properties_path %></li>
|
12
|
+
</ul>
|
13
|
+
</div>
|
@@ -0,0 +1,43 @@
|
|
1
|
+
<div id="content_detail" class="ui-corner-all ui-widget-content">
|
2
|
+
<h1 class="title"><%= t('page.listing', model: t('activerecord.models.item_custom_property')) -%></h1>
|
3
|
+
<div id="content_list">
|
4
|
+
<p id="notice"><%= notice %></p>
|
5
|
+
|
6
|
+
<h1><%= t('page.listing', model: t('activerecord.models.item_custom_property')) -%></h1>
|
7
|
+
|
8
|
+
<table class='table table-striped index'>
|
9
|
+
<thead>
|
10
|
+
<tr>
|
11
|
+
<th id="position"></th>
|
12
|
+
<th><%= t('activerecord.attributes.item_custom_property.name') %></th>
|
13
|
+
<th><%= t('activerecord.attributes.item_custom_property.display_name') %></th>
|
14
|
+
<th><%= t('activerecord.attributes.item_custom_property.note') %></th>
|
15
|
+
<th colspan="2"></th>
|
16
|
+
</tr>
|
17
|
+
</thead>
|
18
|
+
|
19
|
+
<tbody>
|
20
|
+
<% @item_custom_properties.each do |item_custom_property| %>
|
21
|
+
<tr>
|
22
|
+
<td>
|
23
|
+
<%- if policy(item_custom_property).update? -%>
|
24
|
+
<%= move_position(item_custom_property) -%>
|
25
|
+
<%- end -%>
|
26
|
+
</td>
|
27
|
+
<td><%= link_to item_custom_property.name, item_custom_property %></td>
|
28
|
+
<td><%= item_custom_property.display_name.localize %></td>
|
29
|
+
<td><%= item_custom_property.note %></td>
|
30
|
+
<td><%= link_to t('page.edit'), edit_item_custom_property_path(item_custom_property) %></td>
|
31
|
+
<td><%= link_to t('page.destroy'), item_custom_property, method: :delete, data: { confirm: t('page.are_you_sure') } %></td>
|
32
|
+
</tr>
|
33
|
+
<% end %>
|
34
|
+
</tbody>
|
35
|
+
</table>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div id="submenu" class="ui-corner-all ui-widget-content">
|
40
|
+
<ul>
|
41
|
+
<li><%= link_to t('page.new', model: t('activerecord.models.item_custom_property')), new_item_custom_property_path -%></li>
|
42
|
+
</ul>
|
43
|
+
</div>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<div id="content_detail" class="ui-corner-all ui-widget-content">
|
2
|
+
<h1 class="title"><%= t('page.new', model: t('activerecord.models.item_custom_property')) -%></h1>
|
3
|
+
<div id="content_list">
|
4
|
+
<%= render 'form', item_custom_property: @item_custom_property %>
|
5
|
+
</div>
|
6
|
+
</div>
|
7
|
+
|
8
|
+
<div id="submenu" class="ui-corner-all ui-widget-content">
|
9
|
+
<ul>
|
10
|
+
<li><%= link_to t('page.back'), item_custom_properties_path %></li>
|
11
|
+
</ul>
|
12
|
+
</div>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<div id="content_detail" class="ui-corner-all ui-widget-content">
|
2
|
+
<h1 class="title"><%= t('page.showing', model: t('activerecord.models.item_custom_property')) -%></h1>
|
3
|
+
<div id="content_list">
|
4
|
+
<p id="notice"><%= notice %></p>
|
5
|
+
|
6
|
+
<p>
|
7
|
+
<strong><%= t('activerecord.attributes.item_custom_property.name') %>:</strong>
|
8
|
+
<%= @item_custom_property.name %>
|
9
|
+
</p>
|
10
|
+
|
11
|
+
<p>
|
12
|
+
<strong><%= t('activerecord.attributes.item_custom_property.display_name') %>:</strong>
|
13
|
+
<%= @item_custom_property.display_name.localize %>
|
14
|
+
</p>
|
15
|
+
|
16
|
+
<p>
|
17
|
+
<strong><%= t('activerecord.attributes.item_custom_property.note') %>:</strong>
|
18
|
+
<%= @item_custom_property.note %>
|
19
|
+
</p>
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
|
23
|
+
<div id="submenu" class="ui-corner-all ui-widget-content">
|
24
|
+
<ul>
|
25
|
+
<li><%= link_to t('page.edit'), edit_item_custom_property_path(@item_custom_property) %></li>
|
26
|
+
<li><%= link_to t('page.back'), item_custom_properties_path %></li>
|
27
|
+
</ul>
|
28
|
+
</div>
|
@@ -94,6 +94,19 @@
|
|
94
94
|
<%= f.text_area :note, class: 'resource_textarea' -%>
|
95
95
|
</div>
|
96
96
|
|
97
|
+
<% if ItemCustomProperty.first %>
|
98
|
+
<div class="field">
|
99
|
+
<% ItemCustomProperty.order(:position).each do |c| %>
|
100
|
+
<% @item.item_custom_values.new(item_custom_property: c) unless @item.item_custom_values.map{|value| value.item_custom_property_id}.include?(c.id) %>
|
101
|
+
<% end %>
|
102
|
+
<%= f.fields_for :item_custom_values do |custom_form| %>
|
103
|
+
<%= custom_form.label custom_form.object.item_custom_property.name.to_sym, custom_form.object.item_custom_property.display_name.localize %>
|
104
|
+
<%= custom_form.hidden_field :item_custom_property_id %>
|
105
|
+
<%= custom_form.text_field :value, class: 'form-control' %>
|
106
|
+
<% end %>
|
107
|
+
</div>
|
108
|
+
<% end %>
|
109
|
+
|
97
110
|
<div class="field">
|
98
111
|
<%= f.label :memo -%><br />
|
99
112
|
<%= f.text_area :memo, class: 'resource_textarea' -%>
|
@@ -112,6 +112,12 @@
|
|
112
112
|
</p>
|
113
113
|
|
114
114
|
<% if current_user.try(:has_role?, 'Librarian') %>
|
115
|
+
<% @item.item_custom_values.each do |value| %>
|
116
|
+
<p>
|
117
|
+
<strong><%= value.item_custom_property.display_name.localize -%>:</strong>
|
118
|
+
<%= value.value -%>
|
119
|
+
</p>
|
120
|
+
<% end %>
|
115
121
|
<p>
|
116
122
|
<strong><%= t('activerecord.attributes.item.memo') -%>:</strong>
|
117
123
|
<%= simple_format(@item.memo) %>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<%= form_with(model: manifestation_custom_property, local: true) do |form| %>
|
2
|
+
<% if manifestation_custom_property.errors.any? %>
|
3
|
+
<div id="error_explanation">
|
4
|
+
<h2><%= pluralize(manifestation_custom_property.errors.count, "error") %> prohibited this manifestation_custom_property from being saved:</h2>
|
5
|
+
|
6
|
+
<ul>
|
7
|
+
<% manifestation_custom_property.errors.full_messages.each do |message| %>
|
8
|
+
<li><%= message %></li>
|
9
|
+
<% end %>
|
10
|
+
</ul>
|
11
|
+
</div>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<div class="form-group">
|
15
|
+
<%= form.label :name %>
|
16
|
+
<%= form.text_field :name, class: 'form-control' %>
|
17
|
+
</div>
|
18
|
+
|
19
|
+
<div class="form-group">
|
20
|
+
<%= form.label :display_name %>
|
21
|
+
<%= form.text_area :display_name, class: 'form-control' %>
|
22
|
+
</div>
|
23
|
+
|
24
|
+
<div class="form-group">
|
25
|
+
<%= form.label :note %>
|
26
|
+
<%= form.text_area :note, class: 'form-control' %>
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<div class="actions">
|
30
|
+
<%= form.submit class: 'btn btn-primary' -%>
|
31
|
+
</div>
|
32
|
+
<% end %>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<div id="content_detail" class="ui-corner-all ui-widget-content">
|
2
|
+
<h1 class="title"><%= t('page.editing', model: t('activerecord.models.manifestation_custom_property')) -%></h1>
|
3
|
+
<div id="content_list">
|
4
|
+
<%= render 'form', manifestation_custom_property: @manifestation_custom_property %>
|
5
|
+
</div>
|
6
|
+
</div>
|
7
|
+
|
8
|
+
<div id="submenu" class="ui-corner-all ui-widget-content">
|
9
|
+
<ul>
|
10
|
+
<li><%= link_to t('page.show'), @manifestation_custom_property %></li>
|
11
|
+
<li><%= link_to t('page.back'), manifestation_custom_properties_path %></li>
|
12
|
+
</ul>
|
13
|
+
</div>
|
@@ -0,0 +1,43 @@
|
|
1
|
+
<div id="content_detail" class="ui-corner-all ui-widget-content">
|
2
|
+
<h1 class="title"><%= t('page.listing', model: t('activerecord.models.manifestation_custom_property')) -%></h1>
|
3
|
+
<div id="content_list">
|
4
|
+
<p id="notice"><%= notice %></p>
|
5
|
+
|
6
|
+
<h1><%= t('page.listing', model: t('activerecord.models.manifestation_custom_property')) -%></h1>
|
7
|
+
|
8
|
+
<table class='table table-striped index'>
|
9
|
+
<thead>
|
10
|
+
<tr>
|
11
|
+
<th id="position"></th>
|
12
|
+
<th><%= t('activerecord.attributes.manifestation_custom_property.name') %></th>
|
13
|
+
<th><%= t('activerecord.attributes.manifestation_custom_property.display_name') %></th>
|
14
|
+
<th><%= t('activerecord.attributes.manifestation_custom_property.note') %></th>
|
15
|
+
<th colspan="2"></th>
|
16
|
+
</tr>
|
17
|
+
</thead>
|
18
|
+
|
19
|
+
<tbody>
|
20
|
+
<% @manifestation_custom_properties.each do |manifestation_custom_property| %>
|
21
|
+
<tr>
|
22
|
+
<td>
|
23
|
+
<%- if policy(manifestation_custom_property).update? -%>
|
24
|
+
<%= move_position(manifestation_custom_property) -%>
|
25
|
+
<%- end -%>
|
26
|
+
</td>
|
27
|
+
<td><%= link_to manifestation_custom_property.name, manifestation_custom_property %></td>
|
28
|
+
<td><%= manifestation_custom_property.display_name.localize %></td>
|
29
|
+
<td><%= manifestation_custom_property.note %></td>
|
30
|
+
<td><%= link_to t('page.edit'), edit_manifestation_custom_property_path(manifestation_custom_property) %></td>
|
31
|
+
<td><%= link_to t('page.destroy'), manifestation_custom_property, method: :delete, data: { confirm: t('page.are_you_sure') } %></td>
|
32
|
+
</tr>
|
33
|
+
<% end %>
|
34
|
+
</tbody>
|
35
|
+
</table>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div id="submenu" class="ui-corner-all ui-widget-content">
|
40
|
+
<ul>
|
41
|
+
<li><%= link_to t('page.new', model: t('activerecord.models.manifestation_custom_property')), new_manifestation_custom_property_path -%></li>
|
42
|
+
</ul>
|
43
|
+
</div>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<div id="content_detail" class="ui-corner-all ui-widget-content">
|
2
|
+
<h1 class="title"><%= t('page.new', model: t('activerecord.models.item_custom_property')) -%></h1>
|
3
|
+
<div id="content_list">
|
4
|
+
<%= render 'form', manifestation_custom_property: @manifestation_custom_property %>
|
5
|
+
</div>
|
6
|
+
</div>
|
7
|
+
|
8
|
+
<div id="submenu" class="ui-corner-all ui-widget-content">
|
9
|
+
<ul>
|
10
|
+
<li><%= link_to t('page.back'), manifestation_custom_properties_path %></li>
|
11
|
+
</ul>
|
12
|
+
</div>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<div id="content_detail" class="ui-corner-all ui-widget-content">
|
2
|
+
<h1 class="title"><%= t('page.showing', model: t('activerecord.models.manifestation_custom_property')) -%></h1>
|
3
|
+
<div id="content_list">
|
4
|
+
<p id="notice"><%= notice %></p>
|
5
|
+
|
6
|
+
<p>
|
7
|
+
<strong><%= t('activerecord.attributes.manifestation_custom_property.name') %>:</strong>
|
8
|
+
<%= @manifestation_custom_property.name %>
|
9
|
+
</p>
|
10
|
+
|
11
|
+
<p>
|
12
|
+
<strong><%= t('activerecord.attributes.manifestation_custom_property.display_name') %>:</strong>
|
13
|
+
<%= @manifestation_custom_property.display_name.localize %>
|
14
|
+
</p>
|
15
|
+
|
16
|
+
<p>
|
17
|
+
<strong><%= t('activerecord.attributes.manifestation_custom_property.note') %>:</strong>
|
18
|
+
<%= @manifestation_custom_property.note %>
|
19
|
+
</p>
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
|
23
|
+
<div id="submenu" class="ui-corner-all ui-widget-content">
|
24
|
+
<ul>
|
25
|
+
<li><%= link_to t('page.edit'), edit_manifestation_custom_property_path(@manifestation_custom_property) %></li>
|
26
|
+
<li><%= link_to t('page.back'), manifestation_custom_properties_path %></li>
|
27
|
+
</ul>
|
28
|
+
</div>
|
@@ -4,4 +4,5 @@
|
|
4
4
|
<li><%= link_to 'RDF/XML', manifestation_url(@manifestation, format: :rdf) %></li>
|
5
5
|
<li><%= link_to 'MODS', manifestation_url(@manifestation, format: :mods) %></li>
|
6
6
|
<li><%= link_to 'TSV', manifestation_url(@manifestation, format: :txt) %></li>
|
7
|
+
<li><%= link_to 'JSON', manifestation_url(@manifestation, format: :json) %></li>
|
7
8
|
</ul>
|
@@ -3,4 +3,5 @@
|
|
3
3
|
<li><%= link_to 'RDF/XML', url_for(filtered_params.merge(format: :rdf, only_path: true)) %>
|
4
4
|
<li><%= link_to 'MODS', url_for(filtered_params.merge(format: :mods, only_path: true)) %></li>
|
5
5
|
<li><%= link_to 'TSV', url_for(filtered_params.merge(format: :txt, only_path: true)) %></li>
|
6
|
+
<li><%= link_to 'JSON', url_for(filtered_params.merge(format: :json, only_path: true)) %></li>
|
6
7
|
</ul>
|
@@ -187,7 +187,25 @@
|
|
187
187
|
<%= f.select(:required_role_id, @roles.collect{|r| [r.display_name.localize, r.id]}) -%>
|
188
188
|
</div>
|
189
189
|
|
190
|
+
<% if ManifestationCustomProperty.first %>
|
191
|
+
<div class="field">
|
192
|
+
<% ManifestationCustomProperty.order(:position).each do |c| %>
|
193
|
+
<% @manifestation.manifestation_custom_values.new(manifestation_custom_property: c) unless @manifestation.manifestation_custom_values.map{|value| value.manifestation_custom_property_id}.include?(c.id) %>
|
194
|
+
<% end %>
|
195
|
+
<%= f.fields_for :manifestation_custom_values do |custom_form| %>
|
196
|
+
<%= custom_form.label custom_form.object.manifestation_custom_property.name.to_sym, custom_form.object.manifestation_custom_property.display_name.localize %>
|
197
|
+
<%= custom_form.hidden_field :manifestation_custom_property_id %>
|
198
|
+
<%= custom_form.text_field :value, class: 'form-control' %>
|
199
|
+
<% end %>
|
200
|
+
</div>
|
201
|
+
<% end %>
|
202
|
+
|
190
203
|
<div class="field">
|
204
|
+
<%= f.label :abstract -%><br />
|
205
|
+
<%= f.text_area :abstract, class: 'resource_textarea' -%>
|
206
|
+
</div>
|
207
|
+
|
208
|
+
<div class="form-group">
|
191
209
|
<%= f.label :description -%><br />
|
192
210
|
<%= f.text_area :description, class: 'resource_textarea' -%>
|
193
211
|
</div>
|
@@ -95,12 +95,26 @@
|
|
95
95
|
<td><%= t('page.updated_at') -%>:</td>
|
96
96
|
<td><%=l manifestation.updated_at if manifestation.updated_at -%></td>
|
97
97
|
</tr>
|
98
|
+
<tr>
|
99
|
+
<td><%= t('activerecord.attributes.manifestation.abstract') -%>:</td>
|
100
|
+
<td>
|
101
|
+
<%= raw simple_format(h(manifestation.abstract)) -%>
|
102
|
+
</td>
|
103
|
+
</tr>
|
98
104
|
<tr>
|
99
105
|
<td><%= t('activerecord.attributes.manifestation.description') -%>:</td>
|
100
106
|
<td>
|
101
107
|
<%= raw simple_format(h(manifestation.description)) -%>
|
102
108
|
</td>
|
103
109
|
</tr>
|
110
|
+
<% @manifestation.manifestation_custom_values.each do |value| %>
|
111
|
+
<tr>
|
112
|
+
<td><%= value.manifestation_custom_property.display_name.localize -%>:</td>
|
113
|
+
<td>
|
114
|
+
<%= value.value -%>
|
115
|
+
</td>
|
116
|
+
</tr>
|
117
|
+
<% end %>
|
104
118
|
<tr>
|
105
119
|
<td><%= t('activerecord.attributes.manifestation.note') -%>:</td>
|
106
120
|
<td>
|
@@ -91,6 +91,14 @@
|
|
91
91
|
<td><%= t('page.updated_at') -%>:</td>
|
92
92
|
<td><%=l manifestation.updated_at if manifestation.updated_at -%></td>
|
93
93
|
</tr>
|
94
|
+
<% if manifestation.abstract.present? %>
|
95
|
+
<tr>
|
96
|
+
<td><%= t('activerecord.attributes.manifestation.abstract') -%>:</td>
|
97
|
+
<td>
|
98
|
+
<%= raw simple_format(h(manifestation.abstract)) -%>
|
99
|
+
</td>
|
100
|
+
</tr>
|
101
|
+
<% end %>
|
94
102
|
<% if manifestation.description.present? %>
|
95
103
|
<tr>
|
96
104
|
<td><%= t('activerecord.attributes.manifestation.description') -%>:</td>
|
@@ -43,6 +43,11 @@ en:
|
|
43
43
|
series_statement_merge: Series statement merge
|
44
44
|
series_statement_merge_list: Series statement merge list
|
45
45
|
periodical: Periodical
|
46
|
+
doi_record: DOI
|
47
|
+
manifestation_custom_property: Manifestation custom property
|
48
|
+
manifestation_custom_value: Manifestation custom value
|
49
|
+
item_custom_property: Item custom property
|
50
|
+
item_custom_value: Item custom value
|
46
51
|
|
47
52
|
attributes:
|
48
53
|
manifestation:
|
@@ -83,6 +88,7 @@ en:
|
|
83
88
|
lccn: LCCN
|
84
89
|
issn: ISSN
|
85
90
|
subscription_master: Subscription master
|
91
|
+
abstract: Abstract
|
86
92
|
description: Description
|
87
93
|
creator_string: Creator
|
88
94
|
contributor_string: Contributor
|
@@ -99,15 +105,15 @@ en:
|
|
99
105
|
extent: Extent
|
100
106
|
dimensions: Dimensions
|
101
107
|
fulltext_content: Fulltext content
|
102
|
-
|
108
|
+
date_copyrighted: Date copyrighted
|
103
109
|
manifestation/subjects:
|
104
110
|
term: Subject
|
105
111
|
manifestation/classifications:
|
106
112
|
category: Classification
|
107
113
|
manifestation/identifiers:
|
108
114
|
body: Identifier
|
109
|
-
manifestation/
|
110
|
-
|
115
|
+
manifestation/manifestation_custom_properties:
|
116
|
+
name: Name
|
111
117
|
value: Value
|
112
118
|
item:
|
113
119
|
call_number: Call number
|
@@ -127,9 +133,8 @@ en:
|
|
127
133
|
budget_type_id: Budget type
|
128
134
|
bookstore_id: Bookstore
|
129
135
|
required_role_id: Required role
|
130
|
-
|
131
|
-
|
132
|
-
label: Label
|
136
|
+
item/item_custom_properties:
|
137
|
+
name: Name
|
133
138
|
value: Value
|
134
139
|
agent:
|
135
140
|
last_name: Last name
|
@@ -341,8 +346,17 @@ en:
|
|
341
346
|
series_statement_merge_list:
|
342
347
|
title: Title
|
343
348
|
series_statement_merge:
|
344
|
-
|
345
|
-
|
349
|
+
manifestation_custom_property:
|
350
|
+
name: Property name
|
351
|
+
display_name: Display name
|
352
|
+
note: Note
|
353
|
+
manifestation_custom_value:
|
354
|
+
value: Value
|
355
|
+
item_custom_property:
|
356
|
+
name: Property name
|
357
|
+
display_name: Display name
|
358
|
+
note: Note
|
359
|
+
item_custom_value:
|
346
360
|
value: Value
|
347
361
|
|
348
362
|
resource_import_file:
|
@@ -43,6 +43,11 @@ ja:
|
|
43
43
|
series_statement_merge_list: シリーズ情報統合リスト
|
44
44
|
series_statement_merge: シリーズ情報の統合
|
45
45
|
periodical: 逐次刊行物
|
46
|
+
doi_record: DOI
|
47
|
+
manifestation_custom_property: 書誌カスタム項目
|
48
|
+
manifestation_custom_value: 書誌カスタム項目の値
|
49
|
+
item_custom_property: 所蔵カスタム項目
|
50
|
+
item_custom_value: 所蔵カスタム項目の値
|
46
51
|
|
47
52
|
attributes:
|
48
53
|
manifestation:
|
@@ -83,6 +88,7 @@ ja:
|
|
83
88
|
lccn: LCCN
|
84
89
|
issn: ISSN
|
85
90
|
subscription_master: 購読マスタ
|
91
|
+
abstract: 内容細目
|
86
92
|
description: 説明
|
87
93
|
creator_string: 著者
|
88
94
|
contributor_string: 協力者・編者
|
@@ -99,15 +105,15 @@ ja:
|
|
99
105
|
extent: ページ数
|
100
106
|
dimensions: 大きさ
|
101
107
|
fulltext_content: 全文あり
|
102
|
-
|
108
|
+
date_copyrighted: 著作権発行日
|
103
109
|
manifestation/subjects:
|
104
110
|
term: 件名
|
105
111
|
manifestation/classifications:
|
106
112
|
category: 分類
|
107
113
|
manifestation/identifiers:
|
108
114
|
body: 識別子
|
109
|
-
manifestation/
|
110
|
-
|
115
|
+
manifestation/manifesetation_custom_properties:
|
116
|
+
name: 項目名
|
111
117
|
value: 値
|
112
118
|
item:
|
113
119
|
call_number: 請求記号
|
@@ -127,9 +133,8 @@ ja:
|
|
127
133
|
budget_type_id: 予算種別
|
128
134
|
bookstore_id: 書店
|
129
135
|
required_role_id: 閲覧に必要な権限
|
130
|
-
|
131
|
-
|
132
|
-
label: 項目名
|
136
|
+
item/item_custom_properties:
|
137
|
+
name: 項目名
|
133
138
|
value: 値
|
134
139
|
agent:
|
135
140
|
last_name: 姓
|
@@ -345,8 +350,17 @@ ja:
|
|
345
350
|
series_statement_merge_list:
|
346
351
|
title: タイトル
|
347
352
|
series_statement_merge:
|
348
|
-
|
349
|
-
|
353
|
+
manifestation_custom_property:
|
354
|
+
name: 項目コード
|
355
|
+
display_name: 項目表示名
|
356
|
+
note: 注記
|
357
|
+
manifestation_custom_value:
|
358
|
+
value: 値
|
359
|
+
item_custom_property:
|
360
|
+
name: 項目コード
|
361
|
+
display_name: 項目表示名
|
362
|
+
note: 注記
|
363
|
+
item_custom_value:
|
350
364
|
value: 値
|
351
365
|
|
352
366
|
resource_import_file:
|