Merge branch 'merge_1' into edumed
authorMarcin Koziej <marcin.koziej@nowoczesnapolska.org.pl>
Fri, 8 Feb 2013 13:38:02 +0000 (14:38 +0100)
committerMarcin Koziej <marcin.koziej@nowoczesnapolska.org.pl>
Fri, 8 Feb 2013 13:38:02 +0000 (14:38 +0100)
apps/catalogue/management/commands/make_master.py
lib/librarian

index 4bca383..b262201 100644 (file)
@@ -2,6 +2,7 @@
 
 from django.core.management.base import BaseCommand
 from django.core.management.color import color_style
+from django.utils.encoding import smart_unicode
 from catalogue.management.prompt import confirm
 from catalogue.models import Book
 from optparse import make_option
@@ -81,6 +82,7 @@ class Command(BaseCommand):
             holder['xml'] += u"%s\n" % t
 
         def dc(k, v):
+            v = smart_unicode(v)
             p(u'<dc:%s xml:lang="pl" xmlns:dc="http://purl.org/dc/elements/1.1/">%s</dc:%s>' % (k, v, k))
 
         def t(tag, ct):
index f921a03..a1e43b7 160000 (submodule)
@@ -1 +1 @@
-Subproject commit f921a036ff55ff3a43ad2c93c8d8eb808fd54724
+Subproject commit a1e43b7bba2a0c7cf33280143bb49af3fef5d0d0