From c303f4e91cd83af799f554fcf4d0f5ce0642f7d8 Mon Sep 17 00:00:00 2001 From: Gilles Crettenand Date: Wed, 3 Jun 2015 13:39:12 +0200 Subject: [PATCH] specific display for NewSearch --- Lib/Formatter/Html.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Lib/Formatter/Html.php b/Lib/Formatter/Html.php index 72db84a..8881bc3 100644 --- a/Lib/Formatter/Html.php +++ b/Lib/Formatter/Html.php @@ -41,10 +41,20 @@ class Html extends Formatter { $data = reset($data['result']); $title = $func; + $content = ''; + + if($func == 'NewSearch') { + $content .= '

Count : '.$data['count'].'

'; + $content .= '

Facets : '.print_r($data['facets'], true).'

'; + + unset($data['count']); + unset($data['facets']); + } + $first = reset($data); $single = ! is_array($first); - $content = ''; + $content .= '
'; if($single) { $content .= ""; } else {
FieldValue