   gb_biblio_query(gb_id, score)
   console.log gb_id
 
+reset_queried_ids = ->
+  QUERIED_IDS = {
+    'isbn': [],
+    'oclc': [],
+    'lccn': []
+  }
+
 process_identifier = (identifier_string) ->
-  QUERIED_OCLC_IDS = []
-  QUERIED_LCCN_IDS = []
+  reset_queried_ids()
   $('#results').empty()
   $('#results').append($('<table/>',{id: 'table', class: 'display', cellspacing: 0, width: '100%'}))
   $('#table').DataTable({

  console.log ia_id

lccn_query = (lccn_id, score = 0) ->
  if lccn_id not in QUERIED_LCCN_IDS
    console.log "lccn_query: #{lccn_id}"
    QUERIED_LCCN_IDS.push lccn_id
    $.ajax "#{GOOGLE_BOOKS_URI}?q=lccn:#{lccn_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_IDS = {}

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