|
| 1 | +<div class="modal-header"> |
| 2 | + <h1><%= t('blacklight.tools.citation') %></h1> |
| 3 | + <button type="button" class="blacklight-modal-close close" data-dismiss="modal" aria-label="<%= t('blacklight.modal.close') %>"> |
| 4 | + <span aria-hidden="true">×</span> |
| 5 | + </button> |
| 6 | +</div> |
| 7 | +<div class="modal-body"> |
| 8 | + <% @documents.each do |document| %> |
| 9 | + <h1 class="modal-title"><%= document_heading(document) %></h1> |
1 | 10 |
|
2 | | -<% @documents.each do |document| %> |
| 11 | + <% if document.respond_to?(:export_as_mla_citation_txt) %> |
| 12 | + <h2><%= t('blacklight.citation.mla') %></h2> |
| 13 | + <%= document.send(:export_as_mla_citation_txt).html_safe %><br/><br/> |
| 14 | + <% end %> |
3 | 15 |
|
4 | | - <h1 class="modal-title"><%= document_heading(document) %></h1> |
| 16 | + <% if document.respond_to?(:export_as_apa_citation_txt) %> |
| 17 | + <h2><%= t('blacklight.citation.apa') %></h2> |
| 18 | + <%= document.send(:export_as_apa_citation_txt).html_safe %><br/><br/> |
| 19 | + <% end %> |
5 | 20 |
|
6 | | -<% if document.respond_to?(:export_as_mla_citation_txt) %> |
7 | | - <h2><%= t('blacklight.citation.mla') %></h2> |
8 | | - <%= document.send(:export_as_mla_citation_txt).html_safe %><br/><br/> |
9 | | -<% end %> |
10 | | - |
11 | | -<% if document.respond_to?(:export_as_apa_citation_txt) %> |
12 | | - <h2><%= t('blacklight.citation.apa') %></h2> |
13 | | - <%= document.send(:export_as_apa_citation_txt).html_safe %><br/><br/> |
14 | | -<% end %> |
15 | | - |
16 | | -<%- if document.respond_to?(:export_as_chicago_citation_txt) -%> |
17 | | - <h2><%= t('blacklight.citation.chicago') %></h2> |
18 | | - <%= document.send(:export_as_chicago_citation_txt).html_safe %> |
19 | | -<%- end -%> |
20 | | - |
21 | | -<% end %> |
| 21 | + <% if document.respond_to?(:export_as_chicago_citation_txt) %> |
| 22 | + <h2><%= t('blacklight.citation.chicago') %></h2> |
| 23 | + <%= document.send(:export_as_chicago_citation_txt).html_safe %> |
| 24 | + <% end %> |
| 25 | + <% end %> |
| 26 | +</div> |
0 commit comments