Skip to content

Commit

Permalink
Merge pull request #7368 from mheiman/7355/bugfix/edition_author_diff
Browse files Browse the repository at this point in the history
Correctly handle author data in edition diff display
  • Loading branch information
cdrini authored Jan 4, 2023
2 parents 1a7862b + d2a75c4 commit 347f4a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openlibrary/templates/diff.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ <h2 class="collapse"><a href="$a.key">$title</a> &rarr; Diff</h2>
return thingdiff("/type/text", "table_of_contents", a.get_toc_text(), b.get_toc_text())
elif p == "title_prefix":
return thingdiff("/type/string", "title_prefix", a[p].strip(), b[p].strip())
elif p == "authors":
elif p == "authors" and a.type.key == "/type/work":
label = "authors"
t = "/type/author"
ap = [val.author for val in a.authors]
Expand Down

0 comments on commit 347f4a1

Please sign in to comment.