<commit_before><?php use_helper('Text') ?>

<?php if (isset($doc['hasDigitalObject']) && true === $doc['hasDigitalObject']): ?>
  <article class="search-result has-preview">
<?php else: ?>
  <article class="search-result">
<?php endif; ?>

  <?php if (isset($doc['hasDigitalObject'])): ?>

    <div class="search-result-preview">

      <?php if (isset($doc['digitalObject']['thumbnailPath'])): ?>
        <a href="<?php echo url_for(array('module' => 'informationobject', 'slug' => $doc['slug'])) ?>">
          <div class="preview-container">
            <?php echo image_tag($doc['digitalObject']['thumbnailPath']) ?>
          </div>
        </a>
      <?php endif; ?>
    </div>

  <?php endif; ?>

  <div class="search-result-description">

    <p class="title"><?php echo link_to(render_title(get_search_i18n($doc, 'title')), array('module' => 'informationobject', 'slug' => $doc['slug'])) ?></p>

    <ul class="result-details">

      <?php if (isset($doc['referenceCode']) && !empty($doc['referenceCode'])): ?>
        <li class="reference-code"><?php echo $doc['referenceCode'] ?></li>
      <?php endif; ?>

      <?php if (isset($doc['levelOfDescriptionId']) && !empty($doc['levelOfDescriptionId'])): ?>
        <li class="level-description"><?php echo QubitCache::getLabel($doc['levelOfDescriptionId'], 'QubitTerm') ?></li>
      <?php endif; ?>
<commit_msg>Show string dates in search results, fixes #5202<commit_after><?php use_helper('Text') ?>

<?php if (isset($doc['hasDigitalObject']) && true === $doc['hasDigitalObject']): ?>
  <article class="search-result has-preview">
<?php else: ?>
  <article class="search-result">
<?php endif; ?>

  <?php if (isset($doc['hasDigitalObject'])): ?>

    <div class="search-result-preview">

      <?php if (isset($doc['digitalObject']['thumbnailPath'])): ?>
        <a href="<?php echo url_for(array('module' => 'informationobject', 'slug' => $doc['slug'])) ?>">
          <div class="preview-container">
            <?php echo image_tag($doc['digitalObject']['thumbnailPath']) ?>
          </div>
        </a>
      <?php endif; ?>
    </div>

  <?php endif; ?>

  <div class="search-result-description">

    <p class="title"><?php echo link_to(render_title(get_search_i18n($doc, 'title')), array('module' => 'informationobject', 'slug' => $doc['slug'])) ?></p>

    <ul class="result-details">

      <?php if (isset($doc['referenceCode']) && !empty($doc['referenceCode'])): ?>
        <li class="reference-code"><?php echo $doc['referenceCode'] ?></li>
      <?php endif; ?>

      <?php if (isset($doc['levelOfDescriptionId']) && !empty($doc['levelOfDescriptionId'])): ?>
        <li class="level-description"><?php echo QubitCache::getLabel($doc['levelOfDescriptionId'], 'QubitTerm') ?></li>
      <?php endif; ?>

      <?php if (isset($doc['dates'])): ?>
        <li class="dates"><?php echo Qubit::renderDateStartEnd(null, $doc['dates'][0]['startDateString'], $doc['dates'][0]['endDateString']) ?></li>
      <?php endif; ?>

{'fraction_non_alphanumeric': 0.23488138990978952, 'fraction_numerical': 0.003341129301703976, 'mean_word_length': 4.404332129963899, 'pattern_counts': {'":': 0, '<': 74, '<?xml version=': 0, '>': 82, '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': '3396941', 'n_tokens_mistral': 949, 'n_tokens_neox': 931, 'n_words': 179}