zotero-better-bibtex: [Bug]: postscript silently ignored
Debug log ID
89W2SRQA-refs-apse
Description:
I am experiencing a bug with the code used to delete fields for certain reference types in the BibLaTeX output using postscript in version 6.7.59 of Zotero. Specifically, the following code fails to delete the “url” field for certain reference types, although it worked in the previous version:
if (
Translator.BetterBibLaTeX &&
(item.itemType == "book" ||
item.itemType == "bookSection" ||
item.itemType == "journalArticle" ||
item.itemType == "thesis")
) {
delete this.has.url;
}
The expected behavior is that the “url” field should be deleted for the reference types “book”, “bookSection”, “journalArticle”, and “thesis” in the BibLaTeX output using postscript, as it was in the previous version.
Steps to reproduce:
- Create a reference of one of the reference types mentioned above.
- Export the reference in BibLaTeX format using postscript.
- Check the output for the presence of the “url” field.
Actual result: The “url” field is present in the output, despite the code above.
Expected result: The “url” field should be deleted from the output, as it was in the previous version.
Thanks for your help in fixing this issue.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 29 (18 by maintainers)
Commits related to this issue
- more logging for #2445 — committed to retorquere/zotero-better-bibtex by retorquere a year ago
- Merge branch 'gh-2448' into gh-2445 — committed to retorquere/zotero-better-bibtex by retorquere a year ago
- disable cache for #2445 #2448 — committed to retorquere/zotero-better-bibtex by retorquere a year ago
- fixes #2445 — committed to retorquere/zotero-better-bibtex by retorquere a year ago
- fixes #2445 — committed to retorquere/zotero-better-bibtex by retorquere a year ago
@retorquere Thanks for your work! The latest version works perfectly!
Thanks again @retorquere !!!