|
23 | 23 | <input type="hidden" name="id", value="<%= @resource.id %>" /> |
24 | 24 | <label class="checkbox" for="include-unpublished"> |
25 | 25 | <input type="checkbox" id="include-unpublished" name="include_unpublished" <% if pref_include_unpublished %> checked="checked" <% end %>/> |
26 | | - <%= t("export_options.include_unpublished") %> |
| 26 | + <%= t("export_options.include_unpublished") %>  |
27 | 27 | </label> |
28 | 28 | <label class="checkbox" for="include-daos"> |
29 | 29 | <input type="checkbox" id="include-daos" name="include_daos" checked="checked"/> |
30 | | - <%= t("export_options.include_daos") %> |
| 30 | + <%= t("export_options.include_daos") %>  |
31 | 31 | </label> |
32 | 32 | <label class="checkbox" for="include-uris"> |
33 | 33 | <input type="checkbox" id="include-uris" name="include_uris" checked="checked"/> |
34 | | - <%= t("export_options.include_uris") %> |
| 34 | + <%= t("export_options.include_uris") %>  |
35 | 35 | </label> |
36 | 36 | <label class="checkbox" for="numbered-cs"> |
37 | 37 | <input type="checkbox" id="numbered-cs" name="numbered_cs" checked="checked"/> |
38 | | - <%= t("export_options.numbered_cs") %> |
| 38 | + <%= t("export_options.numbered_cs") %>  |
39 | 39 | </label> |
40 | 40 | <%# EAD3 %> |
41 | 41 | <label class="checkbox" for="ead3"> |
42 | 42 | <input type="checkbox" id="ead3" name="ead3" /> |
43 | | - <%= t("export_options.ead3") %> |
| 43 | + <%= t("export_options.ead3") %>  |
44 | 44 | </label> |
45 | 45 | <%# END - EAD3 %> |
46 | 46 | </fieldset> |
|
53 | 53 | <fieldset> |
54 | 54 | <input type="hidden" name="id", value="<%= @resource.id %>" /> |
55 | 55 | <label class="checkbox" for="include-unpublished-marc"> |
56 | | - <input type="checkbox" id="include-unpublished-marc" name="include_unpublished_marc" <% if pref_include_unpublished %> checked="checked" <% end %>/> |
57 | | - <%= t("export_options.include_unpublished") %> |
| 56 | + <input type="checkbox" id="include-unpublished-marc" name="include_unpublished_marc" <% if pref_include_unpublished %> checked="checked" <% end %>/> |
| 57 | + <%= t("export_options.include_unpublished") %>  |
58 | 58 | </label> |
59 | 59 | <%# END - MARC %> |
60 | 60 | </fieldset> |
|
67 | 67 | <% if user_can?('create_job') %> |
68 | 68 | <% if job_types['print_to_pdf_job']['create_permissions'].reject{|perm| user_can?(perm)}.empty? %> |
69 | 69 |
|
70 | | - <li class="dropdown-item p-0 dropdown-submenu" id="print-to-pdf-dropdown" data-print-to-pdf-url="<%= url_for(:controller => :exports, :action => :print_to_pdf, :id => @resource.id, :include_unpublished => "${include_unpublished}", :include_uris => "${include_uris}")%>"> |
71 | | - <a href="#" data-toggle="dropdown" data-display="static" class="py-1 px-4 d-block text-decoration-none menu-with-options print-to-pdf-action" title="<%= t("actions.print_to_pdf") %>"><%= t("actions.print_to_pdf") %></a> |
72 | | - <div class="dropdown-menu" id="form_print_to_pdf"> |
73 | | - <fieldset class="d-flex flex-column"> |
| 70 | + <li class="dropdown-item p-0 dropdown-submenu"> |
| 71 | + <%= link_to t("actions.print_to_pdf"), {:controller => :exports, :action => :print_to_pdf, :id => @resource.id, :include_unpublished => false }, :id => 'print-to-pdf-link', :target => "_blank", :class => "py-1 px-4 d-block text-decoration-none" %> |
| 72 | + <div class="dropdown-menu"> |
| 73 | + <fieldset> |
74 | 74 | <label class="checkbox" for="include-unpublished-pdf"> |
75 | | - <input type="checkbox" id="include-unpublished-pdf" <% if pref_include_unpublished %> checked="checked" <% end %> /> |
76 | | - <%= t("export_options.include_unpublished") %> |
77 | | - </label> |
78 | | - <label class="checkbox" for="include-uris-pdf"> |
79 | | - <input type="checkbox" id="include-uris-pdf" /> |
80 | | - <%= t("export_options.include_uris") %> |
| 75 | + <input type="checkbox" id="include-unpublished-pdf" onchange="$('#print-to-pdf-link').attr('href', '<%= url_for :controller => :exports, :action => :print_to_pdf, :id => @resource.id %>?include_unpublished=' + $(this).prop('checked'))" <% if pref_include_unpublished %> checked="checked" <% end %> /> |
| 76 | + <%= t("export_options.include_unpublished") %>  |
81 | 77 | </label> |
82 | 78 | </fieldset> |
83 | 79 | </div> |
|
94 | 90 | :record => @resource, |
95 | 91 | }) |
96 | 92 | %> |
97 | | -<% elsif user_can_view_only?('resource') %> |
98 | | - <%= render_aspace_partial(:partial => '/shared/resource_toolbar', |
99 | | - :locals => { |
100 | | - :record_type => 'resource', |
101 | | - :record => @resource, |
102 | | - :view_only => true, |
103 | | - }) |
104 | | - %> |
105 | 93 | <% end %> |
0 commit comments