Add pagination info service
Change-Id: I462f05581256575e9b52f474515cb8cb5e533d3b
diff --git a/templates/search.html.ep b/templates/search.html.ep
index be4ced8..df52efd 100644
--- a/templates/search.html.ep
+++ b/templates/search.html.ep
@@ -1,6 +1,11 @@
% layout 'main', schematype => 'SearchResultsPage';
-<div id="pagination" class="button-group button-panel"><%= pagination(stash('start_page'), stash('total_pages'), url_with->query({'p' => '{page}'})) =%></div>
+<div id="pagination"
+ class="button-group button-panel"
+ data-page="<%= stash('start_page') %>"
+ data-total="<%= stash('total_pages') %>"
+ data-count="<%= stash('items_per_page') %>"
+ ><%= pagination(stash('start_page'), stash('total_pages'), url_with->query({'p' => '{page}'})) =%></div>
<div id="resultinfo" <% if (stash('results')->size) { %> class="found"<%} %>>
% my $found = stash('total_results') // 0;