<li class="speech-list-item list-of-things-item">
        <span class="name"><a href="{{ result.object.get_absolute_url }}">{{ result.object.section|default:"Result" }}</a></span>
        <span class="description">{{ result.highlighted.0|safe }}</span>
</li>

<li class="speech-list-item list-of-things-item">
  {% if result.object.section.get_ancestors %}
    <h3>
        {{ result.object.section.get_ancestors.0.title }}&nbsp;
        <span class="meta">
          {% for section in result.object.section.get_ancestors %}
            {% if not forloop.first %}
                {{ section.title }}
                {% if not forloop.last %}&nbsp;&gt;&nbsp;{% endif %}
            {% endif %}
          {% endfor %}
        </span>
    </h3>
  {% endif %}
    <a href="{{ result.object.get_absolute_url }}">
        <span class="name"><strong>{{ result.object.speaker }}: </strong></span>
        <span class="description">{{ result.highlighted.0|safe }}</span>
    </a>
</li>

Improve speech search result template for south africa
Improve speech search result template for south africa

I've made use of the ancestors of the speech section to show exactly
where the speech being return is (eg: Hansard, etc) and included the
speaker name. I've also made it a bigger and more obvious link by
wrapping the whole matched excerpt in an anchor, rather than just a
little bit.

Some styling to make this look a bit better is still needed, but
hopefully this goes some way towards #1163
