+
+ def get_context_data(self, **kwargs):
+ context = super(LessonView, self).get_context_data(**kwargs)
+ try:
+ context['publisher'] = Publisher.objects.get(
+ name=context['object'].dc.get('publisher', '').strip())
+ except (Publisher.DoesNotExist, Publisher.MultipleObjectsReturned):
+ pass
+ return context