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

HDL_REGEX = /^https?:\/\/hdl\.handle\.net\/2027\/(.+)\/?/
HT_CATALOG_REGEX = /^https?:\/\/catalog\.hathitrust\.org\/Record\/(\d{9})/

QUERIED_OCLC_IDS = []
QUERIED_LCCN_IDS = []

html_id = (input) ->
  input.replace(/[\/:$.,'-]/g,'_')

  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({
