-date enreg -> periode enr
-
en ligne /acces compte marche pas
-taille max analyzer ES prod
-
message attente autoc.
verif format cote recherche (ex : _I_1995_ ) simple
recherche booleenne sur les instruments
+date enreg -> periode enr
+
VERIF PROD :
filtre inedits/edites pour les items : passer par la collection puis sa cote (I : inedit, E : edites)
-DERNIER COMMIT :
-11 avril : Merge branch 'dev' into feature/ts-server
-Prob : resolution url (commit 18 avril Merge branch 'dev' of github.com:Parisson/Telemeta into dev )
-
-Subproject commit 935fe71dd269b94f3ae97a557abcb5a4410a1f4a
+Subproject commit 308a1e8cfbeb2768f3e24660971d774e303e63b3
{% load i18n %}
{% if items %}
-
+<form action="{% url "playlist"%}" method="post">
+{% csrf_token %}
<table class="listing">
<thead>
<tr>
- <th class="highlight">{% trans "Title" %}</th>
+ <th class="highlight"><input id="selectAll" type="checkbox"/> select all </th>
+ <th>{% trans "Title" %}</th>
<th>{% trans "Digitized" %}</th>
<th>{% trans "Recordist" %}</th>
{% if location_name %}
<tbody>
{% for item in items %}
<tr {% if not forloop.counter0|divisibleby:"2" %}class="odd"{% endif %}>
- <td class="highlight">
+ <td class="highlight"><input type="checkbox" class="check1" name="selected_items_list" value="{{ item.id }}"/></td>
+
+ <td>
<a href="{% url "telemeta-item-detail" item.public_id %}">{{ item }}</a>
</td>
<td align="center">
</tbody>
</table>
+ <button style="margin-top:10px" type="submit" id="btn" class="btn btn-default">{% trans "Add to playlist" %}</button>
+
+</form>
+
{% else %}
<p>{% trans "No item" %}</p>
{% endif %}
{% block url_published %}{% url "telemeta-items-instrument-published" id %}{% endblock %}
{% block url_sound %}{% url "telemeta-items-instrument-sound" id %}{% endblock %}
{% block extra_stylesheets %}
- <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}telemeta/css/jquery-ui.css" />
+ {{ block.super }}
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}telemeta/css/lists_sorttable.css" media="print, projection, screen"/>
{% endblock %}
{% block extra_javascript %}
+ {{ block.super }}
<script src="{{ STATIC_URL }}tablesorter/jquery.tablesorter.min.js" type="text/javascript"></script>
-<script src="{{ STATIC_URL }}jquery-ui/jquery-ui.min.js" type="text/javascript"></script>
<script>
$(document).ready(function(){
- $.tablesorter.defaults.sortList = [[5,0]];
- $(".listing").tablesorter({headers: {1:{sorter:false}}} );
+ $.tablesorter.defaults.sortList = [[6,0]];
+ $(".listing").tablesorter({headers: {0:{sorter:false}}} );
});
</script>
{% endblock %}
{% block head_title %}{% trans "Media Items" %} {% block instru_name %}{% endblock %}- {{ block.super }}{% endblock %}
{% block title %}
-<div class='row'>
-<div class="col-md-5">
- <img src="{{ STATIC_URL }}telemeta/images/item.png" alt="item" style="vertical-align:middle" /> {% trans "Items" %} {% block instru_name_h %}{% endblock %}({{ page_obj.start_index }} - {{ page_obj.end_index }} / {{ count }})
-</div>
-<div class="col-md-7">
-{% bootstrap_paginate page_obj range=10 show_first_last="True" %}
-</div>
-<div class="col-md-0"> </div>
-</div>
+ <div class='row'>
+ <div class="col-md-5">
+ <img src="{{ STATIC_URL }}telemeta/images/item.png" alt="item"
+ style="vertical-align:middle"/> {% trans "Items" %}
+ {% block instru_name_h %}{% endblock %}({{ page_obj.start_index }} - {{ page_obj.end_index }} / {{ count }})
+ </div>
+ <div class="col-md-7">
+ {% bootstrap_paginate page_obj range=10 show_first_last="True" %}
+ </div>
+ <div class="col-md-0"> </div>
+ </div>
{% endblock %}
{% block title_buttons %}
-<div class="btn-group">
- <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
- <span class="glyphicon glyphicon-filter"></span> {% trans "Filters" %} <span class="caret"></span>
- </button>
- <ul class="dropdown-menu" role="menu">
- <li><a href="{% block url_all %}{% url "telemeta-items" %}{% endblock %}" class="">{% trans "All" %}</a></li>
- <li><a href="{% block url_unpublished %}{% url "telemeta-items-unpublished" %}{% endblock %}">{% trans "Unpublished" %}</a></li>
- <li><a href="{% block url_published %}{% url "telemeta-items-published" %}{% endblock %}">{% trans "Published" %}</a></li>
- <li><a href="{% block url_sound %}{% url "telemeta-items-sound" %}{% endblock %}">{% trans "Digitized" context "item list" %}</a></li>
- </ul>
-</div>
+ <div class="btn-group">
+ <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
+ <span class="glyphicon glyphicon-filter"></span> {% trans "Filters" %} <span class="caret"></span>
+ </button>
+ <ul class="dropdown-menu" role="menu">
+ <li><a href="{% block url_all %}{% url "telemeta-items" %}{% endblock %}" class="">{% trans "All" %}</a>
+ </li>
+ <li><a href="
+
+ {% block url_unpublished %}{% url "telemeta-items-unpublished" %}{% endblock %}">{% trans "Unpublished" %}</a>
+ </li>
+ <li><a href="
+
+ {% block url_published %}{% url "telemeta-items-published" %}{% endblock %}">{% trans "Published" %}</a>
+ </li>
+ <li><a href="
+
+ {% block url_sound %}{% url "telemeta-items-sound" %}{% endblock %}">{% trans "Digitized" context "item list" %}</a>
+ </li>
+ </ul>
+
+ </div>
+
+ <div>
+ <label style="display:inline-block;vertical-align:middle">{% trans "results per page" %}:</label>
+ <div style="display:inline-block;vertical-align:middle">
+ <select id="results-per-page" name="results_page">
+ <option {% ifequal results_page 20 %}selected{% endifequal %} value="20">20</option>
+ <option {% ifequal results_page 50 %}selected{% endifequal %} value="50">50</option>
+ <option {% ifequal results_page 100 %}selected{% endifequal %} value="100">100</option>
+ <option {% ifequal results_page 250 %}selected{% endifequal %} value="250">250</option>
+ <option {% ifequal results_page 500 %}selected{% endifequal %} value="500">500</option>
+ <option {% ifequal results_page 1000 %}selected{% endifequal %} value="1000">1000</option>
+ <option {% ifequal results_page 10000 %}selected{% endifequal %} value="10000">10000</option>
+ </select>
+ </div>
+ </div>
{% endblock %}
{% block content %}
-{% with object_list as items %}
-<div class="fullpage">
-{% include "telemeta/inc/mediaitem_list.html" %}
-</div>
-{% endwith %}
+ {% with object_list as items %}
+ <div class="fullpage">
+ {% include "telemeta/inc/mediaitem_list.html" %}
+ </div>
+ {% endwith %}
{% endblock %}
+
+{% block extra_stylesheets %}
+ <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}telemeta/css/jquery-ui.css"/>
+{% endblock %}
+
+
+{% block extra_javascript %}
+
+ <script src="{{ STATIC_URL }}jquery-ui/jquery-ui.min.js" type="text/javascript"></script>
+
+ <script>
+ $(function () {
+ $("#results-per-page").selectmenu({
+ icons: {button: "ui-icon-carat-2-n-s"},
+ change: function () {
+ location.search = '?page=1&results_page='+$(this).val();
+ }
+ }).selectmenu("menuWidget").addClass("overflow");
+
+ $("#selectAll").click(function(){
+ if(this.checked){
+ $(".check1").each(function(){
+ this.checked=true;
+ });
+ }
+ else{
+ $(".check1").each(function(){
+ this.checked=false;
+ });
+ }
+ });
+
+ });
+
+
+
+ </script>
+
+{% endblock %}
\ No newline at end of file
# Playlists
url(r'^playlists/(?P<public_id>[a-zA-Z0-9]+)/(?P<resource_type>[a-zA-Z0-9]+)/csv/$', playlist_view.playlist_csv_export, name="telemeta-playlist-csv-export"),
+ url(r'^playlists/playlist_add/$', NewPlaylistView().display, name='playlist'),
- # RSS feeds
+ # RSS feeds
url(r'^rss/$', LastestRevisionsFeed(), name="telemeta-rss"),
# Static media
model = MediaItem
template_name = "telemeta/mediaitem_list.html"
- paginate_by = 20
queryset = MediaItem.objects.enriched().order_by('code', 'old_code')
+ def get_paginate_by(self, queryset):
+ return self.request.GET.get('results_page', 20)
+
def get_context_data(self, **kwargs):
context = super(ItemListView, self).get_context_data(**kwargs)
context['count'] = self.object_list.count()
+ context['results_page'] = int(self.request.GET.get('results_page', 20))
return context
class ItemListViewFullAccess(ListView):
class NewPlaylistView(object):
- def display(self, request, type=None):
+ def display(self, request, type="item"):
self.type=type