Summary: | Allow different default sorting when click author links | ||
---|---|---|---|
Product: | Koha | Reporter: | Nick Clemens (kidclamp) <nick> |
Component: | Searching | Assignee: | Bugs List <koha-bugs> |
Status: | CLOSED FIXED | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | andrew, fridolin.somers, rasa.satinskiene |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | Small patch |
Documentation contact: | Rasa Satinskiene | Documentation submission: | https://gitlab.com/koha-community/koha-manual/-/merge_requests/807 |
Text to go in the release notes: |
Authors and contributors in the detail pages are linked to search for more materials of the same persons or institutions. Before this patch, these would use the normal default sorting, like relevancy, which isn't as helpful for these results. The new system preferences `AuthorLinkSortBy` and `AuthorLinkSortOrder` now allow to change the sort order for these links specifically.
|
Version(s) released in: |
23.11.00
|
Circulation function: | |||
Attachments: |
Bug 33217: Allow specifiying sort field and order for authro links
Bug 33217: DB update Bug 33217: Allow specifiying sort field and order for authro links Bug 33217: DB update Bug 33217: Tidy Bug 33217: Allow specifiying sort field and order for authro links Bug 33217: DB update Bug 33217: Tidy Bug 33217: Allow specifiying sort field and order for authro links Bug 33217: DB update Bug 33217: Tidy Bug 33217: (QA follow-up) Tiny tidy of atomicupdate Bug 33217: (QA follow-up) Improve system preference description |
Description
Nick Clemens (kidclamp)
2023-03-13 19:34:07 UTC
Created attachment 148142 [details] [review] Bug 33217: Allow specifiying sort field and order for authro links When using the facets for author, i.e. limiting a search, it makes sense to preserve the default sort order for the results (relevance, etc) When clicking on an author to search the catalog for all works by an author, it would be nice to be able to optionally specify sorting for the listing - i.e. publication date, or title This patch adds two new system preferences: AuthorLinkSortBy AuthorLinkSortOrder To test: 1 - Do a search in intranet and staff for 'austen' or an author you have multiple titles from 2 - Click the linked name 3 - Note a new search is performed, sorted by field from defaultSortField preference 4 - Apply patch, updatedatabase, restart_all 5 - Ensure nothing has changed by searching again 6 - Set AuthorLinkSortBy to 'date of publication' and AuthorLinkSortORder to asc 7 - Search again, comfirm links obey sorting specific above 8 - Test other values - confirm links are updated in both staff/opac and results/details Created attachment 148169 [details] [review] Bug 33217: DB update Sorting dropdown does not show correct value after applying Created attachment 157795 [details] [review] Bug 33217: Allow specifiying sort field and order for authro links When using the facets for author, i.e. limiting a search, it makes sense to preserve the default sort order for the results (relevance, etc) When clicking on an author to search the catalog for all works by an author, it would be nice to be able to optionally specify sorting for the listing - i.e. publication date, or title This patch adds two new system preferences: AuthorLinkSortBy AuthorLinkSortOrder To test: 1 - Do a search in intranet and staff for 'austen' or an author you have multiple titles from 2 - Click the linked name 3 - Note a new search is performed, sorted by field from defaultSortField preference 4 - Apply patch, updatedatabase, restart_all 5 - Ensure nothing has changed by searching again 6 - Set AuthorLinkSortBy to 'date of publication' and AuthorLinkSortORder to asc 7 - Search again, comfirm links obey sorting specific above 8 - Test other values - confirm links are updated in both staff/opac and results/details Created attachment 157796 [details] [review] Bug 33217: DB update Created attachment 157797 [details] [review] Bug 33217: Tidy Created attachment 157818 [details] [review] Bug 33217: Allow specifiying sort field and order for authro links When using the facets for author, i.e. limiting a search, it makes sense to preserve the default sort order for the results (relevance, etc) When clicking on an author to search the catalog for all works by an author, it would be nice to be able to optionally specify sorting for the listing - i.e. publication date, or title This patch adds two new system preferences: AuthorLinkSortBy AuthorLinkSortOrder To test: 1 - Do a search in intranet and staff for 'austen' or an author you have multiple titles from 2 - Click the linked name 3 - Note a new search is performed, sorted by field from defaultSortField preference 4 - Apply patch, updatedatabase, restart_all 5 - Ensure nothing has changed by searching again 6 - Set AuthorLinkSortBy to 'date of publication' and AuthorLinkSortORder to asc 7 - Search again, comfirm links obey sorting specific above 8 - Test other values - confirm links are updated in both staff/opac and results/details Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org> Created attachment 157819 [details] [review] Bug 33217: DB update Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org> Created attachment 157820 [details] [review] Bug 33217: Tidy Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org> Created attachment 158434 [details] [review] Bug 33217: Allow specifiying sort field and order for authro links When using the facets for author, i.e. limiting a search, it makes sense to preserve the default sort order for the results (relevance, etc) When clicking on an author to search the catalog for all works by an author, it would be nice to be able to optionally specify sorting for the listing - i.e. publication date, or title This patch adds two new system preferences: AuthorLinkSortBy AuthorLinkSortOrder To test: 1 - Do a search in intranet and staff for 'austen' or an author you have multiple titles from 2 - Click the linked name 3 - Note a new search is performed, sorted by field from defaultSortField preference 4 - Apply patch, updatedatabase, restart_all 5 - Ensure nothing has changed by searching again 6 - Set AuthorLinkSortBy to 'date of publication' and AuthorLinkSortORder to asc 7 - Search again, comfirm links obey sorting specific above 8 - Test other values - confirm links are updated in both staff/opac and results/details Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Created attachment 158435 [details] [review] Bug 33217: DB update Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Created attachment 158436 [details] [review] Bug 33217: Tidy Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Created attachment 158437 [details] [review] Bug 33217: (QA follow-up) Tiny tidy of atomicupdate Just adds an end and removes the commented line. Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Created attachment 158438 [details] [review] Bug 33217: (QA follow-up) Improve system preference description * Make sure MARC21 is mentioned, as this only updates MARC21 XSLT files * Move ending punctuation outside the pull down * remove 'obey' - it's not needed Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Pushed to master for 23.11. Nice work everyone, thanks! Enhancement not pushed to 23.05.x Manual updated |