-
Notifications
You must be signed in to change notification settings - Fork 524
/
RHHZ.js
383 lines (370 loc) · 12.8 KB
/
RHHZ.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
{
"translatorID": "3b4e0da7-d9b2-41e8-b4d3-38701241b872",
"label": "RHHZ",
"creator": "jiaojiaodubai",
"target": "",
"minVersion": "5.0",
"maxVersion": "",
"priority": 150,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2024-07-14 12:51:10"
}
/*
***** BEGIN LICENSE BLOCK *****
Copyright © 2024 jiaojiaodubai<jiaojiaodubai23@gmail.com>
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) {
const inSite = doc.querySelector('div[class^="foot"] a[href*="www.rhhz.net"]');
const itemID = doc.querySelector('meta[name="citation_id"]');
if (inSite && itemID) {
return 'journalArticle';
}
else if (inSite && getSearchResults(doc, true)) {
return 'multiple';
}
return false;
}
function getSearchResults(doc, checkOnly) {
const items = {};
let found = false;
const rows = doc.querySelectorAll('div.article-list-title a:first-of-type');
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;
}
async function doWeb(doc, url) {
if (detectWeb(doc, url) == 'multiple') {
const items = await Zotero.selectItems(getSearchResults(doc, false));
if (!items) return;
for (const url of Object.keys(items)) {
await scrape(await requestDocument(url));
}
}
else {
await scrape(doc, url);
}
}
async function scrape(doc, url = doc.location.href) {
const translator = Zotero.loadTranslator('web');
let pdfURL = '';
// https://yizhe.dmu.edu.cn/article/doi/10.12014/j.issn.1002-0772.2024.13.01
const pdfButton = doc.querySelector('.pdfview a');
let socallURL = attr(doc, 'head > meta[name="citation_pdf_url"]', 'content');
if (socallURL.endsWith('.pdf')) {
pdfURL = socallURL;
}
else if (pdfButton) {
pdfURL = pdfButton.href;
}
else {
const id = attr(doc, 'head > meta[name="citation_id"]', 'content');
pdfURL = `${doc.location.protol}//${doc.location.protocol}/article/exportPdf?id=${id}`;
}
Z.debug(`PDF URL: ${pdfURL}`);
// Embedded Metadata
translator.setTranslator('951c027d-74ac-47d4-a107-9c3069ab7b48');
translator.setDocument(doc);
translator.setHandler('itemDone', (_obj, item) => {
delete item.company;
delete item.distributor;
delete item.institution;
delete item.label;
delete item.publisher;
item.creators.forEach((creator) => {
if (/[\u4e00-\u9fff]/.test(creator.lastName)) {
creator.fieldMode = 1;
}
});
item.language = item.language === 'zh' ? 'zh-CN' : 'en-US';
item.attachments = [
{
url: pdfURL,
title: 'Full Text PDF',
mimeType: 'application/pdf'
}
];
item.attachments.push({
url: url,
document: doc,
title: 'Snapshot',
mimeType: 'text/html'
});
item.complete();
});
const em = await translator.getTranslatorObject();
em.itemType = 'journalArticle';
await em.doWeb(doc, url);
}
/** BEGIN TEST CASES **/
var testCases = [
{
"type": "web",
"url": "https://www.hplpb.com.cn/cn/article/doi/10.11884/HPLPB202335.230046",
"items": [
{
"itemType": "journalArticle",
"title": "抗弯曲大模场面积少模光子晶体光纤",
"creators": [
{
"firstName": "",
"lastName": "解国兴",
"creatorType": "author",
"fieldMode": 1
},
{
"firstName": "",
"lastName": "谭芳",
"creatorType": "author",
"fieldMode": 1
},
{
"firstName": "",
"lastName": "张云龙",
"creatorType": "author",
"fieldMode": 1
},
{
"firstName": "",
"lastName": "高斌豪",
"creatorType": "author",
"fieldMode": 1
},
{
"firstName": "",
"lastName": "崔顺发",
"creatorType": "author",
"fieldMode": 1
},
{
"firstName": "",
"lastName": "穆伟",
"creatorType": "author",
"fieldMode": 1
},
{
"firstName": "",
"lastName": "朱先和",
"creatorType": "author",
"fieldMode": 1
}
],
"date": "2023-12-15",
"DOI": "10.11884/HPLPB202335.230046",
"ISSN": "1001-4322",
"abstractNote": "为更好地解决少模光纤在传输中由于模式耦合过强而导致的信号串扰问题,对弱耦合光子晶体光纤中的线偏振(LP)模式以及矢量模的传输特性进行了研究,设计了一种可传输20种矢量模的双包层光子晶体光纤。通过有限元法模拟光纤参数对相邻LP模式间最小有效折射率差的影响,优化结构参数,使光纤支持稳定传输6种LP模式并满足弱耦合要求。最后分析了不同模式的有效模场面积、弯曲损耗。结果表明:各模式之间的最小有效折射率差达到1.12×10<sup>−4</sup>,表明模式间的串扰可忽略。基模有效模场面积达到了1040 μm<sup>2</sup>,且其相应的非线性系数低至1.07×10<sup>−10</sup>。此外,在弯曲半径为38 mm时,各模式弯曲损耗最大仅为5.65×10<sup>−8</sup> dB/km。与主流的单模光纤及少模单包层相比,该结构具有大模场面积,低模间串扰及更强的抗弯曲能力,丰富了空分复用技术的开发思路。在大数据、虚拟现实、网络传输容量等新兴业务以及光纤传感方面提供了有益的参考方案。",
"issue": "12",
"journalAbbreviation": "qjgylzs",
"language": "zh-CN",
"libraryCatalog": "www.hplpb.com.cn",
"pages": "121002-7",
"publicationTitle": "强激光与粒子束",
"rights": "http://creativecommons.org/licenses/by/3.0/",
"url": "https://www.hplpb.com.cn/cn/article/doi/10.11884/HPLPB202335.230046",
"volume": "35",
"attachments": [
{
"title": "Full Text PDF",
"mimeType": "application/pdf"
},
{
"title": "Snapshot",
"mimeType": "text/html"
}
],
"tags": [
{
"tag": "光子晶体光纤"
},
{
"tag": "大模场面积"
},
{
"tag": "弱耦合少模"
},
{
"tag": "抗弯曲"
},
{
"tag": "空分复用技术"
}
],
"notes": [],
"seeAlso": []
}
]
},
{
"type": "web",
"url": "http://www.lczcyj.com/cn/article/doi/10.12344/lczcyj.2023.01.10.0003",
"items": [
{
"itemType": "journalArticle",
"title": "宁夏退耕还林还草成果巩固问题探讨",
"creators": [
{
"lastName": "王治啸",
"creatorType": "author",
"fieldMode": 1
},
{
"lastName": "高红军",
"creatorType": "author",
"fieldMode": 1
}
],
"date": "2023-03-30",
"DOI": "10.12344/lczcyj.2023.01.10.0003",
"ISSN": "2096-9546",
"abstractNote": "退耕还林还草是中共中央、国务院在20世纪末着眼中华民族长远发展和国家生态安全作出的重大决策。23年来的退耕还林还草工程实践取得了巨大的生态、经济和社会效益,赢得了社会各界赞誉。\"十四五\"以来,国家基于粮食安全和耕地保护考虑,已将工程重心转移到巩固已有建设成果上来。文中基于宁夏回族自治区退耕还林还草工程现状,总结退耕还林还草成果巩固的经验做法,梳理分析现存问题,并提出今后推动退耕还林还草高质量发展的建议:1)深挖后续产业发展潜力,促进\"以林养林\";2)合理优化退耕林地树种组成和植被配置模式,改善退耕林质量;3)提高生态效益补偿标准;4)稳定基层管理队伍。",
"issue": "1",
"journalAbbreviation": "lczcyj",
"language": "zh-CN",
"libraryCatalog": "www.lczcyj.com",
"pages": "18-23",
"publicationTitle": "林草政策研究",
"rights": "http://creativecommons.org/licenses/by/3.0/",
"url": "http://www.lczcyj.com/cn/article/doi/10.12344/lczcyj.2023.01.10.0003",
"volume": "3",
"attachments": [
{
"title": "Full Text PDF",
"mimeType": "application/pdf"
},
{
"title": "Snapshot",
"mimeType": "text/html"
}
],
"tags": [
{
"tag": "宁夏回族自治区"
},
{
"tag": "成果巩固"
},
{
"tag": "生态补偿机制"
},
{
"tag": "退耕还林还草"
}
],
"notes": [],
"seeAlso": []
}
]
},
{
"type": "web",
"url": "http://www.yndxxb.ynu.edu.cn/yndxxbzrkxb/",
"items": "multiple"
},
{
"type": "web",
"url": "https://www.lcgdbzz.org/cn/article/doi/10.12449/JCH240609",
"items": [
{
"itemType": "journalArticle",
"title": "慢性乙型肝炎及肝硬化患者血清血管生成素1、2及其比值变化与HBV DNA和ALT的相关性分析",
"creators": [
{
"firstName": "",
"lastName": "林明华",
"creatorType": "author",
"fieldMode": 1
},
{
"firstName": "",
"lastName": "常远",
"creatorType": "author",
"fieldMode": 1
},
{
"firstName": "",
"lastName": "刘芳",
"creatorType": "author",
"fieldMode": 1
},
{
"firstName": "",
"lastName": "黄雁翔",
"creatorType": "author",
"fieldMode": 1
},
{
"firstName": "",
"lastName": "徐航飞",
"creatorType": "author",
"fieldMode": 1
}
],
"date": "2024",
"DOI": "10.12449/JCH240609",
"ISSN": "1001-5256",
"abstractNote": "<sec> <b>目的</b> 分析血清血管生成素(Ang)1、2及其比值变化与慢性乙型肝炎(CHB)、肝硬化患者HBV DNA和ALT的相关性。</sec><sec> <b>方法</b> 选取2018年3月—2019年10月首都医科大学附属北京佑安医院收治的CHB患者99例,肝硬化患者59例,收集临床资料和血清标本;另选同期46例健康体检者作为对照组。所有患者均采用PCR法检测血清HBV DNA;采用酶联免疫吸附法检测血清Ang-1和Ang-2水平,比较各组血清Ang-1和Ang-2及Ang-1/Ang-2的差异。非正态分布的计量资料多组间比较采用Kruskal-Wallis <i>H</i>检验,进一步两两比较采用Bonferroni法;采用Spearman方法分析Ang-1、Ang-2、Ang-1/Ang-2与HBV DNA、ALT的相关性。</sec><sec> <b>结果</b> 与对照组(671.0 pg/mL)相比,CHB组(479.0 pg/mL)和肝硬化组(208.4 pg/mL)Ang-1水平显著降低(<i>P</i>值均<0.05);与CHB组相比,肝硬化组Ang-1水平显著降低(<i>P</i><0.001)。与对照组(198.0 pg/mL)相比,CHB组(286.1 pg/mL)和肝硬化组(438.4 pg/mL)Ang-2水平显著升高(<i>P</i>值均<0.001);与CHB组相比,肝硬化组Ang-2水平显著升高(<i>P</i><0.001)。与对照组(3.4)相比,CHB组(1.6)和肝硬化组(0.5)Ang-1/Ang-2比值显著降低(<i>P</i>值均<0.001);与CHB组相比,肝硬化组Ang-1/Ang-2比值显著降低(<i>P</i><0.001)。Spearman分析显示,CHB组Ang-1与HBV DNA及ALT均呈负相关(<i>r</i>值分别为-0.400、-0.394,<i>P</i>值均˂0.001);Ang-2与HBV DNA及ALT均呈正相关(<i>r</i>值分别为0.365、0.351,<i>P</i>值均˂0.001);Ang-1/Ang-2与HBV DNA及ALT均呈负相关(<i>r</i>值分别为-0.463、-0.473,<i>P</i>值均˂0.001);而肝硬化组Ang-1、Ang-2及Ang-1/Ang-2均与HBV DNA和ALT无相关性(<i>P</i>值均˃0.05)。</sec><sec> <b>结论</b> CHB、肝硬化患者血清Ang-1、Ang-2及Ang-1/Ang-2有显著改变,其中肝炎组Ang-1、Ang-2及Ang-1/Ang-2在一定程度上反映CHB患者肝损伤的程度。</sec>",
"issue": "6",
"journalAbbreviation": "lcgdbzz",
"language": "zh-CN",
"libraryCatalog": "www.lcgdbzz.org",
"pages": "1126-1129",
"publicationTitle": "临床肝胆病杂志",
"rights": "http://creativecommons.org/licenses/by/3.0/",
"url": "https://www.lcgdbzz.org/cn/article/doi/10.12449/JCH240609",
"volume": "40",
"attachments": [
{
"title": "Full Text PDF",
"mimeType": "application/pdf"
},
{
"title": "Snapshot",
"mimeType": "text/html"
}
],
"tags": [
{
"tag": "丙氨酸转氨酶"
},
{
"tag": "乙型肝炎病毒"
},
{
"tag": "乙型肝炎, 慢性"
},
{
"tag": "肝硬化"
},
{
"tag": "血管生成素1"
},
{
"tag": "血管生成素2"
}
],
"notes": [],
"seeAlso": []
}
]
}
]
/** END TEST CASES **/