<div classs="record">
  <%= @record_id %>
</div>
<%= render partial: "search/form" %>

<div class="gridband layout-3q1q">
  <div class="col3q">
    <%# ~~~~~~~~~~~~~~~~~~~~~~~~ Basic info section ~~~~~~~~~~~~~~~~~~~~~~~~ %>

    <% if Flipflop.enabled?(:local_browse) %>
      <% search_prefix = '/search/bento?q=' %>
    <% else %>
      <% search_prefix = ENV['EDS_PROFILE_URI'] %>
    <% end %>

    <% if @record.eds_cover_thumb_url.present? %>
      <img src='<%= @record.eds_cover_thumb_url %>' />
    <% end %>

    <h1><%= @record.title %></h1>
    <% if @record.eds_publication_type == 'Periodical' %>
      Periodical | Published <%= @record.eds_publication_year %>
    <% elsif @record.eds_publication_type == 'Academic Journal' %>
      In <%= link_to(@record.eds_source_title, search_prefix + "JN+\"#{@record.eds_source_title}\"", data: {type: "Author"} ) %>
      volume <%= @record.eds_volume %>
      issue <%= @record.eds_issue %>
      (<%= @record.eds_publication_year %>)
    <%# Includes Books; is catchall for other types not specified in wireframes %>
    <% else %>
      <%= @record.eds_publication_type %> | Published <%= @record.eds_publication_year %>
    <% end %>

    <br />
    <%# If there are no authors (as with periodicals) this section will be
        blank, corresponding to the wireframe. %>
    <% @record.eds_authors.each do |author| %>
      <% if author == "et al" %>
        <%= author %>
      <% else %>
        <%= link_to(author, search_prefix + "AU+\"#{author}\"", data: {type: "Author"} ) unless author == "et al" %><% if author != @record.eds_authors.last %>; <% end %>
      <% end %>
    <% end %>

    <%# ~~~~~~~~~~~~~~~~~~~ Other sections to be written ~~~~~~~~~~~~~~~~~~~ %>
  </div>
  <div class="col1q-r">
    <%# Sidebar will go here. %>
  </div>
</div>

Make basic record info exist!
Make basic record info exist!
