From: Radek Czajka Date: Tue, 8 Feb 2011 11:45:45 +0000 (+0100) Subject: opensearch for firefox X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/c6eaa20b4ddb98a2d085bb588224c36115334c52?ds=inline opensearch for firefox --- diff --git a/apps/catalogue/views.py b/apps/catalogue/views.py index a6f394f21..7f1de6d46 100644 --- a/apps/catalogue/views.py +++ b/apps/catalogue/views.py @@ -491,13 +491,14 @@ def json_tags_starting_with(request, callback=None): if len(prefix) < 2: return HttpResponse('') tags_list = [] - result = "" for tag in _tags_starting_with(prefix, request.user): if not tag.name in tags_list: - result += "\n" + tag.name tags_list.append(tag.name) - dict_result = {"matches": tags_list} - return JSONResponse(dict_result, callback) + if request.GET.get('mozhint', ''): + result = [prefix, tags_list] + else: + result = {"matches": tags_list} + return JSONResponse(result, callback) # ==================== # = Shelf management = diff --git a/wolnelektury/static/img/favicon.ico b/wolnelektury/static/img/favicon.ico new file mode 100644 index 000000000..3f2aacc37 Binary files /dev/null and b/wolnelektury/static/img/favicon.ico differ diff --git a/wolnelektury/static/img/favicon.png b/wolnelektury/static/img/favicon.png index 6cffce8e5..9794f3588 100644 Binary files a/wolnelektury/static/img/favicon.png and b/wolnelektury/static/img/favicon.png differ diff --git a/wolnelektury/static/img/wl_icon_64.png b/wolnelektury/static/img/wl_icon_64.png new file mode 100644 index 000000000..a9dded316 Binary files /dev/null and b/wolnelektury/static/img/wl_icon_64.png differ diff --git a/wolnelektury/static/opensearch.xml b/wolnelektury/static/opensearch.xml index 7a319f13b..9cc056541 100644 --- a/wolnelektury/static/opensearch.xml +++ b/wolnelektury/static/opensearch.xml @@ -1,12 +1,19 @@ - + Wolne Lektury WolneLektury.pl, szkolna biblioteka internetowa. + UTF-8 lektury Fundacja Nowoczesna Polska pl fundacja@nowoczesnapolska.org.pl + http://www.wolnelektury.pl/static/img/favicon.ico + http://www.wolnelektury.pl/static/img/wl_icon_64.png + + + http://www.wolnelektury.pl/katalog/ diff --git a/wolnelektury/templates/base.html b/wolnelektury/templates/base.html index 3e2678dcc..8aaabf10f 100644 --- a/wolnelektury/templates/base.html +++ b/wolnelektury/templates/base.html @@ -6,7 +6,8 @@ {% block title %}WolneLektury.pl{% endblock %} - + + {% compressed_css "all" %} {% compressed_js "jquery" %}