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.
Created attachment 169885 [details] [review] Bug 37434: Sort by publicationyear when copyrightdate is set in UNIMARC
Created attachment 169886 [details] [review] Bug 37434: Sort by publicationyear when copyrightdate is set in UNIMARC
Created attachment 169888 [details] [review] Bug 37434: Sort by publicationyear when copyrightdate is set in UNIMARC
Created attachment 169889 [details] [review] Bug 37434: Sort by publicationyear when copyrightdate is set in UNIMARC
Created attachment 169891 [details] [review] Bug 37434: Sort by publicationyear when copyrightdate is set in UNIMARC
Created attachment 169892 [details] [review] Bug 37434: Sort by publicationyear when copyrightdate is set in UNIMARC
Created attachment 169997 [details] [review] Bug 37434: Sort by publicationyear when copyrightdate is set in UNIMARC
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.
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>