Class: Hyrax::ControlledVocabularies::Location
- Inherits:
-
ActiveTriples::Resource
- Object
- ActiveTriples::Resource
- Hyrax::ControlledVocabularies::Location
- Defined in:
- lib/hyrax/controlled_vocabularies/location.rb
Instance Method Summary collapse
-
#solrize ⇒ Object
Return a tuple of url & label.
Instance Method Details
#solrize ⇒ Object
Return a tuple of url & label
7 8 9 10 |
# File 'lib/hyrax/controlled_vocabularies/location.rb', line 7 def solrize return [rdf_subject.to_s] if rdf_label.first.to_s.blank? || rdf_label.first.to_s == rdf_subject.to_s [rdf_subject.to_s, { label: "#{rdf_label.first}$#{rdf_subject}" }] end |