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

Help on dynamic citation for psycnet.apa.org #55

Open
vegardinho opened this issue Oct 16, 2022 · 0 comments
Open

Help on dynamic citation for psycnet.apa.org #55

vegardinho opened this issue Oct 16, 2022 · 0 comments

Comments

@vegardinho
Copy link

vegardinho commented Oct 16, 2022

I've been struggling a bit with psycnet.apa.org dynamic citation. The request body should be right, but for some reason it's not working (BibItNow says 'Incomptable format'). Any help or tips is greatly appreciated!

	metaData["citation_download_method"] = "POST";
	metaData["citation_download_content_type"] = "application/json;charset=utf-8";
	//TODO: dynamic UID

	metaData["citation_download_requestbody"] = JSON.stringify({
		api:"record.exportRISFile",
		params: {
			UIDList: [
				{
					UID:"2015-11424-001",
					ProductCode:"PA"
				}
			],
			exportType:"referenceSoftware"
		}
	})

	return (metaData["citation_url_nopath"] + "/api/request/record.exportRISFile");

metadata object after prefselector:

{
"msgType": "extractor_send_bibtex_background",
"citation_title": "Reason and emotion in psychotherapy.",
"citation_issue": "",
"citation_volume": "",
"citation_issn": "",
"citation_isbn": "",
"citation_doi": "TBD",
"citation_firstpage": "",
"citation_lastpage": "",
"citation_journal_title": "APA PsycNET",
"citation_journal_abbrev": "",
"citation_url": "https://psycnet.apa.org/record/1963-01437-000",
"citation_archive_id": "",
"citation_publisher": "",
"citation_date": "Ellis, A. (1962). Reason and emotion in psychotherapy. Lyle Stuart.",
"citation_abstract": "Integrating both previously published and new material, "the pages of this book… outline the theory of rational-emotive psychotherapy… [and] present the clinician with some of the main clinical applications." Included are papers on: the origin, principles, theoretical considerations, objections to, and limitations of rational-emotive psychotherapy; comparisons with other forms of treatment; and its individual and group use with a variety of clinical and marital problems. (17-p. bibliogr.) ",
"citation_channel": "",
"citation_language": "en",
"citation_collection_title": "",
"citation_chapter": "",
"citation_publisher_address": "",
"citation_misc": "",
"citation_type": "Book",
"citation_json": "",
"citation_authors": "",
"citation_keywords": "",
"citation_download": "",
"citation_download_requestbody": "{"api":"record.exportRISFile","params":{"UIDList":[{"UID":"2015-11424-001","ProductCode":"PA"}],"exportType":"referenceSoftware"}}",
"citation_download_content_type": "application/json;charset=utf-8",
"citation_download_cookie": "",
"citation_webpage_title": "Reason and emotion in psychotherapy. - PsycNET",
"citation_url_nopath": "https://psycnet.apa.org",
"citation_webpage_date": "2022-10-05",
"query_summary": {
"citation_title": 1,
"citation_issue": -10,
"citation_volume": -8,
"citation_issn": -6,
"citation_isbn": -10,
"citation_doi": 0,
"citation_firstpage": -8,
"citation_lastpage": -6,
"citation_journal_title": -3,
"citation_journal_abbrev": -4,
"citation_url": 0,
"citation_archive_id": -2,
"citation_publisher": -10,
"citation_date": 1,
"citation_abstract": 2,
"citation_channel": 0,
"citation_language": -2,
"citation_collection_title": -1,
"citation_chapter": 0,
"citation_publisher_address": 0,
"citation_misc": 0,
"citation_type": 6,
"citation_json": 0,
"citation_authors": -13,
"citation_keywords": -9,
"citation_download": 1
},
"citation_title_nonlatex": "",
"citation_publisher_nonlatex": "",
"citation_database": "",
"citation_date_reverse": false,
"citation_domain": "psycnet.apa",
"citation_top_level_domain": "org",
"citation_download_method": "POST",
"citation_download_status": 4,
"citation_download_timeout": 5000
}

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

1 participant