lib/krikri/map_crosswalk.rb in krikri-0.8.2 vs lib/krikri/map_crosswalk.rb in krikri-0.8.3

- old
+ new

@@ -230,10 +230,10 @@ @parent.rdf_subject.to_s.split('/').last end def get_label(resource) return resource if resource.is_a? String - return resource.preflabel if resource.respond_to?(:prefLabel) && + return resource.prefLabel if resource.respond_to?(:prefLabel) && resource.prefLabel.any? return resource.label if resource.respond_to?(:label) && resource.label.any? return resource.providedLabel if resource.respond_to?(:providedLabel) && resource.providedLabel.any?