Help removing spaces and dots from file renaming behaviour
Hello,
I've recently migrated to Zotero 7 and I'm having a lot of difficulty parsing file names in exactly the way I would like for consistency with my current database.
I'm trying to get something like this:
L. Guindon, P. Bernier, S. Gauthier, G. Stinson, P. Villemaire, and A. Beaudoin, “Missing forest cover gains in boreal forests explained,” Ecosphere, vol. 9, no. 1, p. e02094, Jan. 2018, doi: 10.1002/ecs2.2094.
Into this:
Guindon_etal_2018_Ecosphere.pdf
So far I got this syntax:
{{ firstCreator suffix="_" }}{{ year suffix="_" }}{{ journalAbbreviation }}
Which produces this:
Guindon et al._2018_Ecosphere.pdf
But I'm uncertain how to strip spaces and dots and add a "_" prefix to the "etal".
Thanks for any help you can provide
I've recently migrated to Zotero 7 and I'm having a lot of difficulty parsing file names in exactly the way I would like for consistency with my current database.
I'm trying to get something like this:
L. Guindon, P. Bernier, S. Gauthier, G. Stinson, P. Villemaire, and A. Beaudoin, “Missing forest cover gains in boreal forests explained,” Ecosphere, vol. 9, no. 1, p. e02094, Jan. 2018, doi: 10.1002/ecs2.2094.
Into this:
Guindon_etal_2018_Ecosphere.pdf
So far I got this syntax:
{{ firstCreator suffix="_" }}{{ year suffix="_" }}{{ journalAbbreviation }}
Which produces this:
Guindon et al._2018_Ecosphere.pdf
But I'm uncertain how to strip spaces and dots and add a "_" prefix to the "etal".
Thanks for any help you can provide
{{ firstCreator suffix="_" replaceFrom="[\s.]+" replaceTo="_" regexOpts="g" }}{{ year suffix="_" }}{{ journalAbbreviation }}
Which gives this:
Guindon_et_al_2018_Ecosphere.pdf
I'm still hoping to collapse "et_al" into "etal"
Thanks :)
{{ firstCreator replaceFrom=" et al.$" replaceTo="_etal" suffix="_"}}{{ year suffix="_" }}{{ journalAbbreviation }}
Which gives this:
Guindon_etal_2018_Ecosphere.pdf