 
       response.license = license
 
+      # Add languageName property to nodes for faster references in views
+      response.languageName = settings.languages[response.language]
+
       return response

  require('backbone-associations')

  CONTENT_URI = "#{location.protocol}//#{settings.cnxarchive.host}:#{settings.cnxarchive.port}/contents"
  
  LICENSES = {
    'by': 'Attribution License CC BY'
    'by-sa': 'Attribution-ShareAlike CC BY-SA'


    parse: (response, options) ->
      # Don't overwrite the title from the book's table of contents
      if @get('title') then delete response.title

      # Determine the license name, version, and url
      license = response.license.match(/^http:\/\/creativecommons\.org\/licenses\/(.+)\/(.+)\//)
