Zotero Connector Empty
I have a site on localhost from which I'm trying to scrap metadata into the connector. This is the situation:
Localhost Site:
- metadata is defined inside the head element
- the connector detects the metadata and shows as a yellow folder icon on the browser
- when clicked, the selection list is empty
Test Site (sciencedirect.com):
- works as expected, showing list of items to select
Please find underneath more detailed info on the tests.
I would very much appreciate your help on this!
--------------------- Tests: ------------------------------------
Metadata (different formats were tested with the same result: empty selectors' list):
format 1)
format 2)
format 3)
Debug Output Logging (just an excerpt):
(3)(+0011283): Connector_Browser: onActivated for http://localhost:3040/
(3)(+0000009): progressWindowIframe.mouseleave message received in injected page http://localhost:3040/
(3)(+0002498): progressWindowIframe.hidden message received in injected page chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/progressWindow/progressWindow.html
(3)(+0001388): Connector_Browser: onFrameLoaded for http://localhost:3040/; http://localhost:3040/
(3)(+0000049): HTTP GET chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/utilities/resource/dateFormats.json
(3)(+0000761): HTTP GET chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/utilities/resource/dateFormats.json
(3)(+0000018): Translators: Looking for translators for http://localhost:3040/
(4)(+0000009): Translate: Binding sandbox to http://localhost:3040/
(4)(+0000004): Translate: Parsing code for unAPI (e7e01cac-1e37-4da6-b078-a0e8343b0e98, 2019-06-10 23:11:21)
(4)(+0000003): Translate: Parsing code for COinS (05d07af9-105a-4572-99f6-a8e231c0daef, 2021-06-01 17:38:46)
(4)(+0000018): Translate: Parsing code for Embedded Metadata (951c027d-74ac-47d4-a107-9c3069ab7b48, 2024-06-13 15:58:28)
(3)(+0000000): Translate: Embedded Metadata: found 2 meta tags
(4)(+0000004): Translate: Parsing code for DOI (c159dcfe-8a53-4301-a499-30f6549c340d, 2024-06-04 14:34:03)
(3)(+0002767): Connector_Browser: onActivated for chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/preferences/preferences.html#advanced
(3)(+0000001): HTTP POST http://127.0.0.1:23119/connector/ping
(3)(+0000003): progressWindowIframe.blurred message received in injected page http://localhost:3040/
(3)(+0000006): Connector: Method ping succeeded
Localhost Site:
- metadata is defined inside the head element
- the connector detects the metadata and shows as a yellow folder icon on the browser
- when clicked, the selection list is empty
Test Site (sciencedirect.com):
- works as expected, showing list of items to select
Please find underneath more detailed info on the tests.
I would very much appreciate your help on this!
--------------------- Tests: ------------------------------------
Metadata (different formats were tested with the same result: empty selectors' list):
format 1)
<link rel="citation-book-title" href="Title for Article 1">
<link rel="citation-author" href="Author 1">
<link rel="citation-date" href="2023-12-25">
<link rel="citation-journal_title" href="Journal 1">
<link rel="citation-doi" href="10.1234/article1.doi">
<link rel="citation-book-title" href="Title for Article 2">
<link rel="citation-author" href="Author 2">
<link rel="citation-date" href="2023-12-25">
<link rel="citation-journal_title" href="Journal 2">
<link rel="citation-doi" href="10.1234/article2.doi">
format 2)
<script type="application/ld+json">
[
{
"@context": "http://schema.org",
"@type": "ScholarlyArticle",
"name": "Title for Article 1",
"author": "Author 1",
"datePublished": "2023-12-25",
"isPartOf": {
"@type": "Periodical",
"name": "Journal 1"
},
"identifier": "10.1234/article1.doi"
},
{
"@context": "http://schema.org",
"@type": "ScholarlyArticle",
"name": "Title for Article 2",
"author": "Author 2",
"datePublished": "2023-12-25",
"isPartOf": {
"@type": "Periodical",
"name": "Journal 2"
},
"identifier": "10.1234/article2.doi"
}
]
</script>
format 3)
<div class="citation-item">
<meta name="citation_title" content="Title for Article 1">
<meta name="citation_author" content="Author 1">
<meta name="citation_date" content="2023-12-25">
<meta name="citation_journal_title" content="Journal 1">
<meta name="citation_doi" content="10.1234/article1.doi">
</div>
<div class="citation-item">
<meta name="citation_title" content="Title for Article 2">
<meta name="citation_author" content="Author 2">
<meta name="citation_date" content="2023-12-25">
<meta name="citation_journal_title" content="Journal 2">
<meta name="citation_doi" content="10.1234/article2.doi">
</div>
Debug Output Logging (just an excerpt):
(3)(+0011283): Connector_Browser: onActivated for http://localhost:3040/
(3)(+0000009): progressWindowIframe.mouseleave message received in injected page http://localhost:3040/
(3)(+0002498): progressWindowIframe.hidden message received in injected page chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/progressWindow/progressWindow.html
(3)(+0001388): Connector_Browser: onFrameLoaded for http://localhost:3040/; http://localhost:3040/
(3)(+0000049): HTTP GET chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/utilities/resource/dateFormats.json
(3)(+0000761): HTTP GET chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/utilities/resource/dateFormats.json
(3)(+0000018): Translators: Looking for translators for http://localhost:3040/
(4)(+0000009): Translate: Binding sandbox to http://localhost:3040/
(4)(+0000004): Translate: Parsing code for unAPI (e7e01cac-1e37-4da6-b078-a0e8343b0e98, 2019-06-10 23:11:21)
(4)(+0000003): Translate: Parsing code for COinS (05d07af9-105a-4572-99f6-a8e231c0daef, 2021-06-01 17:38:46)
(4)(+0000018): Translate: Parsing code for Embedded Metadata (951c027d-74ac-47d4-a107-9c3069ab7b48, 2024-06-13 15:58:28)
(3)(+0000000): Translate: Embedded Metadata: found 2 meta tags
(4)(+0000004): Translate: Parsing code for DOI (c159dcfe-8a53-4301-a499-30f6549c340d, 2024-06-04 14:34:03)
(3)(+0002767): Connector_Browser: onActivated for chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/preferences/preferences.html#advanced
(3)(+0000001): HTTP POST http://127.0.0.1:23119/connector/ping
(3)(+0000003): progressWindowIframe.blurred message received in injected page http://localhost:3040/
(3)(+0000006): Connector: Method ping succeeded
There's been steady work, though very slow progress, to unify how Zotero handles pages with just metadata (including COinS, DOIs, and embedded metadata), but the current status is the somewhat awkward priority order of the three formats that you're seeing in your test.