| % my $match = stash('match') || {}; |
| % my $id = $match->{corpusID} . '-' . $match->{docID} . '-' . $match->{ID}; |
| <li data-corpus-id="<%= $match->{corpusID} %>" |
| data-doc-id="<%= $match->{docID} %>" |
| data-text-id="hmmm" |
| data-match-id="<%= $match->{ID} %>" |
| %# TODO: This needs to be retrieved per match |
| data-available-info="base/s=spans corenlp/c=spans corenlp/ne=tokens corenlp/p=tokens corenlp/s=spans glemm/l=tokens mate/l=tokens mate/m=tokens mate/p=tokens opennlp/p=tokens opennlp/s=spans tt/l=tokens tt/p=tokens tt/s=spans xip/c=spans" |
| id="<%= $id %>"\ |
| <% if (current_route eq 'match') { %> class="active"<% } =%>> |
| <div> |
| %# --- Snippet |
| <div class="snippet<%= $match->{startMore} ? ' startMore' : '' %><%= $match->{endMore} ? ' endMore' : '' %>"><%== $match->{snippet} %></div> |
| </div> |
| %# -- Reference string |
| <p class="ref">\ |
| <% if ($match->{title}) { %><strong><%= $match->{title} %></strong><% }; %>\ |
| <%= $match->{author} ? ' ' . loc('by') . ' ' . $match->{author} : '' %>\ |
| <% if ($match->{title} || $match->{author}) { %>;<% } =%> \ |
| <%= loc('pubOn') %> <%= $match->{pubDate} %> \ |
| (<%= $id %>)\ |
| </p> |
| </li> |