Skip to content
Permalink
Browse files

extend ESA translator to RSNA and renam; Delete BioInfoBank;

Small fixes: ERIC (abstracts); Brill journals (multiples); Isidore (Language); OSA (conference detect); USPTO (inventors); RollCall (blog date); SAE Papers (multiples); eLife (abstracts&PMIDs)
Test fixes: Highwire 2.0, Talis Prism 2; IEEE Computer Society; Open Journal Systems
  • Loading branch information...
adam3smith committed Nov 19, 2013
1 parent 7c2de41 commit b539c7fba8d5d41b3c556b8410a387cd55fc6524

This file was deleted.

@@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2013-01-29 22:11:48"
"lastUpdated": "2013-11-18 17:38:45"
}

/*
@@ -55,7 +55,7 @@ function doWeb(doc,url)
var hits = {};
var urls = [];
//TOCs
var results = ZU.xpath(doc, '//div[@id="tabbedpages"]//h5/a[contains(@href, "/content/")]');
var results = ZU.xpath(doc, '//div[@id="tabbedpages" or @id="searchContent"]//h5/a[contains(@href, "/content/")]');
//Search results
if (results.length<1){
results = ZU.xpath(doc, '//div[@class="resultItem"]//div[@class="title"]/a')
@@ -77,6 +77,8 @@ function doWeb(doc,url)
var translator = Zotero.loadTranslator("import");
translator.setTranslator("951c027d-74ac-47d4-a107-9c3069ab7b48");
translator.setHandler("itemDone", function(obj, item) {
item.DOI = ZU.xpathText(doc, '//span[@class="meta-value doi"]')
item.url = url;
var pdfurl = ZU.xpathText(doc, '//a[@class="pdf launchfulltextlink"]/@href')
pdfurl = "http://booksandjournals.brillonline.com" + pdfurl
item.attachments.push({url: pdfurl, title: "Brill Journals PDF Full Text", mimeType: "application/pdf"})
@@ -91,7 +93,7 @@ function doWeb(doc,url)
var testCases = [
{
"type": "web",
"url": "http://booksandjournals.brillonline.com/content/10.1163/187254612x646206",
"url": "http://booksandjournals.brillonline.com/content/journals/10.1163/187254612x646206",
"items": [
{
"itemType": "journalArticle",
@@ -104,13 +106,13 @@ var testCases = [
],
"notes": [],
"tags": [
"Guangzhou",
"trading post",
"African entrepreneurs",
"African migration",
"Guangzhou",
"comptoir commercial",
"entrepreneurs africains",
"migration africaine",
"trading post"
"migration africaine"
],
"seeAlso": [],
"attachments": [
@@ -122,18 +124,33 @@ var testCases = [
"mimeType": "application/pdf"
}
],
"issue": "1",
"abstractNote": "Abstract In the early 2000s, nationals of Sub-Saharan Africa who had settled in the market places of Hong Kong, Bangkok, Jakarta, and Kuala Lumpur, moved to Guangzhou and opened offices in the upper floors of buildings in Baiyun and Yuexiu Districts. These were located in the northwest of the city, near the central railway station and one of the two fairs of Canton. Gradually these traders were able to create the necessary conditions of hospitality by opening community restaurants on upper floors, increasing the number of showrooms and offices as well as the services of freight and customs clearance in order to live up to an African itinerant customer&#8217;s expectations. From interviews carried out between 2006 and 2009 in the People&#8217;s Republic of China and in Hong Kong, Bangkok, Dubai, and West Africa, the article will first highlight the economic logics which have contributed to the constitution of African trading posts in China and describe their extension from the Middle East and from Asia. The second part will determine the respective roles of migrants and traveling Sub-Saharan entrepreneurs, before exploring their interactions with Chinese society in the setting up of these commercial networks. It will also look at the impact of toughening immigration policies. It is the principle of the African trading posts of anchoring of some traders in strategic places negotiated with the host society that allows the movement but also the temporary settlement of many visitors. The first established traders purchase products manufactured in the hinterland to fulfill the demand of the itinerant merchants who in turn supply customers located in other continents.",
"DOI": "10.1163/187254612X646206",
"ISSN": "1872-5465",
"url": "http://booksandjournals.brillonline.com/content/10.1163/187254612x646206",
"libraryCatalog": "booksandjournals.brillonline.com",
"shortTitle": "African Trading Post in Guangzhou",
"title": "African Trading Post in Guangzhou: Emergent or Recurrent Commercial Form?",
"publisher": "Brill",
"institution": "Brill",
"company": "Brill",
"label": "Brill",
"distributor": "Brill",
"date": "2012/01/01",
"reportType": "Text",
"letterType": "Text",
"manuscriptType": "Text",
"mapType": "Text",
"thesisType": "Text",
"websiteType": "Text",
"presentationType": "Text",
"postType": "Text",
"audioFileType": "Text",
"publicationTitle": "African Diaspora",
"volume": "5",
"pages": "27-50"
"issue": "1",
"abstractNote": "Abstract In the early 2000s, nationals of Sub-Saharan Africa who had settled in the market places of Hong Kong, Bangkok, Jakarta, and Kuala Lumpur, moved to Guangzhou and opened offices in the upper floors of buildings in Baiyun and Yuexiu Districts. These were located in the northwest of the city, near the central railway station and one of the two fairs of Canton. Gradually these traders were able to create the necessary conditions of hospitality by opening community restaurants on upper floors, increasing the number of showrooms and offices as well as the services of freight and customs clearance in order to live up to an African itinerant customer’s expectations. From interviews carried out between 2006 and 2009 in the People’s Republic of China and in Hong Kong, Bangkok, Dubai, and West Africa, the article will first highlight the economic logics which have contributed to the constitution of African trading posts in China and describe their extension from the Middle East and from Asia. The second part will determine the respective roles of migrants and traveling Sub-Saharan entrepreneurs, before exploring their interactions with Chinese society in the setting up of these commercial networks. It will also look at the impact of toughening immigration policies. It is the principle of the African trading posts of anchoring of some traders in strategic places negotiated with the host society that allows the movement but also the temporary settlement of many visitors. The first established traders purchase products manufactured in the hinterland to fulfill the demand of the itinerant merchants who in turn supply customers located in other continents.",
"pages": "27-50",
"ISSN": "1872-5465",
"url": "http://booksandjournals.brillonline.com/content/journals/10.1163/187254612x646206",
"libraryCatalog": "booksandjournals.brillonline.com",
"accessDate": "CURRENT_TIMESTAMP",
"DOI": "10.1163/187254612X646206",
"shortTitle": "African Trading Post in Guangzhou"
}
]
},
@@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsib",
"lastUpdated": "2013-10-19 22:59:26"
"lastUpdated": "2013-11-18 18:18:27"
}

/*
@@ -67,7 +67,7 @@ function doWeb(doc,url)
ZU.processDocuments(urls, doWeb);
});
} else {
var abstract = ZU.xpathText(doc, '//div[@class="abstract"]');
var abstract = ZU.xpathText(doc, '//div[@class="abstract"]').replace(/^\|/, "");
//Z.debug(abstract)
var type = ZU.xpathText(doc, '//meta[@name="source"]/@content');
// We call the Embedded Metadata translator to do the actual work
@@ -1,15 +1,15 @@
{
"translatorID": "5af42734-7cd5-4c69-97fc-bc406999bdba",
"label": "ESA Journals",
"label": "ESA+RSNA Journals",
"creator": "Sebastian Karcher",
"target": "^http://www\\.esajournals\\.org/",
"target": "^https?://(www\\.esajournals|pubs\\.rsna)\\.org/",
"minVersion": "2.1",
"maxVersion": "",
"priority": 100,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2012-11-12 20:51:45"
"lastUpdated": "2013-11-18 20:55:20"
}

/*
@@ -43,7 +43,7 @@ function doWeb(doc, url) {
var items = new Object();
var rows = ZU.xpath(doc, '//table[@class="articleEntry"]');
for (var i in rows) {
var title = ZU.xpathText(rows[i], './/div[@class="art_title"]');
var title = ZU.xpathText(rows[i], './/div[contains(@class, "art_title")]');
//Z.debug(title)
var id = ZU.xpathText(rows[i], './/a[contains(@href, "/doi/abs/")][1]/@href');
// Z.debug(id)
@@ -87,20 +87,25 @@ function scrape(doc, url) {
translator.setString(text);
translator.setHandler("itemDone", function (obj, item) {
item.url = url;
if (url.indexOf("rsna.org")!=-1){
var database = "RSNA"
}
else var database = "ESA"
item.notes = [];
for (var i in tags){
item.tags.push(tags[i].textContent)
}
item.abstractNote = abstract;
item.attachments = [{
url: pdfurl,
title: "ESA PDF fulltext",
title: database + " PDF fulltext",
mimeType: "application/pdf"
}, {
document: doc,
title: "ESA Snapshot",
title: database + " Snapshot",
mimeType: "text/html"
}];
item.libraryCatalog = database + " Journals";
item.complete();
});
translator.translate();
@@ -189,6 +194,85 @@ var testCases = [
"type": "web",
"url": "http://www.esajournals.org/toc/ecap/21/5",
"items": "multiple"
},
{
"type": "web",
"url": "http://pubs.rsna.org/toc/radiographics/toc/33/7",
"items": "multiple"
},
{
"type": "web",
"url": "http://pubs.rsna.org/doi/abs/10.1148/rg.337125073",
"items": [
{
"itemType": "journalArticle",
"creators": [
{
"lastName": "Stojanovska",
"firstName": "Jadranka",
"creatorType": "author"
},
{
"lastName": "Garg",
"firstName": "Anubhav",
"creatorType": "author"
},
{
"lastName": "Patel",
"firstName": "Smita",
"creatorType": "author"
},
{
"lastName": "Melville",
"firstName": "David M.",
"creatorType": "author"
},
{
"lastName": "Kazerooni",
"firstName": "Ella A.",
"creatorType": "author"
},
{
"lastName": "Mueller",
"firstName": "Gisela C.",
"creatorType": "author"
}
],
"notes": [],
"tags": [],
"seeAlso": [],
"attachments": [
{
"title": "RSNA PDF fulltext",
"mimeType": "application/pdf"
},
{
"title": "RSNA Snapshot",
"mimeType": "text/html"
}
],
"title": "Congenital and Hereditary Causes of Sudden Cardiac Death in Young Adults: Diagnosis, Differential Diagnosis, and Risk Stratification",
"date": "November 1, 2013",
"DOI": "10.1148/rg.337125073",
"publicationTitle": "RadioGraphics",
"journalAbbreviation": "RadioGraphics",
"pages": "1977-2001",
"volume": "33",
"issue": "7",
"publisher": "Radiological Society of North America",
"ISSN": "0271-5333",
"url": "http://pubs.rsna.org/doi/abs/10.1148/rg.337125073",
"abstractNote": "Sudden cardiac death is defined as death from unexpected circulatory arrest—usually a result of cardiac arrhythmia—that occurs within 1 hour of the onset of symptoms. Proper and timely identification of individuals at risk for sudden cardiac death and the diagnosis of its predisposing conditions are vital. A careful history and physical examination, in addition to electrocardiography and cardiac imaging, are essential to identify conditions associated with sudden cardiac death. Among young adults (18–35 years), sudden cardiac death most commonly results from a previously undiagnosed congenital or hereditary condition, such as coronary artery anomalies and inherited cardiomyopathies (eg, hypertrophic cardiomyopathy, arrhythmogenic right ventricular cardiomyopathy [ARVC], dilated cardiomyopathy, and noncompaction cardiomyopathy). Overall, the most common causes of sudden cardiac death in young adults are, in descending order of frequency, hypertrophic cardiomyopathy, coronary artery anomalies with an interarterial or intramural course, and ARVC. Often, sudden cardiac death is precipitated by ventricular tachycardia or fibrillation and may be prevented with an implantable cardioverter defibrillator (ICD). Risk stratification to determine the need for an ICD is challenging and involves imaging, particularly echocardiography and cardiac magnetic resonance (MR) imaging. Coronary artery anomalies, a diverse group of congenital disorders with a variable manifestation, may be depicted at coronary computed tomographic angiography or MR angiography. A thorough understanding of clinical risk stratification, imaging features, and complementary diagnostic tools for the evaluation of cardiac disorders that may lead to sudden cardiac death is essential to effectively use imaging to guide diagnosis and therapy.",
"libraryCatalog": "RSNA Journals",
"accessDate": "CURRENT_TIMESTAMP",
"shortTitle": "Congenital and Hereditary Causes of Sudden Cardiac Death in Young Adults"
}
]
},
{
"type": "web",
"url": "http://pubs.rsna.org/action/doSearch?SeriesKey=&AllField=cardiac",
"items": "multiple"
}
]
/** END TEST CASES **/
@@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsv",
"lastUpdated": "2013-10-07 10:09:43"
"lastUpdated": "2013-11-18 20:47:52"
}

