old_contents: /**
   * Show all authors
   */
  function(doc){
      if (doc.author)
          emit(doc.author, doc);
      else
          emit(null, doc);
  }
  
new_contents: /**
   * Show all authors
   */
  function(doc){
      // load libraries
      var _ = require('views/lib/underscore/underscore-min');
      var ctrAuthors = 0;
  
      if (doc.authors) {
          if (_.isArray(doc.authors)) {
              ctrAuthors = 0;
              _.each(doc.authors, function(author){
                  emit(author, {authorPos: ctrAuthors, title: doc.title});
                  ctrAuthors++;
              });
          }
      }
  }
  
subject: Fix authors view