From: Radek Czajka <radek.czajka@gmail.com>
Date: Tue, 19 Nov 2013 19:50:57 +0000 (+0100)
Subject: https in opensearch
X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/a23dbb7035ceaf340540f9db370aa2292eddfe4e?ds=inline

https in opensearch
---

diff --git a/apps/catalogue/urls.py b/apps/catalogue/urls.py
index 43209198b..55ced66ff 100644
--- a/apps/catalogue/urls.py
+++ b/apps/catalogue/urls.py
@@ -32,7 +32,7 @@ urlpatterns += patterns('catalogue.views',
     url(r'^audiobooki/$', 'audiobook_list', name='audiobook_list'),
     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'^jtags/?$', 'json_tags_starting_with', name='jhint'),
     url(r'^nowe/$', ListView.as_view(
         queryset=Book.objects.filter(parent=None).order_by('-created_at'),
         template_name='catalogue/recent_list.html'), name='recent_list'),
diff --git a/apps/wolnelektury_core/static/opensearch.xml b/apps/wolnelektury_core/static/opensearch.xml
index 1bf2aeb5f..3018db0cd 100644
--- a/apps/wolnelektury_core/static/opensearch.xml
+++ b/apps/wolnelektury_core/static/opensearch.xml
@@ -9,12 +9,12 @@
     <Developer>Fundacja Nowoczesna Polska</Developer>
     <Language>pl</Language>
     <Contact>fundacja@nowoczesnapolska.org.pl</Contact>
-    <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>
+    <Image height="16" width="16" type="image/x-icon">https://static.wolnelektury.pl/static/img/favicon.ico</Image>
+    <Image height="64" width="64" type="image/png">https://static.wolnelektury.pl/static/img/wl_icon_64.png</Image>
     <Url type="application/atom+xml;profile=opds-catalog"
-        template="http://wolnelektury.pl/opds/search/?q={searchTerms}&amp;author={atom:author}&amp;translator={atom:contributor}&amp;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&amp;q={searchTerms}" />
-    <moz:SearchForm>http://wolnelektury.pl/</moz:SearchForm>
+        template="https://wolnelektury.pl/opds/search/?q={searchTerms}&amp;author={atom:author}&amp;translator={atom:contributor}&amp;title={atom:title}" />
+    <Url type="text/html" method="GET" template="https://wolnelektury.pl/szukaj/?q={searchTerms}" />
+    <Url type="application/x-suggestions+json" method="GET" template="https://www.wolnelektury.pl/katalog/jtags/?mozhint=1&amp;q={searchTerms}" />
+    <moz:SearchForm>https://wolnelektury.pl/</moz:SearchForm>
     <Query role="example" searchTerms="słowa" />
 </OpenSearchDescription>