-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1926 from samvera/iiif-print-demo-copy
Iiif print demo copy
- Loading branch information
Showing
23 changed files
with
347 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import 'iiif_print/iiif_print'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# frozen_string_literal: true | ||
|
||
# SearchBuilder for full-text searches with highlighting and snippets | ||
class IiifSearchBuilder < Blacklight::SearchBuilder | ||
include Blacklight::Solr::SearchBuilderBehavior | ||
|
||
self.default_processor_chain += [:ocr_search_params] | ||
|
||
# set params for ocr field searching | ||
def ocr_search_params(solr_parameters = {}) | ||
solr_parameters[:facet] = false | ||
solr_parameters[:hl] = true | ||
solr_parameters[:'hl.fl'] = blacklight_config.iiif_search[:full_text_field] | ||
solr_parameters[:'hl.fragsize'] = 100 | ||
solr_parameters[:'hl.snippets'] = 10 | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
IiifPrint.config do |config| | ||
# NOTE: WorkTypes and models are used synonymously here. | ||
# Add models to be excluded from search so the user | ||
# would not see them in the search results. | ||
# by default, use the human readable versions like: | ||
# @example | ||
# # config.excluded_model_name_solr_field_values = ['Generic Work', 'Image'] | ||
# | ||
# config.excluded_model_name_solr_field_values = [] | ||
|
||
# Add configurable solr field key for searching, | ||
# default key is: 'human_readable_type_sim' | ||
# if another key is used, make sure to adjust the | ||
# config.excluded_model_name_solr_field_values to match | ||
# @example | ||
# config.excluded_model_name_solr_field_key = 'some_solr_field_key' | ||
|
||
# Configure how the manifest sorts the canvases, by default it sorts by :title, | ||
# but a different model property may be desired such as :date_published | ||
# @example | ||
# config.sort_iiif_manifest_canvases_by = :date_published | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
db/migrate/20221205210847_create_iiif_print_derivative_attachments.iiif_print.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# This migration comes from iiif_print (originally 20181214181358) | ||
class CreateIiifPrintDerivativeAttachments < ActiveRecord::Migration[5.0] | ||
def change | ||
create_table :iiif_print_derivative_attachments do |t| | ||
t.string :fileset_id | ||
t.string :path | ||
t.string :destination_name | ||
|
||
t.timestamps | ||
end | ||
add_index :iiif_print_derivative_attachments, :fileset_id | ||
end | ||
end |
12 changes: 12 additions & 0 deletions
12
db/migrate/20221205210848_create_iiif_print_ingest_file_relations.iiif_print.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# This migration comes from iiif_print (originally 20190107165909) | ||
class CreateIiifPrintIngestFileRelations < ActiveRecord::Migration[5.0] | ||
def change | ||
create_table :iiif_print_ingest_file_relations do |t| | ||
t.string :file_path | ||
t.string :derivative_path | ||
|
||
t.timestamps | ||
end | ||
add_index :iiif_print_ingest_file_relations, :file_path | ||
end | ||
end |
12 changes: 12 additions & 0 deletions
12
db/migrate/20230131202855_create_iiif_print_pending_relationships.iiif_print.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# This migration comes from iiif_print (originally 20230109000000) | ||
class CreateIiifPrintPendingRelationships < ActiveRecord::Migration[5.1] | ||
def change | ||
create_table :iiif_print_pending_relationships do |t| | ||
t.string :child_title, null: false | ||
t.string :parent_id, null: false | ||
t.string :child_order, null: false | ||
t.timestamps | ||
end | ||
add_index :iiif_print_pending_relationships, :parent_id | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.