参考文献优化

This commit is contained in:
wyn
2026-07-16 17:56:52 +08:00
parent 9b9eec24c2
commit ddb9c9f603
2 changed files with 27 additions and 10 deletions

View File

@@ -581,15 +581,18 @@ class ReferenceRelevanceCheckService
}
$claims = $this->decodeClaimsJson(isset($row['claims_json']) ? $row['claims_json'] : '');
$author_comment = $this->resolveAuthorCommentFromRow($row, $claims);
$author_comment = $author_comment?"<b>[文献 ".intval($row['reference_no'])."]: </b>".$author_comment:$author_comment;
$g['records'][] = [
'check_id' => intval($row['id']),
'reference_no' => intval($row['reference_no']),
'am_id' => intval($row['am_id']),
'status' => $st,
'is_relevant' => intval($row['is_relevant']),
'relevance_score' => $score,
'is_pass' => $isPass,
'reason' => (string)$row['reason'],
'author_comment' => $this->resolveAuthorCommentFromRow($row, $claims),
'author_comment' => $author_comment,
'combined_relevance_score' => floatval($row['combined_relevance_score']),
'combined_reason' => (string)$row['combined_reason'],
'cite_group_refs' => (string)$row['cite_group_refs'],