Convert / to %2F in lookup engine

The slash / in item's DOI or URL field will convert to %2F when searching by lookup engine. This will direct to the wrong query url.
This a example engine code for Sci-Hub

{
"_name": "Sci-Hub DOI",
"_alias": "Sci-Hub DOI",
"_description": "SciHub Lookup Lookup",
"_icon": "http://sci-hub.se/favicon.ico",
"_hidden": false,
"_urlTemplate": "http://sci-hub.se/{z:url}",
"_urlParams": [],
"_urlNamespaces": {
"z": "http://www.zotero.org/namespaces/openSearch#"
},
"_iconSourceURI": "http://sci-hub.se/favicon.ico"
}

I hope someone could tell me how to keep the slash in the query url.
  • edited April 15, 2022
    One workaround is to use LibGen's scientific article search, which supports search via GET (i.e. by creating a URLs) and includes the sci-hub content:
    {
    "_name": "LibGen article using DOI",
    "_alias": "LibGen",
    "_description": "Look up scientific article on LibGen using DOI",
    "_icon": "http://libgen.rs/favicon.ico",
    "_hidden": false,
    "_urlTemplate": "http://libgen.rs/scimag/?q={z:DOI}",
    "_urlParams": [],
    "_method": "GET",
    "_urlNamespaces": {
    "z": "http://www.zotero.org/namespaces/openSearch#"
    },
    "_iconSourceURI": "http://libgen.rs/favicon.ico"
    },


    For some other options, check https://github.com/leonmoonen/zotero-tweaks/blob/main/lookup_engines/engines.json
Sign In or Register to comment.