Commit 363d8b23 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Merge branch '454-zitatsuche-uberfuhren' into 'development'

Verlinkung zur MetaGer Suche in die Zitatsuche eingefügt

Closes #454

See merge request !765
parents 0c1723c0 05aab796
......@@ -32,8 +32,8 @@ class ZitatController extends Controller
if ($valid) {
# This Result is valid. We'll add it Sorted by author
if (preg_match("/^\"([^\"]+)\"\s(.*)$/", $zitat, $matches)) {
$quote = $matches[1];
$author = $matches[2];
$quote = trim($matches[1]);
$author = trim($matches[2]);
if (isset($validResults[$author])) {
$validResults[$author][] = $quote;
......
......@@ -18,7 +18,7 @@
<hr />
<h3>Ergebnisse für die Suche "{{$q}}":</h3>
@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">
@foreach($quotes as $quote)
<li><quote>"{{ $quote }}"</quote></li>
......
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