Skip to content

Commit b539c7f

Browse files
committed
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
1 parent 7c2de41 commit b539c7f

16 files changed

+420
-379
lines changed

BioInfoBank.js

-57
This file was deleted.

Brill Journals.js

+31-14
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"inRepository": true,
1010
"translatorType": 4,
1111
"browserSupport": "gcsibv",
12-
"lastUpdated": "2013-01-29 22:11:48"
12+
"lastUpdated": "2013-11-18 17:38:45"
1313
}
1414

1515
/*
@@ -55,7 +55,7 @@ function doWeb(doc,url)
5555
var hits = {};
5656
var urls = [];
5757
//TOCs
58-
var results = ZU.xpath(doc, '//div[@id="tabbedpages"]//h5/a[contains(@href, "/content/")]');
58+
var results = ZU.xpath(doc, '//div[@id="tabbedpages" or @id="searchContent"]//h5/a[contains(@href, "/content/")]');
5959
//Search results
6060
if (results.length<1){
6161
results = ZU.xpath(doc, '//div[@class="resultItem"]//div[@class="title"]/a')
@@ -77,6 +77,8 @@ function doWeb(doc,url)
7777
var translator = Zotero.loadTranslator("import");
7878
translator.setTranslator("951c027d-74ac-47d4-a107-9c3069ab7b48");
7979
translator.setHandler("itemDone", function(obj, item) {
80+
item.DOI = ZU.xpathText(doc, '//span[@class="meta-value doi"]')
81+
item.url = url;
8082
var pdfurl = ZU.xpathText(doc, '//a[@class="pdf launchfulltextlink"]/@href')
8183
pdfurl = "http://booksandjournals.brillonline.com" + pdfurl
8284
item.attachments.push({url: pdfurl, title: "Brill Journals PDF Full Text", mimeType: "application/pdf"})
@@ -91,7 +93,7 @@ function doWeb(doc,url)
9193
var testCases = [
9294
{
9395
"type": "web",
94-
"url": "http://booksandjournals.brillonline.com/content/10.1163/187254612x646206",
96+
"url": "http://booksandjournals.brillonline.com/content/journals/10.1163/187254612x646206",
9597
"items": [
9698
{
9799
"itemType": "journalArticle",
@@ -104,13 +106,13 @@ var testCases = [
104106
],
105107
"notes": [],
106108
"tags": [
109+
"Guangzhou",
110+
"trading post",
107111
"African entrepreneurs",
108112
"African migration",
109-
"Guangzhou",
110113
"comptoir commercial",
111114
"entrepreneurs africains",
112-
"migration africaine",
113-
"trading post"
115+
"migration africaine"
114116
],
115117
"seeAlso": [],
116118
"attachments": [
@@ -122,18 +124,33 @@ var testCases = [
122124
"mimeType": "application/pdf"
123125
}
124126
],
125-
"issue": "1",
126-
"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.",
127-
"DOI": "10.1163/187254612X646206",
128-
"ISSN": "1872-5465",
129-
"url": "http://booksandjournals.brillonline.com/content/10.1163/187254612x646206",
130-
"libraryCatalog": "booksandjournals.brillonline.com",
131-
"shortTitle": "African Trading Post in Guangzhou",
132127
"title": "African Trading Post in Guangzhou: Emergent or Recurrent Commercial Form?",
128+
"publisher": "Brill",
129+
"institution": "Brill",
130+
"company": "Brill",
131+
"label": "Brill",
132+
"distributor": "Brill",
133133
"date": "2012/01/01",
134+
"reportType": "Text",
135+
"letterType": "Text",
136+
"manuscriptType": "Text",
137+
"mapType": "Text",
138+
"thesisType": "Text",
139+
"websiteType": "Text",
140+
"presentationType": "Text",
141+
"postType": "Text",
142+
"audioFileType": "Text",
134143
"publicationTitle": "African Diaspora",
135144
"volume": "5",
136-
"pages": "27-50"
145+
"issue": "1",
146+
"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.",
147+
"pages": "27-50",
148+
"ISSN": "1872-5465",
149+
"url": "http://booksandjournals.brillonline.com/content/journals/10.1163/187254612x646206",
150+
"libraryCatalog": "booksandjournals.brillonline.com",
151+
"accessDate": "CURRENT_TIMESTAMP",
152+
"DOI": "10.1163/187254612X646206",
153+
"shortTitle": "African Trading Post in Guangzhou"
137154
}
138155
]
139156
},

ERIC.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"inRepository": true,
1010
"translatorType": 4,
1111
"browserSupport": "gcsib",
12-
"lastUpdated": "2013-10-19 22:59:26"
12+
"lastUpdated": "2013-11-18 18:18:27"
1313
}
1414

1515
/*
@@ -67,7 +67,7 @@ function doWeb(doc,url)
6767
ZU.processDocuments(urls, doWeb);
6868
});
6969
} else {
70-
var abstract = ZU.xpathText(doc, '//div[@class="abstract"]');
70+
var abstract = ZU.xpathText(doc, '//div[@class="abstract"]').replace(/^\|/, "");
7171
//Z.debug(abstract)
7272
var type = ZU.xpathText(doc, '//meta[@name="source"]/@content');
7373
// We call the Embedded Metadata translator to do the actual work

ESA Journals.js ESA+RSNA Journals.js

+90-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"translatorID": "5af42734-7cd5-4c69-97fc-bc406999bdba",
3-
"label": "ESA Journals",
3+
"label": "ESA+RSNA Journals",
44
"creator": "Sebastian Karcher",
5-
"target": "^http://www\\.esajournals\\.org/",
5+
"target": "^https?://(www\\.esajournals|pubs\\.rsna)\\.org/",
66
"minVersion": "2.1",
77
"maxVersion": "",
88
"priority": 100,
99
"inRepository": true,
1010
"translatorType": 4,
1111
"browserSupport": "gcsibv",
12-
"lastUpdated": "2012-11-12 20:51:45"
12+
"lastUpdated": "2013-11-18 20:55:20"
1313
}
1414

1515
/*
@@ -43,7 +43,7 @@ function doWeb(doc, url) {
4343
var items = new Object();
4444
var rows = ZU.xpath(doc, '//table[@class="articleEntry"]');
4545
for (var i in rows) {
46-
var title = ZU.xpathText(rows[i], './/div[@class="art_title"]');
46+
var title = ZU.xpathText(rows[i], './/div[contains(@class, "art_title")]');
4747
//Z.debug(title)
4848
var id = ZU.xpathText(rows[i], './/a[contains(@href, "/doi/abs/")][1]/@href');
4949
// Z.debug(id)
@@ -87,20 +87,25 @@ function scrape(doc, url) {
8787
translator.setString(text);
8888
translator.setHandler("itemDone", function (obj, item) {
8989
item.url = url;
90+
if (url.indexOf("rsna.org")!=-1){
91+
var database = "RSNA"
92+
}
93+
else var database = "ESA"
9094
item.notes = [];
9195
for (var i in tags){
9296
item.tags.push(tags[i].textContent)
9397
}
9498
item.abstractNote = abstract;
9599
item.attachments = [{
96100
url: pdfurl,
97-
title: "ESA PDF fulltext",
101+
title: database + " PDF fulltext",
98102
mimeType: "application/pdf"
99103
}, {
100104
document: doc,
101-
title: "ESA Snapshot",
105+
title: database + " Snapshot",
102106
mimeType: "text/html"
103107
}];
108+
item.libraryCatalog = database + " Journals";
104109
item.complete();
105110
});
106111
translator.translate();
@@ -189,6 +194,85 @@ var testCases = [
189194
"type": "web",
190195
"url": "http://www.esajournals.org/toc/ecap/21/5",
191196
"items": "multiple"
197+
},
198+
{
199+
"type": "web",
200+
"url": "http://pubs.rsna.org/toc/radiographics/toc/33/7",
201+
"items": "multiple"
202+
},
203+
{
204+
"type": "web",
205+
"url": "http://pubs.rsna.org/doi/abs/10.1148/rg.337125073",
206+
"items": [
207+
{
208+
"itemType": "journalArticle",
209+
"creators": [
210+
{
211+
"lastName": "Stojanovska",
212+
"firstName": "Jadranka",
213+
"creatorType": "author"
214+
},
215+
{
216+
"lastName": "Garg",
217+
"firstName": "Anubhav",
218+
"creatorType": "author"
219+
},
220+
{
221+
"lastName": "Patel",
222+
"firstName": "Smita",
223+
"creatorType": "author"
224+
},
225+
{
226+
"lastName": "Melville",
227+
"firstName": "David M.",
228+
"creatorType": "author"
229+
},
230+
{
231+
"lastName": "Kazerooni",
232+
"firstName": "Ella A.",
233+
"creatorType": "author"
234+
},
235+
{
236+
"lastName": "Mueller",
237+
"firstName": "Gisela C.",
238+
"creatorType": "author"
239+
}
240+
],
241+
"notes": [],
242+
"tags": [],
243+
"seeAlso": [],
244+
"attachments": [
245+
{
246+
"title": "RSNA PDF fulltext",
247+
"mimeType": "application/pdf"
248+
},
249+
{
250+
"title": "RSNA Snapshot",
251+
"mimeType": "text/html"
252+
}
253+
],
254+
"title": "Congenital and Hereditary Causes of Sudden Cardiac Death in Young Adults: Diagnosis, Differential Diagnosis, and Risk Stratification",
255+
"date": "November 1, 2013",
256+
"DOI": "10.1148/rg.337125073",
257+
"publicationTitle": "RadioGraphics",
258+
"journalAbbreviation": "RadioGraphics",
259+
"pages": "1977-2001",
260+
"volume": "33",
261+
"issue": "7",
262+
"publisher": "Radiological Society of North America",
263+
"ISSN": "0271-5333",
264+
"url": "http://pubs.rsna.org/doi/abs/10.1148/rg.337125073",
265+
"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.",
266+
"libraryCatalog": "RSNA Journals",
267+
"accessDate": "CURRENT_TIMESTAMP",
268+
"shortTitle": "Congenital and Hereditary Causes of Sudden Cardiac Death in Young Adults"
269+
}
270+
]
271+
},
272+
{
273+
"type": "web",
274+
"url": "http://pubs.rsna.org/action/doSearch?SeriesKey=&AllField=cardiac",
275+
"items": "multiple"
192276
}
193277
]
194278
/** END TEST CASES **/

