Method: ModsDisplay::Imprint#unencoded_place_terms?

Defined in:
lib/mods_display/fields/imprint.rb

#unencoded_place_terms?(element) ⇒ Boolean

Returns:

  • (Boolean)


86
87
88
89
90
91
# File 'lib/mods_display/fields/imprint.rb', line 86

def unencoded_place_terms?(element)
  element.xpath('mods:place/mods:placeTerm', mods: MODS_NS).any? do |term|
    !term.attributes['type'].respond_to?(:value) ||
      term.attributes['type'].value == 'text'
  end
end