   match = identifier_string.match(GB_REGEX)
   gb_id = match[1].split('&')[0]
   process_gb_id(gb_id, 100)
+  gb_query(gb_id)
+
+gb_query = (gb_id, level = 0) ->
   fusion_tables_query "SELECT ia_identifier FROM #{IA_GB_TABLE_ID} WHERE gb_identifier = #{fusion_tables_escape(gb_id)}",
     (data) ->
       if data.rows?
-        process_ia_id(row[0],100) for row in data.rows.reverse()
+        process_ia_id(row[0],(1 - level)*100) for row in data.rows.reverse()
+        if level == 0
+          ia_query(row[0],1) for row in data.rows.reverse()
 
 gb_url = (gb_id) ->
   "https://books.google.com/books?id=#{gb_id}"
 
 process_gb_id = (gb_id, score = 0) ->
-  gb_link = $('<a/>',{href: gb_url(gb_id),target: '_blank'}).text(gb_id)
   gb_biblio_query(gb_id, score)
   console.log gb_id
 

  match = identifier_string.match(IA_REGEX)
  ia_id = match[1].split('&')[0]
  process_ia_id(ia_id, 100)
  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()
      else
        no_results()


          data.volumeInfo.title,
          data.volumeInfo.publishedDate,
          '',
          data.volumeInfo.pageCount || '',
          score
        ]).draw(false)
        $('#table').DataTable().columns.adjust().draw()
