 
     return "<tr class='rowlink'>#{tdId}#{tdName}#{tdScores}</tr>"
 
+  # Create the URLs used in the result table
   createReportLink = (record, i) ->
 
     metric = metric_url_representation(gon.metric)

#=require bootstrap-rowlink.min
$ ->

  createMetricAbbreviation = (metric) ->
    abbreviation = ''
    for word in metric.split('_')
      abbreviation += word[0].toUpperCase()
    return abbreviation

  createTableRow = (metadata, i) ->

    record = metadata.id
    url = createReportLink(record, i)
    tdId = "<td><a href=\"#{url}\">#{metadata.record.id}</a></td>"

  metric_url_representation = (metric) ->
    return metric.split('_').join('-')

  # Callback function for querying the metadata records
  displayRecordResults = (result) ->
    which_record = $("#search-input").data("record")
    if result.length > 0
      for metadata in result
