Bug 37434 - Lists are incorrectly sorted in UNIMARC
Summary: Lists are incorrectly sorted in UNIMARC
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: Lists (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-23 14:53 UTC by Baptiste Wojtkowski (bwoj)
Modified: 2024-08-22 19:30 UTC (History)
1 user (show)

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


Attachments
Bug 37434: Sort by publicationyear when copyrightdate is set in UNIMARC (1.03 KB, patch)
2024-07-31 12:48 UTC, Baptiste Wojtkowski (bwoj)
Details | Diff | Splinter Review
Bug 37434: Sort by publicationyear when copyrightdate is set in UNIMARC (1.27 KB, patch)
2024-07-31 13:07 UTC, Baptiste Wojtkowski (bwoj)
Details | Diff | Splinter Review
Bug 37434: Sort by publicationyear when copyrightdate is set in UNIMARC (1.27 KB, patch)
2024-07-31 13:16 UTC, Baptiste Wojtkowski (bwoj)
Details | Diff | Splinter Review
Bug 37434: Sort by publicationyear when copyrightdate is set in UNIMARC (1.28 KB, patch)
2024-07-31 13:17 UTC, Baptiste Wojtkowski (bwoj)
Details | Diff | Splinter Review
Bug 37434: Sort by publicationyear when copyrightdate is set in UNIMARC (1.28 KB, patch)
2024-07-31 14:04 UTC, Baptiste Wojtkowski (bwoj)
Details | Diff | Splinter Review
Bug 37434: Sort by publicationyear when copyrightdate is set in UNIMARC (1.04 KB, patch)
2024-07-31 14:05 UTC, Baptiste Wojtkowski (bwoj)
Details | Diff | Splinter Review
Bug 37434: Sort by publicationyear when copyrightdate is set in UNIMARC (3.11 KB, patch)
2024-08-02 11:53 UTC, Baptiste Wojtkowski (bwoj)
Details | Diff | Splinter Review
Bug 37434: Sort by publicationyear when copyrightdate is set in UNIMARC (3.56 KB, patch)
2024-08-02 12:03 UTC, Baptiste Wojtkowski (bwoj)
Details | Diff | Splinter Review
Bug 37434: Sort by publicationyear when copyrightdate is set in UNIMARC (3.62 KB, patch)
2024-08-22 19:30 UTC, Roman Dolny
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Baptiste Wojtkowski (bwoj) 2024-07-23 14:53:11 UTC
In UNIMARC, when creating a list using sort by copyrightdate, it sorts using the MARC21 field "copyrightdate", which is not existing in UNIMARC.

Note: the inventory search uses the field publicationyear to sort, which is the correct field to use here.
Comment 1 Baptiste Wojtkowski (bwoj) 2024-07-31 12:48:25 UTC Comment hidden (obsolete)
Comment 2 Baptiste Wojtkowski (bwoj) 2024-07-31 13:07:39 UTC Comment hidden (obsolete)
Comment 3 Baptiste Wojtkowski (bwoj) 2024-07-31 13:16:25 UTC Comment hidden (obsolete)
Comment 4 Baptiste Wojtkowski (bwoj) 2024-07-31 13:17:55 UTC Comment hidden (obsolete)
Comment 5 Baptiste Wojtkowski (bwoj) 2024-07-31 14:04:28 UTC Comment hidden (obsolete)
Comment 6 Baptiste Wojtkowski (bwoj) 2024-07-31 14:05:36 UTC Comment hidden (obsolete)
Comment 7 Baptiste Wojtkowski (bwoj) 2024-08-02 11:53:22 UTC Comment hidden (obsolete)
Comment 8 Baptiste Wojtkowski (bwoj) 2024-08-02 12:03:21 UTC
Created attachment 169998 [details] [review]
Bug 37434: Sort by publicationyear when copyrightdate is set in UNIMARC

TEST PLAN (on an UNIMARC machine):
1 - Create a list with items with different publicationyear if you do not have one.
2 - Edit the list and select "copyrightdate as date"
3 - See they are not sorted by date
4 - Apply patch
5 - See they are now sorted by date.

Note: The transformation of copyrightdate before loading the template is
only useful if the list is sorted by copyrightdate, which is quite
inconsistent but is actual for every Kohas at the moment.
Comment 9 Roman Dolny 2024-08-22 19:30:47 UTC
Created attachment 170614 [details] [review]
Bug 37434: Sort by publicationyear when copyrightdate is set in UNIMARC

TEST PLAN (on an UNIMARC machine):
1 - Create a list with items with different publicationyear if you do not have one.
2 - Edit the list and select "copyrightdate as date"
3 - See they are not sorted by date
4 - Apply patch
5 - See they are now sorted by date.

Note: The transformation of copyrightdate before loading the template is
only useful if the list is sorted by copyrightdate, which is quite
inconsistent but is actual for every Kohas at the moment.

Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>