Add content area behind search results in templates

Change-Id: I76ddb30683c7bec97c948fbe976db1e6feb585b1
diff --git a/Changes b/Changes
index 9ba7de7..924df47 100755
--- a/Changes
+++ b/Changes
@@ -1,4 +1,4 @@
-0.38 2020-04-16
+0.38 2020-04-28
         - Support X-Forwarded-Host name for proxy.
         - Document API URI.
         - Improve redirect handling in proxy.
@@ -13,6 +13,7 @@
         - Remove experimental status of proxy (and therefore
           configuration option 'experimental_proxy') and enable
           proxy by default.
+        - Establish 'after_search_results' content part.
 
 0.37 2020-01-16
         - Removed deprecated 'kalamar_test_port' helper.
diff --git a/t/query.t b/t/query.t
index f3b83a6..289cc2b 100644
--- a/t/query.t
+++ b/t/query.t
@@ -73,7 +73,6 @@
   ->header_isnt('X-Kalamar-Cache', 'true')
   ;
 
-
 $t->get_ok('/?q=[orth=das')
   ->status_is(400)
   ->text_is('div.notify-error:nth-of-type(1)', '302: Parantheses/brackets unbalanced.')
@@ -242,16 +241,23 @@
   ->text_is('#error','')
   ;
 
+$t->app->hook(
+  before_dispatch => sub {
+    my $c = shift;
+    $c->content_for('after_search_results' => '<p id="special">Funny</p>');
+  }
+);
+
 # Query with corpus query
 $t->get_ok('/?q=baum&cq=availability+%3D+%2FCC-BY.*%2F')
   ->status_is(200)
   ->element_exists("input#cq[value='availability = /CC-BY.*/']")
   ->content_like(qr!\"availability\"!)
   ->text_is('#error','')
+  ->text_is('#special', 'Funny')
   ;
 
 
-
 my $match = {
   matchID => 'match-FOLK/00070-SE-01/T-04-p5441-5442',
   textSigle => 'FOLK/00070-SE-01/T-04'
diff --git a/templates/search.html.ep b/templates/search.html.ep
index e73b267..0ad8f2d 100644
--- a/templates/search.html.ep
+++ b/templates/search.html.ep
@@ -29,4 +29,5 @@
 % } elsif (stash('results')->size == 0) {
 <p class="no-results"><%= loc 'noMatches', q => stash('q'), ql => stash('ql') %></p>
 % }
+%= content_for 'after_search_results'
 </div>