app/helpers/catalog_helper.rb
def bound_info(options = {})
    field_data = options[:value]

    contents = field_data.map do |item|
      json = JSON.parse item
      if json['bound_catkey'].nil?
        json['bound_title']
      else
        link = link_to json['bound_title'], "/catalog/#{json['bound_catkey']}"
        "#{json['bound_callnumber']}#{bound_format(json['bound_format'])} bound in " + link
      end
    end

    content_tag 'span', contents.join('<br>'), nil, false
  end
# Makes a link to a catalog item.
Makes a link to a catalog item.
Makes a link to a catalog item .
def bound_info(options = {})
    field_data = options[:value]
    contents = field_data.map do |item|
      json = JSON.parse item
      if json['bound_catkey'].nil?
        json['bound_title']
      else
        link = link_to json['bound_title'], "/catalog/#{json['bound_catkey']}"
        "#{json['bound_callnumber']}#{bound_format(json['bound_format'])} bound in " + link
      end
    end
    content_tag 'span', contents.join('<br>'), nil, false
  end
def bound_info ( options = { } ) field_data = options [ :value ] contents = field_data . map do | item | json = JSON . parse item if json [ 'bound_catkey' ] . nil? json [ 'bound_title' ] else link = link_to json [ 'bound_title' ] , "/catalog/#{json['bound_catkey']}" "#{json['bound_callnumber']}#{bound_format(json['bound_format'])} bound in " + link end end content_tag 'span' , contents . join ( '<br>' ) , nil , false end
Makes a link to a catalog item.
Makes a link to a catalog item .
options