Skip to content
Snippets Groups Projects
Commit 9e9cf6c8 authored by Aria Givi's avatar Aria Givi
Browse files

subcollection-feld mit minism-feld verknuepft und als ausgabe eingesetzt

parent a47b36bb
No related branches found
No related tags found
2 merge requests!1012Development,!1010Resolve "Minisucher Ergebnisquelle korrigieren"
......@@ -37,10 +37,8 @@ class Minisucher extends Searchengine
try {
$counter++;
$result = simplexml_load_string($result->saveXML());
$title = $result->xpath('//doc/arr[@name="title"]/str')[0]->__toString();
$link = $result->xpath('//doc/str[@name="url"]')[0]->__toString();
$subcollection = $result->xpath('//doc/str[@name="subcollection"]')[0]->__toString();
$anzeigeLink = $link;
$descr = "";
$descriptions = $content->xpath("//response/lst[@name='highlighting']/lst[@name='$link']/arr[@name='content']/str");
......@@ -57,7 +55,11 @@ class Minisucher extends Searchengine
$additionalInformation = ['date' => $dateVal];
$gefVon = "<a href=\"https://metager.de\" target=\"_blank\" rel=\"noopener\">Minisucher: $subcollection </a>";
$subcollection = explode(' ', $result->xpath('//doc/str[@name="subcollection"]')[0]->__toString());
$minism = explode(', ', simplexml_load_string($this->engine)["subcollections"]);
$result = implode(', ',array_intersect($subcollection, $minism));
$gefVon = "<a href=\"https://metager.de\" target=\"_blank\" rel=\"noopener\">Minisucher: $result </a>";
$this->results[] = new \App\Models\Result(
$this->engine,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment