Sha256: cdb334d0e06259f8784da50498c80aa05d09e4cbfbc40d73fd29d4c381a991b7

Contents?: true

Size: 1.02 KB

Versions: 6

Compression:

Stored size: 1.02 KB

Contents

<div id="marc_view" class="marc_view">
  <div class="field"><%= t('blacklight.search.librarian_view.leader', :leader => document.to_marc.leader) %></div>
  <%- document.to_marc.each do |field| -%>
    <div class="field">
      <%- if field.is_a?(MARC::ControlField) -%>
      <div class="tag_ind">
        <span class="tag"><%= field.tag %></span>
      </div>
      <span class="control_field_values">
        <%= h(field.value) %>
      </span>
      <%- else -%>
      <div class="tag_ind">
        <span class="tag"><%= field.tag %></span>
        <div class="ind1">
          <%= field.try(:indicator1).present? ? field.indicator1 : "&nbsp;".html_safe -%>
        </div>
        <div class="ind2">
          <%= field.try(:indicator2).present? ? field.indicator2 : "&nbsp;".html_safe -%>
        </div>
      </div>
      <div class="subfields">
        <%- field.each do |sub| -%>
        <span class="sub_code"><%= sub.code %>|</span> <%= sub.value %>
        <%- end -%>
      </div>
      <%- end -%>
    </div>
  <%- end -%>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
blacklight-marc-8.1.4 app/views/catalog/_marc_view.html.erb
blacklight-marc-8.1.3 app/views/catalog/_marc_view.html.erb
blacklight-marc-8.1.2 app/views/catalog/_marc_view.html.erb
blacklight-marc-8.1.1 app/views/catalog/_marc_view.html.erb
blacklight-marc-8.1.0 app/views/catalog/_marc_view.html.erb
blacklight-marc-8.0.0 app/views/catalog/_marc_view.html.erb