Sha256: 10d97dd9aed170b5157934d18246834cbf80c35aa22bc779b24866f35e7a6e9d
Contents?: true
Size: 1.07 KB
Versions: 9
Compression:
Stored size: 1.07 KB
Contents
<h1><%= t('blacklight.search.librarian_view.title') %></h1> <div id="marc_view"> <% fields = @document.to_marc.find_all{|f| ('000'..'999') === f.tag } %> <div class="field"><%= t('blacklight.search.librarian_view.leader', :leader => @document.to_marc.leader) %></div> <%- fields.each do |field| -%> <%- unless field.tag.to_s == "940" -%> <div class="field"> <div class="tag_ind"> <span class="tag"> <%= h(field.tag) %> </span> <%- if field.is_a?(MARC::ControlField) -%> <span class="control_field_values"> <%= h(field.value) %> </span> <%- else -%> <div class="ind1"> <%= !field.indicator1.blank? ? field.indicator1 : " ".html_safe -%> </div> <div class="ind2"> <%= !field.indicator2.blank? ? field.indicator2 : " ".html_safe -%> </div> </div> <div class="subfields"> <%- field.each do |sub| -%> <span class="sub_code"><%= h(sub.code) %>|</span> <%= h(sub.value) %> <%- end -%> <%- end -%> </div> </div> <%- end-%> <%- end -%> </div>
Version data entries
9 entries across 9 versions & 1 rubygems