Skip to content

Commit

Permalink
the modified facsimile saved here
Browse files Browse the repository at this point in the history
  • Loading branch information
siglun committed Aug 17, 2021
1 parent 567431d commit 1b64234
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -449,13 +449,14 @@ def send_pdf(document, type)
'</dl>'
end

def facsimile
@document.response, @document = search_service.fetch(params[:id])
respond_to do |format|
format.html { setup_next_and_previous_documents }
format.pdf { send_pdf(@document, 'image') }
end
end
def facsimile
repository = blacklight_config.repository_class.new(blacklight_config)
@document = repository.find(params[:id]).documents.first
respond_to do |format|
format.html { setup_next_and_previous_documents }
format.pdf { send_pdf(@document, 'image') }
end
end

# actions for generating the list of authorportraits and period descriptions
def periods
Expand Down

0 comments on commit 1b64234

Please sign in to comment.