old smelly typo + hide OAI-PMH (not working)
authorJan Szejko <j-sz@o2.pl>
Thu, 4 Feb 2016 10:07:40 +0000 (11:07 +0100)
committerJan Szejko <j-sz@o2.pl>
Thu, 4 Feb 2016 10:07:40 +0000 (11:07 +0100)
src/oai/handlers.py
src/wolnelektury/templates/main_page.html

index 0c18eb6..9ad9e67 100644 (file)
@@ -73,7 +73,7 @@ class Catalogue(common.ResumptionOAIPMH):
 
         try:
             earliest_delete = \
-                Deleted.objects.exclude(slug__exact=u'').ordery_by('deleted_at')[0].deleted_at
+                Deleted.objects.exclude(slug__exact=u'').order_by('deleted_at')[0].deleted_at
         except IndexError:
             earliest_delete = year_zero
 
index f2e6863..ad34958 100755 (executable)
             <li><a href="{% url 'suggest_publishing' %}" id="suggest-publishing" class="ajaxable">{% trans "Missing a book?" %}</a></li>
             <li><a href="{% url 'publish_plan' %}">{% trans "Publishing plan" %}</a></li>
             <li><a href="{% url 'api' %}">API</a></li>
-            <li><a href="{% url 'oaipmh' %}">OAI-PMH</a></li>
+            {#<li><a href="{% url 'oaipmh' %}">OAI-PMH</a></li>#}
             <li><a href="{% url 'lesmianator' %}" lang="pl">Leśmianator</a></li>
             <li><a href="http://polski.wolnelektury.pl" lang="pl">Materiały do nauki j. polskiego</a></li>