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

Fix #1210 Load multiple authors correct via get metadata
This commit is contained in:
Ozzieisaacs 2020-02-23 13:14:12 +01:00
commit 3b8c5ef21a

View File

@ -48,7 +48,8 @@ $(function () {
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);
$("#tags").val(uniqueTags.join(","));
$("#rating").data("rating").setValue(Math.round(book.rating));