Skip to content

Commit

Permalink
Re-enable libreoffice in derivative_pdf_url()
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Dolski committed Dec 22, 2023
1 parent 5c3684a commit 09619bd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions app/util/derivative_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ def derivative_pdf_url

key = derivative_pdf_key
unless store.object_exists?(key: key)
# TODO: update libreoffice and remove this conditional
self.generate_pdf_derivative if format.derivative_generator != "libreoffice"
self.generate_pdf_derivative
end
store.presigned_download_url(key: key, expires_in: expiry)
end
Expand Down
1 change: 0 additions & 1 deletion test/util/derivative_generator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ class DerivativeGeneratorTest < ActiveSupport::TestCase

test "derivative_pdf_url() returns the URL of a PDF for a bitstream that can
be converted into PDF" do
skip # TODO: unskip this when openoffice is enabled again
@bitstream = bitstreams(:southwest_unit1_collection1_item1_doc)
@generator = DerivativeGenerator.new(@bitstream)
url = @generator.derivative_pdf_url
Expand Down

0 comments on commit 09619bd

Please sign in to comment.