Sha256: 01ed3f82dfe0d3cc04ba1f7fc0d92ec75d60a5092c04ae6bb7f518cde5b1925d
Contents?: true
Size: 1.01 KB
Versions: 24
Compression:
Stored size: 1.01 KB
Contents
<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
24 entries across 24 versions & 1 rubygems