/**
 * list function: all books, as HTML list
 */
function(head, req){
    provides("html", function(){
        //send("<html><body>");
        send("<ul>");
        while (row = getRow()) {
            send(renderBook(row));
        }
        send("</ul>");
        //send("</body></html>");
    });
}

function renderBook(row){
    var title = row.value.title || "[No title]";
    var author = row.value.author || "[No author]";
    return '<li><a href="#"' + row.id + '>' + title + '</a> by ' + author + '</li>';
}

@@ -390,45 +390,198 @@
 thor
- = row.value.author %7C%7C %22%5BNo author%5D%22;
+Part = %22%22;%0A    if (row.value.authors && row.value.authors.length %3E 0) %7B%0A        if (row.value.authors%5B0%5D.length %3E 0) %7B%0A            authorPart = %22 by %22 + row.value.authors%5B0%5D;%0A        %7D%0A    %7D
 %0A   
@@ -636,20 +636,16 @@
  + '%3C/a%3E
- by 
 ' + auth
@@ -646,16 +646,20 @@
 + author
+Part
  + '%3C/li

Fix books-list list