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:
parent
bb8fa74cd6
commit
1acdc7ba2b
|
@ -52,6 +52,7 @@ else {
|
||||||
|
|
||||||
$getArgsForMD = [];
|
$getArgsForMD = [];
|
||||||
foreach ($_GET as $key => $value) $getArgsForMD[] = "$key=$value";
|
foreach ($_GET as $key => $value) $getArgsForMD[] = "$key=$value";
|
||||||
|
if (count($settings['limitToInstitutions']) == 1) $getArgsForMD[] = "suinin=" . $settings['limitToInstitutions'][0];
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
<h1><span class="toTranslate" data-content="SearchingFor"></span> "' . $_GET['q'] . '"</h1>
|
<h1><span class="toTranslate" data-content="SearchingFor"></span> "' . $_GET['q'] . '"</h1>
|
||||||
|
|
Reference in New Issue
Block a user