From c6eaa20b4ddb98a2d085bb588224c36115334c52 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 8 Feb 2011 12:45:45 +0100 Subject: [PATCH] opensearch for firefox --- apps/catalogue/views.py | 9 +++++---- wolnelektury/static/img/favicon.ico | Bin 0 -> 1150 bytes wolnelektury/static/img/favicon.png | Bin 120 -> 473 bytes wolnelektury/static/img/wl_icon_64.png | Bin 0 -> 4909 bytes wolnelektury/static/opensearch.xml | 9 ++++++++- wolnelektury/templates/base.html | 3 ++- 6 files changed, 15 insertions(+), 6 deletions(-) create mode 100644 wolnelektury/static/img/favicon.ico create mode 100644 wolnelektury/static/img/wl_icon_64.png 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 0000000000000000000000000000000000000000..3f2aacc376a8595d4a884d551fe1e8c28790fcee GIT binary patch literal 1150 zcmaKsJ#K?Q5QPUR2e2q2IdYLQGO3YVgp1JOCRGxjfIUZWxraa|gtVMtkAPF;1e^C3 zsCL&zkCg|$`FSHDlHl5G1ouaIy%V_?ktYZtMCLdS5j?AsS?)h>4>Fjo{ERp?q_#4Y zJL&VCw5hdLsMGO~o{lg1M^%(>RZ&A48sDp8Wi41w%t03K*^roHsq3-K$39p$#4^S{ z*mI~hW1NLO$9Oz*^Tv3@Ict4`cV6A#>64D}oQ)pEc;=6W=3pP3#rZ)`!LIvtIk+?KZuWz|ayKSX>zBYk L6}}Zz>__$=ZQ&Kk literal 0 HcmV?d00001 diff --git a/wolnelektury/static/img/favicon.png b/wolnelektury/static/img/favicon.png index 6cffce8e5e27daf64eb36d295e05bb7d69042d6a..9794f3588b01e8a00dfbc38addc58f6623d0370e 100644 GIT binary patch delta 446 zcmV;v0YUzF*#nRye*|+vNmK|32nc)#WQYI&010qNS#tmY0b&3E0b&7PC(u&>000?u zMObuGZ)S9NVRB^vcXxL#X>MzCV_|S*E^l&Yo9;Xs00042Nkl5rX;L(DV4Fq~57QjZL?1Ml-hm_PwWp~t!e*~@bd?;QbQH*ojbFO^P zk9GO|v|v`G0#vJ)AQc+*!|rYc_UAaOoEWHGh%r+-2<#Zv8e=#I%RIuqn+0XaPsyKGZ5GV2S0={ z;{C;^|6B-%!z3PnpF7Z3PL`MS&76gAzg(OH+U!YFI1V%8oQ(=F>`8KA1Bw1iY};)M5Cq1k}ag>FVdQ&MBb@00=D|&j0`b diff --git a/wolnelektury/static/img/wl_icon_64.png b/wolnelektury/static/img/wl_icon_64.png new file mode 100644 index 0000000000000000000000000000000000000000..a9dded316cb6986416d98d96ee95d39406784fe3 GIT binary patch literal 4909 zcmV+|6VmL7P)f`El-CLTjUN5ft0u@_H00AGD6kkvRc`%a%AKb-5<>Bhmw$Sp1 z@Ujq+%$$AyIA1sDJ#)Z0^_de}9fdjM2q!cTH{t_xGYTya%OcTd_#%L?6$NFI<4q{U&} zAWD@58-vZp2S2;xi<8k0opq+bFwKW%66MNRUSYX54dAVfJ&fJ&g1V>ppnJ=gkL5r z{1<=-1+GXFr4HdEsKNgT4hB6~Pl_wPjA(2OoK!pmGZiC9+WAv{b@vwxO#D3=%jeP8idKLig z1xCJEaaFHGx4R~hQ(Xyd799IEXqv)0$=ng&@)E(fob3m7aQH4oC{GhjQKu)5adJW=eWgz z%pOsqYn;M>Wfdd)CCby~;VD&qrAiid=T8E!TEY$993ABytFI;6`L8P^1-Jn~p&p#o z5MX-lu06mJ0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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" %} -- 2.20.1