Skip to content

Commit

Permalink
load all pages in iiif manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
orangewolf committed May 6, 2024
1 parent b972749 commit 6971c44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/presenters/hyrax/iiif_manifest_presenter_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def member_ids
else
return @member_item_list_ids if @member_item_list_ids.present?
ordered_ids = Hyrax::SolrDocument::OrderedMembers.decorate(model).ordered_member_ids
docs = Hyrax::SolrQueryService.new(query: ["id:(#{ordered_ids.join(' ')})"]).solr_documents
docs = Hyrax::SolrQueryService.new(query: ["id:(#{ordered_ids.join(' ')})"]).solr_documents(rows: 2_000_000)
new_order = docs.sort_by do |item|
if item['sequence_ssm'].present?
item.sequence_number
Expand Down
1 change: 1 addition & 0 deletions app/services/hyrax/manifest_builder_service_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,4 @@ def loof(text)
end

Hyrax::ManifestBuilderService.prepend(Hyrax::ManifestBuilderServiceDecorator)
Hyrax::CachingIiifManifestBuilder.prepend(Hyrax::ManifestBuilderServiceDecorator)

0 comments on commit 6971c44

Please sign in to comment.