summaryrefslogtreecommitdiff
path: root/modules/search/helpers/search.php
AgeCommit message (Collapse)Author
2013-03-14#2062 - Fix extra/missing spaces in search query.shadlaws
- Every to-be-concatenated string now begins with 1 space and ends with 0 spaces.
2013-02-05Force a sort order no sibling checks. Fixes #1990.Bharat Mediratta
2013-01-21Update copyright to 2013. Fixes #1953.Bharat Mediratta
2012-12-14fix, use $current->scoreChris Chilvers
2012-12-14search within the current album by defaultChris Chilvers
When searching, limit search results to the current album. In the search results screen, display which album was searched and provide a link to search the whole gallery.
2012-12-09Eliminate the search context if we encounter an item that cannot beBharat Mediratta
found in the search results. Fixes #1923.
2012-02-27Update copyright to 2012. #1822Bharat Mediratta
2011-11-03In get_position() don't try to truncate the score if it's empty. Follow-on ↵Bharat Mediratta
to ce43f29e2ceaac3d638061f81dc6037b5e0018d3
2011-10-26Follow on to 7f62f09cf377b92b615e456ec4539300b331fd4b for #1663 to fix badBharat Mediratta
query syntax, pointed out by Singularis in http://gallery.menalto.com/gallery_3.0.2_feedback#comment-383135
2011-08-11Patch for tickets #1428 and #1760Tim Almdal
Create the concept of a Photo_Display_Context. If the user is browsing a dynamic album (i.e. tags) and chooses to look at an image in that album. The display of the image happens correctly, but the 'next' and 'previous' buttons are no longer consistent. When one of these is clicked, Gallery will open the adjacent image in the actuall album, not the dynamic album.
2011-07-24Patch for ticket #1763. Where offset could be converted to a null string. ↵Tim Almdal
It's not really a problem in the current release, but will cause isses when we serialize the offset as part of the display context.
2011-03-27Improve search to use wildcard matching, thanks to some code from tempg.Bharat Mediratta
Fixes #1663.
2011-01-21Update copyright to 2011.Bharat Mediratta
2010-06-11Remove the duplicate query when searching as pointed out by joe7 on ticket #844Tim Almdal
2010-03-03Update the copyright to 2010. It's only 3 months into the year :-)Bharat Mediratta
2010-01-31Fix lots of warnings that pop up when we're in E_STRICT mode. They'reBharat Mediratta
mostly issues around uninitialized variables, calling non-static functions in a static context, calling Session functions directly instead of on its singleton, passing non-variables by reference, and subclasses not using the same interface as the parent class.
2009-12-18Database::escape_str() is now Database::escape().Bharat Mediratta
2009-12-02Fix a bunch of places where we were using "= null" instead of "IS NULL".Bharat Mediratta
2009-12-02Convert more database calls over to the new formatBharat Mediratta
- admin/maintenance page loads, the rebuild thumbs/resizes task works - Fixed up some conversion bugs in the Cache driver
2009-11-26Database::orwhere() is now Database_Builder::or_where()Bharat Mediratta
2009-11-26Convert all DB where() calls to take 3 arguments.Bharat Mediratta
Convert all open_paren() calls to and_open() or or_open() as appropriate.
2009-11-25Preliminary work to cut over to Kohana 2.4Bharat Mediratta
- Kohana::log() -> Kohana_Log::add() - Kohana::config_XXX -> Kohana_Config::instance()->XXX - Implement View::set_global in MY_View - Updated Cache_Database_Driver to latest APIs - ORM::$loaded -> ORM::loaded() - Updated item::viewable() to use K2.4 parenthesization
2009-10-24Merge branch 'master' into talmdal_devTim Almdal
2009-10-24When doing a search we need to "OR" the view permissions not "AND" them. ↵Tim Almdal
Fixes ticket #805.
2009-10-22Change the name of identity library from Identity to IdentityProvider. ↵Tim Almdal
Create a helper class called identity to simplify call the Identity Provider. Move the contents of MY_Session.php to the new helper class and remove the MY_Session class
2009-10-16Remove all non Identity API methods from Identity.php. Created an ↵Tim Almdal
MY_Session class to provide the user state changes in the session and a login.php helper that has the login form.
2009-10-16Start simplifying the interface by moving the static methods from user.php ↵Tim Almdal
and group.php. Tried creating a identity helper, but the helper identity.php was confused with the library Identity.php. So got around this by making the methods on Identity static and calling the instance within the static methods. Also temporarily moved the user.php and group.php back into the user module.
2009-10-11Use SQL_CALC_FOUND_ROWS instead of doing the search twice, for better ↵Bharat Mediratta
performance. Fixes ticket #835, thanks Joe7!
2009-10-04Renamed most, if not all css selectors from gName to g-name. Moved a few ↵Chad Kieffer
shared images from wind to lib. Deleted unused images in the admin_wind. This will likely break a few ajax features.
2009-09-30Convert gDialog and gCancel over to g-dialog and g-cancel. Refactor CSS id's ↵Chad Kieffer
and classes in the login/reset password dialog.
2009-08-31Rename mark_safe() to mark_clean()Andy Staudacher
2009-08-30Change all instances of SafeString::of_safe_html() to html::mark_safe() in ↵Andy Staudacher
views.
2009-08-29Undo url helper changes - url methods no longer return a SafeString.Andy Staudacher
Adding SafeString::of_safe_html() calls where urls are passed as parameters to t() and t2().
2009-07-30Remove debugging print statement in search.phpTim Almdal
Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
2009-07-28Change search callbacks to use the event system, so move them out ofBharat Mediratta
xxx_search helpers and into xxx_event helpers.
2009-07-23Use BOOLEAN instead of integer to describe the permissions :Romain LE DISEZ
- DENY = false - ALLOW = true - UNKNOW = null (for intent only) - INHERIT = null (for cache) Upgrade is not included for now. (cherry picked from commit 719c59e0402464a0e2b14915f6d10218ff5d4729)
2009-07-19Remove success logging. Only log on errors, otherwise the log is huge.Bharat Mediratta
2009-07-09Revert "Revert "Add task logging to the "Update Search Index" task""Tim Almdal
This reverts commit 5118afc959650469874733a1060fbe22364d8c28.
2009-07-09Revert "Add task logging to the "Update Search Index" task"Tim Almdal
This reverts commit 6ac5238b83d58824eb9327406a2ee50b7e603214.
2009-07-08Add task logging to the "Update Search Index" taskTim Almdal
2009-06-24SQL is case insensitiveRomain LE DISEZ
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-06-24Improve compatibility with other RDBMSRomain LE DISEZ
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-05-26Restructure the module lifecycle.Bharat Mediratta
Install: <module>_installer::install() is called, any necessary tables are created. Activate: <module>_installer::activate() is called. Module controllers are routable, helpers are accessible, etc. The module is in use. Deactivate: <module>_installer::deactivate() is called. Module code is not accessible or routable. Module is *not* in use, but its tables are still around. Uninstall: <module>_installer::uninstall() is called. Module is completely removed from the database. Admin > Modules will install and activate modules, but will only deactivate (will NOT uninstall modules).
2009-05-20Avoid complex inserts in available_tasks() to make admin/maintenanceBharat Mediratta
run faster. This fixes ticket #235. Incidentally, refactor exif and search to use the same patterns overall so that if you understand one, you understand the other and they generally use the same strings for localization.
2009-05-13Gee it's May already. Update copyright to 2009.Bharat Mediratta
2009-03-21Refactor all translation strings that have ambiguous placeholders.Andy Staudacher
E.g. "%link_startClick here%link_end" is now '<a href="%url">Click here</a>'. Note: This isn't always the best solution. E.g. consider "Foo <a href='%url' class='gDialogLink'>bar</a>." Now the translator has to deal with preserving CSS classes too...
2009-03-03Fix issue identified by security review... some table names where notTim Almdal
being translated.
2009-02-12Correct typo in variable nameTim Almdal
2009-01-17Fix typo.. rebuild_index -> update_indexBharat Mediratta
2009-01-17Implement relevance ranked boolean searching on a full text index ofBharat Mediratta
item and comment data. Whew! It's not pretty yet. And you have to manually update the index currently in admin/maintenance. But it works.