Export item type "software" as "software" instead of "misc" using BBT
Hello everybody,
I'm using a postcript to change the item type exported using BBT from "misc" to "software".
if (Translator.BetterBibLaTeX) {
if (tex.entrytype === 'software') tex.entrytype = 'software'
}
But that's not working... it's working for other item types like "dataset" and "webpage".
I wonder if the item type is really "software" or if I'm missing something.
Cheers!
I'm using a postcript to change the item type exported using BBT from "misc" to "software".
if (Translator.BetterBibLaTeX) {
if (tex.entrytype === 'software') tex.entrytype = 'software'
}
But that's not working... it's working for other item types like "dataset" and "webpage".
I wonder if the item type is really "software" or if I'm missing something.
Cheers!
if (zotero.itemType === 'software') …
Right now you’re comparing a field against a value and then setting the field to that same value, which won’t do anything.
if (Translator.BetterBibTeX && zotero.itemType === 'dataset') {
tex.entrytype = 'dataset'
}
if (Translator.BetterBibTeX && zotero.itemType === 'thesis') {
tex.entrytype = 'thesis'
}
if (Translator.BetterBibTeX && zotero.itemType === 'webpage') {
tex.entrytype = 'online'
}
if (Translator.BetterBibTeX && zotero.itemType === 'software') {
tex.entrytype = 'software'
}
So, it works for the "dataset", "thesis" and "webpage", but not for "software" wherein I keep getting "misc" as output.