Restricted search for objects in md to objects from the given institution if limiting to a single institution is enabled in the settings.

This commit is contained in:
Joshua Ramon Enslin 2018-06-18 11:30:27 +02:00 committed by Stefan Rohde-Enslin
parent bb8fa74cd6
commit 1acdc7ba2b

View File

@ -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 '
<h1><span class="toTranslate" data-content="SearchingFor"></span> "' . $_GET['q'] . '"</h1>