var uid =attr(doc, 'meta[property="rg:id"]', 'content');
if (!uid) {
//trying to get the uid from URL; for logged in users
//trying to get the uid from URL; for logged in users
var uidURL =url.match(/publication\/(\d+)_/);
if (uidURL) uid = uidURL[1];
}
uid =uid.replace('PB:', '');
var risURL ="https://www.researchgate.net/lite.publication.PublicationDownloadCitationModal.downloadCitation.html?fileType=RIS&citation=citationAndAbstract&publicationUid="+ uid;
var pdfURL =attr(doc, 'meta[property="citation_pdf_url"]', 'content');
ZU.doGet(risURL, function(text) {
//Z.debug(text);
//fix wrong itemType information in RIS
if (type=="bookSection") text =text.replace('TY - BOOK', 'TY - CHAP');
if (type=="conferencePaper") text =text.replace('TY - BOOK', 'TY - CONF');
if (type=="report") text =text.replace('TY - BOOK', 'TY - RPRT');
if (type=="presentation") text =text.replace('TY - BOOK', 'TY - SLIDE');
if (type=="journalArticle") text =text.replace('TY - BOOK', 'TY - JOUR');
if (type=="thesis") text =text.replace('TY - BOOK', 'TY - THES');
ZU.doGet(risURL, function(text) {
//Z.debug(text);
//fix wrong itemType information in RIS
if (type=="bookSection") text =text.replace('TY - BOOK', 'TY - CHAP');
if (type=="conferencePaper") text =text.replace('TY - BOOK', 'TY - CONF');
if (type=="report") text =text.replace('TY - BOOK', 'TY - RPRT');
if (type=="presentation") text =text.replace('TY - BOOK', 'TY - SLIDE');
if (type=="journalArticle") text =text.replace('TY - BOOK', 'TY - JOUR');
if (type=="thesis") text =text.replace('TY - BOOK', 'TY - THES');
0 comments on commit
825d9ce