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 think it should be

    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.
  • Ops... I'm sorry, I ended up copying & paste the wrong snipet. This is how it looks like:

    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.
  • I believe the Zotero item type is ‘computerProgram’
  • Spot on! It worked with ‘computerProgram’. Thanks!!!
Sign In or Register to comment.