Skip to content

Commit

Permalink
fixed #166 Mostrar informação de licença no rodapé do livro e capítul…
Browse files Browse the repository at this point in the history
…o (HTML)
  • Loading branch information
gustavofonseca committed Nov 30, 2011
1 parent 57a28b8 commit 7e76fa9
Show file tree
Hide file tree
Showing 8 changed files with 643 additions and 425 deletions.
8 changes: 6 additions & 2 deletions scielobooks/catalog/views.py
Expand Up @@ -10,6 +10,7 @@
from pyramid.httpexceptions import HTTPFound
from pyramid.renderers import get_renderer
from pyramid.i18n import TranslationStringFactory, negotiate_locale_name
from pyramid.i18n import get_localizer
_ = TranslationStringFactory('scielobooks')

from ..staff.models import Monograph, Part
Expand Down Expand Up @@ -107,7 +108,9 @@ def book_details(request):
'cover_thumb_url': request.route_path('catalog.cover_thumbnail', sbid=monograph._id),
'cover_full_url': request.route_path('catalog.cover', sbid=monograph._id),
'breadcrumb': {'home': '/', 'search': request.registry.settings['solr_url'],},
'main':main}
'main':main,
'current_language': get_localizer(request).locale_name,
}

def chapter_details(request):
sbid = request.matchdict['sbid']
Expand Down Expand Up @@ -141,7 +144,8 @@ def chapter_details(request):
'breadcrumb':{'home': '/',
'search':request.registry.settings['solr_url'],
'book':request.route_path('catalog.book_details', sbid=sbid),},
'main':main}
'main':main,
'current_language': get_localizer(request).locale_name,}

def cover(request):
sbid = request.matchdict['sbid']
Expand Down
Binary file modified scielobooks/locale/es/LC_MESSAGES/scielobooks.mo
Binary file not shown.

0 comments on commit 7e76fa9

Please sign in to comment.