Commit ade8b3aa authored by Phil Höfer's avatar Phil Höfer
Browse files

Merge branch '570-atom-1-0-format-hinzufuegen' into 'development'

Resolve "Atom 1.0 Format hinzufuegen"

See merge request !1033
parents f86ed5cc 6f7928b1
......@@ -165,12 +165,13 @@ class MetaGer
->with('resultcount', sizeof($viewResults));
break;
case 'atom10':
return view('metager3resultsatom10')
return response()->view('metager3resultsatom10')
->with('results', $viewResults)
->with('eingabe', $this->eingabe)
->with('apiAuthorized', $this->apiAuthorized)
->with('metager', $this)
->with('resultcount', sizeof($viewResults));
->with('resultcount', sizeof($viewResults))
->header('Content-Type', 'application/xml');
break;
case 'result-count':
# Wir geben die Ergebniszahl und die benötigte Zeit zurück:
......
......@@ -9,7 +9,6 @@
<opensearch:Query role="request" searchTerms="{{ htmlspecialchars($eingabe, ENT_QUOTES) }}"/>
<link rel="next" href="{{htmlspecialchars($metager->nextSearchLink() ,ENT_QUOTES)}}" type="application/atom+xml"/>
<id>urn:uuid:1d634a8c-2764-424f-b082-6c96494b7240</id>
@if($apiAuthorized)
@foreach($metager->getResults() as $result)
<entry>
<title>{!! htmlspecialchars($result->titel, ENT_XML1, 'UTF-8'); !!}</title>
......@@ -20,7 +19,6 @@
</content>
</entry>
@endforeach
@endif
</feed>
<!-- Muster zu finden unter http://www.opensearch.org/Specifications/OpenSearch/1.1#Example_of_OpenSearch_response_elements_in_RSS_2.0 -->
\ No newline at end of file
<!-- Muster zu finden unter http://www.opensearch.org/Specifications/OpenSearch/1.1#Example_of_OpenSearch_response_elements_in_RSS_2.0 -->
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