Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

could you please add cnki lookup #8

Open
fredericky123 opened this issue Aug 29, 2018 · 14 comments
Open

could you please add cnki lookup #8

fredericky123 opened this issue Aug 29, 2018 · 14 comments

Comments

@fredericky123
Copy link

Could I use the title of items to search in CNKI, because all the documents of Chinese paper will be submitted to the database. It will be great convenience for us to download Chinese papers using this lookup engine.
Thanks a lot!
http://www.cnki.net/

@egh
Copy link
Owner

egh commented Aug 29, 2018

I looked at CNKI but I can't figure out how to generate URLs to search by DOI or OpenURL. If you know how what a URL for an OpenURL or DOI search looks like can you show me?

@fredericky123
Copy link
Author

I am afraid that CNKI cannot use doi to search, usually we the title of the paper.
However, I find how to use doi to search in the second largest academic database of China.
http://g.wanfangdata.com.cn/searchResult/getAdvancedSearch.do?searchType=all
image

@egh
Copy link
Owner

egh commented Aug 30, 2018

Thank you! The problem is that seems to use POST, and I need some sort of url that zotero can construct and use GET on that will include the DOI, or author/title, or the openurl.

@fredericky123
Copy link
Author

Due to the restriction of the website, no matter what we search, the url is the same.
image

@egh
Copy link
Owner

egh commented Aug 30, 2018

By reading the code to https://github.com/zotero/zotero/blob/master/chrome/content/zotero/xpcom/locateManager.js I was able to figure out how to make a POST request, but I haven't got it quite right yet.

[
	{
		"name": "CNKI",
	    "_urlTemplate": "http://eng.scholar.cnki.net/result.aspx",
		"description": "Search CNKI",
		"alias": "cn.cnki",
		"hidden": false,
		"icon": null,
	    "_urlParams": {"field0": "DOI",
                           "q_text0": "{z:DOI}",
                           "type": "advance+search",
                           "rt": "all"
                          },
            "_method": "POST",
		"_urlNamespaces": {
			"rft": "info:ofi/fmt:kev:mtx:journal",
			"z": "http://www.zotero.org/namespaces/openSearch#",
			"": "http://a9.com/-/spec/opensearch/1.1/"
		}
	}
]

@fredericky123
Copy link
Author

Thanks very much! If this search engine can be done, wow, all the Chinese paper can be easily searched using Zotero. That's a great job!

@fredericky123
Copy link
Author

https://github.com/zotero/translators/blob/master/CNKI.js

this is the translator of cnki, maybe it will be useful.

@fredericky123
Copy link
Author

Right now, I can fix the problem because the website use a new search engine:
{
"_name": "CNKI",
"_alias": "cn.cnki",
"_description": "Search CNKI",
"_icon": "https://enscholar.cnki.net/images/footerlogoicon.png",
"_hidden": false,
"_urlTemplate": "https://kns8.cnki.net/kns/DefaultResult/Index?dbcode=SCDB&kw={z:title}&korder=SU",
"_urlParams": {
"field0": "DOI",
"q_text0": "{z:DOI}",
"type": "advance+search",
"rt": "all"
},
"_method": "POST",
"_urlNamespaces": {
"rft": "info:ofi/fmt:kev:mtx:journal",
"z": "http://www.zotero.org/namespaces/openSearch#",
"": "http://a9.com/-/spec/opensearch/1.1/"
},
"_iconSourceURI": "https://enscholar.cnki.net/images/footerlogoicon.png"
},

@egh
Copy link
Owner

egh commented Dec 15, 2020

OK, I added this. Let me know how it works. Thanks!

@fredericky123
Copy link
Author

Thanks! I will keep an eye on this, if this settings does't work, I will let you know.If you have Chinese literature in zotero, this website can help to find the literature via titile in the biggest database of Chinese papers.

@egh
Copy link
Owner

egh commented Dec 15, 2020

Thank you! I appreciate the Chinese language help!

@fredericky123
Copy link
Author

Just for your information, CNKI is a datebase like web of science, all publised Chinese papers are required to publish online at this platform.

@fredericky123
Copy link
Author

I don't know how to pull requests, here is the update:
{
"_name": "CNKI",
"_alias": "cn.cnki",
"_description": "Search CNKI",
"_icon": "https://oversea.cnki.net/kns/Content/images/gb/logo.png",
"_hidden": false,
"_urlTemplate": "https://kns.cnki.net/kns8/defaultresult/index?kw={z:title}",
"_urlParams": {
"field0": "DOI",
"q_text0": "{z:DOI}",
"type": "advance+search",
"rt": "all"
},
"_method": "POST",
"_urlNamespaces": {
"rft": "info:ofi/fmt:kev:mtx:journal",
"z": "http://www.zotero.org/namespaces/openSearch#",
"": "http://a9.com/-/spec/opensearch/1.1/"
},
"_iconSourceURI": "https://oversea.cnki.net/kns/Content/images/gb/logo.png"
},

@egh
Copy link
Owner

egh commented Oct 22, 2021

Should be fixed! thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants