Sha256: 84a47b827fa823eb63c3b7dedd40304d90b8181ec3ac9ff7efdf4e419138fbcf
Contents?: true
Size: 987 Bytes
Versions: 1
Compression:
Stored size: 987 Bytes
Contents
# use to render new image in multi image viewer in catalog#show class ImageViewerController < CatalogController include CommonwealthVlrEngine::CatalogHelper def show @response, @document = fetch(params[:id]) #@img_to_show = params[:view] @title = @document[blacklight_config.index.title_field.to_sym] @page_sequence = get_page_sequence(@document.id, params[:view]) respond_to do |format| format.js format.html { redirect_to catalog_path(@document.id, :view => params[:view]) } end end def book_viewer @response, @document = fetch(params[:id]) @image_files = has_image_files?(get_files(params[:id])) render(:layout => 'book_viewer') end private def get_page_sequence(document_id, current_img_id) image_files = [] get_image_files(document_id).each do |img_file| image_files << img_file['id'] end create_img_sequence(image_files, current_img_id) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
commonwealth-vlr-engine-0.0.1 | app/controllers/image_viewer_controller.rb |