I am not an expert in developing a Zotero translator. When I encountered a failure to save a PDF from ACM DL, I found that the PDF element in the ACM DL had been changed.
where the title is "View PDF" instead of "PDF" so that the selector fails to locate the element and find the correct href.
I think the selector should be doc.querySelector('a[title="View PDF"]'), but I do not have an environment to test whether it is correct. Can anyone confirm this?
I am not an expert in developing a Zotero translator. When I encountered a failure to save a PDF from ACM DL, I found that the PDF element in the ACM DL had been changed.
Currently, the query selector is
doc.querySelector('a[title=PDF]')
(https://github.com/zotero/translators/blob/master/ACM%20Digital%20Library.js#L170), which will find an element with a "PDF" title, but the element is actuallywhere the title is "View PDF" instead of "PDF" so that the selector fails to locate the element and find the correct href.
I think the selector should be
doc.querySelector('a[title="View PDF"]')
, but I do not have an environment to test whether it is correct. Can anyone confirm this?