Skip to content
Snippets Groups Projects
Commit e0e2999a authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Verlinkung zur MetaGer Suche in die Zitatsuche eingefügt

parent dec3ed4b
No related branches found
No related tags found
2 merge requests!766Development,!765Verlinkung zur MetaGer Suche in die Zitatsuche eingefügt
...@@ -32,8 +32,8 @@ class ZitatController extends Controller ...@@ -32,8 +32,8 @@ class ZitatController extends Controller
if ($valid) { if ($valid) {
# This Result is valid. We'll add it Sorted by author # This Result is valid. We'll add it Sorted by author
if (preg_match("/^\"([^\"]+)\"\s(.*)$/", $zitat, $matches)) { if (preg_match("/^\"([^\"]+)\"\s(.*)$/", $zitat, $matches)) {
$quote = $matches[1]; $quote = trim($matches[1]);
$author = $matches[2]; $author = trim($matches[2]);
if (isset($validResults[$author])) { if (isset($validResults[$author])) {
$validResults[$author][] = $quote; $validResults[$author][] = $quote;
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<hr /> <hr />
<h3>Ergebnisse für die Suche "{{$q}}":</h3> <h3>Ergebnisse für die Suche "{{$q}}":</h3>
@foreach($results as $author => $quotes) @foreach($results as $author => $quotes)
<b>{{$author}}:</b> <b><a href="{{ action('MetaGerSearch@search', ['eingabe' => $author, 'focus' => 'web', 'encoding' => 'utf8', 'lang' => 'all']) }}" target="_blank">{{$author}}</a>:</b>
<ul class="list-unstyled"> <ul class="list-unstyled">
@foreach($quotes as $quote) @foreach($quotes as $quote)
<li><quote>"{{ $quote }}"</quote></li> <li><quote>"{{ $quote }}"</quote></li>
......
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