<commit_before><script type="application/ld+json">
  <%= @schema_org_ds %>
</script>
<div class="t-landing__data-type"><%= ( @resource.resource_type ? @resource.resource_type.resource_type : '') %></div>
  <h2 class="o-heading__level1"><%= @review.title.title %></h2>
  <%# render partial: "stash_datacite/resource_types/show", locals: { resource_type: @review.resource_type } %>
  <%# render partial: "stash_datacite/titles/show", locals: { title: @review.title } %>
  <%= render partial: "stash_datacite/creators/show", locals: { creators: @review.creators } %>
  <section class="o-section">
  <%= render partial: "stash_datacite/shared/citations",
             locals: { creators: @review.creators, title: @review.title,
                       resource_type: @review.resource_type,
                       version: @resource.stash_version.nil? ? 'v0' : "v#{@review.version.version }",
                       identifier: @resource.identifier.nil? ? 'DOI' : "#{@review.identifier.identifier }",
                       publisher: "#{@review.publisher}",
                       publication_years: @resource.publication_years } %>
  </section>
  <%= render partial: "stash_datacite/descriptions/show", locals: { abstract: @review.abstract, methods: @review.methods, other: @review.other } %>
  <%#= render partial: "stash_datacite/subjects/show", locals: { subjects: @review.subjects } %>
  <%= render partial: "stash_datacite/contributors/show", locals: { contributors: @review.contributors } %>
  <%= render partial: "stash_datacite/related_identifiers/show", locals: { related_identifiers: @review.related_identifiers } %>

  <% if @review.no_geolocation_data == false %>
    <h3 class="o-heading__level2">Location</h3>
    <div id="map_review" class="o-map"></div>
    <div class="c-locations">
      <%= render partial: "stash_datacite/geolocation_points/show", locals: { geolocation_points: @review.geolocation_points } %>
      <%= render partial: "stash_datacite/geolocation_boxes/show", locals: { geolocation_boxes: @review.geolocation_boxes } %>
      <%= render partial: "stash_datacite/geolocation_places/show", locals: { geolocation_places: @review.geolocation_places } %>
    </div>
  <% end %>
<script>
  $( document ).ready( loadReviewMap );
</script>
  <%# render partial: "stash_datacite/licenses/review" %><commit_msg>Fixing problem with map on review page not loading on page with direct load of datacite metadata from stash engine.<commit_after><script type="application/ld+json">
  <%= @schema_org_ds %>
</script>
<div class="t-landing__data-type"><%= ( @resource.resource_type ? @resource.resource_type.resource_type : '') %></div>
  <h2 class="o-heading__level1"><%= @review.title.title %></h2>
  <%# render partial: "stash_datacite/resource_types/show", locals: { resource_type: @review.resource_type } %>
  <%# render partial: "stash_datacite/titles/show", locals: { title: @review.title } %>
  <%= render partial: "stash_datacite/creators/show", locals: { creators: @review.creators } %>
  <section class="o-section">
  <%= render partial: "stash_datacite/shared/citations",
             locals: { creators: @review.creators, title: @review.title,
                       resource_type: @review.resource_type,
                       version: @resource.stash_version.nil? ? 'v0' : "v#{@review.version.version }",
                       identifier: @resource.identifier.nil? ? 'DOI' : "#{@review.identifier.identifier }",
                       publisher: "#{@review.publisher}",
                       publication_years: @resource.publication_years } %>
  </section>
  <%= render partial: "stash_datacite/descriptions/show", locals: { abstract: @review.abstract, methods: @review.methods, other: @review.other } %>
  <%#= render partial: "stash_datacite/subjects/show", locals: { subjects: @review.subjects } %>
  <%= render partial: "stash_datacite/contributors/show", locals: { contributors: @review.contributors } %>
  <%= render partial: "stash_datacite/related_identifiers/show", locals: { related_identifiers: @review.related_identifiers } %>

  <% if @review.no_geolocation_data == false %>
    <h3 class="o-heading__level2">Location</h3>
    <div id="map_review" class="o-map"></div>
    <div class="c-locations">
      <%= render partial: "stash_datacite/geolocation_points/show", locals: { geolocation_points: @review.geolocation_points } %>
      <%= render partial: "stash_datacite/geolocation_boxes/show", locals: { geolocation_boxes: @review.geolocation_boxes } %>
      <%= render partial: "stash_datacite/geolocation_places/show", locals: { geolocation_places: @review.geolocation_places } %>
    </div>
  <% end %>
<script>
  $( document ).ready( loadReviewMap(<%=@resource.id%>) );
</script>
  <%# render partial: "stash_datacite/licenses/review" %>
{'fraction_non_alphanumeric': 0.16412612236375027, 'fraction_numerical': 0.0029233660471914805, 'mean_word_length': 4.161637931034483, 'pattern_counts': {'":': 0, '<': 70, '<?xml version=': 0, '>': 70, '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': '364819', 'n_tokens_mistral': 1603, 'n_tokens_neox': 1511, 'n_words': 263}