Commit b9683f8e authored by Dominik Hebeler's avatar Dominik Hebeler

completed sumas.json

parent 3ea48277
......@@ -18,14 +18,14 @@ update(144.76.113.134):
- cd MetaGer_neu
- composer install
- scp -P 63824 metager@metager3.de:~/.env .
- scp -P 63824 metager@metager3.de:~/sumas.xml config/
- scp -P 63824 metager@metager3.de:~/sumasEn.xml config/
- scp -P 63824 metager@metager3.de:~/sumas.json config/
- scp -P 63824 metager@metager3.de:~/sumasEn.json config/
- scp -P 63824 metager@metager3.de:~/blacklistUrl.txt config/
- scp -P 63824 metager@metager3.de:~/blacklistDomains.txt config/
- touch storage/logs/laravel.log
- touch storage/logs/worker.log
- touch database/metager.sqlite
- chmod 777 config/sumas.xml config/sumasEn.xml database/metager.sqlite
- chmod 777 config/sumas.json config/sumas.json database/metager.sqlite
- chmod -R 777 storage
- chmod -R 777 bootstrap/cache
- npm install
......@@ -58,14 +58,14 @@ update(metager2):
- cd MetaGer_neu
- composer install
- scp -P 63824 metager@metager3.de:~/.env .
- scp -P 63824 metager@metager3.de:~/sumas.xml config/
- scp -P 63824 metager@metager3.de:~/sumasEn.xml config/
- scp -P 63824 metager@metager3.de:~/sumas.json config/
- scp -P 63824 metager@metager3.de:~/sumas.json config/
- scp -P 63824 metager@metager3.de:~/blacklistUrl.txt config/
- scp -P 63824 metager@metager3.de:~/blacklistDomains.txt config/
- touch storage/logs/laravel.log
- touch storage/logs/worker.log
- touch database/metager.sqlite
- chmod 777 config/sumas.xml config/sumasEn.xml database/metager.sqlite
- chmod 777 config/sumas.json config/sumas.json database/metager.sqlite
- chmod -R 777 storage
- chmod -R 777 bootstrap/cache
- npm install
......@@ -98,14 +98,14 @@ update(metager3.de):
- cd MetaGer_neu
- composer install
- scp -P 63824 metager@metager3.de:~/.env .
- scp -P 63824 metager@metager3.de:~/sumas.xml config/
- scp -P 63824 metager@metager3.de:~/sumasEn.xml config/
- scp -P 63824 metager@metager3.de:~/sumas.json config/
- scp -P 63824 metager@metager3.de:~/sumas.json config/
- scp -P 63824 metager@metager3.de:~/blacklistUrl.txt config/
- scp -P 63824 metager@metager3.de:~/blacklistDomains.txt config/
- touch storage/logs/laravel.log
- touch storage/logs/worker.log
- touch database/metager.sqlite
- chmod 777 config/sumas.xml config/sumasEn.xml database/metager.sqlite
- chmod 777 config/sumas.json config/sumas.json database/metager.sqlite
- chmod -R 777 storage
- chmod -R 777 bootstrap/cache
- npm install
......
......@@ -22,8 +22,8 @@ class Exalead extends Searchengine
if (!$content) {
return;
}
$results = $content;
$prefix = "";
$results = $content;
$prefix = "";
$namespace = "";
foreach ($results->getDocNamespaces() as $strPrefix => $strNamespace) {
if (strlen($strPrefix) == 0) {
......@@ -42,10 +42,10 @@ class Exalead extends Searchengine
foreach ($results as $result) {
try {
$result->registerXPathNamespace($prefix, $namespace);
$title = $result->xpath("a:metas/a:Meta[@name='title']/a:MetaString[@name='value']")[0]->__toString();
$link = $result["url"]->__toString();
$title = $result->xpath("a:metas/a:Meta[@name='title']/a:MetaString[@name='value']")[0]->__toString();
$link = $result["url"]->__toString();
$anzeigeLink = $link;
$descr = "";
$descr = "";
if (sizeOf($result->xpath("a:metas/a:Meta[@name='metadesc']/a:MetaString[@name='value']")) === 0 && sizeOf($result->xpath("a:metas/a:Meta[@name='summary']/a:MetaText[@name='value']")) !== 0) {
$tmp = $result->xpath("a:metas/a:Meta[@name='summary']/a:MetaText[@name='value']");
foreach ($tmp as $el) {
......@@ -61,7 +61,7 @@ class Exalead extends Searchengine
$link,
$anzeigeLink,
$descr,
$this->engine->{"display-name"},$this->engine->homepage,
$this->engine->{"display-name"}, $this->engine->homepage,
$this->counter
);
} catch (\ErrorException $e) {
......
sumas.xml
sumasEn.xml
sumas.json
sumasEn.json
blacklistUrl.txt
blacklistDomains.txt
\ No newline at end of file
......@@ -41,7 +41,7 @@
@foreach($metager->getAvailableParameterFilter() as $filterName => $filter)
<div class="option-selector">
<label for="{{$filterName}}">@lang($filter->name)</label>
<select name="{{$filter->{'get-parameter'} }}" form="searchForm">
<select name="{{$filter->{'get-parameter'} }}" form="searchForm" onchange="this.form.submit()">
@foreach($filter->values as $value => $text)
<option value="{{$value}}" @if(Request::input($filter->{'get-parameter'}, '') === $value)selected="selected" @endif>{{trans($text)}}</option>
@endforeach
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment