Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

i319 - make ocr searching work #354

Merged
merged 3 commits into from
Apr 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,5 @@ gem 'dog_biscuits', git: 'https://github.com/samvera-labs/dog_biscuits.git'

gem 'order_already'

gem 'hyrax-v2_graph_indexer', '~> 0.3'
gem 'iiif_print', "~> 1.0", git: 'https://github.com/scientist-softserv/iiif_print.git', branch: 'main'
# rubocop:enable Metrics/LineLength
gem 'hyrax-v2_graph_indexer'
gem 'iiif_print', "~> 1.0", git: 'https://github.com/scientist-softserv/iiif_print.git', ref: '97be189'
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ GIT

GIT
remote: https://github.com/scientist-softserv/iiif_print.git
revision: e3384284a9992df867b7bedc256c82485355551d
branch: main
revision: 97be189e30ac002c1beb829f0cb5388a22a38523
ref: 97be189
specs:
iiif_print (1.0.0)
blacklight_iiif_search (~> 1.0)
Expand Down
2 changes: 2 additions & 0 deletions app/models/concerns/slug_bug.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@ def remove_index_and_reindex
update_index
end
end

IiifPrint.config.ancestory_identifier_function = ->(work) { work.to_param }
5 changes: 2 additions & 3 deletions config/initializers/iiif_print.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@
# config.sort_iiif_manifest_canvases_by = :date_published

# NOTE: As part of the docker build, we install an "eng_best". And based on
# conversations with the client, we are using --psm 1 (e.g. "Automatic
# page segmentation with OSD.")
config.additional_tessearct_options = "-l eng_best --psm 1"
# conversations with the client)
config.additional_tessearct_options = "-l eng_best"
end

require "iiif_print/split_pdfs/adventist_pages_to_jpgs_splitter"