   match = identifier_string.match(IA_REGEX)
   ia_id = match[1].split('&')[0]
   process_ia_id(ia_id, 100)
+  ia_query(ia_id)
+
+ia_query = (ia_id, level = 0) ->
   fusion_tables_query "SELECT ht_identifier,score FROM #{HT_IA_TABLE_ID} WHERE ia_identifier = #{fusion_tables_escape(ia_id)} ORDER BY score DESC",
     (data) ->
       if data.rows?
-        process_ht_id(row[0],row[1]) for row in data.rows.reverse()
+        process_ht_id(row[0],(1 - level) * row[1]) for row in data.rows.reverse()
+        if level == 0
+          ht_query(row[0], 1) for row in data.rows.reverse()
       else
         no_results()
 

        $('#table').DataTable().row.add([
          "<a id='#{html_id(ia_id)}' href='#{ia_url(ia_id)}' target='_blank'>#{ia_id}</a>",
          data.metadata.title,
          data.metadata.year,
          data.metadata.volume || '',
          data.metadata.imagecount,
          score
        ]).draw(false)
        $('#table').DataTable().columns.adjust().draw()

    dataType: 'json'
    crossDomain: true
    error: (jqXHR, textStatus, errorThrown) ->
      $('#results').append($('<div/>',{class: 'alert alert-danger', role: 'alert'}).text('Error in Google Books AJAX call.'))
      console.log errorThrown
      console.log "AJAX Error: #{textStatus}"
    success: (data) ->
      console.log data
