summaryrefslogtreecommitdiff
path: root/Institute of Physics.js
blob: 0756d332e8cfb74ef95136d8451f52c7f27ee015 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
{
	"translatorID": "9346ddef-126b-47ec-afef-8809ed1972ab",
	"label": "Institute of Physics",
	"creator": "Michael Berkowitz and Avram Lyon",
	"target": "^https?://iopscience\\.iop\\.org/(?:[0-9-X]+/.+|search.+)",
	"minVersion": "2.1",
	"maxVersion": "",
	"priority": 99,
	"inRepository": true,
	"translatorType": 4,
	"browserSupport": "gcsbv",
	"lastUpdated": "2013-12-12 12:48:04"
}

/*
   IOP Translator
   Copyright (C) 2013 Sebastian Karcher

   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU Affero General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU Affero General Public License for more details.

   You should have received a copy of the GNU Affero General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

function detectWeb(doc,url) {
	var xpath='//meta[@name="citation_journal_title"]';
		
	if (ZU.xpath(doc, xpath).length > 0) {
		return "journalArticle";
	}
			
	else if (!url.match(/\/pdf\//) && getResults(doc).length){
		return "multiple";
	}

	return false;
}

function getResults(doc){
	var results;
	if (ZU.xpathText(doc, '//div[@class="searchResCol1"]')){
			results = ZU.xpath(doc, '//div[@class="searchResCol1"]//h4/a')
		}
		//journal TOC
		else if (ZU.xpathText(doc, '//div[@class="paperEntry"]')){
		results = ZU.xpath(doc, '//div[@class="paperEntry"]//a[@class="title" and not(contains(@href, "fulltext"))]');
		}
	return results;	
}	

function doWeb(doc,url)
{
	if (detectWeb(doc, url) == "multiple") {
		var hits = {};
		var urls = [];
		//search results
			
		//var results = ZU.xpath(doc,"//table[@id='articles-list']//td[@class='article-entry']//p/strong/a");
	 	var results = getResults(doc)
		for (var i in results) {
			hits[results[i].href] = results[i].textContent.trim();
		}
		Z.selectItems(hits, function(items) {
			if (items == null) return true;
			for (var j in items) {
				urls.push(j);
			}
			ZU.processDocuments(urls, function (myDoc) { 
				doWeb(myDoc, myDoc.location.href) });

		});
	} else {
		// We call the Embedded Metadata translator to do the actual work
		var translator = Zotero.loadTranslator("import");
		translator.setTranslator("951c027d-74ac-47d4-a107-9c3069ab7b48");
		translator.setHandler("itemDone", function(obj, item) {
				item.libraryCatalog = "Institute of Physics"
				item.extra = '';
				item.complete();
				});
		translator.getTranslatorObject(function (obj) {
				obj.doWeb(doc, url);
				});
	}
}

/** BEGIN TEST CASES **/
var testCases = [
	{
		"type": "web",
		"url": "http://iopscience.iop.org/0022-3727/34/10/311",
		"items": [
			{
				"itemType": "journalArticle",
				"creators": [
					{
						"firstName": "J.",
						"lastName": "Batina",
						"creatorType": "author"
					},
					{
						"firstName": "F.",
						"lastName": "Noël",
						"creatorType": "author"
					},
					{
						"firstName": "S.",
						"lastName": "Lachaud",
						"creatorType": "author"
					},
					{
						"firstName": "R.",
						"lastName": "Peyrous",
						"creatorType": "author"
					},
					{
						"firstName": "J. F.",
						"lastName": "Loiseau",
						"creatorType": "author"
					}
				],
				"notes": [],
				"tags": [],
				"seeAlso": [],
				"attachments": [
					{
						"title": "Full Text PDF",
						"mimeType": "application/pdf"
					},
					{
						"title": "Snapshot"
					}
				],
				"title": "Hydrodynamical simulation of the electric wind in a cylindrical vessel with positive point-to-plane device",
				"publisher": "IOP Publishing",
				"institution": "IOP Publishing",
				"company": "IOP Publishing",
				"label": "IOP Publishing",
				"distributor": "IOP Publishing",
				"date": "2001-05-21",
				"DOI": "10.1088/0022-3727/34/10/311",
				"reportType": "Text",
				"letterType": "Text",
				"manuscriptType": "Text",
				"mapType": "Text",
				"thesisType": "Text",
				"websiteType": "Text",
				"presentationType": "Text",
				"postType": "Text",
				"audioFileType": "Text",
				"language": "en",
				"publicationTitle": "Journal of Physics D: Applied Physics",
				"journalAbbreviation": "J. Phys. D: Appl. Phys.",
				"volume": "34",
				"issue": "10",
				"pages": "1510",
				"ISSN": "0022-3727",
				"url": "http://iopscience.iop.org/0022-3727/34/10/311",
				"abstractNote": "Electrical corona discharges at atmospheric pressure in a positive point-to-plane configuration create an electric wind from the point to the plane which, in a closed cylindrical vessel, generates in a few seconds axisymmetrical vortices in the vessel. Photography and video recording show that a small ring vortex appears around the discharge axis, close to the plane, enlarges and progressively fills the vessel up to a stationary situation. A simplified stationary model was first used in order to take into account the measured values of the wind velocity along the discharge axis as well as the velocity field lines visualized by smoke particles. Simulation and experimental results are in fairly good agreement, and a few particular adjustments concerning temperature profiles were made to improve the numerical results. Then, a dynamical model, including the effect of the repetitive ionizing fronts (streamers) occurring in the filamentary discharge, allows one to render an account of the transient evolution of the velocity field lines towards the stationary vortices. Although the numerical simulation could not be continued to a steady state, it shows that a small ring vortex is created near the point electrode, moves rapidly from the point to the plane and then begins to enlarge at the right (experimental) place.",
				"libraryCatalog": "Institute of Physics",
				"accessDate": "CURRENT_TIMESTAMP"
			}
		]
	},
	{
		"type": "web",
		"url": "http://iopscience.iop.org/search?searchType=fullText&fieldedquery=fun&f=titleabs&time=all&submit=Search&navsubmit=Search",
		"items": "multiple"
	},
	{
		"type": "web",
		"url": "http://iopscience.iop.org/1741-2552/10/2/026008/article#jne451204f3",
		"items": [
			{
				"itemType": "journalArticle",
				"creators": [
					{
						"firstName": "Kai",
						"lastName": "Xu",
						"creatorType": "author"
					},
					{
						"firstName": "Yiwen",
						"lastName": "Wang",
						"creatorType": "author"
					},
					{
						"firstName": "Yueming",
						"lastName": "Wang",
						"creatorType": "author"
					},
					{
						"firstName": "Fang",
						"lastName": "Wang",
						"creatorType": "author"
					},
					{
						"firstName": "Yaoyao",
						"lastName": "Hao",
						"creatorType": "author"
					},
					{
						"firstName": "Shaomin",
						"lastName": "Zhang",
						"creatorType": "author"
					},
					{
						"firstName": "Qiaosheng",
						"lastName": "Zhang",
						"creatorType": "author"
					},
					{
						"firstName": "Weidong",
						"lastName": "Chen",
						"creatorType": "author"
					},
					{
						"firstName": "Xiaoxiang",
						"lastName": "Zheng",
						"creatorType": "author"
					}
				],
				"notes": [],
				"tags": [],
				"seeAlso": [],
				"attachments": [
					{
						"title": "Full Text PDF",
						"mimeType": "application/pdf"
					},
					{
						"title": "Snapshot"
					}
				],
				"title": "Local-learning-based neuron selection for grasping gesture prediction in motor brain machine interfaces",
				"publisher": "IOP Publishing",
				"institution": "IOP Publishing",
				"company": "IOP Publishing",
				"label": "IOP Publishing",
				"distributor": "IOP Publishing",
				"date": "2013-04-01",
				"DOI": "10.1088/1741-2560/10/2/026008",
				"reportType": "Text",
				"letterType": "Text",
				"manuscriptType": "Text",
				"mapType": "Text",
				"thesisType": "Text",
				"websiteType": "Text",
				"presentationType": "Text",
				"postType": "Text",
				"audioFileType": "Text",
				"language": "en",
				"publicationTitle": "Journal of Neural Engineering",
				"journalAbbreviation": "J. Neural Eng.",
				"volume": "10",
				"issue": "2",
				"pages": "026008",
				"ISSN": "1741-2552",
				"url": "http://iopscience.iop.org/1741-2552/10/2/026008",
				"abstractNote": "Objective. The high-dimensional neural recordings bring computational challenges to movement decoding in motor brain machine interfaces (mBMI), especially for portable applications. However, not all recorded neural activities relate to the execution of a certain movement task. This paper proposes to use a local-learning-based method to perform neuron selection for the gesture prediction in a reaching and grasping task. Approach. Nonlinear neural activities are decomposed into a set of linear ones in a weighted feature space. A margin is defined to measure the distance between inter-class and intra-class neural patterns. The weights, reflecting the importance of neurons, are obtained by minimizing a margin-based exponential error function. To find the most dominant neurons in the task, 1-norm regularization is introduced to the objective function for sparse weights, where near-zero weights indicate irrelevant neurons. Main results. The signals of only 10 neurons out of 70 selected by the proposed method could achieve over 95% of the full recording's decoding accuracy of gesture predictions, no matter which different decoding methods are used (support vector machine and K-nearest neighbor). The temporal activities of the selected neurons show visually distinguishable patterns associated with various hand states. Compared with other algorithms, the proposed method can better eliminate the irrelevant neurons with near-zero weights and provides the important neuron subset with the best decoding performance in statistics. The weights of important neurons converge usually within 10–20 iterations. In addition, we study the temporal and spatial variation of neuron importance along a period of one and a half months in the same task. A high decoding performance can be maintained by updating the neuron subset. Significance. The proposed algorithm effectively ascertains the neuronal importance without assuming any coding model and provides a high performance with different decoding models. It shows better robustness of identifying the important neurons with noisy signals presented. The low demand of computational resources which, reflected by the fast convergence, indicates the feasibility of the method applied in portable BMI systems. The ascertainment of the important neurons helps to inspect neural patterns visually associated with the movement task. The elimination of irrelevant neurons greatly reduces the computational burden of mBMI systems and maintains the performance with better robustness.",
				"libraryCatalog": "Institute of Physics",
				"accessDate": "CURRENT_TIMESTAMP"
			}
		]
	},
	{
		"type": "web",
		"url": "http://iopscience.iop.org/0004-637X/776/1",
		"items": "multiple"
	}
]
/** END TEST CASES **/