Replacing 'director' by 'author' on video or movie types when exporting with Better BibLaTeX
I'm trying to figure out how this has to be done, but I fail in someway. So, because of that, I just tried to add the author field catching director.
I think it is such an easy postscript like this:
if (Translator.BetterBibLaTeX && this.item.itemType === 'video') {
this.add({ name: 'author', value: this.item.director })
}
It does not work. I tried this:
if (Translator.BetterBibLaTeX && this.item.itemType === 'video') {
this.add({ name: 'author', value: this.item.director })
this.add({ name: 'platform', value:'test'})
}
Then "debugging" if the conditional was running. Platform field isn't in the exported results neither.
Maybe 'video' is not the type word?
PS: is not working with 'film' type neither, by the way.
=(
I think it is such an easy postscript like this:
if (Translator.BetterBibLaTeX && this.item.itemType === 'video') {
this.add({ name: 'author', value: this.item.director })
}
It does not work. I tried this:
if (Translator.BetterBibLaTeX && this.item.itemType === 'video') {
this.add({ name: 'author', value: this.item.director })
this.add({ name: 'platform', value:'test'})
}
Then "debugging" if the conditional was running. Platform field isn't in the exported results neither.
Maybe 'video' is not the type word?
PS: is not working with 'film' type neither, by the way.
=(
https://github.com/zotero/translators/blob/master/IMDb.js#L155
You'd probably have to account for that in your postscript.
* to be quite precise that's not how they're stored (they're in an sqlite table), but that's how they're represented by the internal API, which is all that's relevant here
I will write here if I get something.
Thanks so much!