Sha256: 790120cda2e6619952ba96129e8aeed6d469546de39f2443f0e56d6e2b7d0dd9

Contents?: true

Size: 328 Bytes

Versions: 3

Compression:

Stored size: 328 Bytes

Contents

class ModsDisplay::RelatedLocation < ModsDisplay::Field


  def fields
    return_values = []
    @value.each do |val|
      if val.location.length > 0
        return_values << ModsDisplay::Values.new(:label => displayLabel(val) || "Location", :values => [val.location.text.strip])
      end
    end
    return_values
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mods_display-0.0.1.beta3 lib/mods_display/fields/related_location.rb
mods_display-0.0.1.beta2 lib/mods_display/fields/related_location.rb
mods_display-0.0.1.beta1 lib/mods_display/fields/related_location.rb