   add_translations(urn)
 
 get_passage = (urn) ->
-  request_url = "#{cts_cite_collection_driver_config['cts_endpoint']}?#{$.param(
-    request: 'GetPassage'
-    urn: urn
-  )}"
-  $.ajax request_url,
-    type: 'GET'
-    dataType: 'xml'
-    crossDomain: 'true'
-    error: (jqXHR, textStatus, errorThrown) ->
-      console.log "AJAX Error: #{textStatus}"
-    success: (data) ->
-      tei_document = $($($(data)[0]).children('TEI')[0])
-      request_urn = tei_document.find('requestUrn').text()
-      entry = tei_document.find('div[type="entry"]')
-      head = $(entry).find('head').text()
-      body = $(entry).find('p').text()
-      set_cts_text(request_urn, head, body)
-
+  console.log("get_passage #{urn}")
+  fusion_tables_query "SELECT * FROM #{cts_cite_collection_driver_config['cts_endpoint']} WHERE URN = #{fusion_tables_escape(urn)}", (fusion_tables_result) ->
+    # console.log fusion_tables_result
+    passage = fusion_tables_result.rows[0]
+    # 0 = URN
+    # 1 = Perseus
+    # 2 = text
+    # 3 = SOL
+    request_urn = passage[0]
+    head = urn_to_head(request_urn)
+    set_cts_text(request_urn, head, passage[2])
+    # call set_cts_text(request_urn, head, body)
+    
 show_all = ->
   $('#toggle_group button').removeClass('active')
   $('#all_entries_button').addClass('active')

default_cts_cite_collection_driver_config =
  google_client_id: '429515988667-jkk0s2375vu04vasnvpotbimddag4ih8.apps.googleusercontent.com'
  google_scope: 'https://www.googleapis.com/auth/fusiontables https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email'
  cts_endpoint: 'http://www.perseus.tufts.edu/hopper/CTS'
  cts_urn: 'urn:cts:greekLit:tlg1389.tlg001.perseus-grc1'
  cite_table_id: '11_Igu6u5961Dkz-cfbJOgKdYkQMwnoe3AQXw8T-K'
  cite_collection_editor_url: 'http://ryanfb.github.io/harpocration/src/index.html'


    if localStorage["#{urn}[head]"]?
      set_cts_text(urn, localStorage["#{urn}[head]"], localStorage["#{urn}[body]"])
    else
      setTimeout(get_passage(urn),get_passage_delay * 30)
      get_passage_delay += 1
    
    if cite_collection_contains_urn(urn)
      translated_urns += 1

  progress = translated_urns/valid_urns.length * 100.0
  console.log("Progress: #{progress}")
  $('#translation_progress').attr('style',"width: #{progress}%;")

