Skip to content

Commit

Permalink
Merge pull request #354 from scientist-softserv/a-few-bug-fixes
Browse files Browse the repository at this point in the history
A few bug fixes
  • Loading branch information
kirkkwang authored Jun 11, 2024
2 parents 03b252a + 2e4af92 commit 805191e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions config/metadata/child_works_from_pdf_splitting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ attributes:
multiple: false
index_keys:
- "is_child_bsi"
form:
required: false
primary: false
multiple: false
predicate: "http://id.loc.gov/vocabulary/identifiers/isChild"
split_from_pdf_id:
type: string
Expand Down
2 changes: 1 addition & 1 deletion lib/iiif_print/persistence_layer/valkyrie_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def self.destroy_children_split_from(file_set:, work:, model:, user:)
end

def self.pdf?(file_set)
file_set.original_file.pdf?
file_set.original_file&.pdf?
end

##
Expand Down

0 comments on commit 805191e

Please sign in to comment.