From 1acdc7ba2b295c8d78acb80a41b630304c5d2ac4 Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Mon, 18 Jun 2018 11:30:27 +0200 Subject: [PATCH] Restricted search for objects in md to objects from the given institution if limiting to a single institution is enabled in the settings. --- search.php | 1 + 1 file changed, 1 insertion(+) diff --git a/search.php b/search.php index 1938456..c3f909e 100644 --- a/search.php +++ b/search.php @@ -52,6 +52,7 @@ else { $getArgsForMD = []; foreach ($_GET as $key => $value) $getArgsForMD[] = "$key=$value"; + if (count($settings['limitToInstitutions']) == 1) $getArgsForMD[] = "suinin=" . $settings['limitToInstitutions'][0]; echo '

"' . $_GET['q'] . '"