HighWire 2.0.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"inRepository": true,
1010
"translatorType": 4,
1111
"browserSupport": "gcsv",
12-
"lastUpdated": "2013-10-07 10:09:43"
12+
"lastUpdated": "2013-11-18 20:47:52"
1313
}
1414

1515
/*

IEEE Computer Society.js

+1-47
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"inRepository": true,
1010
"translatorType": 4,
1111
"browserSupport": "gcsibv",
12-
"lastUpdated": "2013-06-08 12:06:04"
12+
"lastUpdated": "2013-11-18 22:27:18"
1313
}
1414

1515
function detectWeb(doc, url) {
@@ -441,52 +441,6 @@ var testCases = [
441441
"type": "web",
442442
"url": "http://www.computer.org/csdl/proceedings/bibe/2010/4083/00/index.html",
443443
"items": "multiple"
444-
},
445-
{
446-
"type": "web",
447-
"url": "http://www.computer.org/portal/web/computingnow/content?g=53319&type=article&urlTitle=reimagining-the-scientific-visualization-interaction-paradigm",
448-
"items": [
449-
{
450-
"itemType": "magazineArticle",
451-
"creators": [
452-
{
453-
"firstName": "Daniel F.",
454-
"lastName": "Keefe",
455-
"creatorType": "author"
456-
},
457-
{
458-
"firstName": "Tobias",
459-
"lastName": "Isenberg",
460-
"creatorType": "author"
461-
}
462-
],
463-
"notes": [
464-
{
465-
"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."
466-
}
467-
],
468-
"tags": [],
469-
"seeAlso": [],
470-
"attachments": [
471-
{
472-
"mimeType": "text/html",
473-
"title": "IEEE Computer Snapshot"
474-
}
475-
],
476-
"title": "Reimagining the Scientific Visualization Interaction Paradigm",
477-
"publicationTitle": "Computer",
478-
"volume": "46",
479-
"issue": "5",
480-
"ISSN": "0018-9162",
481-
"date": "2013",
482-
"pages": "51-57",
483-
"DOI": "10.1109/MC.2013.178",
484-
"publisher": "IEEE Computer Society",
485-
"place": "Los Alamitos, CA, USA",
486-
"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.",
487-
"libraryCatalog": "IEEE Computer Society"
488-
}
489-
]
490444
}
491445
]
492446
/** END TEST CASES **/

0 commit comments

Comments
 (0)