headScript()->appendFile('vendor/chart.js'); $this->headScript()->appendFile('explain.js'); $explanation = $this->explanation; $recordId = $explanation->getRecordId(); $decimalPlaces = $explanation->getDecimalPlaces(); $maxScore = $explanation->getMaxScore(); $totalScore = $explanation->getTotalScore(); $boost = $explanation->getBoost(); $coord = $explanation->getCoord(); $rest = $explanation->getRest(); $restExplanation = $explanation->getExplanationForRest(); $link = $this->recordLinker()->getUrl($this->driver); ?>
=$this->transEsc('explain_top_relevance')?>: =$this->localizedNumber($maxScore, $decimalPlaces)?>
=
$this->translate('explain_relevance', [
'%%recordId%%' => '' . $this->escapeHtml($recordId) . '',
'%%relevanceValue%%' => $this->localizedNumber($totalScore, $decimalPlaces)])
?>
=
$this->transEsc('explain_modified_value', [
'%%relevanceValue%%' => $this->localizedNumber($explanation->getBaseScore(), $decimalPlaces),
])
?>
=
$this->transEsc('explain_coord', [
'%%relevanceValue%%' => $this->localizedNumber($explanation->getBaseScore(), $decimalPlaces),
'%%coord%%' => $this->localizedNumber($coord['value'], $decimalPlaces),
])
?>
=
$this->transEsc('explain_boost', [
'%%boost%%' => $this->localizedNumber($boost['value'], $decimalPlaces),
])
?>
=
$this->transEsc(
'explain_boost_description',
[
'%%boost_description%%' => $boost['description'],
]
)
?>
=$this->localizedNumber($rest['percent'], $decimalPlaces)?>% | =$this->transEsc('explain_sum')?> |