From: olivier <> Date: Wed, 27 Jan 2010 13:29:14 +0000 (+0000) Subject: make use of the MediaCollection.collector_is_creator field in the collection detail... X-Git-Tag: 1.1~575 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=c0a4d723761d6c5edb1b75170aeb4a6f8ff9acad;p=telemeta.git make use of the MediaCollection.collector_is_creator field in the collection detail template ; fix MediaCollection.countries() unit test --- diff --git a/telemeta/locale/fr/LC_MESSAGES/django.mo b/telemeta/locale/fr/LC_MESSAGES/django.mo index ac40e2e0..56dc17ee 100644 Binary files a/telemeta/locale/fr/LC_MESSAGES/django.mo and b/telemeta/locale/fr/LC_MESSAGES/django.mo differ diff --git a/telemeta/locale/fr/LC_MESSAGES/django.po b/telemeta/locale/fr/LC_MESSAGES/django.po index 2a6d04ac..beac1804 100644 --- a/telemeta/locale/fr/LC_MESSAGES/django.po +++ b/telemeta/locale/fr/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2010-01-27 14:13+0100\n" +"POT-Creation-Date: 2010-01-27 14:25+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -397,22 +397,26 @@ msgstr "Indications géographiques et culturelles" msgid "Legal mentions" msgstr "Mentions légales" -#: templates/telemeta_default/collection_detail.html:94 +#: templates/telemeta_default/collection_detail.html:79 +msgid "Collector" +msgstr "Collecteur" + +#: templates/telemeta_default/collection_detail.html:100 msgid "Archiving data" msgstr "Données d'archivage" -#: templates/telemeta_default/collection_detail.html:115 +#: templates/telemeta_default/collection_detail.html:121 msgid "Technical data" msgstr "Données techniques" -#: templates/telemeta_default/collection_detail.html:120 +#: templates/telemeta_default/collection_detail.html:126 msgid "Media type" msgstr "Type de media" -#: templates/telemeta_default/collection_detail.html:120 +#: templates/telemeta_default/collection_detail.html:126 msgid "Audio" msgstr "" -#: templates/telemeta_default/collection_detail.html:124 +#: templates/telemeta_default/collection_detail.html:130 msgid "Number of items" msgstr "Nombre d'items" diff --git a/telemeta/templates/telemeta_default/collection_detail.html b/telemeta/templates/telemeta_default/collection_detail.html index fdf8c94b..98160517 100644 --- a/telemeta/templates/telemeta_default/collection_detail.html +++ b/telemeta/templates/telemeta_default/collection_detail.html @@ -74,7 +74,13 @@

{% trans "Legal mentions" %}

+ {% if collection.collector_is_creator %} + {% if collection.creator %} +
{% trans "Collector" %}
{{ collector.creator }}
+ {% endif%} + {% else %} {% dl_field collection.collector %} + {% endif %} {% dl_field collection.publisher %} {% dl_field collection.publisher_collection %} {% dl_field collection.publisher_serial %} diff --git a/telemeta/tests/model_tests.py b/telemeta/tests/model_tests.py index ae5e3b49..c75318ed 100644 --- a/telemeta/tests/model_tests.py +++ b/telemeta/tests/model_tests.py @@ -275,8 +275,8 @@ class CollectionItemTestCase(unittest.TestCase): self.assertEquals(self.europe, self.item_2.location.continent()) def testCollectionCountries(self): - "Test the MediaCollection.get_countries() method" - self.assertEquals(self.volonte.get_countries(), [self.belgique, self.france]) + "Test the MediaCollection.countries() method" + self.assertEquals(self.volonte.countries(), [self.belgique, self.france]) class RelatedDeleteTestCase(unittest.TestCase):