Commit 3b8c5ef2 authored by Ozzieisaacs's avatar Ozzieisaacs

Merge remote-tracking branch 'get_metadata/patch-1'

Fix #1210 Load multiple authors correct via get metadata
parents e60ef8fc 29cb8bfe
...@@ -48,7 +48,8 @@ $(function () { ...@@ -48,7 +48,8 @@ $(function () {
if ($.inArray(el, uniqueTags) === -1) uniqueTags.push(el); if ($.inArray(el, uniqueTags) === -1) uniqueTags.push(el);
}); });
$("#bookAuthor").val(book.authors); var ampSeparatedAuthors = (book.authors || []).join(" & ");
$("#bookAuthor").val(ampSeparatedAuthors);
$("#book_title").val(book.title); $("#book_title").val(book.title);
$("#tags").val(uniqueTags.join(",")); $("#tags").val(uniqueTags.join(","));
$("#rating").data("rating").setValue(Math.round(book.rating)); $("#rating").data("rating").setValue(Math.round(book.rating));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment