msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-11-08 16:21+0100\n"
-"PO-Revision-Date: 2012-11-08 16:21+0100\n"
+"POT-Creation-Date: 2012-12-12 14:09+0100\n"
+"PO-Revision-Date: 2012-12-12 14:09+0100\n"
"Last-Translator: Radek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
msgid "Queue is full. Please try again later."
msgstr ""
-#: views.py:525
+#: views.py:528
#, python-format
msgid ""
"An error occurred: %(exception)s\n"
"\n"
"%(tb)s"
-#: views.py:526
+#: views.py:529
msgid "Book imported successfully"
msgstr "Książka zaimportowana"
-#: views.py:528
+#: views.py:531
#, python-format
msgid "Error importing file: %r"
msgstr "Błąd podczas importowania pliku: %r"
-#: views.py:560
+#: views.py:563
msgid "Download custom PDF"
msgstr "Stwórz własny PDF"
-#: views.py:561
+#: views.py:564
#: templates/catalogue/book_short.html:92
#: templates/catalogue/book_text.html:28
#: templates/catalogue/book_wide.html:63
msgstr ""
#: templates/catalogue/book_text.html:24
-#: templatetags/catalogue_tags.py:412
+#: templatetags/catalogue_tags.py:416
#, fuzzy
msgid "Themes"
msgstr "motyw"
#: templates/catalogue/catalogue.html:19
#: templates/catalogue/search_multiple_hits.html:17
#: templates/catalogue/tagged_object_list.html:26
-#: templatetags/catalogue_tags.py:408
+#: templatetags/catalogue_tags.py:412
#, fuzzy
msgid "Authors"
msgstr "autor"
#: templates/catalogue/catalogue.html:22
#: templates/catalogue/search_multiple_hits.html:25
#: templates/catalogue/tagged_object_list.html:34
-#: templatetags/catalogue_tags.py:410
+#: templatetags/catalogue_tags.py:414
msgid "Kinds"
msgstr ""
#: templates/catalogue/catalogue.html:25
#: templates/catalogue/search_multiple_hits.html:33
#: templates/catalogue/tagged_object_list.html:42
-#: templatetags/catalogue_tags.py:409
+#: templatetags/catalogue_tags.py:413
#, fuzzy
msgid "Genres"
msgstr "gatunek"
#: templates/catalogue/catalogue.html:28
#: templates/catalogue/search_multiple_hits.html:41
#: templates/catalogue/tagged_object_list.html:50
-#: templatetags/catalogue_tags.py:411
+#: templatetags/catalogue_tags.py:415
#, fuzzy
msgid "Epochs"
msgstr "epoka"
msgid "Themes and topics"
msgstr ""
+#: templates/catalogue/catalogue.html:34
+#: templates/catalogue/menu.html:29
+msgid "Collections"
+msgstr "Kolekcje"
+
#: templates/catalogue/daisy_list.html:6
#: templates/catalogue/daisy_list.html:12
msgid "Listing of all DAISY files"
msgstr "kategoria"
#: templates/catalogue/menu.html:9
+#: templates/catalogue/menu.html.py:31
msgid "Please wait…"
msgstr ""
def __unicode__(self):
return self.title
+
+ @models.permalink
+ def get_absolute_url(self):
+ return ("collection", [self.slug])
<div class="white-box">{% tag_list categories.author %}</div>
<h2 class="white-box">{% trans "Kinds" %}<a name="rodzaje"></a></h2>
- <div class="white-box">{% tag_list categories.kind %}</div>
+ <div class="white-box" lang="pl">{% tag_list categories.kind %}</div>
<h2 class="white-box">{% trans "Genres" %}<a name="gatunki"></a></h2>
- <div class="white-box">{% tag_list categories.genre %}</div>
+ <div class="white-box" lang="pl">{% tag_list categories.genre %}</div>
<h2 class="white-box">{% trans "Epochs" %}<a name="epoki"></a></h2>
- <div class="white-box">{% tag_list categories.epoch %}</div>
+ <div class="white-box" lang="pl">{% tag_list categories.epoch %}</div>
<h2 class="white-box">{% trans "Themes and topics" %}<a name="motywy"></a></h2>
- <div class="white-box">{% tag_list fragment_tags %}</div>
+ <div class="white-box" lang="pl">{% tag_list fragment_tags %}</div>
+
+ <h2 class="white-box">{% trans "Collections" %}<a name="kolekcje"></a></h2>
+ <div class="white-box" lang="pl">{% collection_list collections %}</div>
</div>
{% endblock %}
--- /dev/null
+<ul>
+{% for collection in collections %}
+ <li><a href="{{ collection.get_absolute_url }}">{{ collection }}</a></li>
+{% endfor %}
+</ul>
<a href="{% url daisy_list %}" class="menu">
<span class='mono'>{% trans "DAISY" %}</span></a>
</li>
+
+ <li class="hidden-box-wrapper menu">
+ <a href="{% url catalogue %}#kolekcje" class="hidden-box-trigger menu load-menu">
+ <span class='mono'>{% trans "Collections" %}</span></a>
+ <div class="hidden-box" id="menu-collections">
+ <img src="{% static "img/indicator.gif" %}" alt="{% trans "Please wait…" %}" />
+ </div>
+ </li>
</ul>
\ No newline at end of file
return tag_list(tags, choices)
+@register.inclusion_tag('catalogue/collection_list.html')
+def collection_list(collections):
+ return locals()
+
+
@register.inclusion_tag('catalogue/book_info.html')
def book_info(book):
return locals()
from django.views.decorators.cache import never_cache
from ajaxable.utils import JSONResponse, AjaxableFormView
-
from catalogue import models
from catalogue import forms
from catalogue.utils import split_tags, MultiQuerySet
-from catalogue.templatetags.catalogue_tags import tag_list
+from catalogue.templatetags.catalogue_tags import tag_list, collection_list
from pdcounter import models as pdcounter_models
from pdcounter import views as pdcounter_views
from suggest.forms import PublishingSuggestForm
tag.count = tag.book_count
categories = split_tags(tags)
fragment_tags = categories.get('theme', [])
+ collections = models.Collection.objects.all()
if request.is_ajax():
render_tag_list = lambda x: render_to_string(
output = {'theme': render_tag_list(fragment_tags)}
for category, tags in categories.items():
output[category] = render_tag_list(tags)
+ output['collections'] = render_to_string(
+ 'catalogue/collection_list.html', collection_list(collections))
return JSONResponse(output)
else:
return render_to_response('catalogue/catalogue.html', locals(),
padding-top: 1.8em;
color: #0c7076;
}
+#menu a.hidden-box-trigger:hover {
+ border-bottom: 3px solid white;
+ margin-bottom: -3px;
+}
a.menu span {
font-size: 1.1em;
}
-webkit-column-width: 12em;
}
+#menu-collections ul {
+ width: 18em;
+}
+
+
#header-content, div#main-content, div#half-header-content, #footer-content {
width: 97.5em;
margin: auto;