@@ -349,7 +349,7 @@ public function getChildren($params)
349349 // Initialize router to process each children individually
350350 $ router = new RestoRouter ($ this ->context , $ this ->user );
351351
352- $ links = $ this ->stacUtil ->getRootCatalogLinks ();
352+ $ links = $ this ->stacUtil ->getRootCatalogLinks ($ this -> options [ ' minMatch ' ] );
353353 for ($ i = 0 , $ ii = count ($ links ); $ i < $ ii ; $ i ++) {
354354 if ($ links [$ i ]['rel ' ] == 'child ' ) {
355355 try {
@@ -1018,7 +1018,7 @@ private function load($params = array())
10181018
10191019 // Root
10201020 if ($ nbOfSegments === 0 ) {
1021- $ this ->links = $ this ->stacUtil ->getRootCatalogLinks ();
1021+ $ this ->links = $ this ->stacUtil ->getRootCatalogLinks ($ this -> options [ ' minMatch ' ] );
10221022 }
10231023
10241024 // View special case
@@ -1279,7 +1279,7 @@ private function setCatalogsLinksFromFacet($params)
12791279 return $ this ->setFeatureCollection ($ leafValue , $ params );
12801280 }
12811281 }
1282-
1282+
12831283 // Add parent link
12841284 if ($ nbOfSegments > 1 ) {
12851285 $ this ->links [] = array (
@@ -1303,7 +1303,7 @@ private function setCatalogsLinksFromFacet($params)
13031303 }
13041304
13051305 $ matched = (integer ) $ result ['matched ' ];
1306- if ($ matched > $ this ->options ['minMatch ' ]) {
1306+ if ($ matched >= $ this ->options ['minMatch ' ]) {
13071307 $ link = array (
13081308 'rel ' => ((integer ) $ result ['isleaf ' ]) === 1 ? 'items ' : 'child ' ,
13091309 'title ' => $ result ['value ' ],
0 commit comments