-
Notifications
You must be signed in to change notification settings - Fork 10
/
_marc_metadata_sections.html.erb
86 lines (78 loc) · 2.83 KB
/
_marc_metadata_sections.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<%
document ||= @document
contributors = render(partial: "catalog/record/marc_contributors", locals: {document: document})
contents_summary = render(partial: "catalog/record/marc_contents_summary", locals: {document: document})
subjects = render(partial: "catalog/record/marc_subjects", locals: {document: document})
bibliography = render(partial: "catalog/record/marc_bibliographic", locals: {document: document})
locals = {
type: "marc",
has_data: {
contributors: contributors.present?,
contents_summary: contents_summary.present?,
subjects: subjects.present?,
bibliography_info: bibliography.present?,
browse_nearby: document.holdings.present? && document.holdings.browsable_callnumbers.present?
}
}
%>
<%= render partial: "shared/side_nav_minimap", locals: locals %>
<% if contributors.present? %>
<div class="section" id="<%= t('record_side_nav.contributors.id') %>" data-side-nav-class="<%= t('record_side_nav.contributors.id') %>">
<div class="section-heading">
<h2><%= t('record_side_nav.contributors.icon').html_safe %> Creators/Contributors</h2>
</div>
<div class="section-body">
<dl>
<%= contributors %>
</dl>
</div>
</div>
<% end %>
<% if contents_summary.present? %>
<div class="section" id="<%= t('record_side_nav.contents_summary.id') %>" data-side-nav-class="<%= t('record_side_nav.contents_summary.id') %>">
<div class="section-heading">
<h2><%= t('record_side_nav.contents_summary.icon').html_safe %> Contents/Summary</h2>
</div>
<div class="section-body">
<dl>
<%= contents_summary %>
</dl>
</div>
</div>
<% end %>
<% if subjects.present? %>
<div class="section" id="<%= t('record_side_nav.subjects.id') %>" data-side-nav-class="<%= t('record_side_nav.subjects.id') %>">
<div class="section-heading">
<h2><%= t('record_side_nav.subjects.icon').html_safe %> Subjects</h2>
</div>
<div class="section-body">
<%= subjects %>
</div>
</div>
<% end %>
<% if bibliography.present? %>
<div class="section" id="<%= t('record_side_nav.bibliography_info.id') %>" data-side-nav-class="<%= t('record_side_nav.bibliography_info.id') %>">
<div class="section-heading">
<h2><%= t('record_side_nav.bibliography_info.icon').html_safe %> Bibliographic information</h2>
</div>
<div class="section-body">
<dl>
<%= bibliography %>
</dl>
</div>
</div>
<% end %>
<% if Settings.BOOKPLATES && document.bookplates.present? %>
<div class="section">
<div class="section-heading">
<h2>Acquired with support from</h2>
</div>
<div class="section-body row container-fluid">
<% document.bookplates.each_slice(2).each do |bookplates| %>
<div class='row'>
<%= render bookplates %>
</div>
<% end %>
</div>
</div>
<% end %>