|
@@ -147,6 +147,11 @@ $(document).ready(function() {
|
|
|
// Does the given structure match the current query
|
|
// Does the given structure match the current query
|
|
|
function matchCurrentQuery(structure) {
|
|
function matchCurrentQuery(structure) {
|
|
|
|
|
|
|
|
|
|
+ // Is the structure a member of the website federation?
|
|
|
|
|
+ if (![structure.n1Id, structure.n2Id, structure.n3Id, structure.n4Id, structure.n5Id].includes(organizationId)) {
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
// Filter by name
|
|
// Filter by name
|
|
|
if (query['what'] && !structure.name.toLowerCase().includes(query['what'].toLowerCase())) {
|
|
if (query['what'] && !structure.name.toLowerCase().includes(query['what'].toLowerCase())) {
|
|
|
return false;
|
|
return false;
|