   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_biblio_query(gb_id, score)
  console.log gb_id

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

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

QUERIED_IDS = {}

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