[Bug 37218] New: Sorting by publication date works unexpectedly in UNIMARC
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37218 Bug ID: 37218 Summary: Sorting by publication date works unexpectedly in UNIMARC Change sponsored?: --- Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Lists Assignee: koha-bugs@lists.koha-community.org Reporter: baptiste.wojtkowski@biblibre.com QA Contact: testopia@bugs.koha-community.org CC: m.de.rooy@rijksmuseum.nl Sorting by publication date sorts the list by field biblio.copyrightdate which is not bound with an UNIMARC field. I am not sure about the fix. Should we check the marc flavour to determine if we sort by biblio.copyrightdate and biblioitems.publicationyear ? -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37218 Baptiste Wojtkowski (bwoj) <baptiste.wojtkowski@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff Patch complexity|--- |Trivial patch -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37218 --- Comment #1 from Baptiste Wojtkowski (bwoj) <baptiste.wojtkowski@biblibre.com> --- Created attachment 168437 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=168437&action=edit Bug 37218: Sorting by publication date works unexpectedly in UNIMARC Steps to reproduce: 1 - Open a Koha with syspref "UNIMARC" set 2 - Search for items 3 - Sort by publication date -> there should be no change whatever you do In my previous comment, I had not noticed that this is clearly a bug: the results from search are put in the field "copyrightdate" whatever the MARC flavour so the line checking for marcflavour to pick the sort field is obsolete TEST PLAN: 1 - Open a Koha with syspref "UNIMARC" set 2 - Search for items 3 - Sort by publication date -> there should be no change whatever you do 4 - Apply patch and repeat 2&3 -> items should be changed -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37218 Amaury GAU <amaury.gau@bulac.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amaury.gau@bulac.fr --- Comment #2 from Amaury GAU <amaury.gau@bulac.fr> --- (In reply to Baptiste Wojtkowski (bwoj) from comment #1) Hi Baptiste, Here's what tested.
3 - Sort by publication date -> there should be no change whatever you do
I searched "science" and sorted by "Publication/Copyright date: newest to oldest". The records are somewhat sorted but are still not in the expected order.
In my previous comment, I had not noticed that this is clearly a bug: the results from search are put in the field "copyrightdate" whatever the MARC flavour so the line checking for marcflavour to pick the sort field is obsolete
TEST PLAN: 1 - Open a Koha with syspref "UNIMARC" set 2 - Search for items 3 - Sort by publication date -> there should be no change whatever you do 4 - Apply patch and repeat 2&3 -> items should be changed
After applying the patch, same behaviour occured. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37218 Baptiste Wojtkowski (bwoj) <baptiste.wojtkowski@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |RESOLVED Resolution|--- |INVALID --- Comment #3 from Baptiste Wojtkowski (bwoj) <baptiste.wojtkowski@biblibre.com> --- Bug was incorrectly reported and fix is breaking a working functionnality -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org