Using PMID for Lookup engine
Hi,
I would like to create lookup engine, one of variables is PMID.
How to get PMID as Zotero (at least 4.0.23) itseft do not have it?
I try to write in zotero/locate/engines.json this code, but it does not work
[
{
"name": "PubMed",
"alias": "PubMed",
"icon": "http://www.ncbi.nlm.nih.gov/favicon.ico",
"_urlTemplate": "http://www.ncbi.nlm.nih.gov/pubmed/{info:pmid/}",
"description": "PubMed",
"hidden": false,
"_urlParams": [],
"_urlNamespaces": {
"rft": "info:ofi/fmt:kev:mtx:journal",
"info": "info:ofi/nam:info:pmid:",
"z": "http://www.zotero.org/namespaces/openSearch#",
"": "http://a9.com/-/spec/opensearch/1.1/"
},
"_iconSourceURI": "http://www.ncbi.nlm.nih.gov/favicon.ico"
},
{
"name": "PubMed2",
"alias": "PubMed2",
"icon": "http://www.ncbi.nlm.nih.gov/favicon.ico",
"_urlTemplate": "http://www.ncbi.nlm.nih.gov/pubmed/{info:pmid}",
"description": "PubMed",
"hidden": false,
"_urlParams": [],
"_urlNamespaces": {
"rft": "info:ofi/fmt:kev:mtx:journal",
"info": "info:ofi/nam:info:pmid:",
"z": "http://www.zotero.org/namespaces/openSearch#",
"": "http://a9.com/-/spec/opensearch/1.1/"
},
"_iconSourceURI": "http://www.ncbi.nlm.nih.gov/favicon.ico"
},
{
"name": "PubMed3",
"alias": "PubMed3",
"icon": "http://www.ncbi.nlm.nih.gov/favicon.ico",
"_urlTemplate": "http://www.ncbi.nlm.nih.gov/pubmed/{info}",
"description": "PubMed",
"hidden": false,
"_urlParams": [],
"_urlNamespaces": {
"rft": "info:ofi/fmt:kev:mtx:journal",
"info": "info:ofi/nam:info:pmid:",
"z": "http://www.zotero.org/namespaces/openSearch#",
"": "http://a9.com/-/spec/opensearch/1.1/"
},
"_iconSourceURI": "http://www.ncbi.nlm.nih.gov/favicon.ico"
},
{
"name": "PubMed4",
"alias": "PubMed4",
"icon": "http://www.ncbi.nlm.nih.gov/favicon.ico",
"_urlTemplate": "http://www.ncbi.nlm.nih.gov/pubmed/{info:}",
"description": "PubMed",
"hidden": false,
"_urlParams": [],
"_urlNamespaces": {
"rft": "info:ofi/fmt:kev:mtx:journal",
"info": "info:ofi/nam:info:pmid:",
"z": "http://www.zotero.org/namespaces/openSearch#",
"": "http://a9.com/-/spec/opensearch/1.1/"
},
"_iconSourceURI": "http://www.ncbi.nlm.nih.gov/favicon.ico"
},
{
"name": "PubMed5",
"alias": "PubMed5",
"icon": "http://www.ncbi.nlm.nih.gov/favicon.ico",
"_urlTemplate": "http://www.ncbi.nlm.nih.gov/pubmed/{info}",
"description": "PubMed",
"hidden": false,
"_urlParams": [],
"_urlNamespaces": {
"rft": "info:ofi/fmt:kev:mtx:journal",
"info": "info:ofi/nam:info:pmid:",
"z": "http://www.zotero.org/namespaces/openSearch#",
"": "http://a9.com/-/spec/opensearch/1.1/"
},
"_iconSourceURI": "http://www.ncbi.nlm.nih.gov/favicon.ico"
}
]
I would like to create lookup engine, one of variables is PMID.
How to get PMID as Zotero (at least 4.0.23) itseft do not have it?
I try to write in zotero/locate/engines.json this code, but it does not work
[
{
"name": "PubMed",
"alias": "PubMed",
"icon": "http://www.ncbi.nlm.nih.gov/favicon.ico",
"_urlTemplate": "http://www.ncbi.nlm.nih.gov/pubmed/{info:pmid/}",
"description": "PubMed",
"hidden": false,
"_urlParams": [],
"_urlNamespaces": {
"rft": "info:ofi/fmt:kev:mtx:journal",
"info": "info:ofi/nam:info:pmid:",
"z": "http://www.zotero.org/namespaces/openSearch#",
"": "http://a9.com/-/spec/opensearch/1.1/"
},
"_iconSourceURI": "http://www.ncbi.nlm.nih.gov/favicon.ico"
},
{
"name": "PubMed2",
"alias": "PubMed2",
"icon": "http://www.ncbi.nlm.nih.gov/favicon.ico",
"_urlTemplate": "http://www.ncbi.nlm.nih.gov/pubmed/{info:pmid}",
"description": "PubMed",
"hidden": false,
"_urlParams": [],
"_urlNamespaces": {
"rft": "info:ofi/fmt:kev:mtx:journal",
"info": "info:ofi/nam:info:pmid:",
"z": "http://www.zotero.org/namespaces/openSearch#",
"": "http://a9.com/-/spec/opensearch/1.1/"
},
"_iconSourceURI": "http://www.ncbi.nlm.nih.gov/favicon.ico"
},
{
"name": "PubMed3",
"alias": "PubMed3",
"icon": "http://www.ncbi.nlm.nih.gov/favicon.ico",
"_urlTemplate": "http://www.ncbi.nlm.nih.gov/pubmed/{info}",
"description": "PubMed",
"hidden": false,
"_urlParams": [],
"_urlNamespaces": {
"rft": "info:ofi/fmt:kev:mtx:journal",
"info": "info:ofi/nam:info:pmid:",
"z": "http://www.zotero.org/namespaces/openSearch#",
"": "http://a9.com/-/spec/opensearch/1.1/"
},
"_iconSourceURI": "http://www.ncbi.nlm.nih.gov/favicon.ico"
},
{
"name": "PubMed4",
"alias": "PubMed4",
"icon": "http://www.ncbi.nlm.nih.gov/favicon.ico",
"_urlTemplate": "http://www.ncbi.nlm.nih.gov/pubmed/{info:}",
"description": "PubMed",
"hidden": false,
"_urlParams": [],
"_urlNamespaces": {
"rft": "info:ofi/fmt:kev:mtx:journal",
"info": "info:ofi/nam:info:pmid:",
"z": "http://www.zotero.org/namespaces/openSearch#",
"": "http://a9.com/-/spec/opensearch/1.1/"
},
"_iconSourceURI": "http://www.ncbi.nlm.nih.gov/favicon.ico"
},
{
"name": "PubMed5",
"alias": "PubMed5",
"icon": "http://www.ncbi.nlm.nih.gov/favicon.ico",
"_urlTemplate": "http://www.ncbi.nlm.nih.gov/pubmed/{info}",
"description": "PubMed",
"hidden": false,
"_urlParams": [],
"_urlNamespaces": {
"rft": "info:ofi/fmt:kev:mtx:journal",
"info": "info:ofi/nam:info:pmid:",
"z": "http://www.zotero.org/namespaces/openSearch#",
"": "http://a9.com/-/spec/opensearch/1.1/"
},
"_iconSourceURI": "http://www.ncbi.nlm.nih.gov/favicon.ico"
}
]
"http://www.ncbi.nlm.nih.gov/pmc/utils/idconv/v1.0/?ids={z:DOI}&format=json&versions=no"
to use Zotero DOI field to convert to PMID?
I see, that PMID is stored in Zotoro "extra" field. So I could use
"_urlTemplate": "http://www.ncbi.nlm.nih.gov/pubmed/{z:extra}",
but how to strip/replace/remove "PMID: " string in the begining of {z:extra} value inside json script? How to strip/replace/remove "PMCID: [0-9]*" at the end?