Sha256: 550a4099b78b2250018a0beba1fa62f2290acf694010e2f214117a7e0d6a2789

Contents?: true

Size: 1012 Bytes

Versions: 62

Compression:

Stored size: 1012 Bytes

Contents

<h1>Librarian View</h1>
<div id="marc_view">
  <% fields = @document.to_marc.find_all{|f| ('000'..'999') === f.tag }  %>
  <div class="field">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

62 entries across 62 versions & 2 rubygems

Version Path
sufia-4.0.0.beta4 app/views/catalog/_marc_view.html.erb
sufia-4.0.0.beta3 app/views/catalog/_marc_view.html.erb
sufia-4.0.0.beta2 app/views/catalog/_marc_view.html.erb
sufia-4.0.0.beta1 app/views/catalog/_marc_view.html.erb
sufia-3.7.2 app/views/catalog/_marc_view.html.erb
sufia-3.7.1 app/views/catalog/_marc_view.html.erb
sufia-3.7.0 app/views/catalog/_marc_view.html.erb
sufia-3.6.1 app/views/catalog/_marc_view.html.erb
sufia-3.6.0 app/views/catalog/_marc_view.html.erb
sufia-3.5.0 app/views/catalog/_marc_view.html.erb
sufia-3.4.0 app/views/catalog/_marc_view.html.erb
sufia-3.4.0.rc4 app/views/catalog/_marc_view.html.erb
sufia-3.4.0.rc3 app/views/catalog/_marc_view.html.erb
sufia-3.3.1 app/views/catalog/_marc_view.html.erb
sufia-3.4.0.rc2 app/views/catalog/_marc_view.html.erb
sufia-3.4.0.rc1 app/views/catalog/_marc_view.html.erb
sufia-3.3.0 app/views/catalog/_marc_view.html.erb
sufia-3.2.1 app/views/catalog/_marc_view.html.erb
sufia-3.1.3 app/views/catalog/_marc_view.html.erb
sufia-3.1.2 app/views/catalog/_marc_view.html.erb