From 25cb718173bbac187a37c6e6601257340a884e10 Mon Sep 17 00:00:00 2001 From: thomas-topway-it Date: Fri, 18 Jul 2025 02:39:02 +0400 Subject: [PATCH 1/2] add sep param --- formats/filtered/src/Filtered.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/formats/filtered/src/Filtered.php b/formats/filtered/src/Filtered.php index 3e2bee6a7..0fba02a3e 100644 --- a/formats/filtered/src/Filtered.php +++ b/formats/filtered/src/Filtered.php @@ -252,6 +252,12 @@ public function getParamDefinitions( array $definitions ) { // 'islist' => false, ]; + $params['sep'] = [ + 'type' => 'string', + 'message' => 'smw-paramdesc-sep', + 'default' => ', ', + ]; + foreach ( $this->mViewTypes as $viewType ) { $params = array_merge( $params, call_user_func( [ 'SRF\Filtered\View\\' . $viewType, 'getParameters' ] ) ); } From 406a7231bb4cccc6fb9fac38bccfb11338fb2af3 Mon Sep 17 00:00:00 2001 From: thomas-topway-it Date: Fri, 18 Jul 2025 02:40:40 +0400 Subject: [PATCH 2/2] add param sep --- formats/filtered/src/View/ListView.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/formats/filtered/src/View/ListView.php b/formats/filtered/src/View/ListView.php index 02c1c3562..28e4cbaaf 100644 --- a/formats/filtered/src/View/ListView.php +++ b/formats/filtered/src/View/ListView.php @@ -33,11 +33,15 @@ class ListView extends View { private $mNamedArgs; private $mShowHeaders; + /** @var array */ + private $params; + /** * Transfers the parameters applicable to this view into internal variables. */ protected function handleParameters() { $params = $this->getActualParameters(); + $this->params = $params; $this->mFormat = $params['list view type']; $this->mTemplate = $params['list view template']; @@ -72,14 +76,18 @@ public function getResultText() { $footer = "mFormat . ">\n"; $rowstart = "\t
  • params['sep']; } else { // "list" format $header = ''; $footer = ''; $rowstart = "\t
    params['sep']; } // Initialise more values