Skip to content

Commit

Permalink
Update query that enables filtering via collections
Browse files Browse the repository at this point in the history
  • Loading branch information
j-panzer committed Nov 15, 2023
1 parent 494404f commit 8d57fe8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Service/OaiService.php
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,13 @@ private function query(string $query, string $sort = 'date_indexed', bool $rever
$start = $configuration['start'] ?? 0;
$direction = $reverse ? 'desc' : 'asc';
$query .= ' -doctype:fulltext';
if (isset($configuration["set"])) {
if (strtolower($configuration["set"]) == "eu") {
$query .= ' NOT(dc:(mathematica OR rusdml) AND year_publish:[1926 TO 9999])';
} else {
$query .= ' dc:'.$configuration["set"];
}
}

$solrQuery = $this->client
->createSelect()
Expand Down

0 comments on commit 8d57fe8

Please sign in to comment.