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
05aab796
Commit
05aab796
authored
Mar 09, 2017
by
Dominik Hebeler
Browse files
Verlinkung zur MetaGer Suche in die Zitatsuche eingefügt
parent
c1b49501
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/ZitatController.php
View file @
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
;
...
...
resources/views/zitatsuche.blade.php
View file @
05aab796
...
...
@@ -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
>
...
...
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