/**
 * Show all authors
 */
function(doc){
    if (doc.author)
        emit(doc.author, doc);
    else
        emit(null, doc);
}

@@ -36,16 +36,123 @@
 n(doc)%7B%0A
+    // load libraries%0A    var _ = require('views/lib/underscore/underscore-min');%0A    var ctrAuthors = 0;%0A%0A
     if (
@@ -161,17 +161,20 @@
 c.author
-)
+s) %7B
 %0A       
@@ -178,48 +178,130 @@
     
-emit(doc.author, doc)
+if (_.isArray(doc.authors)) %7B%0A            ctrAuthors = 0
 ;%0A    
+ 
-else%0A
+       _.each(doc.authors, function(author)%7B%0A      
         
 emit
@@ -300,23 +300,127 @@
     
+  
 emit(
-null, doc);
+author, %7BauthorPos: ctrAuthors, title: doc.title%7D);%0A                ctrAuthors++;%0A            %7D);%0A        %7D%0A    %7D
 %0A%7D%0A

Fix authors view