app/helpers/marc_heading_helper.rb
# Returns nil if no loine. Otherwise renders marc_line with line, and
# removes some inconvenient HTML whitespace.
Returns nil if no loine. Otherwise renders marc_line with line, and
removes some inconvenient HTML whitespace.
Returns nil if no loine . Otherwise renders marc_line with line and removes some inconvenient HTML whitespace .
def render_marc_line(line)        
    return nil if line.nil?
    return render(:partial => "marc_display/marc_line", :locals => {:line => line}).sub(/^(\n|\s)+/,'').sub(/(\n|\s)+$/, '').html_safe
  end
def render_marc_line ( line ) return nil if line . nil? return render ( :partial => "marc_display/marc_line" , :locals => { :line => line } ) . sub ( / ^( \n | \s )+ / , '' ) . sub ( / ( \n | \s )+$ / , '' ) . html_safe end
Returns nil if no loine.
Returns nil if no loine .
line
<not_specific>