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 : "&nbsp;&nbsp;".html_safe -%>
		    </div>
		    <div class="ind2">
		      <%= !field.indicator2.blank? ? field.indicator2 : "&nbsp;&nbsp;".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

Version Path
blacklight-3.8.2 app/views/catalog/_marc_view.html.erb
blacklight-3.8.1 app/views/catalog/_marc_view.html.erb
blacklight-3.8.0 app/views/catalog/_marc_view.html.erb
blacklight-3.7.2 app/views/catalog/_marc_view.html.erb
blacklight-3.7.1 app/views/catalog/_marc_view.html.erb
blacklight-3.7.0 app/views/catalog/_marc_view.html.erb
blacklight-3.6.1.1 app/views/catalog/_marc_view.html.erb
blacklight-3.6.0 app/views/catalog/_marc_view.html.erb
blacklight-3.5.0 app/views/catalog/_marc_view.html.erb