/*
@@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2013-06-08 12:06:04"
"lastUpdated": "2013-11-18 22:27:18"
}

function detectWeb(doc, url) {
@@ -441,52 +441,6 @@ var testCases = [
"type": "web",
"url": "http://www.computer.org/csdl/proceedings/bibe/2010/4083/00/index.html",
"items": "multiple"
},
{
"type": "web",
"url": "http://www.computer.org/portal/web/computingnow/content?g=53319&type=article&urlTitle=reimagining-the-scientific-visualization-interaction-paradigm",
"items": [
{
"itemType": "magazineArticle",
"creators": [
{
"firstName": "Daniel F.",
"lastName": "Keefe",
"creatorType": "author"
},
{
"firstName": "Tobias",
"lastName": "Isenberg",
"creatorType": "author"
}
],
"notes": [
{
"note": "Complete PDF document was either not available or accessible. Please make sure you're logged in to the digital library to retrieve the complete PDF document."
}
],
"tags": [],
"seeAlso": [],
"attachments": [
{
"mimeType": "text/html",
"title": "IEEE Computer Snapshot"
}
],
"title": "Reimagining the Scientific Visualization Interaction Paradigm",
"publicationTitle": "Computer",
"volume": "46",
"issue": "5",
"ISSN": "0018-9162",
"date": "2013",
"pages": "51-57",
"DOI": "10.1109/MC.2013.178",
"publisher": "IEEE Computer Society",
"place": "Los Alamitos, CA, USA",
"abstractNote": "The technological building blocks are in place to address six major challenges for natural visualization interfaces to enable an exciting future where natural interfaces powerfully strengthen and expand the use of visualizations in science, engineering, art, and the humanities.",
"libraryCatalog": "IEEE Computer Society"
}
]
}
]
/** END TEST CASES **/

0 comments on commit b539c7f

Please sign in to comment.
You can’t perform that action at this time.