Ordering behaviour of subcollection folders
Hi everybody,
over the last months I prepared a grant proposal, which included the CVs - and therefore bibliographies - of the participating researchers, totaling in ~ 25 separate bibliographies.
As Zotero does not support multiple bibliographies as far as I know, I created the literature list for the main text (~100 refs) as usual, but created the individual ref lists of the CVs (10 refs) by having a subcollection within zotero per researcher and exporting it with the "Create Bibliography from Items" command.
Now, the exported bibliography is then sorted according to the order of items in the subcollection.
As it makes sense for the researchers to have their most recent publications first, it was no problem to sort the list by inverse (descending) date.
This came with a problem however: The second sort, which was done by Author, was also inversed (author with Z before A), which is very counter intuitive for such kind of lists and some people were irritated by that.
So finally my questions:
1) Is there a way to decouple the sort direction (ascending/descending) of the primary and secondary sort within the subcollections, so that I can get most recent (highest year-number) and author by alphabet ("lowest" letter) the same time?
2) I read somewhere in the forum, that primary and secondary sort-order is always synced (both either ascending or descending) and thus hard coded. If that is indeed the case, would it be feasible to simply override this behavior in the source? I am only a JS layman, though.
3) Would there have actually been a more clever way to approach my problem with the multiple bibliographies in the beginning, thus preventing the need to deal with sort order from the beginning?
Thank you for reading this far and all comments are appreciated!
over the last months I prepared a grant proposal, which included the CVs - and therefore bibliographies - of the participating researchers, totaling in ~ 25 separate bibliographies.
As Zotero does not support multiple bibliographies as far as I know, I created the literature list for the main text (~100 refs) as usual, but created the individual ref lists of the CVs (10 refs) by having a subcollection within zotero per researcher and exporting it with the "Create Bibliography from Items" command.
Now, the exported bibliography is then sorted according to the order of items in the subcollection.
As it makes sense for the researchers to have their most recent publications first, it was no problem to sort the list by inverse (descending) date.
This came with a problem however: The second sort, which was done by Author, was also inversed (author with Z before A), which is very counter intuitive for such kind of lists and some people were irritated by that.
So finally my questions:
1) Is there a way to decouple the sort direction (ascending/descending) of the primary and secondary sort within the subcollections, so that I can get most recent (highest year-number) and author by alphabet ("lowest" letter) the same time?
2) I read somewhere in the forum, that primary and secondary sort-order is always synced (both either ascending or descending) and thus hard coded. If that is indeed the case, would it be feasible to simply override this behavior in the source? I am only a JS layman, though.
3) Would there have actually been a more clever way to approach my problem with the multiple bibliographies in the beginning, thus preventing the need to deal with sort order from the beginning?
Thank you for reading this far and all comments are appreciated!
This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
Upgrade Storage
$ firefox -jsconsoleopen the Zotero tab in the browser by clicking the Z icon, paste this code snippet into js console and then try switching between collections.The sort order is indeed coupled for primary and secondary sort fields, so what I did here is reversed the sort order specifically for the creator field on line 113
Hope this helps.
This is, however, only a transient solution and after a FF restart this is needs to be redone. Would there be a way to make this permanent?
And one addition: The secondary sort is (of course) dependent on the primary sort. However, Zotero sorts dates differently, depending on how precise the date is. This can in turn lead to the secondary (Creator) sort being off.
Example (correctly sorted, with adomasven's patch):
(Name | Date)
B et al. 2014
H et al. 2014
L et al. 2014
However, sometimes when downloading pub infos from a journal, you get also month and day of publication, e.g. 2014-12 (yyyy-mm). Then this sorts to
(Name | Date)
H et al. 2014-12
B et al. 2014
L et al. 2014
Would there be a similar trick to only consider the year for sorting? (Except for manually reformatting all dates, of course ;-)