Bug 11150 - Sorting does not respect branch filters ( at least not for accession date )
Summary: Sorting does not respect branch filters ( at least not for accession date )
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor (vote)
Assignee: Galen Charlton
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-28 15:51 UTC by Kyle M Hall
Modified: 2013-10-28 15:51 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kyle M Hall 2013-10-28 15:51:50 UTC
Let us assume LibraryA and LibraryB each have a copy of Book1 and Book2.

LibraryA's copy of Book1 has an acquisition date of 2001, and their copy of Book2 has an acquisition date of 2010. 

LibraryB's copy of Book1 has an acquisition date of 2013, and their copy of Book2 has an aquisition date of 2006.

If we do an advanced search which a branch limit for LibraryA, and sorted by "Acquisition date: newest to oldest", we would expect the results to be ordered:
1. Book2
2. Book1

However, what we actually get is:
1. Book1
2. Book2

This is because the search is sorting by *all* the acquisition dates, not just the acquisition dates of LibraryA's holdings.