lib/marli/affiliations.rb
# Get the affiliation title if it exists or the default text otherwise
Get the affiliation title if it exists or the default text otherwise
Get the affiliation title if it exists or the default text otherwise
def affiliation_text
      unless affiliation.nil?
        return affiliation
      else
        return get_sanitized_detail("default_patron_type") || I18n.t('default_patron_type')
      end
    end
def affiliation_text unless affiliation . nil? return affiliation else return get_sanitized_detail ( "default_patron_type" ) || I18n . t ( 'default_patron_type' ) end end
Get the affiliation title if it exists or the default text otherwise
Get the affiliation title if it exists or the default text otherwise