       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')

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

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

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

  }

  return class Node extends Backbone.AssociatedModel
    url: () -> "#{SERVER}/contents/#{@id}"

    parse: (response, options) ->
      # Don't overwrite the title from the book's table of contents
