app/helpers/marc_heading_helper.rb
# 245c, optionally truncated. easier to do without marcpresenter
245c, optionally truncated. easier to do without marcpresenter
245c optionally truncated . easier to do without marcpresenter
def heading_stmt_resp(document, options = {})
    marc = document_to_marc(document)
    stmt = marc['245'].try {|f| f['c']}
    if options[:truncate] && stmt.present?
      stmt = truncate(stmt, :length => 90, :omission => "… ", :separator => " ")
    end
    return stmt
  end
def heading_stmt_resp ( document , options = { } ) marc = document_to_marc ( document ) stmt = marc [ '245' ] . try { | f | f [ 'c' ] } if options [ :truncate ] && stmt . present? stmt = truncate ( stmt , :length => 90 , :omission => "… ",  : eparator =  " ") end return stmt end
245c, optionally truncated.
245c optionally truncated .
document
<not_specific>
options
<not_specific>