<commit_before><%= form_tag new_order_path, :method => :get, "data-price" => (current_user.employee? && supplier == :rd) ? render_scan_price(OpenStruct.new(:type => :dtu_expense), :rd) : render_scan_price(current_user, supplier) do %>
  <%= hidden_field_tag :supplier, supplier %>
  <%= hidden_field_tag :open_url, open_url %>
  <%= hidden_field_tag :order_return_url, request.fullpath %>
  <% if current_user.dtu? && supplier == :rd %>
    <%=
      button_tag t('toshokan.orders.order_now'),
        :value => 'create',
        :class => 'btn btn-primary btn-small'
    %>
  <% else %>
    <%= button_tag t('toshokan.orders.order_now'), :value => 'create', :class => 'btn btn-primary btn-small'%>
  <% end %>
<% end %><commit_msg>Re-enabled order confirmation pop-up. Refs #1975<commit_after><%= form_tag new_order_path, :method => :get, "data-price" => (current_user.employee? && supplier == :rd) ? render_scan_price(OpenStruct.new(:type => :dtu_expense), :rd) : render_scan_price(current_user, supplier) do %>
  <%= hidden_field_tag :supplier, supplier %>
  <%= hidden_field_tag :open_url, open_url %>
  <%= hidden_field_tag :order_return_url, request.fullpath %>
  <% if current_user.dtu? && supplier == :rd %>
    <%=
      button_tag t('toshokan.orders.order_now'),
        :value => 'create',
        :class => 'btn btn-primary btn-small',
        :'data-confirm' =>
          t('toshokan.modals.request_document.text',
            :title => @document.has_key?('title_ts') ? @document['title_ts'].first : '',
            :author => @document.has_key?('author_ts') ? render_author_list(@document[:author_ts], { :suppress_link => true, :max_length => 1, :append => t('toshokan.catalog.shortened_list.et_al') }) : '',
            :dtu_price => render_scan_price(OpenStruct.new(:type => :dtu_expense), :rd),
            :price => render_scan_price(current_user, :rd),
            :note => current_user.student? ? "#{t('toshokan.modals.request_document.note')} " : ''),
          :title => t('toshokan.modals.request_document.title')
    %>
  <% else %>
    <%= button_tag t('toshokan.orders.order_now'), :value => 'create', :class => 'btn btn-primary btn-small'%>
  <% end %>
<% end %>
{'fraction_non_alphanumeric': 0.189584285061672, 'fraction_numerical': 0.0022841480127912287, 'mean_word_length': 4.022935779816514, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 48, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5314456', 'n_tokens_mistral': 794, 'n_tokens_neox': 750, 'n_words': 125}