https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37434 --- Comment #20 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to Baptiste Wojtkowski (bwoj) from comment #17)
In fact, they are not used the same way : "copyrightdate" is de facto the name used in database to sort by date of publication, in MARC21, "copyrightdate" and in UNIMARC 'publicationyear'. This is why we need to tell the template "I need to sort by publicationyear" The code added in the template is just the corresponding entry for the sortfield publicationyear, as there is one for each possible sortfield.
Or you mean you want to do the test directly on the template ? I don't feel like it would make it more clean, do you ?
Looks better now. Too bad that Koha makes this distinction. It is a potential source of confusion and bugs. Will pass QA now. -- You are receiving this mail because: You are watching all bug changes.