Skip to content

Commit

Permalink
Add more comments to #label override
Browse files Browse the repository at this point in the history
Co-authored-by: Eliot Jordan <eliot.jordan@gmail.com>
  • Loading branch information
hackartisan and eliotjordan committed Sep 16, 2021
1 parent e7d83fc commit 3b672ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/values/manifest_metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ def manifest_fields
end

# Override label method so it returns multiple values
# We need to have multiple titles for multi-volume works
#
# See upstream code at
# https://github.com/projectblacklight/spotlight/blob/v2.13.0/app/models/spotlight/resources/iiif_manifest.rb#L187-L191
def label
return unless manifest.try(:label)

Expand Down

0 comments on commit 3b672ae

Please sign in to comment.