Commit graph

43 commits

Author SHA1 Message Date
Yichi Yang
b12024e0e0 Make UI responsive 2026-04-30 21:55:18 -07:00
Jean-Francois Dockes
5f974d9e44 url-encode the value or rcludi in the query string 2026-03-17 14:58:14 +01:00
Jean-Francois Dockes
ee3bab9b2a Small HTML fixes. Thanks to Jeroen ! 2026-02-28 08:18:25 +01:00
Jean-Francois Dockes
517e22ad2d Make Preview and Download links stable by adding the Recoll UDI.
Allows bookmarking.
Also added a "Link" link to each result to allow bookmarking the result itself.
Respectively controlled by webui_permlink and webui_res_permlink config options.
2026-02-21 15:41:11 +01:00
Jean-Francois Dockes
416f27b43a add shortenpaths to the defaults array so that it is always in the config array 2025-06-04 14:06:38 +02:00
Jean-Francois Dockes
395b54e2d4 Shortening the displayed paths by removing the commong start: fix and make optional 2025-05-31 09:13:37 +02:00
uis
108fd22981 Make response doctype html 2024-12-02 22:49:32 +00:00
Jean-Francois Dockes
6df6f1a018 added the "noresultlinks" config param to allow suppressing the Preview and Downloads links 2024-11-09 18:21:35 +01:00
Jean-Francois Dockes
8e868c8906 Add setting to hide duplicate results 2022-11-05 10:46:34 +01:00
Jean-Francois Dockes
7602a31ec1 Remove old spurious reference to importing urlencode from urllib 2022-10-18 18:07:06 +02:00
Jean-Francois Dockes
8375ea619c Get rid of the deprecation warning for non-func include 2022-06-16 10:44:35 +02:00
Jean-Francois Dockes
f5eb2d5228 Process all data as str, not utf-8 bytes 2020-01-29 16:00:02 +01:00
Jean-Francois Dockes
b6945210ed Paged JSON support, 'highlight' and 'snippet' URL parameters
Merge from https://github.com/koniu/recoll-webui/pull/61

- Changed JSON endpoint to allow paged json, use without page parameter (or
  page=0) to get unpaged result
- Added snippets and highlight parameters to search url, use highlight=0 to
  disable search term highlighting, snippets=0 to disable snippet
  generation.
- Added optional usjon module support
2019-10-02 17:34:35 +02:00
Jean-Francois Dockes
48adbfd88d Simplify things a bit by getting rid of the hasrclextract variable, dropping support for pre-1.19 recoll 2019-03-20 11:02:05 +01:00
Jean-Francois Dockes
e8734ec922 Python3: oops importing urllib when running with python2 2018-06-02 16:44:58 +02:00
Jean-Francois Dockes
ec68abe127 Python3 port:
- Updated bottle module to 0.12.13.
- bottle: include header ... -> include('header', ...)
- Imported up to date version of rclconfig.py (+ conftree.py)
- Adapt urllib imports
- Needed explicit integer division in places (//)
- Recoll result records contain utf-8 bytes: can't mix with 'xx' need b'xx'
- has_key -> in
- StringIO -> io.StringIO
2018-06-02 16:43:00 +02:00
Jean-Francois Dockes
6910c88df5 Use global admin config variables from recoll config file: webui_nojsoncsv, webui_nosettings, webui_maxperpage 2016-12-04 19:14:53 +01:00
koniu
4e748d6544 restore open local file function (closes #54)
Signed-off-by: koniu <koniu@riseup.net>
2016-09-19 23:52:55 +01:00
Jean-Francois Dockes
66321af8a3 Let the user choose the fields included for CSV extraction 2016-05-06 15:35:19 +01:00
koniu
f26a04e059 Merge pull request #27 from jobe451/master
Headless setup under apache2 / ubuntu 12.04
2014-07-09 10:43:42 +01:00
Jean-Francois Dockes
59bc9e1489 Compute directory url using path manip, not filename substraction. Filename can be empty or inadequate 2014-07-08 16:05:01 +02:00
jobe451
95e93e4db2 removed link to file, download is default
download links to files directly (file://) are not supported anymore by most browsers. Basides, I have the application running anyhow on a different server. Network file path' on local machines are anyhow different.
2014-04-01 00:46:17 +02:00
jobe451
91ed38aa0d removed absolute path from download / preview
I run recoll-webui under a differnt path using WSGI and mod_proxy. So the application runs under /recoll/

The download link should therefore point to
/recoll/download (not) /download

This change fixes that
2014-04-01 00:39:55 +02:00
Jean-Francois Dockes
887c972521 Some browsers (chrome, ie) do not support margin-left style specs on <option> elements. Use multiple nbsps instead. Yes ugly... temp workaround while waiting for a master of style ? 2014-02-03 17:40:28 +01:00
Jason Ronallo
7cb604b684 add autodiscovery link tag for opensearch document 2014-01-04 18:09:54 -05:00
Jean-Francois Dockes
10d4c62cc5 Use recoll highlighter instead of local one to properly handle stemming 2013-10-29 09:42:57 +01:00
koniu
f038f3e034 tpl: move fade dive where it belongs
Signed-off-by: koniu <koniu@riseup.net>
2013-10-13 22:49:03 +02:00
koniu
82dad9d486 py, tpl: rename "open/dl" link to "dl" to avoid confusion 2013-10-07 22:56:13 +02:00
Laurent Defert
10809d70c5 Add an 'Add to browser' option 2013-08-25 12:24:10 +02:00
Jean-Francois Dockes
248b293ddd Use content-disposition header to set file name for Open/Download 2013-07-10 07:52:57 +02:00
Jean-Francois Dockes
933529b479 added preview and open links using rclextract when available 2013-07-09 18:20:39 +02:00
Jean-Francois Dockes
1f91a59af6 recoll 1.19 compatibility changes 2013-07-09 18:19:35 +02:00
koniu
740f507c0e py/tpl: fix #4 ('..' breaks WSGI, use './' instead)
Thanks to nberelidze@github for spotting and providing solution.
2013-03-03 23:51:09 +00:00
koniu
be52e0f69d tpl: split off result template 2012-12-22 13:26:52 +00:00
koniu
86102a205c add paging of results 2012-12-22 11:57:08 +00:00
koniu
b9b91f729f py: allow limiting the number of results 2012-12-21 14:44:22 +00:00
koniu
944fa2f9ae prune some redundant variables 2012-12-19 11:15:37 +00:00
koniu
63e5155e9f remove linebreaks in settings view 2012-12-19 11:05:53 +00:00
koniu
68ca48cf80 add a setting for local access url paths 2012-12-19 11:02:56 +00:00
koniu
414583ab21 normalise page titles 2012-12-18 12:26:52 +00:00
koniu
bddbc00900 make 'maxchars' configurable 2012-12-18 12:18:44 +00:00
koniu
813304bed2 whitespace/linebreak cleanup 2012-12-18 10:45:55 +00:00
koniu
70ad857091 import 2012-12-18 09:06:34 +00:00