 
 process_ht_id = (ht_id, score = 0) ->
   ht_biblio_query(ht_id, score)
-  console.log ht_id
 
 filter_ia_external_ids = (external_ids, type) ->
   identifier_regex = new RegExp("^urn:#{type}:(.+)$")


ht_biblio_query = (ht_id, score = 0) ->
  if $("##{html_id(ht_id)}").length == 0
    ht_query(ht_id)
    $.ajax "https://catalog.hathitrust.org/api/volumes/brief/htid/#{ht_id}.json",
      type: 'GET'


ia_biblio_query = (ia_id, score = 0) ->
  if $("##{html_id(ia_id)}").length == 0
    console.log("Adding IA: #{ia_id}")
    ia_query(ia_id)
    $.ajax "https://archive.org/metadata/#{ia_id}",
      type: 'GET'
