problem with engines.json
hi everyone,
(i searched and it seems to me that this question is new)
i modified the engines.json adding the isidore engine with the script given by m.pouyllau (https://gitlab.huma-num.fr/pouyllau/ISIDORtero).
everything is going well, the lookup engines list appears with isidore inside it.
but.
after adding to engines.json any of the engines listed in http://egh.github.io/zotero-lookup-engines/ (say. e.g. the LOC engine), when i click the lookup button, no engines do appear. like the engines.json file results faulty.
any idea from scratch, before i post the quite long source code of my not working engines.json?
thank you for you help!
maurizio
(i searched and it seems to me that this question is new)
i modified the engines.json adding the isidore engine with the script given by m.pouyllau (https://gitlab.huma-num.fr/pouyllau/ISIDORtero).
everything is going well, the lookup engines list appears with isidore inside it.
but.
after adding to engines.json any of the engines listed in http://egh.github.io/zotero-lookup-engines/ (say. e.g. the LOC engine), when i click the lookup button, no engines do appear. like the engines.json file results faulty.
any idea from scratch, before i post the quite long source code of my not working engines.json?
thank you for you help!
maurizio
it seems to me that i respect the rules you mention.
i take the original engines.json
i add to it the LOC engine copied from http://egh.github.io/zotero-lookup-engines/
but the lookup list is void.
any idea? maurizio
--------------------------
[
{
"name": "CrossRef Lookup",
"alias": "CrossRef",
"icon": "file:///Users/mlana/Zotero/locate/CrossRef%20Lookup.ico",
"_urlTemplate": "https://crossref.org/openurl?{z:openURL}&pid=zter:zter321",
"description": "CrossRef Search Engine",
"hidden": false,
"_urlParams": [],
"_urlNamespaces": {
"z": "http://www.zotero.org/namespaces/openSearch#",
"": "http://a9.com/-/spec/opensearch/1.1/"
},
"_iconSourceURI": "https://crossref.org/favicon.ico"
},
{
"name": "Google Scholar Search",
"alias": "Google Scholar",
"icon": "file:///Users/mlana/Zotero/locate/Google%20Scholar%20Search.ico",
"_urlTemplate": "https://scholar.google.com/scholar?as_q=&as_epq={z:title}&as_occt=title&as_sauthors={rft:aufirst?}+{rft:aulast?}&as_ylo={z:year?}&as_yhi={z:year?}&as_sdt=1.&as_sdtp=on&as_sdtf=&as_sdts=22&",
"description": "Google Scholar Search",
"hidden": false,
"_urlParams": [],
"_urlNamespaces": {
"rft": "info:ofi/fmt:kev:mtx:journal",
"z": "http://www.zotero.org/namespaces/openSearch#",
"": "http://a9.com/-/spec/opensearch/1.1/"
},
"_iconSourceURI": "https://scholar.google.com/favicon.ico"
},
{
"name": "Library of Congress",
"_urlTemplate": "http://www.loc.gov/search/?q={rft:isbn}&fa=digitized:false",
"description": "Search Library of Congress",
"alias": "2e7d0ad247f9423c9259420313be5c66",
"hidden": false,
"_urlParams": [],
"_urlNamespaces": {
"rft": "info:ofi/fmt:kev:mtx:journal",
"z": "http://www.zotero.org/namespaces/openSearch#",
"": "http://a9.com/-/spec/opensearch/1.1/"
}
]
"_iconSourceURI": "https://..../favicon.ico"
},
can this be a problem?
m
yes, it was a matter of brackets balance.
i opened and added the engines inside a code-aware editor and saw that there was a problem of brackets balance. balanced the brackets, everything is working well.
thank you so much for the hint.
nevertyheless the code is validated.
BTW what are the relations among:
"name": "University of California Libraries",
"alias": "MELVYL",
...
"description": "Search University of California Libraries",
"alias": "university_of_california_libraries"
and how is it that an alias can be a random alphanumeric string:
"description":"Search Library of Congress",
"alias":"2e7d0ad247f9423c9259420313be5c66"
?
thank you so much for your help!
maurizio