GovInfo Translator
From the list of translators on GitHub, it looks like GovInfo should be supported. (https://github.com/zotero/translators/blob/master/govinfo.js)
But, when I go to GovInfo, I cannot find a page that changes the Zotero Connector icon in Firefox to anything but "webpage." Following is an example of what I want to add. (https://www.govinfo.gov/app/details/BILLS-117hr3304rfs)
Maybe it is just something I am doing, or my setup, but can anyone else get Zotero to understand GovInfo sources? Thanks.
But, when I go to GovInfo, I cannot find a page that changes the Zotero Connector icon in Firefox to anything but "webpage." Following is an example of what I want to add. (https://www.govinfo.gov/app/details/BILLS-117hr3304rfs)
Maybe it is just something I am doing, or my setup, but can anyone else get Zotero to understand GovInfo sources? Thanks.
How about this one, does that work?
https://www.govinfo.gov/app/details/GPO-WMD
For your reference if needed, my specifications are as follows:
Zotero 6.0.15
Zotero Connector 5.0.98
Firefox 105.03
Windows 11
For my original link to govinfo, if I go to the "Document in Context" tab rather than the summary tab, then I get what I think is the white icon for a "document." When I select the icon in Firefox, it gives the following error: "An error occurred saving with govinfo. Attempting to save using Embedded Metadata instead."
For the link you sent, if I go to the "Document in Context" tab rather than the summary tab, I get the white document icon. When I select the icon in Firefox, it will correctly import metadata and not give an error. It does not download the document PDF.
If I go to https://www.govinfo.gov/app/details/GPO-WMD/GPO-WMD-1-4/summary and then select the "Document in Context" tab rather than the summary tab, I get the white document icon. When I select the icon in Firefox, it will correctly import metadata and not give an error. This time it uses "Book section" as the item type. That seems correct. This time, it also correctly downloads the document PDF.
Everything else is trickier -- @AbeJellinek wrote the code on this, maybe he has an idea on how to make the code more robust. FWIW, though, toggling between the Summary & Document in Context tab looks like it will always "activate" the translator, so you can use that as a reliable workaround.
I'd expect the translator to fail consistently for Bills and Hearings, though, until we fixed that issue.
I'm not sure what all at GovInfo you try to make that translator work for, but it also worked for https://www.govinfo.gov/app/details/GPO-WMD/GPO-WMD-1-4/summary .
On the other hand, it does not work on the link Adam Smith posted above. https://www.govinfo.gov/app/details/GPO-WMD and it consumes the XML and HTML of the following, but no the PDF. https://www.govinfo.gov/app/details/CZIC-qh76-2-m3-m36-1992/
I know that GovInfo contains a wide variety of metadata structures and is adding features, so this is probably a moving target. Thanks for your good work.