Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reflect owslib changes #312

Merged
merged 1 commit into from
Jul 17, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion src/GeoNodePy/geonode/templates/maps/search_result_snippet.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,27 @@
</p>

<p><b>{% trans "Keywords:" %}</b>
{% comment %} old owslib iso {% endcomment %}
{% for kw in rec.identification.keywords.list %}
{{kw}}{% if not forloop.last %}, {% endif %}
{% empty %}
<em>{% trans "No keywords are listed for this layer." %}</em>
{% comment %} new owslib iso {% endcomment %}
{% for kws in rec.identification.keywords %}
{% for kw in kws.keywords %}
{{kw}}{% if not forloop.last %}, {% endif %}
{% if forloop.last and kws.thesaurus.title %}
({{ kws.thesaurus.title }}
{% if kws.thesaurus.date %} - {{ kws.thesaurus.date }} {% endif %}
{% if kws.thesaurus.datetype %} - {{ kws.thesaurus.datetype }} {% endif %}
)
{% endif %}
{% empty %}
<em>{% trans "No keywords are listed for this layer." %}</em>
{% endfor %}
{% if not forloop.last %}; {% endif %}
{% empty %}
<em>{% trans "No keywords are listed for this layer." %}</em>
{% endfor %}
{% endfor %}
</p>

Expand Down