Nils Diewald | 4af3f0b | 2014-06-25 01:43:17 +0000 | [diff] [blame] | 1 | %# ID, title, corpusID, author, pubDate, textClass |
Nils Diewald | 44e1edb | 2015-04-08 19:12:15 +0000 | [diff] [blame] | 2 | % my $match = stash('match') || {}; |
Nils Diewald | 996aa55 | 2014-12-02 03:26:44 +0000 | [diff] [blame] | 3 | <li data-corpus-id="<%= $match->{corpusID} %>" \ |
| 4 | data-doc-id="<%= $match->{docID} %>" \ |
| 5 | data-match-id="<%= $match->{ID} %>" \ |
| 6 | id="<%= $match->{corpusID} %>-<%= $match->{docID} %>-<%= $match->{ID} %>"\ |
| 7 | <% if (current_route eq 'match') { %> class="active"<% } =%> |
| 8 | > |
| 9 | %# |
| 10 | %# -- Match information (snippet, morph table, tree information etc.) |
Nils Diewald | 4af3f0b | 2014-06-25 01:43:17 +0000 | [diff] [blame] | 11 | <div> |
Nils Diewald | 791b590 | 2014-12-04 04:47:24 +0000 | [diff] [blame] | 12 | <div class="snippet<%= $match->{startMore} ? ' startMore' : '' %><%= $match->{endMore} ? ' endMore' : '' %>"><%== $match->{snippet} %></div> |
Nils Diewald | 4af3f0b | 2014-06-25 01:43:17 +0000 | [diff] [blame] | 13 | <div class="tokenInfo"></div> |
Nils Diewald | 8f4b5da | 2014-12-03 22:13:39 +0000 | [diff] [blame] | 14 | %# <div class="treeInfo"></div> |
Nils Diewald | 4af3f0b | 2014-06-25 01:43:17 +0000 | [diff] [blame] | 15 | </div> |
Nils Diewald | 996aa55 | 2014-12-02 03:26:44 +0000 | [diff] [blame] | 16 | %# |
| 17 | %# -- Reference string |
| 18 | <p>\ |
Nils Diewald | e8ead6b | 2014-11-07 05:00:17 +0000 | [diff] [blame] | 19 | % if ($match->{title}) { |
Nils Diewald | 996aa55 | 2014-12-02 03:26:44 +0000 | [diff] [blame] | 20 | <strong><%= $match->{title} %></strong>\ |
Nils Diewald | e8ead6b | 2014-11-07 05:00:17 +0000 | [diff] [blame] | 21 | % }; |
Nils Diewald | 996aa55 | 2014-12-02 03:26:44 +0000 | [diff] [blame] | 22 | <%= $match->{author} ? ' by ' . $match->{author} : '' %><% if ($match->{title} || $match->{author}) { %>;<% } =%> |
| 23 | published on <%= date_format $match->{pubDate} %>\ |
| 24 | as <%= $match->{docID} %> (<%= $match->{corpusID} %>)\ |
| 25 | </p> |
| 26 | %# |
| 27 | %# -- Action buttons |
Nils Diewald | 4af3f0b | 2014-06-25 01:43:17 +0000 | [diff] [blame] | 28 | <ul class="action right"> |
| 29 | % if (current_route ne 'match') { |
Nils Diewald | 996aa55 | 2014-12-02 03:26:44 +0000 | [diff] [blame] | 30 | <li class="close" title="Close"><a href="#"><i class="fa fa-toggle-up"></i></a></li> |
| 31 | %# <li class="open" title="Open in new tab"><%= link_to 'match', { corpus_id => $match->{corpusID}, doc_id => $match->{docID}, match_id => $match->{ID} }, target => '_blank', begin %><i class="fa fa-external-link-square"></i><% end %></li> |
Nils Diewald | 7781232 | 2014-11-12 18:44:51 +0000 | [diff] [blame] | 32 | <li class="open" title="Open in new tab"><a href="#<%= $match->{corpusID} %>-<%= $match->{docID} %>-<%= $match->{ID} %>" target="_blank"><i class="fa fa-external-link-square"></i></a></li> |
Nils Diewald | 996aa55 | 2014-12-02 03:26:44 +0000 | [diff] [blame] | 33 | % }; |
Nils Diewald | 4af3f0b | 2014-06-25 01:43:17 +0000 | [diff] [blame] | 34 | <li onclick="showTable(this)" title="Annotations"><i class="fa fa-info-circle"></i></li> |
Nils Diewald | 8f4b5da | 2014-12-03 22:13:39 +0000 | [diff] [blame] | 35 | %# <li onclick="showTree(this, 'xip', 'c')" title="Tree Visualizations"><i class="fa fa-sitemap"></i></li> |
Nils Diewald | 4af3f0b | 2014-06-25 01:43:17 +0000 | [diff] [blame] | 36 | %# <li title="Remember"><i class="fa fa-star-o"></i></li> |
| 37 | </ul> |
| 38 | </li> |