               if ebook.preview_url.match(IA_REGEX)
                 process_ia(ebook.preview_url)
 
+gb_rights = (accessViewStatus) ->
+  if accessViewStatus? and (accessViewStatus == 'FULL_PUBLIC_DOMAIN')
+    return ''
+  else
+    return " \uD83D\uDD12"
+
 gb_biblio_query = (gb_id, score = 0) ->
   if $("##{html_id(gb_id)}").length == 0
     console.log("Adding GB: #{gb_id}")

        if $("##{html_id(ht_id)}").length == 0
          $('#table').DataTable().row.add([
            '<img src="https://www.hathitrust.org/favicon.ico" width="16" height="16"/>',
            "<a id='#{html_id(ht_id)}' href='#{ht_url(ht_id)}' target='_blank'>#{ht_id}</a>",
            _.values(data.records)[0].titles[0],
            _.values(data.records)[0].publishDates[0],
            ht_object.enumcron || '',

          if callback?
            callback(data)

ht_rights = (usRightsString) ->
  if usRightsString? and (usRightsString.toLowerCase() == 'full view')
    return ''
  else
    return " \uD83D\uDD12"

ht_biblio_query = (ht_id, score = 0) ->
  if $("##{html_id(ht_id)}").length == 0
    console.log "Adding HT: #{ht_id}"
