   console.log ia_id
 
 lccn_query = (lccn_id, score = 0) ->
-  if lccn_id not in QUERIED_LCCN_IDS
+  if lccn_id not in QUERIED_IDS['lccn']
     console.log "lccn_query: #{lccn_id}"
-    QUERIED_LCCN_IDS.push lccn_id
+    QUERIED_IDS['lccn'].push lccn_id
     $.ajax "#{GOOGLE_BOOKS_URI}?q=lccn:#{lccn_id}&key=#{GOOGLE_BOOKS_API_KEY}",
       type: 'GET'
       cache: true

            gb_query(item.id)

oclc_query = (oclc_id, score = 0) ->
  if oclc_id not in QUERIED_OCLC_IDS
    console.log "oclc_query: #{oclc_id}"
    QUERIED_OCLC_IDS.push oclc_id
    $.ajax "#{GOOGLE_BOOKS_URI}?q=oclc:#{oclc_id}&key=#{GOOGLE_BOOKS_API_KEY}",
      type: 'GET'
      cache: true

  gb_biblio_query(gb_id, score)
  console.log gb_id

reset_queried_ids = ->
  QUERIED_IDS = {
    'isbn': [],
    'oclc': [],
    'lccn': []
  }

process_identifier = (identifier_string) ->
  reset_queried_ids()
  $('#results').empty()
  $('#results').append($('<table/>',{id: 'table', class: 'display', cellspacing: 0, width: '100%'}))
  $('#table').DataTable({
