From 3c6a627b10478d51e90fe155be00617b5ba9828e Mon Sep 17 00:00:00 2001 From: Paul Pound Date: Fri, 5 Apr 2024 13:41:23 -0300 Subject: [PATCH] updated body substring code --- .../solr_site/src/Controller/RoblibSearchSolrsiteController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/solr_site/src/Controller/RoblibSearchSolrsiteController.php b/modules/solr_site/src/Controller/RoblibSearchSolrsiteController.php index c4b6e7c..872035a 100644 --- a/modules/solr_site/src/Controller/RoblibSearchSolrsiteController.php +++ b/modules/solr_site/src/Controller/RoblibSearchSolrsiteController.php @@ -97,7 +97,7 @@ class RoblibSearchSolrsiteController extends ControllerBase { if (!empty($body)) { $bodyOutput = strip_tags($body[0]->getText()); if (strlen($bodyOutput) > 500) { - $bodyOutput = substr($bodyOutput, 0, 500) . '...'; + $bodyOutput = substr($bodyOutput, 0, 499) . '...'; } } $output['results'][$id]['body'] = empty($bodyOutput) ? '' : $bodyOutput;