Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MetaGer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
MetaGer
Commits
8f60fcac
Commit
8f60fcac
authored
8 years ago
by
Dominik Hebeler
Browse files
Options
Downloads
Plain Diff
Merge branch 'Bugfix' into 'master'
Fehler in Exalead behoben See merge request
!184
parents
e6841828
35d49e9f
No related branches found
Branches containing commit
No related tags found
2 merge requests
!204
Bugfix
,
!184
Fehler in Exalead behoben
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/Models/parserSkripte/Exalead.php
+23
-18
23 additions, 18 deletions
app/Models/parserSkripte/Exalead.php
with
23 additions
and
18 deletions
app/Models/parserSkripte/Exalead.php
+
23
−
18
View file @
8f60fcac
...
...
@@ -45,24 +45,29 @@ class Exalead extends Searchengine
}
foreach
(
$results
as
$result
)
{
$result
->
registerXPathNamespace
(
$prefix
,
$namespace
);
$title
=
$result
->
xpath
(
"a:metas/a:Meta[@name='title']/a:MetaString[@name='value']"
)[
0
]
->
__toString
();
$link
=
$result
->
xpath
(
"a:metas/a:Meta[@name='url']/a:MetaString[@name='value']"
)[
0
]
->
__toString
();
$anzeigeLink
=
$link
;
if
(
sizeOf
(
$result
->
xpath
(
"a:metas/a:Meta[@name='metadesc']/a:MetaString[@name='value']"
))
===
0
)
$descr
=
""
;
else
$descr
=
$result
->
xpath
(
"a:metas/a:Meta[@name='metadesc']/a:MetaString[@name='value']"
)[
0
]
->
__toString
();
$this
->
counter
++
;
$this
->
results
[]
=
new
\App\Models\Result
(
$this
->
engine
,
$title
,
$link
,
$anzeigeLink
,
$descr
,
$this
->
gefVon
,
$this
->
counter
);
try
{
$result
->
registerXPathNamespace
(
$prefix
,
$namespace
);
$title
=
$result
->
xpath
(
"a:metas/a:Meta[@name='title']/a:MetaString[@name='value']"
)[
0
]
->
__toString
();
$link
=
$result
->
xpath
(
"a:metas/a:Meta[@name='url']/a:MetaString[@name='value']"
)[
0
]
->
__toString
();
$anzeigeLink
=
$link
;
if
(
sizeOf
(
$result
->
xpath
(
"a:metas/a:Meta[@name='metadesc']/a:MetaString[@name='value']"
))
===
0
)
$descr
=
""
;
else
$descr
=
$result
->
xpath
(
"a:metas/a:Meta[@name='metadesc']/a:MetaString[@name='value']"
)[
0
]
->
__toString
();
$this
->
counter
++
;
$this
->
results
[]
=
new
\App\Models\Result
(
$this
->
engine
,
$title
,
$link
,
$anzeigeLink
,
$descr
,
$this
->
gefVon
,
$this
->
counter
);
}
catch
(
\ErrorException
$e
)
{
continue
;
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment