Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
9e9cf6c8
Commit
9e9cf6c8
authored
Aug 17, 2017
by
Aria Givi
Browse files
subcollection-feld mit minism-feld verknuepft und als ausgabe eingesetzt
parent
a47b36bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Models/parserSkripte/Minisucher.php
View file @
9e9cf6c8
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment