#
from django.conf.urls.defaults import *
from catalogue.feeds import AudiobookFeed
-from catalogue.models import Book
-from picture.models import Picture
from catalogue.views import CustomPDFFormView
url(r'^daisy/$', 'daisy_list', name='daisy_list'),
url(r'^tags/$', 'tags_starting_with', name='hint'),
url(r'^jtags/$', 'json_tags_starting_with', name='jhint'),
- url(r'^szukaj/$', 'search', name='old_search'),
+ #url(r'^szukaj/$', 'search', name='old_search'),
# zip
url(r'^zip/pdf\.zip$', 'download_zip', {'format': 'pdf', 'slug': None}, 'download_zip_pdf'),
url(r'^custompdf$', CustomPDFFormView(), name='custom_pdf_form'),
url(r'^custompdf/(?P<slug>%s).pdf' % SLUG, 'download_custom_pdf'),
-)
+)
+
+urlpatterns += patterns('django.views.generic.simple',
+ # old static pages - redirected
+ url(r'^szukaj/$', 'redirect_to',
+ {'url': '/szukaj/'}),
+)
stylesheet.setAttribute('href', 'http://'+host+'/static/css/widget.css');
linkLogo.setAttribute('href', 'http://'+host);
logo.setAttribute('src', 'http://'+host+'/static/img/logo.png');
-form.setAttribute('action', 'http://'+host+'/fullsearch/');
+form.setAttribute('action', 'http://'+host+'/szukaj/');
form.setAttribute('method', 'get');
form.setAttribute('accept-charset', 'utf-8');
form.setAttribute('id', 'wl-form');
<Developer>Fundacja Nowoczesna Polska</Developer>
<Language>pl</Language>
<Contact>fundacja@nowoczesnapolska.org.pl</Contact>
- <Image height="16" width="16" type="image/x-icon">http://www.wolnelektury.pl/static/img/favicon.ico</Image>
- <Image height="64" width="64" type="image/png">http://www.wolnelektury.pl/static/img/wl_icon_64.png</Image>
+ <Image height="16" width="16" type="image/x-icon">http://static.wolnelektury.pl/static/img/favicon.ico</Image>
+ <Image height="64" width="64" type="image/png">http://static.wolnelektury.pl/static/img/wl_icon_64.png</Image>
<Url type="application/atom+xml;profile=opds-catalog"
- template="http://www.wolnelektury.pl/opds/search/?q={searchTerms}&author={atom:author}&translator={atom:contributor}&title={atom:title}" />
- <Url type="text/html" method="GET" template="http://www.wolnelektury.pl/katalog/szukaj?q={searchTerms}" />
+ template="http://wolnelektury.pl/opds/search/?q={searchTerms}&author={atom:author}&translator={atom:contributor}&title={atom:title}" />
+ <Url type="text/html" method="GET" template="http://wolnelektury.pl/szukaj?q={searchTerms}" />
<Url type="application/x-suggestions+json" method="GET" template="http://www.wolnelektury.pl/katalog/jtags?mozhint=1&q={searchTerms}" />
- <moz:SearchForm>http://www.wolnelektury.pl/katalog/</moz:SearchForm>
+ <moz:SearchForm>http://wolnelektury.pl/</moz:SearchForm>
<Query role="example" searchTerms="słowa" />
</OpenSearchDescription>
- <form id="search-area" action="/fullsearch/" class="hidelabels">
+ <form id="search-area" action="{% url search %}" class="hidelabels">
<div id="search-field" class="grid-line">
<label for="search">{{search_form.q.label}}</label>
# API
(r'^api/', include('api.urls')),
- url(r'^fullsearch/', include('search.urls')),
+ url(r'^szukaj/', include('search.urls')),
# Static files
url(r'^%s(?P<path>.*)$' % settings.MEDIA_URL[1:], 'django.views.static.serve',