working blind on Zotero translators

11 views
Skip to first unread message

weng...@yahoo.com

unread,
Sep 4, 2025, 3:15:06 AM (3 days ago) Sep 4
to zotero-dev
Hi all.
I have inherited some Zotero translators that I have to update and maintain. I am working on a system that is not connected to the internet, and all of the translators are customized for our internal sites' various document types.

I know that Zotero has a Scaffold tool for developing and editing translators, but I can't get our sites' pages to load in the browser tab of Scaffold (issue with certs). I have been using Notepad++ to edit the translators, but I have not found an easy consistent way to get direct feedback in the process. I saw a Zotero.debug() function, but I enabled debugging and while the output log was quite lengthy, it never logged anything I attempted to output to it. I have also tried to use an alertMessage() function (bascially alert()) to pass back information on what the translator sees, but I have not had any luck producing an alert message, and I read somewhere that Zotero is contained and won't access the browser window to send the alert (though I think one of the translators did at one point issue an alert that was coded into the translator by the original author). Console.log() doesn't work either.

The only success I have had with getting direct feedback so far was to hard replace metadata on my new Zotero item with variables from the javascript and then see them show up when the item is saved to the library. It has only limited success, and isn't practical for the amount of work I have to do and the amount of direct feedback I need in order to understand why a translator is no longer finding various metadata.

In sum, I need a way to quickly get feedback from within functions to see what values went into the function and how values are changing within the function. Otherwise, I just have blank spots where metadata should be and no way to figure out where it's failing.

Thanks for any help you can provide here.

Sebastian Karcher

unread,
Sep 4, 2025, 6:46:03 AM (3 days ago) Sep 4
to zoter...@googlegroups.com
Z.debug is the way to go. I am guessing you are looking in Zotero itself for it's output, but for translators, virtually all debug output is written to the debug log of the browser connector.
Hth,
Sebastian 

Sent from my phone

--
You received this message because you are subscribed to the Google Groups "zotero-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zotero-dev+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/zotero-dev/d55d30f4-fc9c-44a9-901e-0ff011afec7an%40googlegroups.com.

Abe Jellinek

unread,
Sep 4, 2025, 11:31:22 AM (3 days ago) Sep 4
to zoter...@googlegroups.com
In addition to what Sebastian said, it should be possible to configure Zotero to accept your certificate. See https://www.zotero.org/support/kb/cert_override.

Reply all
Reply to author
Forward
0 new messages