forked from zotero/translators
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNASA NTRS.js
612 lines (578 loc) · 21.7 KB
/
NASA NTRS.js
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
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
{
"translatorID": "5a697ab5-913a-478a-b4ec-98d019aa5dc6",
"label": "NASA NTRS",
"creator": "Andrew Bergan and Abe Jellinek",
"target": "^https?://ntrs\\.nasa\\.gov/(citations/|search)",
"minVersion": "3.0",
"maxVersion": "",
"priority": 100,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2021-09-01 04:47:52"
}
/*
***** BEGIN LICENSE BLOCK *****
Copyright © 2021 Andrew Bergan and Abe Jellinek
This file is part of Zotero.
Zotero 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.
Zotero 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 Zotero. If not, see <http://www.gnu.org/licenses/>.
***** END LICENSE BLOCK *****
*/
function detectWeb(doc, url) {
if (url.includes('/search')) {
if (getSearchResults(doc, true)) {
return "multiple";
}
else {
Z.monitorDOMChanges(doc.querySelector('app-search'));
}
}
else if (url.includes('/citations/')) {
return mapType(
ZU.xpathText(doc,
'//div[@class="label" and contains(text(), "Document Type")]/following-sibling::div/text()'));
}
return false;
}
function getSearchResults(doc, checkOnly) {
var items = {};
var found = false;
var rows = doc.querySelectorAll('app-record-item mat-card-title a');
for (let row of rows) {
let href = row.href;
let title = ZU.trimInternal(row.textContent);
if (!href || !title) continue;
if (checkOnly) return true;
found = true;
items[href] = title;
}
return found ? items : false;
}
function doWeb(doc, url) {
if (detectWeb(doc, url) == "multiple") {
Zotero.selectItems(getSearchResults(doc, false), function (items) {
if (!items) return;
for (let url of Object.keys(items)) {
// don't bother fetching the doc, it's useless
scrape(null, url);
}
});
}
else {
scrape(doc, url);
}
}
function mapType(docType) {
if (!docType) return false;
docType = docType.trim().toLowerCase();
let mapping = {
'conference paper|conference publication': 'conferencePaper',
'bibliograph(y|ic)|report|collected works|brief|memo|note|white paper': 'report',
'journal (article|issue)|^reprint': 'journalArticle',
'presentation|poster': 'presentation',
'thesis|dissertation': 'thesis',
chapter: 'bookSection',
'book/monograph|conference proceedings': 'book',
patent: 'patent',
'computer program': 'computerProgram',
'motion picture|video': 'videoRecording',
'preprint|manuscript': 'manuscript'
};
for (let [regex, itemType] of Object.entries(mapping)) {
if (docType.match(new RegExp(regex))) {
return itemType;
}
}
return 'document';
}
function processJSON(json) {
let item = new Zotero.Item(mapType(json.stiTypeDetails || json.stiType));
function addToExtra(label, value) {
if (item.extra == undefined) item.extra = '';
item.extra += `NTRS ${label}: ${value}\n`;
}
item.title = json.title;
if (json.sourceIdentifiers) {
for (let identifier of json.sourceIdentifiers) {
if (identifier.type == 'DOI') {
item.DOI = ZU.cleanDOI(identifier.number);
break;
}
}
}
if (json.downloads) {
for (let download of json.downloads) {
item.attachments.push({
url: download.links.pdf || download.links.original,
title: download.name,
mimeType: download.mimetype
});
}
}
if (json.authorAffiliations) {
let affiliations = [];
for (let entry of json.authorAffiliations) {
let name = entry.meta.author.name;
item.creators.push(ZU.cleanAuthor(name, 'author', name.includes(', ')));
affiliations.push(entry.meta.organization.name);
}
if (affiliations.length) {
affiliations = ZU.arrayUnique(affiliations);
addToExtra('Author Affiliations', affiliations.join(', '));
}
}
if (json.subjectCategories) {
for (let subjectCategory of json.subjectCategories) {
item.tags.push({ tag: subjectCategory });
}
}
if (json.publications && json.publications.length) {
let earliest;
for (let publication of json.publications) {
// we're comparing +00:00 ISO dates here, so string comparison
// *should* be safe. either way i've never seen an item with more
// than one publication in this database.
if (!earliest || publication.publicationDate < earliest.publicationDate) {
earliest = publication;
}
}
item.date = ZU.strToISO(earliest.publicationDate);
if (item.itemType == 'journalArticle') {
item.publicationTitle = earliest.publicationName;
item.volume = earliest.volume;
item.issue = earliest.issue;
}
}
if (json.meetings && json.meetings.length) {
let meeting = json.meetings[0];
if (item.itemType == 'conferencePaper') {
item.conferenceName = meeting.name;
item.place = meeting.location;
}
else if (meeting.startDate && meeting.endDate) {
let start = meeting.startDate.substring(0, 10);
let end = meeting.endDate.substring(0, 10);
addToExtra('Meeting Information', `${meeting.name}; ${start} to ${end}; ${meeting.place}`);
}
}
if (json.otherReportNumbers && json.otherReportNumbers.length) {
if (item.itemType == 'report') {
item.reportNumber = json.otherReportNumbers[0];
}
else {
addToExtra('Report/Patent Number', json.otherReportNumbers[0]);
}
}
if (json.abstract != 'No abstract available') {
item.abstractNote = json.abstract;
}
if (json.id) {
addToExtra('Document ID', json.id);
}
if (json.center) {
addToExtra('Research Center', `${json.center.name} (${json.center.code})`);
}
return item;
}
function scrape(doc, url) {
ZU.doGet(url.replace('/citations', '/api/citations'), function (text) {
let json = JSON.parse(text);
let item = processJSON(json);
item.url = url;
if (doc) {
item.attachments.push({ title: "Snapshot", document: doc });
}
item.complete();
});
}
/** BEGIN TEST CASES **/
var testCases = [
{
"type": "web",
"url": "https://ntrs.nasa.gov/citations/20130010248",
"defer": true,
"items": [
{
"itemType": "conferencePaper",
"title": "Integration of Airborne Aerosol Prediction Systems and Vegetation Phenology to Track Pollen for Asthma Alerts in Public Health Decision Support Systems",
"creators": [
{
"firstName": "Jeffrey C.",
"lastName": "Luvall",
"creatorType": "author"
},
{
"firstName": "William A.",
"lastName": "Sprigg",
"creatorType": "author"
},
{
"firstName": "Goran",
"lastName": "Pejanovic",
"creatorType": "author"
},
{
"firstName": "Slobodan",
"lastName": "Nickovic",
"creatorType": "author"
},
{
"firstName": "Anup",
"lastName": "Prasad",
"creatorType": "author"
},
{
"firstName": "Ana",
"lastName": "Vukovic",
"creatorType": "author"
},
{
"firstName": "Miram",
"lastName": "Vujadinovic",
"creatorType": "author"
},
{
"firstName": "Estelle",
"lastName": "Levetin",
"creatorType": "author"
},
{
"firstName": "Landon",
"lastName": "Bunderson",
"creatorType": "author"
},
{
"firstName": "Peter K.",
"lastName": "VandeWater",
"creatorType": "author"
},
{
"firstName": "Amy",
"lastName": "Budge",
"creatorType": "author"
},
{
"firstName": "William",
"lastName": "Hudspeth",
"creatorType": "author"
},
{
"firstName": "Alfredo",
"lastName": "Huete",
"creatorType": "author"
},
{
"firstName": "Alan",
"lastName": "Zelicoff",
"creatorType": "author"
},
{
"firstName": "Theresa",
"lastName": "Crimmins",
"creatorType": "author"
},
{
"firstName": "Jake",
"lastName": "Welzin",
"creatorType": "author"
},
{
"firstName": "Heide",
"lastName": "Krapfl",
"creatorType": "author"
},
{
"firstName": "Barbara",
"lastName": "Toth",
"creatorType": "author"
}
],
"date": "2013-01-06",
"conferenceName": "213th American Meteorological Society (AMS) Meeting",
"extra": "NTRS Author Affiliations: NASA Marshall Space Flight Center, Chapman Univ., Belgrade Univ., Tulsa Univ., California State Univ., New Mexico Univ., University of Technology, Saint Louis Univ., Geological Survey, Department of Health\nNTRS Report/Patent Number: M12-2358\nNTRS Document ID: 20130010248\nNTRS Research Center: Marshall Space Flight Center (MSFC)",
"libraryCatalog": "NASA NTRS",
"place": "Austin, TX",
"url": "https://ntrs.nasa.gov/citations/20130010248",
"attachments": [
{
"title": "20130010248.pdf",
"mimeType": "application/pdf"
},
{
"title": "Snapshot",
"mimeType": "text/html"
}
],
"tags": [
{
"tag": "Life Sciences (General)"
}
],
"notes": [],
"seeAlso": []
}
]
},
{
"type": "web",
"url": "https://ntrs.nasa.gov/citations/20130010247",
"defer": true,
"items": [
{
"itemType": "conferencePaper",
"title": "Extreme Transients in the High Energy Universe",
"creators": [
{
"firstName": "Chryssa",
"lastName": "Kouveliotou",
"creatorType": "author"
}
],
"date": "2013-01-08",
"abstractNote": "The High Energy Universe is rich in diverse populations of objects spanning the entire cosmological (time)scale, from our own present-day Milky Way to the re-ionization epoch. Several of these are associated with extreme conditions irreproducible in laboratories on Earth. Their study thus sheds light on the behavior of matter under extreme conditions, such as super-strong magnetic fields (in excess of 10^14 G), high gravitational potentials (e.g., Super Massive Black Holes), very energetic collimated explosions resulting in relativistic jet flows (e.g., Gamma Ray Bursts, exceeding 10^53 ergs). In the last thirty years, my work has been mostly focused on two apparently different but potentially linked populations of such transients: magnetars (highly magnetized neutron stars) and Gamma Ray Bursts (strongly beamed emission from relativistic jets), two populations that constitute unique astrophysical laboratories, while also giving us the tools to probe matter conditions in the Universe to redshifts beyond z=10, when the first stars and galaxies were assembled. I did not make this journey alone I have either led or participated in several international collaborations studying these phenomena in multi-wavelength observations; solitary perfection is not sufficient anymore in the world of High Energy Astrophysics. I will describe this journey, present crucial observational breakthroughs, discuss key results and muse on the future of this field.",
"conferenceName": "219th American Astronomical Society (AAS) Meeting",
"extra": "NTRS Author Affiliations: NASA Marshall Space Flight Center\nNTRS Report/Patent Number: M12-2354\nNTRS Document ID: 20130010247\nNTRS Research Center: Marshall Space Flight Center (MSFC)",
"libraryCatalog": "NASA NTRS",
"place": "Austin, TX",
"url": "https://ntrs.nasa.gov/citations/20130010247",
"attachments": [
{
"title": "20130010247.pdf",
"mimeType": "application/pdf"
},
{
"title": "Snapshot",
"mimeType": "text/html"
}
],
"tags": [
{
"tag": "Astrophysics"
}
],
"notes": [],
"seeAlso": []
}
]
},
{
"type": "web",
"url": "https://ntrs.nasa.gov/citations/20130010221",
"defer": true,
"items": [
{
"itemType": "document",
"title": "Gas-Liquid Supersonic Cleaning and Cleaning Verification Spray System",
"creators": [
{
"firstName": "Lewis M.",
"lastName": "Parrish",
"creatorType": "author"
}
],
"date": "2009-03-01",
"abstractNote": "NASA Kennedy Space Center (KSC) recently entered into a nonexclusive license agreement with Applied Cryogenic Solutions (ACS), Inc. (Galveston, TX) to commercialize its Gas-Liquid Supersonic Cleaning and Cleaning Verification Spray System technology. This technology, developed by KSC, is a critical component of processes being developed and commercialized by ACS to replace current mechanical and chemical cleaning and descaling methods used by numerous industries. Pilot trials on heat exchanger tubing components have shown that the ACS technology provides for: Superior cleaning in a much shorter period of time. Lower energy and labor requirements for cleaning and de-scaling uper.ninih. Significant reductions in waste volumes by not using water, acidic or basic solutions, organic solvents, or nonvolatile solid abrasives as components in the cleaning process. Improved energy efficiency in post-cleaning heat exchanger operations. The ACS process consists of a spray head containing supersonic converging/diverging nozzles, a source of liquid gas; a novel, proprietary pumping system that permits pumping liquid nitrogen, liquid air, or supercritical carbon dioxide to pressures in the range of 20,000 to 60,000 psi; and various hoses, fittings, valves, and gauges. The size and number of nozzles can be varied so the system can be built in configurations ranging from small hand-held spray heads to large multinozzle cleaners. The system also can be used to verify if a part has been adequately cleaned.",
"extra": "NTRS Author Affiliations: QinetiQ North America\nNTRS Report/Patent Number: KSC-2009-044\nNTRS Document ID: 20130010221\nNTRS Research Center: Kennedy Space Center (KSC)",
"libraryCatalog": "NASA NTRS",
"url": "https://ntrs.nasa.gov/citations/20130010221",
"attachments": [
{
"title": "20130010221.pdf",
"mimeType": "application/pdf"
},
{
"title": "Snapshot",
"mimeType": "text/html"
}
],
"tags": [
{
"tag": "Engineering (General)"
}
],
"notes": [],
"seeAlso": []
}
]
},
{
"type": "web",
"url": "https://ntrs.nasa.gov/citations/20130010127",
"defer": true,
"items": [
{
"itemType": "journalArticle",
"title": "Mineralogy of Meteorite Groups: An Update",
"creators": [
{
"firstName": "Alan E.",
"lastName": "Rubin",
"creatorType": "author"
}
],
"date": "1997-09-01",
"DOI": "10.1111/j.1945-5100.1997.tb01558.x",
"abstractNote": "Twenty minerals that were not included in the most recent list of meteoritic minerals have been reported as occurring in meteorites. Extraterrestrial anhydrous Ca phosphate should be called menillite, not whitlockite.",
"extra": "NTRS Author Affiliations: California Univ.\nNTRS Document ID: 20130010127\nNTRS Research Center: Headquarters (HQ)",
"issue": "5",
"libraryCatalog": "NASA NTRS",
"publicationTitle": "Meteoritics and Planetary Science",
"shortTitle": "Mineralogy of Meteorite Groups",
"url": "https://ntrs.nasa.gov/citations/20130010127",
"volume": "32",
"attachments": [
{
"title": "Snapshot",
"mimeType": "text/html"
}
],
"tags": [
{
"tag": "Geophysics"
}
],
"notes": [],
"seeAlso": []
}
]
},
{
"type": "web",
"url": "https://ntrs.nasa.gov/citations/20040200977",
"defer": true,
"items": [
{
"itemType": "thesis",
"title": "Validation of Design and Analysis Techniques of Tailored Composite Structures",
"creators": [
{
"firstName": "Dawn C.",
"lastName": "Jegley",
"creatorType": "author"
},
{
"firstName": "Dulnath D.",
"lastName": "Wijayratne",
"creatorType": "author"
}
],
"date": "2004-12-01",
"abstractNote": "Aeroelasticity is the relationship between the elasticity of an aircraft structure and its aerodynamics. This relationship can cause instabilities such as flutter in a wing. Engineers have long studied aeroelasticity to ensure such instabilities do not become a problem within normal operating conditions. In recent decades structural tailoring has been used to take advantage of aeroelasticity. It is possible to tailor an aircraft structure to respond favorably to multiple different flight regimes such as takeoff, landing, cruise, 2-g pull up, etc. Structures can be designed so that these responses provide an aerodynamic advantage. This research investigates the ability to design and analyze tailored structures made from filamentary composites. Specifically the accuracy of tailored composite analysis must be verified if this design technique is to become feasible. To pursue this idea, a validation experiment has been performed on a small-scale filamentary composite wing box. The box is tailored such that its cover panels induce a global bend-twist coupling under an applied load. Two types of analysis were chosen for the experiment. The first is a closed form analysis based on a theoretical model of a single cell tailored box beam and the second is a finite element analysis. The predicted results are compared with the measured data to validate the analyses. The comparison of results show that the finite element analysis is capable of predicting displacements and strains to within 10% on the small-scale structure. The closed form code is consistently able to predict the wing box bending to 25% of the measured value. This error is expected due to simplifying assumptions in the closed form analysis. Differences between the closed form code representation and the wing box specimen caused large errors in the twist prediction. The closed form analysis prediction of twist has not been validated from this test.",
"extra": "NTRS Author Affiliations: NASA Langley Research Center, George Washington Univ.\nNTRS Report/Patent Number: NASA/CR-2004-212650\nNTRS Document ID: 20040200977\nNTRS Research Center: Langley Research Center (LaRC)",
"libraryCatalog": "NASA NTRS",
"url": "https://ntrs.nasa.gov/citations/20040200977",
"attachments": [
{
"title": "20040200977.pdf",
"mimeType": "application/pdf"
},
{
"title": "Snapshot",
"mimeType": "text/html"
}
],
"tags": [
{
"tag": "Structural Mechanics"
}
],
"notes": [],
"seeAlso": []
}
]
},
{
"type": "web",
"url": "https://ntrs.nasa.gov/citations/19630002484",
"defer": true,
"items": [
{
"itemType": "document",
"title": "Third Saturn Rocket to be Launched",
"creators": [],
"date": "1962-11-13",
"abstractNote": "Saturn sa-3 launch - high water project",
"extra": "NTRS Document ID: 19630002484\nNTRS Research Center: Legacy CDMS (CDMS)",
"libraryCatalog": "NASA NTRS",
"url": "https://ntrs.nasa.gov/citations/19630002484",
"attachments": [
{
"title": "19630002484.pdf",
"mimeType": "application/pdf"
},
{
"title": "Snapshot",
"mimeType": "text/html"
}
],
"tags": [
{
"tag": "SPACE VEHICLES"
}
],
"notes": [],
"seeAlso": []
}
]
},
{
"type": "web",
"url": "https://ntrs.nasa.gov/search?q=saturn%20v",
"defer": true,
"items": "multiple"
},
{
"type": "web",
"url": "https://ntrs.nasa.gov/citations/20205011830",
"items": [
{
"itemType": "report",
"title": "Fitting Leak Test Report",
"creators": [
{
"firstName": "Jared",
"lastName": "Sass",
"creatorType": "author"
},
{
"firstName": "Angela",
"lastName": "Krenn",
"creatorType": "author"
}
],
"date": "2020-12-28",
"abstractNote": "Many Human Landing System flight elements are anticipated to implement mechanically connected joints in cryogenic fluid lines to simplify system assembly. These joints will need to survive launch vibration, while cold, and remain as leak‐free as possible to minimize commodity loss. Threaded fluid fittings should be qualified for use in their expected environments to reduce risk and ensure mission success. A new ground‐based test apparatus was developed and validated to obtain quantifiable low leak rate test data for a small component, such as a pressurized threaded fluid fitting, while in the temperature range of liquid hydrogen. A cryocooler is used to attain the cold test temperature and helium leakage from a pressurized fitting mounted within a vacuum test chamber is measured using a mass spectrometer leak detector. Two different sizes of Swagelok VCR fittings with three different types of seal rings were selected as the test articles for the initial proof of concept testing. Each fitting configuration was subjected to two consecutive cryogenic thermal cycles and cold leak measurement tests, followed by exposure to a high vibration test profile at ambient temperature on a shaker table, and then two additional cold leak measurement tests. Very low leak rates, below the acceptable leak rate threshold, were measured at the pressures tested. Several enhancements to the test hardware are discussed that would facilitate a comprehensive fitting qualification test campaign by enabling a higher test throughput rate and ensuring a repeatable test profile.",
"extra": "NTRS Author Affiliations: Kennedy Space Center\nNTRS Document ID: 20205011830\nNTRS Research Center: Kennedy Space Center (KSC)",
"libraryCatalog": "NASA NTRS",
"url": "https://ntrs.nasa.gov/citations/20205011830",
"attachments": [
{
"title": "Fitting Leak Test Report Public Release - Dec 2020.pdf",
"mimeType": "application/pdf"
},
{
"title": "Snapshot",
"mimeType": "text/html"
}
],
"tags": [
{
"tag": "Engineering (General)"
}
],
"notes": [],
"seeAlso": []
}
]
}
]
/** END TEST CASES **/