table.listing thead th :link:hover, table.listing thead th :visited:hover {\r
background-color: transparent;\r
}\r
-table.listing thead th a {\r
+table.listing a {\r
border: none;\r
+}\r
+table.listing thead th a {\r
padding-right: 12px;\r
}\r
table.listing th.asc a, table.listing th.desc a { font-weight: bold }\r
function load_player(duration) {
$(document).ready(function () {
+ if (!$('#player').length)
+ return;
+
soundUrl = $('.ts-wave a').attr('href');
$('.ts-wave a img').insertAfter('.ts-wave a');
</div>\r
<h4>Items</h4>\r
{% with collection.items.enriched as items %}\r
+ {% with "1" as location_name %}\r
{% include "telemeta/inc/mediaitem_list.html" %}\r
{% endwith %}\r
+ {% endwith %}\r
<!--\r
{% with collection.ordered_items as items %}\r
{% include "telemeta/inc/mediaitem_list.html" %}\r
<th class="highlight">{% trans "Title" %}</th>
<th>{% field_label "MediaCollection" "creator" %}</th>
<th>{% trans "Recordist" %}</th>
+ <th>{% trans "Year of recording" %}</th>
</tr>
{% for collection in collections %}
<tr {% if not forloop.counter0|divisibleby:"2" %}class="odd"{% endif %}>
</td>
<td>{{ collection.creator }}</td>
<td>{{ collection.apparent_collector }}</td>
+ <td>
+ {% if collection.recorded_from_year %}
+ {{ collection.recorded_from_year }}
+ {% if collection.recorded_to_year and collection.recorded_to_year != collection.recorded_from_year %}
+ - {{ collection.recorded_to_year }}
+ {% endif %}
+ {% endif %}
+ </td>
</tr>
{% endfor %}
</table>
<tr>
<th class="highlight">{% trans "Title" %}</th>
<th>{% trans "Recordist" %}</th>
+ {% if location_name %}
+ <th>{% trans "Location" %}</th>
+ {% else %}
<th>{% trans "Country/Continent" %}</th>
+ {% endif %}
+ <th>{% trans "Year of recording" %}</th>
</tr>
{% for item in items %}
<tr {% if not forloop.counter0|divisibleby:"2" %}class="odd"{% endif %}>
<a href="{% url telemeta-item-detail item.public_id %}">{{ item }}</a>
</td>
<td>{{ item.apparent_collector }}</td>
+ {% if location_name %}
+ <td>{{ item.location.name }}</td>
+ {% else %}
<td>{{ item.country_or_continent|default:' ' }}</td>
+ {% endif %}
+ <td>
+ {% if item.recorded_from_date %}
+ {{ item.recorded_from_date.year }}
+ {% if item.recorded_to_date and item.recorded_to_date.year != item.recorded_from_date.year %}
+ - {{ item.recorded_to_date.year }}
+ {% endif %}
+ {% endif %}
+ </td>
</tr>
{% endfor %}
</table>