Nils Diewald | 4af3f0b | 2014-06-25 01:43:17 +0000 | [diff] [blame] | 1 | %# ID, title, corpusID, author, pubDate, textClass |
Nils Diewald | 996aa55 | 2014-12-02 03:26:44 +0000 | [diff] [blame^] | 2 | <li data-corpus-id="<%= $match->{corpusID} %>" \ |
| 3 | data-doc-id="<%= $match->{docID} %>" \ |
| 4 | data-match-id="<%= $match->{ID} %>" \ |
| 5 | id="<%= $match->{corpusID} %>-<%= $match->{docID} %>-<%= $match->{ID} %>"\ |
| 6 | <% if (current_route eq 'match') { %> class="active"<% } =%> |
| 7 | > |
| 8 | %# |
| 9 | %# -- Match information (snippet, morph table, tree information etc.) |
Nils Diewald | 4af3f0b | 2014-06-25 01:43:17 +0000 | [diff] [blame] | 10 | <div> |
| 11 | <div class="snippet"><%== $match->{snippet} %></div> |
| 12 | <div class="tokenInfo"></div> |
Nils Diewald | 996aa55 | 2014-12-02 03:26:44 +0000 | [diff] [blame^] | 13 | <div class="treeInfo"></div> |
Nils Diewald | 4af3f0b | 2014-06-25 01:43:17 +0000 | [diff] [blame] | 14 | </div> |
Nils Diewald | 996aa55 | 2014-12-02 03:26:44 +0000 | [diff] [blame^] | 15 | %# |
| 16 | %# -- Reference string |
| 17 | <p>\ |
Nils Diewald | e8ead6b | 2014-11-07 05:00:17 +0000 | [diff] [blame] | 18 | % if ($match->{title}) { |
Nils Diewald | 996aa55 | 2014-12-02 03:26:44 +0000 | [diff] [blame^] | 19 | <strong><%= $match->{title} %></strong>\ |
Nils Diewald | e8ead6b | 2014-11-07 05:00:17 +0000 | [diff] [blame] | 20 | % }; |
Nils Diewald | 996aa55 | 2014-12-02 03:26:44 +0000 | [diff] [blame^] | 21 | <%= $match->{author} ? ' by ' . $match->{author} : '' %><% if ($match->{title} || $match->{author}) { %>;<% } =%> |
| 22 | published on <%= date_format $match->{pubDate} %>\ |
| 23 | as <%= $match->{docID} %> (<%= $match->{corpusID} %>)\ |
| 24 | </p> |
| 25 | %# |
| 26 | %# -- Action buttons |
Nils Diewald | 4af3f0b | 2014-06-25 01:43:17 +0000 | [diff] [blame] | 27 | <ul class="action right"> |
| 28 | % if (current_route ne 'match') { |
Nils Diewald | 996aa55 | 2014-12-02 03:26:44 +0000 | [diff] [blame^] | 29 | <li class="close" title="Close"><a href="#"><i class="fa fa-toggle-up"></i></a></li> |
| 30 | %# <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] | 31 | <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^] | 32 | % }; |
Nils Diewald | 4af3f0b | 2014-06-25 01:43:17 +0000 | [diff] [blame] | 33 | <li onclick="showTable(this)" title="Annotations"><i class="fa fa-info-circle"></i></li> |
Nils Diewald | 996aa55 | 2014-12-02 03:26:44 +0000 | [diff] [blame^] | 34 | <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] | 35 | %# <li title="Remember"><i class="fa fa-star-o"></i></li> |
| 36 | </ul> |
| 37 | </li> |