Commit graph

139 commits

Author SHA1 Message Date
plegall
d8859f549a move search filters generation in a dedicated file to include 2024-09-05 11:18:49 +02:00
plegall
960e8479cb issue #2211 optimize date_posted filter values generation 2024-09-04 21:57:38 +02:00
HWFord
b3151e0129
fixes #2211 integrate new redesign for date posted filter
filter on date_posted custom values (specific years, months or days) along side last 7, 30 days, 3 and 6 months
following redesign by alice
2024-09-04 11:30:44 +02:00
plegall
0cf2a57357 [search] incoherent search results Vs search filters 2024-08-20 14:38:40 +02:00
plegall
067010db7b issue #2202 optimize filters construction with persistent_cache 2024-08-14 11:32:35 +02:00
plegall
c0d1245f19 issue #2202 search filter, always display all filetypes 2024-08-07 22:15:13 +02:00
plegall
dd6d1a91d7 issue #2202 factorize (and use cache) to build filters 2024-08-07 22:15:13 +02:00
plegall
81bf18cbdb fixes #2202 smarter filters for gallery search
To be able to compute values of filter "added_by" by only taking into account
results of other filters, we need to distinct results filter by filter. So
instead of generating a single complex SQL query, we use one (or maybe more)
SQL query for each filter in action.

First commit for this new way to perform a regular search. To be improved
(many duplication of codes for now)
2024-08-06 17:04:31 +02:00
plegall
8c4b3fb7db fixes #2198 smarter way to deal with filesize bounds 2024-08-02 17:47:45 +02:00
HWFord
6fe1d7db65 fixes #2193 [search] add 5 new widgets
add ratings, ratios, filesize, width and height widgets
- in functions_search add clauses according to each new filter
- in ws_functions add new api parameters
- in index.php add queries to get data for filters
- in admin.lang add missing translations for filters
- in css add basic style to work for modus newspaper
- in js add script for new filters
- in tpl combine script + CSS for double slider & jquery Ui. Add slider conf, template for new widgets

TODO
- adapt css to different themes and skins
2024-07-25 16:11:07 +02:00
plegall
cfd32548bb fixes #2122 deal with deleted added_by users 2024-03-01 11:21:47 +01:00
plegall
a2ae4267cd fixes #2041 search by tags, make sure searched tags are in the filter 2023-11-14 16:09:38 +01:00
plegall
13ea43e2ef [search] avoid errors when a filter returns no item 2023-10-28 18:35:20 +02:00
plegall
c94313fdc3 issue #2001 make sure TAGS tpl variable is always set 2023-10-24 15:14:38 +02:00
plegall
2e3ed57b24 [search] fix warning in case we display a legacy qsearch 2023-10-23 15:20:12 +02:00
plegall
8aa597cd95 issue #2027 search with contextual values in filters
* valide for all filters, except "album" (for now)
2023-10-22 21:03:53 +02:00
plegall
b01bf6ef3d fixes #2018 prevent matching tags/albums to show private content 2023-10-05 12:12:41 +02:00
plegall
61492d092e fixes #2003 search in tags no longer overides global result.
* Piwigo only tries to match tags "within" the search by word block, before combining with other filters
2023-09-25 17:12:12 +02:00
plegall
7f3a1f417e do not display 0 tags found 2023-09-11 11:39:29 +02:00
plegall
e0a82909fa fixes #1968 new values for date_posted filter
* add 24h, 3m and yNNNN (year 2023 or 2022...)
* remove 1y
* provide labels from backend instead of managing it in javascript
2023-08-26 12:55:12 +02:00
plegall
52969a7708 issue #1957 albums/tags found now correctly filled 2023-08-17 11:12:56 +02:00
plegall
2c3b6ba6ec issue #1955 search in this set (an album or some tags) 2023-08-12 16:49:42 +02:00
plegall
73e61749fe search filters optimized, fetch authors only once from db 2023-08-08 14:29:34 +02:00
plegall
0761e43d5f make sure template does not break when TAGS_FOUND or ALBUMS_FOUND not provided 2023-08-03 12:45:02 +02:00
MatthieuLP
c16da5e492 related to #1931 add data display for tag and album popin, this is placeholder data for now 2023-07-28 10:22:21 +02:00
plegall
65bf665513 issue #1946 provide list of date_posted with counters 2023-07-26 12:15:51 +02:00
MatthieuLP
1e944ca49a related to #1931 Filetypes widget fully functionnal 2023-07-11 10:59:56 +02:00
MatthieuLP
7a132f1933 related to #1931 Added file type widget with
* The new widget
* Translations line

