Koha-clms/Koha
Nick 2b769cbc32 Bug 23089: Fix sorting on sum and regular fields
As of bug 20589 we no longer analyze sort fields and so we no longer need to append ".phrase"
to our sort in searches.

Additionally, sort fields based on 'sum' should also use sum in building the value to sort on

To test:
0 - Be using ES
1 - Find the most circulated item in your collection
2 - Search for '*'
3 - Sort by popularity DESC
4 - Note that item is not first
5 - Try to sort by anything but relevancy, it fails
6 - Apply patch
7 - Redo searches and sorts
8 - Things should now work as expected

Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 6a2ba8b6b2)
Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
2019-12-18 14:22:38 +13:00
..
Account Bug 22006: Handle undefined itemnumber for Koha::Account::Line->item 2019-01-23 12:47:52 +00:00
Acquisition Bug 22541: Invoice adjustments should show invoice number and include link on ordered.pl and spent.pl 2019-04-15 13:07:34 +01:00
ArticleRequest
…
Authority Bug 14769: (QA follow-up) Remove global var $cached_indicators 2018-04-12 10:50:36 -03:00
Biblio
…
BiblioUtils Bug 14385: Squash of a lot of patches rebased 2018-11-02 10:33:12 +00:00
Cache
…
Club Bug 19214: prevent crash if club_template_field is called in list context 2017-09-07 14:15:59 -03:00
Config Bug 15494: (follow-up) Move yaml syspref code to its own sub in SySpref object 2018-11-07 21:39:39 +00:00
Edifact Bug 23251: Correct formatting of IMD data ending in apostrophe 2019-08-31 04:49:44 +00:00
Exceptions Bug 21998: Throw exception on bad pattern 2019-04-01 11:38:13 +01:00
Exporter Bug 20486: Add --marc_conditions option to export_records.pl 2018-11-08 02:23:29 +00:00
ExternalContent Bug 21082: Update OverDrive authentication method 2018-10-09 11:04:23 +00:00
Filter/MARC
…
Illrequest Bug 20996: (QA follow-up) Fix pod 2018-11-02 10:33:07 +00:00
Indexer
…
Item Bug 18072: Add Koha objects for Branch Transfer Limit 2018-07-18 17:29:03 +00:00
Library Bug 21910: Does not deal with call context, ->search does already 2018-12-12 10:44:00 +00:00
List Bug 19524: Share patron lists between staff 2018-07-18 16:49:29 +00:00
MetadataRecord Bug 22723: Correct syntax error on confess call in Koha/MetadataRecord/Authority.pm 2019-04-26 16:06:34 +01:00
Middleware Bug 18674: Allow TZ SetEnv for plack 2018-04-11 16:44:14 -03:00
Misc
…
Notice
…
Number Bug 18736: (follow-up) Fix missing rounding and bad formatting 2019-03-25 14:29:29 +00:00
OAI/Server Bug 20665: Reset MySQL connection time zone in the OAI-PMH Provider 2018-05-03 12:46:55 -03:00
Object/Limit
…
Old Bug 21432: (bug 20899 follow-up) Fix patron's name display for deleted patrons 2018-10-03 17:18:44 +00:00
Patron Bug 23151: Tweak to use the new database structure 2019-07-22 23:58:06 +00:00
Patrons Bug 23077: Fix import of cardnumber 0 2019-07-31 18:23:00 +00:00
Plugins Revert "Bug 23237: Plugin allow [% INCLUDE %] from template" 2019-09-20 20:37:28 +00:00
QueryParser/Driver Bug 20078: (QA follow-up) Correct attribute in PQF.pm 2018-11-06 12:22:54 +00:00
REST Bug 13895: (follow-up) Add Modern::Perl 2019-04-01 15:09:31 +01:00
RecordProcessor
…
SMS
…
Schema/Result RMaint Follow up fixing mistake of not running DBIC after DBRev 2019-09-19 21:11:43 +00:00
SearchEngine Bug 23089: Fix sorting on sum and regular fields 2019-12-18 14:22:38 +13:00
Serial
…
Sitemapper
…
Subscription Bug 21474: Add the Koha::Subscription->frequency method 2018-11-06 20:26:21 +00:00
SuggestionEngine Bug 9857 - Follow-up - Fix for searches with su= or su: 2017-09-01 13:02:24 -03:00
Tags Bug 21846: Add Koha::Tags::Approval(s) and Koha::Tags::Index(es) 2019-03-19 09:57:07 +00:00
Template/Plugin Bug 22847: [18.11] Correctly displayed circ rule values for max_holds 2019-05-30 20:06:21 +01:00
Util Bug 23324: (QA follow-up) Typo and remove unneeded use statement 2019-09-21 09:00:29 +00:00
pdfformat Bug 18736: Use rounding syspref to determine correct prices in calculations 2019-03-25 14:29:28 +00:00
Account.pm Bug 21909: Add return type explanation to POD 2019-01-07 15:01:30 +00:00
AdditionalField.pm
…
ApiKey.pm Bug 20568: (QA follow-up) Remove unused vars 2018-05-09 12:56:00 -03:00
ApiKeys.pm Bug 20568: Add mandatory description field for api keys 2018-05-09 12:55:58 -03:00
ArticleRequest.pm Bug 18477: Populate article_requests table values for AR_PENDING notices 2018-01-23 16:03:13 -03:00
ArticleRequests.pm Bug 18403: Deal with the DB user 2018-02-12 15:41:42 -03:00
AudioAlert.pm
…
AudioAlerts.pm
…
AuthUtils.pm Bug 21719: Fix typos 2018-11-08 02:18:46 +00:00
AuthorisedValue.pm
…
AuthorisedValueCategories.pm
…
AuthorisedValueCategory.pm
…
AuthorisedValues.pm
…
Authorities.pm
…
Authority.pm Bug 14769: (Follow-up) Reduce number of preference parses 2018-04-12 10:50:35 -03:00
Biblio.pm Bug 17530: (QA follow-up) Move may_article_request to ItemType 2018-09-07 13:16:08 +00:00
BiblioFramework.pm
…
BiblioFrameworks.pm
…
BiblioUtils.pm Bug 19040: Refactor GetMarcBiblio parameters 2017-08-25 10:23:42 -03:00
Biblioitem.pm
…
Biblioitems.pm
…
Biblios.pm
…
Cache.pm Bug 21955: Remove Cache::Memory as fallback for L2 cache 2018-12-12 10:33:43 +00:00
Caches.pm
…
Calendar.pm Bug 19204: Make the debarment date calculation depends on finesCalendar 2018-04-25 10:52:20 -03:00
Checkout.pm
…
Checkouts.pm
…
CirculationRule.pm Bug 18887: Fix POD c/p issues 2018-10-03 17:58:16 +00:00
CirculationRules.pm Bug 18887: Replace croak with exceptions 2018-10-03 17:58:17 +00:00
Cities.pm
…
City.pm
…
ClassSortRule.pm Bug 19929: Add Koha objects for class sources and sorters 2018-03-23 11:45:38 -03:00
ClassSortRules.pm Bug 19929: (QA follow-up) Fix POD 2018-03-23 11:45:38 -03:00
ClassSource.pm Bug 19929: (QA follow-up) Fix POD 2018-03-23 11:45:38 -03:00
ClassSources.pm Bug 19929: (QA follow-up) Fix POD 2018-03-23 11:45:38 -03:00
ClassSplitRule.pm Bug 15836: Handle non-existent regexs 2018-11-13 15:18:22 +00:00
ClassSplitRules.pm Bug 15836: Add the ability to defined custom methods to split call number in labels 2018-11-13 15:18:22 +00:00
Club.pm Bug 18870: Force scalar context for Koha::Club methods 2017-07-06 14:29:01 -03:00
Clubs.pm
…
Config.pm Bug 19760: Die if koha-conf is not accessible 2017-12-22 13:15:35 -03:00
CsvProfile.pm
…
CsvProfiles.pm
…
Database.pm Bug 23022: Remove the SQl mode NO_AUTO_CREATE_USER 2019-06-26 16:53:13 +00:00
DateUtils.pm Bug 19816: Implement dateonly for rfc3339 format 2019-02-11 13:19:38 +00:00
EDI.pm Bug 22611: Correction for call to get create_item in EDI.pm 2019-04-15 11:30:26 +01:00
Edifact.pm
…
Email.pm
…
Exceptions.pm Bug 20590: Improve Koha::Exceptions in string context 2018-04-19 12:46:04 -03:00
ExternalContent.pm Bug 17602: Koha::ExternalContent->koha_patron() will retutn undef rather than die if user not logged in 2018-10-01 13:56:38 +00:00
FieldMapping.pm
…
FieldMappings.pm
…
FrameworkPlugin.pm Bug 22124: Update cataloguing plugin system to not generate type parameter in script tag 2019-02-01 14:53:17 +00:00
Hold.pm Bug 21478: Make Koha::Hold->suspend reject found holds 2019-02-01 12:00:57 +00:00
Holds.pm Bug 16187: Add a script to cancel unfilled holds after a specified number of days 2017-10-20 16:51:20 -03:00
I18N.pm Bug 15395: Use POSIX::setlocale 2018-11-08 16:40:05 +00:00
Illcomment.pm Bug 18591: (follow-up) Add more POD 2018-10-27 13:15:59 +00:00
Illcomments.pm Bug 18591: Fix pluralization of type 2018-10-27 15:53:34 +00:00
Illrequest.pm Bug 22464: Pass forward parameters 2019-04-29 10:40:10 +01:00
Illrequestattribute.pm Bug 7317: Handle backend absense more gracefuly 2017-11-09 11:42:14 -03:00
Illrequestattributes.pm Bug 7317: QA followup 2017-11-09 11:42:14 -03:00
Illrequests.pm Bug 7317: QA followup 2017-11-09 11:42:14 -03:00
IssuingRule.pm
…
IssuingRules.pm Bug 17530: (QA follow-up) Fix caching error 2018-09-07 13:16:10 +00:00
Item.pm Bug 22899: (QA follow-up) Change accessor name 2019-05-24 14:36:41 +01:00
ItemType.pm Bug 21610: Remove specific changes we made previously 2019-02-04 11:12:24 +00:00
ItemTypes.pm
…
Items.pm
…
Libraries.pm Bug 7614: (QA follow-up) Remove unused variable 2019-01-31 16:33:57 +00:00
Library.pm Bug 11897: (QA follow-up) Remove rebase leftover 2018-10-09 15:46:05 +00:00
Linktracker.pm
…
Localization.pm
…
Localizations.pm
…
Logger.pm
…
Manual.pm Bug 22958: Fix help link on the SMS providers page 2019-06-12 22:13:14 +00:00
MarcSubfieldStructure.pm
…
MarcSubfieldStructures.pm
…
MetaSearcher.pm
…
MetadataIterator.pm
…
MetadataRecord.pm Bug 19096: Make Default authoritative in core modules 2017-12-07 14:44:15 -03:00
MoreUtils.pm Bug 19069: (follow-up) Remove perlcritic error 2017-10-27 14:58:16 -03:00
News.pm
…
NewsItem.pm
…
OAuth.pm Bug 20612: (QA follow-up) Fix typo in method POD 2018-05-09 12:56:01 -03:00
OAuthAccessToken.pm Bug 20402: Add missing POD 2018-05-08 15:55:43 -03:00
OAuthAccessTokens.pm Bug 20402: Add missing POD 2018-05-08 15:55:43 -03:00
Object.pm Bug 21610: Improve default values for dates 2019-02-04 11:13:50 +00:00
Objects.pm Bug 20767: Display a stack trace when a method is not covered by tests 2018-05-29 13:54:30 +00:00
Patron.pm Bug 23688: System preference uppercasesurnames broken by typo 2019-11-13 22:41:18 +00:00
Patrons.pm Bug 21337: (QA follow-up) Rename exception code 2018-10-26 16:06:57 +00:00
Plugins.pm Bug 19081: Do not list plugins that have been uninstalled 2017-09-01 13:02:27 -03:00
RDF.pm Bug 18586: Create module to mint RDF subject URIs 2018-08-09 12:11:16 +00:00
Rating.pm
…
Ratings.pm
…
RecordProcessor.pm
…
RefundLostItemFeeRule.pm
…
RefundLostItemFeeRules.pm
…
Report.pm Bug 20052: (follow-up) Fix QA tool complaints and bad copy 2018-04-02 18:08:06 -03:00
Reports.pm Bug 20052: (follow-up) Fix QA tool complaints and bad copy 2018-04-02 18:08:06 -03:00
Review.pm
…
Reviews.pm Bug 18403: Deal with the DB user 2018-02-12 15:41:42 -03:00
Schema.pm
…
SearchEngine.pm
…
SearchField.pm Bug 18316: (follow-up) Koha::SearchField::search_marc_maps return a result set - code refactoring for gettings weighted fields - Koha::SearchFields::weighted_fields return a result set 2018-11-07 22:00:31 +00:00
SearchFields.pm Bug 18316: (follow-up) Koha::SearchField::search_marc_maps return a result set - code refactoring for gettings weighted fields - Koha::SearchFields::weighted_fields return a result set 2018-11-07 22:00:31 +00:00
SearchMarcMap.pm
…
SearchMarcMaps.pm
…
Serial.pm
…
Serials.pm
…
SimpleMARC.pm Bug 13560: Add an 'Add' option for marc modification templates 2018-07-19 17:22:18 +00:00
Sitemapper.pm
…
StockRotationItem.pm Bug 11897: Stockrotation 2018-10-09 15:46:05 +00:00
StockRotationItems.pm Bug 11897: Stockrotation 2018-10-09 15:46:05 +00:00
StockRotationRota.pm Bug 11897: Stockrotation 2018-10-09 15:46:05 +00:00
StockRotationRotas.pm Bug 22566: Fix some more issues 2019-07-25 20:30:26 +00:00
StockRotationStage.pm Bug 11897: Stockrotation 2018-10-09 15:46:05 +00:00
StockRotationStages.pm Bug 11897: Stockrotation 2018-10-09 15:46:05 +00:00
Subscription.pm Bug 21474: Add the Koha::Subscription->frequency method 2018-11-06 20:26:21 +00:00
Subscriptions.pm
…
Suggestion.pm Bug 13012 - suggestion.suggesteddate should be set to NOW if not defined 2017-08-10 16:25:34 -03:00
SuggestionEngine.pm
…
Suggestions.pm
…
Tag.pm Bug 21846: Add Koha::Tags::Approval(s) and Koha::Tags::Index(es) 2019-03-19 09:57:07 +00:00
Tags.pm Bug 21846: Add Koha::Tags::Approval(s) and Koha::Tags::Index(es) 2019-03-19 09:57:07 +00:00
Token.pm Bug 21998: Throw exception on bad pattern 2019-04-01 11:38:13 +01:00
UploadedFile.pm Bug 20727: (QA follow-up) Fix Upload.t and Plugins.t 2018-06-22 16:10:10 +00:00
UploadedFiles.pm
…
Uploader.pm Bug 19633: Use alphanumeric error codes in upload 2018-08-10 10:10:46 +00:00
Virtualshelf.pm Bug 18672: Fix overwriting creation date with modification date when editing list 2017-07-17 13:19:24 -03:00
Virtualshelfcontent.pm
…
Virtualshelfcontents.pm
…
Virtualshelfshare.pm Bug 11943: Prevent double accepts in Koha::Virtualshelfshare 2018-05-11 10:52:43 -03:00
Virtualshelfshares.pm
…
Virtualshelves.pm Bug 21612: Remove incorrect GROUP BY's from Koha::VirtualShelves 2018-10-26 16:31:25 +00:00
XSLT_Handler.pm Bug 20272: Replace error numbers by codes in XSLT_Handler 2018-07-02 12:12:48 +00:00
Z3950Server.pm Bug 20047: Add Koha::Z3950Server Oject and use it to get server count 2018-04-20 13:34:41 -03:00
Z3950Servers.pm Bug 20047: Add Koha::Z3950Server Oject and use it to get server count 2018-04-20 13:34:41 -03:00