Permalink
Browse files

Fix titles sometimes not getting rendered on library results page

  • Loading branch information...
1 parent 2383b0d commit 23ac65baf37499583d5c39430fcce1bbc804760b @cnorthwood cnorthwood committed Jul 19, 2011
Showing with 3 additions and 2 deletions.
  1. +2 −1 molly/apps/library/providers/z3950.py
  2. +1 −1 molly/apps/library/templates/library/item_list.html
@@ -450,4 +450,5 @@ def f(y):
return translator.translate(y).replace(u'\x1b', u'\xa0')
else:
return y.decode('ascii').replace(u'\x1b', u'\xa0')
- return f(x)
+ return f(x)
+
@@ -36,7 +36,7 @@
{% endwith %}
{% endif %}
<a href="{% url library:item-detail item.control_number %}">
- {{ item }}{% if item.author %}
+ {{ item.title }}{% if item.author %}
<br/><small><strong>{% trans "Author" %}:</strong> {{ item.author }}</small>{% endif %}
<br/><small><strong>{% trans "Publisher" %}:</strong> {{ item.publisher }}</small>{% if item.edition %}
<br/><small><strong>{% trans "Edition" %}:</strong> {{ item.edition }}</small>{% endif %}

0 comments on commit 23ac65b

Please sign in to comment.