Still need to connect to back and add icons
2023-07-10 16:55:08 +02:00
plegall
6c6c297b2a fixes #1934 deduplicate counter for added_by search filter 2023-06-30 10:54:16 +02:00
plegall
0534202c40 fixes #1930 remove search_rules 2023-06-27 15:20:41 +02:00
plegall
c01ec38bc4 issue #1869 search filters, optimize filter data loading and match permissions
* only load list of authors if this filter is active (same for tags, added_by...)
* if the search_rules include album 123 but this album is not available to current user, remove it from search_rules before sending it to template
2023-06-22 12:00:43 +02:00
Pierrick Le Gall
60363ecd42
Issue #1869 multi-criteria search (#1927)
* First implementation of the new multi-criteria search. It replaces the old search.php form.
* Displays live search criteria above search results. Each change reloads the list of results (displayed as thumbnails).
* New API method pwg.images.filteredSearch.update called in AJAX to live change the filters.
* New kind of filter: added_by
2023-06-21 16:11:08 +02:00
HWFord
722c26a1b3 Issue #1625 body class definition in section init
Initialize body_classes in common.inc.php
Add class for section and section id
also add class with search id
Class is added to $page in section_init now
Also add tis info to the body dataset for javascript use
2022-04-07 14:30:47 +02:00
HWFord
d7af491a81 Fixes #1625 adds class to body
Adds class to body, get id for category tag or picture, add dynamic class to body using id
Also used on page where albums and tags are combined

TODO make compatible with modus
2022-04-06 09:51:08 +02:00
plegall
fc193f7474 issue #830 simplify PHP files header, remove copyright/license info 2019-06-04 17:13:51 +02:00
Teatek
a4187cabf0 Fixes #247 number of photos in breadcrumb
* Fixes #247 (Adding a span and a class to modify the picture number in the breadcrumb with css)
* same for menubar categories
2019-02-15 15:34:43 +01:00
plegall
1c5b36f734 fixes #235, show/hide edit/caddie/representative icons on index.php or picture.php 2017-04-07 14:20:19 +02:00
plegall
b0ae23e34d fixes #428, ability to hide "sizes" icon on index.php or picture.php 2017-04-06 15:55:23 +02:00
plegall
df1c665e62 fixes #309, ability to show album descriptions on all pages
(not just the first page)
2017-04-02 17:36:00 +02:00
modus75
25e2954490 fixes #563 quick search filter, wrong limits on upper range limit 2016-12-09 21:59:34 +01:00
plegall
c789347c51 happy new year 2016, all headers updated 2016-01-14 12:17:58 +01:00
rvelices
c06d7bc2e5 bug 3148: quick search fix html special chars
git-svn-id: http://piwigo.org/svn/trunk@29852 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-09-30 21:07:59 +00:00
rvelices
b3a6125892 git-svn-id: http://piwigo.org/svn/trunk@29804 68402e56-0260-453c-a942-63ccdbb3a9ee 2014-09-26 20:15:53 +00:00
mistic100
4bd32005b5 feature 3010 : replace trigger_action/event by trigger_notify/change
git-svn-id: http://piwigo.org/svn/trunk@28587 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-06-02 07:55:46 +00:00
rvelices
fc20ee6b69 move QUERY_SEARCH template ssignment from index to menubar.inc.php (works also on photo pages)
git-svn-id: http://piwigo.org/svn/trunk@28316 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-04-30 18:31:00 +00:00
rvelices
3ab9ee5b47 bug 3056: quick search - fix warning; better management of variants and short words
git-svn-id: http://piwigo.org/svn/trunk@28128 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-04-08 20:45:48 +00:00
rvelices
f46b85bc85 bug 3056: quick search
- added inflectors for english and french languages
- current quick search is kept in the quick search input box
- small fixes

git-svn-id: http://piwigo.org/svn/trunk@27884 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-03-23 05:38:05 +00:00
rvelices
dc17fc9ba9 bug 3056: quick search OR operator priority taken into account
search for 'mary qwerty' will ignore 'qwerty' and return only results for 'mary' if there is no such thing as 'qwerty' in the photos (if there was 'mary' and 'qwerty', the results for both 'mary' AND 'qwerty' would be shown)

git-svn-id: http://piwigo.org/svn/trunk@27882 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-03-22 13:03:45 +00:00
mistic100
636650309a Update headers to 2014. Happy new year!!
git-svn-id: http://piwigo.org/svn/trunk@26461 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-01-05 00:19:25 +00:00
mistic100
e6722ac1b4 delete replace_space function, modify get_cat_display_name_* functions
git-svn-id: http://piwigo.org/svn/trunk@25425 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-11-10 16:18:55 +00:00