Module: Hyrax::Serializers

Included in:
FileSetBehavior, WorkBehavior
Defined in:
app/models/concerns/hyrax/serializers.rb

Instance Method Summary collapse

Instance Method Details

#to_sObject


3
4
5
6
7
8
9
10
11
# File 'app/models/concerns/hyrax/serializers.rb', line 3

def to_s
  if title.present?
    title.join(' | ')
  elsif label.present?
    label
  else
    'No Title'
  end
end