   }
 
   return class Node extends Backbone.AssociatedModel
-    url: () -> "#{CONTENT_URI}/#{@id}"
+    url: () -> "#{SERVER}/contents/#{@id}"
 
     parse: (response, options) ->
       # Don't overwrite the title from the book's table of contents

  settings = require('cs!settings')
  require('backbone-associations')

  CONTENT_URI = "#{location.protocol}//#{settings.cnxarchive.host}:#{settings.cnxarchive.port}/contents"

  LICENSES = {
    'by': 'Attribution License CC BY'

      response.languageName = settings.languages[response.language]

      return response

    fetch: (options) ->
      super(arguments...)

      if not @id then return

      @set('downloads', 'loading')

      $.get "#{SERVER}/exports-allowable-types/#{@id}", (response) =>
        @set('downloads', JSON.parse(response))
      .fail () =>
        @set('downloads', 'error')
