[Zotero 7] Web Translator's hidden preference cannot be modified
Platform: Win10, Ubuntu22.04
Zotero version: 7
The problem is that the zotero connector doesn't save supplemental files from scraping a webpage. So to fix that, I looked into the web translators. The first issue I found is the hidden preferences are no longer effective, even after being manually set in the Zotero Connector's advanced config menu.
To be more specific, if one goes to check attachSupplementary (see [1]) in the Scaffold editor, it is always false. That's why the attachments are never saved.
Here is how to reproduce:
0. Modify attachSupplementary to be true following [1]
1. Go to the Scaffold editor in developer's tool of Zotero7 (under the guidance of [2])
2. Open the Frontier.js translator
3. Add after line 119 (Check it online here [3])
Z.debug(supplementOpts.attach);
or
Z.getHiddenPref("attachSupplementary");
4. Run any test and check the output.
I wonder if it's invalidated on purpose? If yes I will stop investigating it and keep all the updated translators to myself, instead of PR to the public repo of translators.
[1] https://www.zotero.org/support/preferences/hidden_preferences#translator_preferences
[2] https://www.zotero.org/support/dev/translators/coding
[3] https://github.com/e-zz/translators/blob/390066d6de67d29f58e9a1d9ad481f7ca780b47c/Frontiers.js#L119
Zotero version: 7
The problem is that the zotero connector doesn't save supplemental files from scraping a webpage. So to fix that, I looked into the web translators. The first issue I found is the hidden preferences are no longer effective, even after being manually set in the Zotero Connector's advanced config menu.
To be more specific, if one goes to check attachSupplementary (see [1]) in the Scaffold editor, it is always false. That's why the attachments are never saved.
Here is how to reproduce:
0. Modify attachSupplementary to be true following [1]
1. Go to the Scaffold editor in developer's tool of Zotero7 (under the guidance of [2])
2. Open the Frontier.js translator
3. Add after line 119 (Check it online here [3])
Z.debug(supplementOpts.attach);
or
Z.getHiddenPref("attachSupplementary");
4. Run any test and check the output.
I wonder if it's invalidated on purpose? If yes I will stop investigating it and keep all the updated translators to myself, instead of PR to the public repo of translators.
[1] https://www.zotero.org/support/preferences/hidden_preferences#translator_preferences
[2] https://www.zotero.org/support/dev/translators/coding
[3] https://github.com/e-zz/translators/blob/390066d6de67d29f58e9a1d9ad481f7ca780b47c/Frontiers.js#L119