Skip to content

Commit

Permalink
[i387] - add default value to is_child property (#237)
Browse files Browse the repository at this point in the history
* [i387] - add default value to is_child property

* [i387] - add or equal to is_child_bsi indexing
  • Loading branch information
ShanaLMoore authored May 11, 2023
1 parent b804f16 commit fd5b667
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/indexers/concerns/iiif_print/child_indexer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def self.decorate_work_types!

def generate_solr_document
super.tap do |solr_doc|
solr_doc['is_child_bsi'] = object.is_child
solr_doc['is_child_bsi'] ||= object.is_child
solr_doc['is_page_of_ssim'] = iiif_print_lineage_service.ancestor_ids_for(object)

# Due to a long-standing hack in Hyrax, the file_set_ids_ssim contains both file_set_ids and
Expand Down
3 changes: 2 additions & 1 deletion lib/iiif_print/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ def child_work_attributes_function
admin_set_id: admin_set_id.to_s,
creator: parent_work.creator.to_a,
rights_statement: parent_work.rights_statement.to_a,
visibility: parent_work.visibility.to_s
visibility: parent_work.visibility.to_s,
is_child: true
}
end
end
Expand Down

0 comments on commit fd5b667

Please sign in to comment.