# HG changeset patch # User cavaliet # Date 1378202964 -7200 # Node ID dad1f8de08a90135b73335c4f4efc384ca8a337a # Parent fa466993084ae0697836ac4f240c12af16585e90 Enhance language display for record. Remove useless commands diff -r fa466993084a -r dad1f8de08a9 src/p4l/management/commands/get_country_label.py --- a/src/p4l/management/commands/get_country_label.py Mon Sep 02 17:49:41 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -# -*- coding: utf-8 -*- -from django.core.management import BaseCommand -from p4l.models import Country -from p4l.utils import fill_label_for_model - - -class Command(BaseCommand): - - def handle(self, *args, **options): - fill_label_for_model(Country, 'country', 'http://skos.um.es/unescothes/CS000/Countries') - diff -r fa466993084a -r dad1f8de08a9 src/p4l/management/commands/get_language_label.py --- a/src/p4l/management/commands/get_language_label.py Mon Sep 02 17:49:41 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ -# -*- coding: utf-8 -*- -from django.core.management import BaseCommand -from p4l.models import Language -from p4l.utils import fill_label_for_model - - -class Command(BaseCommand): - - def handle(self, *args, **options): - fill_label_for_model(Language, 'language', 'http://www.iiep.unesco.org/plan4learning/scheme/Languages') diff -r fa466993084a -r dad1f8de08a9 src/p4l/management/commands/get_subject_label.py --- a/src/p4l/management/commands/get_subject_label.py Mon Sep 02 17:49:41 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -# -*- coding: utf-8 -*- -from django.core.management import BaseCommand -from p4l.models import Subject -from p4l.utils import fill_label_for_model - - -class Command(BaseCommand): - - def handle(self, *args, **options): - fill_label_for_model(Subject, 'subject', 'http://skos.um.es/unescothes/CS000') - diff -r fa466993084a -r dad1f8de08a9 src/p4l/management/commands/get_theme_label.py --- a/src/p4l/management/commands/get_theme_label.py Mon Sep 02 17:49:41 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -# -*- coding: utf-8 -*- -from django.core.management import BaseCommand -from p4l.models import Theme -from p4l.utils import fill_label_for_model - - -class Command(BaseCommand): - - def handle(self, *args, **options): - fill_label_for_model(Theme, 'theme', 'http://www.iiep.unesco.org/plan4learning/scheme/Themes') - diff -r fa466993084a -r dad1f8de08a9 src/p4l/templates/p4l/p4l_record_view.html --- a/src/p4l/templates/p4l/p4l_record_view.html Mon Sep 02 17:49:41 2013 +0200 +++ b/src/p4l/templates/p4l/p4l_record_view.html Tue Sep 03 12:09:24 2013 +0200 @@ -37,15 +37,15 @@ {% trans 'issns' %} - + {% trans 'isbns' %} - + {% trans 'document code' %} - + {% trans 'language' %} @@ -57,15 +57,19 @@ {% trans 'titles' %} - + + + + {% trans 'abstracts' %} + {% trans 'added titles' %} - + {% trans 'titles main document' %} - + {% trans 'edition statement' %} @@ -81,6 +85,7 @@
  • {% trans 'City' %} : {{ i.imprintCity|default:'' }}
  • {% trans 'Publisher' %} : {{ i.publisher|default:'' }}
  • {% trans 'Date' %} : {{ i.imprintDate|default:'' }}
  • +
  • {% trans 'Language' %} : {{ i.lang|default:'' }}
  • {% endfor %} @@ -89,7 +94,7 @@ {% trans 'collations' %} - + {% trans 'volume issues' %} @@ -100,6 +105,7 @@ {% endfor %} @@ -111,17 +117,17 @@ - {% trans 'periodicals' %}{# ajouter langue #} - + {% trans 'periodicals' %} + - {% trans 'meetings' %}{# ajouter langue #} + {% trans 'meetings' %}