Sha256: faac5b1e4219747a0e16b7a55fdb4310c5da8bc748f2e430ad813187eb4243d1

Contents?: true

Size: 1.64 KB

Versions: 3

Compression:

Stored size: 1.64 KB

Contents

<% image = document.to_openseadragon(blacklight_config.view_config(:show)) %>
<%
  osd_config = {
    crossOriginPolicy: false,
    zoomInButton:     "osd-zoom-in",
    zoomOutButton:    "osd-zoom-out",
    homeButton:       "osd-home",
    fullPageButton:   "osd-full-page",
    nextButton:       "osd-next",
    previousButton:   "osd-previous"
  }

  osd_config_referencestrip = {
    showReferenceStrip:             true,
    referenceStripPosition:         'OUTSIDE',
    referenceStripScroll:           'vertical',
    referenceStripWidth:            100,
    referenceStripBackgroundColor:  'transparent'
  }
%>

<% unless image.nil? %>
  <% count = Array(image).length %>

  <div class="col-md-6">
    <div class="osd-toolbar row">
      <% if count > 1 %>
        <% osd_config = osd_config_referencestrip.merge(osd_config) %>

        <div class="col-md-6 pagination">
          <a id="osd-previous"><span class="glyphicon glyphicon-chevron-left"></span></a>
          <span id="osd-page">1</span>  of <%= count %>
          <a id="osd-next"><span class="glyphicon glyphicon-chevron-right"></span></a>
        </div>
      <% end %>
        <div class="col-md-6 controls">
          <a id="osd-zoom-in"><span class="glyphicon glyphicon-plus-sign"></span></a>
          <a id="osd-zoom-out"><span class="glyphicon glyphicon-minus-sign"></span></a>
          <a id="osd-home"><span class="glyphicon glyphicon-resize-small"></span></a>
          <a id="osd-full-page"><span class="glyphicon glyphicon-fullscreen"></span></a>
        </div>
    </div>
    <%= openseadragon_picture_tag image, class: 'osd-image row', data: { openseadragon: osd_config } %>
  </div>

<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
blacklight-gallery-0.2.0 app/views/catalog/_openseadragon_default.html.erb
blacklight-gallery-0.1.2 app/views/catalog/_openseadragon_default.html.erb
blacklight-gallery-0.1.1 app/views/catalog/_openseadragon_default.html.erb