v0.37 some cleaning and little debug.
--- a/.settings/org.eclipse.core.resources.prefs Mon Dec 09 15:14:09 2013 +0100
+++ b/.settings/org.eclipse.core.resources.prefs Wed Dec 11 13:34:51 2013 +0100
@@ -14,6 +14,7 @@
encoding//src/core/urls.py=utf-8
encoding//src/get_notice_years.py=utf-8
encoding//src/jocondelab/config.py=utf-8
+encoding//src/jocondelab/forms.py=utf-8
encoding//src/jocondelab/management/commands/import_countries.py=utf-8
encoding//src/jocondelab/management/commands/import_csv.py=utf-8
encoding//src/jocondelab/management/commands/import_dbpedia_fields.py=utf-8
--- a/src/jocondelab/__init__.py Mon Dec 09 15:14:09 2013 +0100
+++ b/src/jocondelab/__init__.py Wed Dec 11 13:34:51 2013 +0100
@@ -1,4 +1,4 @@
-VERSION = (0, 36, 0, "final", 0)
+VERSION = (0, 37, 0, "final", 0)
def get_version():
Binary file src/jocondelab/locale/fr/LC_MESSAGES/django.mo has changed
--- a/src/jocondelab/locale/fr/LC_MESSAGES/django.po Mon Dec 09 15:14:09 2013 +0100
+++ b/src/jocondelab/locale/fr/LC_MESSAGES/django.po Wed Dec 11 13:34:51 2013 +0100
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013-12-03 05:04-0600\n"
+"POT-Creation-Date: 2013-12-11 05:00-0600\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -269,7 +269,7 @@
msgstr ""
#: templates/jocondelab/front_base.html:63
-#: templates/jocondelab/front_search.html:24
+#: templates/jocondelab/front_search.html:25
msgid "Rechercher"
msgstr "Rechercher"
@@ -354,6 +354,8 @@
#: templates/jocondelab/front_base.html:115
#: templates/jocondelab/front_home.html:58
+#: templates/jocondelab/front_students.html:4
+#: templates/jocondelab/front_students.html:6
msgid "Galerie de créations"
msgstr ""
@@ -382,7 +384,6 @@
msgstr "Logo du Ministère de la Culture et de la Communication"
#: templates/jocondelab/front_base.html:141
-#, fuzzy
msgid "et"
msgstr "et"
@@ -548,11 +549,11 @@
msgid "Décrivez le sujet de cette œuvre"
msgstr "Décrivez le sujet de cette œuvre"
-#: templates/jocondelab/front_describe.html:16
+#: templates/jocondelab/front_describe.html:21
msgid "Œuvre précédente"
msgstr "Œuvre précédente"
-#: templates/jocondelab/front_describe.html:17
+#: templates/jocondelab/front_describe.html:22
msgid "Œuvre suivante"
msgstr "Œuvre suivante"
@@ -561,7 +562,7 @@
msgstr "Rechercher un lieu"
#: templates/jocondelab/front_geo.html:50
-#: templates/jocondelab/front_search.html:31
+#: templates/jocondelab/front_search.html:32
#: templates/jocondelab/front_timeline.html:63
msgid "Afficher plus de résultats"
msgstr "Afficher plus de résultats"
@@ -817,15 +818,10 @@
msgid "Recherche"
msgstr "Recherche"
-#: templates/jocondelab/front_search.html:30
+#: templates/jocondelab/front_search.html:31
msgid "Chargement en cours"
msgstr ""
-#: templates/jocondelab/front_students.html:4
-#: templates/jocondelab/front_students.html:6
-msgid "Travaux d'étudiants"
-msgstr ""
-
#: templates/jocondelab/front_students.html:10
msgid ""
"Les créations des étudiants 2013 d'un des départements multimédia de "
@@ -973,7 +969,7 @@
msgstr "préc."
#: templates/jocondelab/partial/wrapped_notice_list.html:7
-#, fuzzy, python-format
+#, python-format
msgid ""
"<b>%(count)s</b> résultat pour <b>« %(searchterms_label)s "
"»</b>"
@@ -998,9 +994,8 @@
msgstr "<b>%(count)s</b> œuvres des musées de France"
#: templates/jocondelab/partial/wrapped_notice_list.html:15
-#, fuzzy
msgid "Aucun résultat"
-msgstr "Afficher plus de résultats"
+msgstr "Aucun résultat"
#: templates/registration/login.html:6
msgid "Sorry, that's not a valid username or password."
@@ -1011,7 +1006,7 @@
msgid "login"
msgstr "connex."
-#: views/front_office.py:147
+#: views/front_office.py:170
msgid " ET "
msgstr " ET "
--- a/src/jocondelab/static/jocondelab/js/front-notice.js Mon Dec 09 15:14:09 2013 +0100
+++ b/src/jocondelab/static/jocondelab/js/front-notice.js Wed Dec 11 13:34:51 2013 +0100
@@ -187,7 +187,6 @@
var val = $ncf.val(),
dbpedia_uri = dbpCache[val] ? dbpCache[val].dbpedia_uri : undefined,
$tmpItem = $(tmpTemplate).text(gettext("Validation en cours…"));
- console.log("Submitting", val);
$ncf.val("");
$ntl.append($tmpItem);
$.ajax({
@@ -198,8 +197,6 @@
csrfmiddlewaretoken: csrf_token,
notice_id: notice_id,
label: val,
-//TODO: STOP SENDING dbpedia_uri WHEN IT WILL BE VALIDATED ON THE SERVER-SIDE !
- dbpedia_uri: dbpedia_uri,
thesaurus_label: $ncf.attr("data-thesaurus-label")
},
success: function(html) {
@@ -211,7 +208,7 @@
$ntl.append($el);
}
$tmpItem.remove();
- dbpediaBox.bind($el);
+ dbpediaBox.bind($el.find("a"));
},
error: function() {
$tmpItem.remove();
--- a/src/jocondelab/templates/jocondelab/front_students.html Mon Dec 09 15:14:09 2013 +0100
+++ b/src/jocondelab/templates/jocondelab/front_students.html Wed Dec 11 13:34:51 2013 +0100
@@ -1,9 +1,9 @@
{% extends "jocondelab/front_base.html" %}
{% load i18n %}
-{% block title %}JocondeLab » {% trans "Travaux d'étudiants" %}{% endblock %}
+{% block title %}JocondeLab » {% trans "Galerie de créations" %}{% endblock %}
-{% block breadcrumbs %}{% trans "Travaux d'étudiants" %}{% endblock %}
+{% block breadcrumbs %}{% trans "Galerie de créations" %}{% endblock %}
{% block main %}
--- a/src/jocondelab/views/ajax.py Mon Dec 09 15:14:09 2013 +0100
+++ b/src/jocondelab/views/ajax.py Wed Dec 11 13:34:51 2013 +0100
@@ -144,7 +144,6 @@
notice_id = request.POST.get('notice_id', None)
lang = request.LANGUAGE_CODE[:2]
- #dbpedia_uri = request.POST.get('dbpedia_uri', None) #TODO: Remove it and regenerate from Wikipedia/Dbpedia
thesaurus_label = request.POST.get('thesaurus_label', None)
label = request.POST.get('label', None)