ACM Digital Library
I use Zotero on a Mac with the Safari extension. I use the ACM digital library extensively, however, the connector never works with the ACM Digital Library on Safari. Other sites work, and the ACM DL works fine on Chrome.
Zotero Version: 4.0.28.8
Connector Version: 4.0.28-1
Safari 9.0.3
OSX 10.11.3
I did a little debugging and it appears to fail here:
function scrape(doc) {
var abs = ZU.xpath(doc, '//div/div[@style="display:inline"]')[0];
// Get genric URL, preferring the conference version.
var url = ZU.xpath(doc, '//meta[@name="citation_conference"]\
/following-sibling::meta[@name="citation_abstract_html_url"]/@content')[0]
|| ZU.xpath(doc, '//meta[@name="citation_abstract_html_url"]/@content')[0];
url = url.textContent;
...
}
The XPath expressions always return undefined. I put a breakpoint right before the xpath expression and the following always returns undefined:
document.getElementsByTagName('meta')
I'm thinking the problem is with the HTML on the ACM's homepage -- the question is what would be an acceptable fix?
I think to improve user experience, the translators should work by sending the HTML to a backend server and do the processing there. That way we would get consistent translator performance across all browsers.
Thoughts?
Best,
JLS
Zotero Version: 4.0.28.8
Connector Version: 4.0.28-1
Safari 9.0.3
OSX 10.11.3
I did a little debugging and it appears to fail here:
function scrape(doc) {
var abs = ZU.xpath(doc, '//div/div[@style="display:inline"]')[0];
// Get genric URL, preferring the conference version.
var url = ZU.xpath(doc, '//meta[@name="citation_conference"]\
/following-sibling::meta[@name="citation_abstract_html_url"]/@content')[0]
|| ZU.xpath(doc, '//meta[@name="citation_abstract_html_url"]/@content')[0];
url = url.textContent;
...
}
The XPath expressions always return undefined. I put a breakpoint right before the xpath expression and the following always returns undefined:
document.getElementsByTagName('meta')
I'm thinking the problem is with the HTML on the ACM's homepage -- the question is what would be an acceptable fix?
I think to improve user experience, the translators should work by sending the HTML to a backend server and do the processing there. That way we would get consistent translator performance across all browsers.
Thoughts?
Best,
JLS
Blocked a frame with origin "http://s7.addthis.com" from accessing a frame with origin "http://dl.acm.org". Protocols, domains, and ports must match.
(anonymous function)inject.js:221
ACM Digital Library is a pretty important resource, so I'd love to see this addressed (and I'm sure many silent others would too).
Zotero 4.0.29.11
Zotero Connector 4.0.28
Safari 10.0
MacOS 10.12 (Sierra)