blob: 3c217bc23ecd111cc7788e726f1e42c3e322ba22 [file] [log] [blame]
Nils Diewalda944fab2015-04-08 21:02:04 +00001% my $res = stash('search.resource');
2% if (ref($res) eq 'ARRAY') {
3
Nils Diewald2329e1d2014-06-12 16:07:57 +00004<h2>Virtual Collections</h2>
5<ul>
Nils Diewalda944fab2015-04-08 21:02:04 +00006% foreach my $vc (@$res) {
Nils Diewald44a72782014-06-20 16:03:21 +00007 <li class="active" title="<%= $vc->{description} // '' %>"><h3><%= $vc->{name} %></h3>
Nils Diewald4e9fbcb2014-07-15 11:45:09 +00008% my $stats = $vc->{statistics};
Nils Diewald44a72782014-06-20 16:03:21 +00009 <dl class="info">
Nils Diewald13bad6a2014-07-18 16:44:51 +000010 <dt>Texts</dt> <dd><%= commify($stats->{documents} // $stats->{texts}) %></dd>
Nils Diewald44a72782014-06-20 16:03:21 +000011 <dt>Paragraphs</dt> <dd><%= commify $stats->{paragraphs} %></dd>
12 <dt>Sentences</dt> <dd><%= commify $stats->{sentences} %></dd>
13 <dt>Tokens</dt> <dd><%= commify $stats->{tokens} %></dd>
14 </dl>
15 </li>
Nils Diewald2329e1d2014-06-12 16:07:57 +000016% };
17</ul>
Nils Diewalda944fab2015-04-08 21:02:04 +000018% }
19
20
Nils Diewald2fe12e12015-03-06 16:47:06 +000021% if (kalamar_test_port()) {
22<p style="font-size: 9pt; padding-left: 1em">Index port: <%= $c->url_for($c->config('Kalamar')->{'api-0.1'})->port %></p>
Nils Diewald36630132014-11-07 03:52:00 +000023% };