Skip to content

Commit

Permalink
Actually copy work
Browse files Browse the repository at this point in the history
  • Loading branch information
kwahlin committed Jul 18, 2022
1 parent 72b7228 commit 3d2882c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ class Doc {
return work
}

Map workCopy() {
return getWork(whelk, doc.clone())
}

Map getMainEntity() {
return doc.data['@graph'][1]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Html {
</tr>
<tr>
<td></td>
${cluster.collect { doc -> "<td>${doc.instanceDisplayTitle()}</td>" }.join('\n')}
${cluster.collect { doc -> "<td>${doc.mainEntityDisplayTitle()}</td>" }.join('\n')}
</tr>
""".stripIndent()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class WorkComparator {
}
}
} else {
result = docs[0].getWork()
result = docs[0].workCopy()
}

if (!result['hasTitle']) {
Expand Down

0 comments on commit 3d2882c

Please sign in to comment.