papersearch 0.7.2 → 0.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/capabilities/download/batch/batch.d.ts.map +1 -1
  2. package/dist/capabilities/download/batch/batch.js +297 -14
  3. package/dist/capabilities/download/batch/batch.js.map +1 -1
  4. package/dist/capabilities/download/batch/batchFolder.js +1 -1
  5. package/dist/capabilities/download/batch/batchFolder.js.map +1 -1
  6. package/dist/capabilities/download/batch/batchSummary.js +1 -1
  7. package/dist/capabilities/download/batch/batchSummary.js.map +1 -1
  8. package/dist/capabilities/download/batch/networkLoss.d.ts +1 -1
  9. package/dist/capabilities/download/batch/networkLoss.js +1 -1
  10. package/dist/capabilities/download/content/markdown/shortfall.js +5 -5
  11. package/dist/capabilities/download/content/markdown/shortfall.js.map +1 -1
  12. package/dist/infrastructure/runlog/failureClass.d.ts +16 -9
  13. package/dist/infrastructure/runlog/failureClass.d.ts.map +1 -1
  14. package/dist/infrastructure/runlog/failureClass.js +64 -54
  15. package/dist/infrastructure/runlog/failureClass.js.map +1 -1
  16. package/dist/infrastructure/school/SchoolAttempt.d.ts.map +1 -1
  17. package/dist/infrastructure/school/SchoolAttempt.js +61 -56
  18. package/dist/infrastructure/school/SchoolAttempt.js.map +1 -1
  19. package/dist/infrastructure/school/SchoolMcpClient.d.ts +6 -2
  20. package/dist/infrastructure/school/SchoolMcpClient.d.ts.map +1 -1
  21. package/dist/infrastructure/school/SchoolMcpClient.js +14 -3
  22. package/dist/infrastructure/school/SchoolMcpClient.js.map +1 -1
  23. package/dist/infrastructure/school/index.d.ts +1 -1
  24. package/dist/infrastructure/school/index.d.ts.map +1 -1
  25. package/dist/infrastructure/school/types.d.ts +10 -3
  26. package/dist/infrastructure/school/types.d.ts.map +1 -1
  27. package/dist/management/failures/index.d.ts +5 -2
  28. package/dist/management/failures/index.d.ts.map +1 -1
  29. package/dist/management/failures/index.js +21 -4
  30. package/dist/management/failures/index.js.map +1 -1
  31. package/package.json +1 -1
  32. package/school/paper_search_school/adapters/base.py +4 -0
  33. package/school/paper_search_school/adapters/oup/__init__.py +20 -0
  34. package/school/paper_search_school/adapters/sage/__init__.py +4 -1
  35. package/school/paper_search_school/adapters/taylor_francis/__init__.py +3 -0
  36. package/school/paper_search_school/adapters/thieme/__init__.py +4 -2
  37. package/school/paper_search_school/assets/capsule.html +125 -49
  38. package/school/paper_search_school/assets/capsule_en.json +32 -54
  39. package/school/paper_search_school/assets/capsule_fr.json +32 -54
  40. package/school/paper_search_school/assets/capsule_ja.json +32 -54
  41. package/school/paper_search_school/assets/capsule_ko.json +32 -54
  42. package/school/paper_search_school/assets/capsule_zh-Hant.json +27 -53
  43. package/school/paper_search_school/cold_start.py +22 -11
  44. package/school/paper_search_school/engine/access_rules.py +3 -2
  45. package/school/paper_search_school/engine/batch.py +12 -4
  46. package/school/paper_search_school/engine/batch_access.py +21 -9
  47. package/school/paper_search_school/engine/batch_capture.py +1 -1
  48. package/school/paper_search_school/engine/batch_institution.py +130 -29
  49. package/school/paper_search_school/engine/bridge.py +16 -3
  50. package/school/paper_search_school/engine/router.py +2 -1
  51. package/school/paper_search_school/orchestrator.py +44 -18
  52. package/school/paper_search_school/progress_reporter.py +17 -8
  53. package/school/paper_search_school/progress_view.py +1 -1
  54. package/school/paper_search_school/publishers/builtin/sage.json +4 -2
  55. package/school/paper_search_school/publishers/builtin/thieme.json +3 -1
  56. package/school/paper_search_school/school_switch.py +34 -52
  57. package/school/paper_search_school/server.py +10 -8
  58. package/skills/paper-search/SKILL.md +1 -1
  59. package/skills/paper-search/references/browser-download.md +7 -9
  60. package/skills/paper-search/references/publisher-support.md +2 -2
@@ -2,22 +2,18 @@
2
2
  "exact": {
3
3
  "Crossref 没有认这个邮箱,仍走普通通道": "Crossref 沒有認這個電子郵件,仍走普通通道",
4
4
  "DOI 或文章网址": "DOI 或文章網址",
5
- "DOI 暂时查不到": "DOI 暫時查不到",
6
- "DOI 没指向能登录的网站": "DOI 沒指向能登入的網站",
7
- "DOI 没有登记": "DOI 沒有登記",
8
5
  "GitHub 上没找到 Pro 安装包": "GitHub 上沒找到 Pro 安裝包",
9
6
  "Markdown、补充材料": "Markdown、補充材料",
10
7
  "Markdown:借用其他网站的规则转换": "Markdown:借用其他網站的規則轉換",
11
8
  "PDF 已保存": "PDF 已儲存",
12
9
  "PDF 已保存,待内容核验": "PDF 已儲存,待內容核驗",
13
10
  "PDF 已打开,但没保存": "PDF 已打開,但沒儲存",
14
- "PDF 身份未确认": "PDF 身份未確認",
15
11
  "PDF、Markdown、补充材料": "PDF、Markdown、補充材料",
16
12
  "PDF、补充材料": "PDF、補充材料",
13
+ "PMC 没响应": "PMC 沒響應",
17
14
  "PaperSearch Pro 已安装": "PaperSearch Pro 已安裝",
18
- "PaperSearch Pro 暂不可用": "PaperSearch Pro 暫不可用",
19
15
  "PaperSearch Pro 的下载地址还没开放": "PaperSearch Pro 的下載地址還沒開放",
20
- "PubMed Central 没响应": "PubMed Central 沒響應",
16
+ "Pro 暂不可用": "Pro 暫不可用",
21
17
  "PubMed 没有这篇的 DOI,请改填 DOI": "PubMed 沒有這篇的 DOI,請改填 DOI",
22
18
  "Windows 关掉了 PaperSearch 的通知": "Windows 關掉了 PaperSearch 的通知",
23
19
  "key 里不能有空格、换行或中文字符": "key 里不能有空格、換行或中文字符",
@@ -33,19 +29,13 @@
33
29
  "下载全文,检索 ScienceDirect、Scopus": "下載全文,檢索 ScienceDirect、Scopus",
34
30
  "下载全文,检索 Springer": "下載全文,檢索 Springer",
35
31
  "下载完成": "下載完成",
36
- "下载已取消": "下載已取消",
37
32
  "下载新版本出错,请稍后再试": "下載新版本出錯,請稍後再試",
38
33
  "下载时找免费全文": "下載時找免費全文",
39
- "下载时程序出错": "下載時程式出錯",
40
34
  "下载未完成": "下載未完成",
41
35
  "下载未成功": "下載未成功",
42
36
  "下载浏览器关掉了": "下載瀏覽器關掉了",
43
37
  "下载浏览器已关闭": "下載瀏覽器已關閉",
44
- "下载浏览器被关闭了": "下載瀏覽器被關閉了",
45
38
  "下载浏览器还开着": "下載瀏覽器還開著",
46
- "下载环境不可用": "下載環境不可用",
47
- "下载环境被占用": "下載環境被占用",
48
- "下载等待超时": "下載等待超時",
49
39
  "下载结束后更新": "下載結束後更新",
50
40
  "下载结束,部分失败": "下載結束,部分失敗",
51
41
  "下载订阅全文(非必须)": "下載訂閱全文(非必須)",
@@ -61,16 +51,13 @@
61
51
  "亚利桑那州": "亞利桑那州",
62
52
  "亚拉巴马州": "阿拉巴馬州",
63
53
  "亚洲": "亞洲",
64
- "人机验证没通过": "人機驗證沒通過",
65
54
  "从一篇论文出发,沿引用找相关文献,画成关系图": "從一篇論文出發,沿引用找相關文獻,畫成關係圖",
66
55
  "从打开的标签页读到本文的 PDF": "從打開的標籤頁讀到本文的 PDF",
67
- "任务已终止": "任務已終止",
68
56
  "伊利诺伊州": "伊利諾州",
69
57
  "佐治亚州": "喬治亞州",
70
58
  "佛罗里达州": "佛羅里達州",
71
- "你标记过无权限": "你標記過無權限",
72
- "你跳过了这一篇": "你跳過了這一篇",
73
- "你这边": "你這邊",
59
+ "你标记过没权限": "你標記過沒權限",
60
+ "你跳过或终止了": "你跳過或終止了",
74
61
  "使用状态": "使用狀態",
75
62
  "俄克拉何马州": "俄克拉何馬州",
76
63
  "俄勒冈州": "俄勒岡州",
@@ -83,9 +70,8 @@
83
70
  "先填测试文章": "先填測試文章",
84
71
  "先检查更新": "先檢查更新",
85
72
  "克罗地亚": "克羅埃西亞",
86
- "全文尚未发布": "全文尚未發布",
87
- "全文未确认有效": "全文未確認有效",
88
73
  "全文网页已读取": "全文網頁已讀取",
74
+ "全文还没上线": "全文還沒上線",
89
75
  "关": "關",
90
76
  "关于 PaperSearch": "關於 PaperSearch",
91
77
  "关岛": "關島",
@@ -104,14 +90,12 @@
104
90
  "出版社内容服务错误,当前路径已停止": "出版社內容服務錯誤,當前路徑已停止",
105
91
  "出版社原文转成 Markdown,图表、公式完整": "出版社原文轉成 Markdown,圖表、公式完整",
106
92
  "出版社尚未发布这篇论文的全文,当前路径已停止": "出版社尚未發布這篇論文的全文,當前路徑已停止",
107
- "出版社或网络": "出版社或網路",
93
+ "出版社没开通本校": "出版社沒開通本校",
94
+ "出版社网站出错": "出版社網站出錯",
108
95
  "出版社网站拦住了访问": "出版社網站攔住了訪問",
109
- "出版社网站没响应": "出版社網站沒響應",
110
- "出版社页面出错": "出版社頁面出錯",
111
96
  "切到下载浏览器": "切到下載瀏覽器",
112
97
  "切换失败": "切換失敗",
113
98
  "利比里亚": "賴比瑞亞",
114
- "到了每小时下载上限": "到了每小時下載上限",
115
99
  "剩余": "剩餘",
116
100
  "加利福尼亚州": "加利福尼亞州",
117
101
  "加纳": "加納",
@@ -151,7 +135,6 @@
151
135
  "可以用:Unpaywall 接受这个邮箱": "可以用:Unpaywall 接受這個電子郵件",
152
136
  "可以用:已走 Crossref 优先通道": "可以用:已走 Crossref 優先通道",
153
137
  "台湾": "台灣",
154
- "后端结果无法使用": "後端結果無法使用",
155
138
  "哈萨克斯坦": "哈薩克",
156
139
  "哥伦比亚": "哥倫比亞",
157
140
  "哥伦比亚特区": "哥倫比亞特區",
@@ -190,16 +173,13 @@
190
173
  "学校可能没订这本刊,换一篇再测": "學校可能沒訂這本刊,換一篇再測",
191
174
  "学校名单暂时读不到,请稍后再试": "學校名單暫時讀不到,請稍後再試",
192
175
  "学校名称": "學校名稱",
193
- "学校密码已过期": "學校密碼已過期",
194
176
  "学校没有接受保存的密码,自动登录已关闭:请在浏览器窗口完成机构登录,并在设置里更新密码": "學校沒有接受儲存的密碼,自動登入已關閉:請在瀏覽器視窗完成機構登入,並在設定里更新密碼",
195
177
  "学校没有接受保存的密码,自动登录已关闭;更新密码后保存,就会重新打开": "學校沒有接受儲存的密碼,自動登入已關閉;更新密碼後儲存,就會重新打開",
196
178
  "学校没有订阅": "學校沒有訂閱",
197
179
  "学校登录": "學校登入",
198
- "学校登录中途失效,已暂停": "學校登入中途失效,已暫停",
199
- "学校登录后没回到出版社": "學校登入後沒回到出版社",
180
+ "学校登录中途失效": "學校登入中途失效",
200
181
  "学校登录测试": "學校登入測試",
201
182
  "学校登录系统出错": "學校登入系統出錯",
202
- "学校登录被拒绝": "學校登入被拒絕",
203
183
  "学校登录页最多等": "學校登入頁最多等",
204
184
  "学校登录页的证书和之前记下的不一样,没有自动填写:请确认是学校的网站后,在浏览器窗口完成机构登录": "學校登入頁的證書和之前記下的不一樣,沒有自動填寫:請確認是學校的網站後,在瀏覽器視窗完成機構登入",
205
185
  "学校登录页自动填写账号和密码,批量下载不用守着。": "學校登入頁自動填寫帳號和密碼,批次下載不用守著。",
@@ -213,14 +193,11 @@
213
193
  "学校登录页要输入图片验证码,请在浏览器窗口完成": "學校登入頁要輸入圖片驗證碼,請在瀏覽器視窗完成",
214
194
  "学校自动登录": "學校自動登入",
215
195
  "学校订阅下载扩展": "學校訂閱下載擴展",
216
- "学校订阅下载扩展需要更新": "學校訂閱下載擴展需要更新",
217
196
  "学校说密码不对": "學校說密碼不對",
218
197
  "学校说密码已过期": "學校說密碼已過期",
219
198
  "学校说账号被锁定": "學校說帳號被鎖定",
220
- "学校账号被锁定": "學校帳號被鎖定",
221
199
  "学校还要二次验证,请在浏览器窗口完成": "學校還要二次驗證,請在瀏覽器視窗完成",
222
200
  "学校还要再验证一步(如微信扫码),请在浏览器窗口完成": "學校還要再驗證一步(如微信掃碼),請在瀏覽器視窗完成",
223
- "学校那边": "學校那邊",
224
201
  "宁夏": "寧夏",
225
202
  "安全验证": "安全驗證",
226
203
  "安全验证等待已结束,正在检查页面": "安全驗證等待已結束,正在檢查頁面",
@@ -240,6 +217,7 @@
240
217
  "密克罗尼西亚": "密克羅尼西亞",
241
218
  "密歇根州": "密西根州",
242
219
  "密码": "密碼",
220
+ "密码被学校拒绝": "密碼被學校拒絕",
243
221
  "密苏里州": "密蘇里州",
244
222
  "尼日利亚": "奈及利亞",
245
223
  "展开进度窗口": "展開進度視窗",
@@ -322,18 +300,15 @@
322
300
  "打开系统通知设置": "打開系統通知設定",
323
301
  "打开自动登录": "打開自動登入",
324
302
  "打开通知设置": "打開通知設定",
303
+ "扩展需要更新": "擴展需要更新",
325
304
  "批量下载已停止,结果未确认": "批次下載已停止,結果未確認",
326
305
  "找不到 paper-search 命令,请关掉窗口后重新打开设置": "找不到 paper-search 命令,請關掉視窗後重新打開設定",
327
- "找不到学校的登录路线": "找不到學校的登入路線",
328
306
  "找不到安装文件": "找不到安裝檔案",
329
- "找不到机构登录入口": "找不到機構登入入口",
330
307
  "把论文全文转成 Markdown,以下内容一并保留:": "把論文全文轉成 Markdown,以下內容一併保留:",
331
308
  "把论文全文转成 Markdown,图片、表格、公式和参考文献一并保留。": "把論文全文轉成 Markdown,圖片、表格、公式和參考文獻一併保留。",
332
309
  "报告问题": "報告問題",
333
310
  "拉脱维亚": "拉脫維亞",
334
- "拿到的 PDF 无效": "拿到的 PDF 無效",
335
- "拿到的是别篇 PDF": "拿到的是別篇 PDF",
336
- "拿到网页不是文件": "拿到網頁不是檔案",
311
+ "拿错 PDF": "拿錯 PDF",
337
312
  "按关注的主题、期刊或作者,定期推送新论文": "按關注的主題、期刊或作者,定期推送新論文",
338
313
  "换一条路": "換一條路",
339
314
  "排队等机构下载": "排隊等機構下載",
@@ -350,7 +325,6 @@
350
325
  "文献关系图": "文獻關係圖",
351
326
  "文献库里缺 PDF 的条目自动补下,挂回原条目": "文獻庫里缺 PDF 的條目自動補下,掛回原條目",
352
327
  "文献订阅": "文獻訂閱",
353
- "文章或网站": "文章或網站",
354
328
  "文章页没存下来": "文章頁沒存下來",
355
329
  "文章页没有正文": "文章頁沒有正文",
356
330
  "文莱": "汶萊",
@@ -441,7 +415,6 @@
441
415
  "没出现机构登录或选学校": "沒出現機構登入或選學校",
442
416
  "没取到 PDF": "沒取到 PDF",
443
417
  "没在打开的标签页里找到本文的 PDF,已记录页面": "沒在打開的標籤頁裡找到本文的 PDF,已記錄頁面",
444
- "没找到可用 PDF": "沒找到可用 PDF",
445
418
  "没有下载成功": "沒有下載成功",
446
419
  "没有可转换的全文": "沒有可轉換的全文",
447
420
  "没有填": "沒有填",
@@ -460,14 +433,15 @@
460
433
  "没有规则能读出正文": "沒有規則能讀出正文",
461
434
  "没有论文": "沒有論文",
462
435
  "没有这一项": "沒有這一項",
463
- "没有进行机构下载": "沒有進行機構下載",
464
436
  "没有适用的规则": "沒有適用的規則",
465
437
  "没权限": "沒權限",
466
438
  "没权限时换下一所学校": "沒權限時換下一所學校",
439
+ "没法确认 PDF": "沒法確認 PDF",
467
440
  "没看到通知时,检查这几处": "沒看到通知時,檢查這幾處",
468
441
  "没看到?": "沒看到?",
469
442
  "没能查到这个网址的 DOI,请改填 DOI": "沒能查到這個網址的 DOI,請改填 DOI",
470
443
  "没进入学校登录页": "沒進入學校登入頁",
444
+ "没进行学校订阅下载": "沒進行學校訂閱下載",
471
445
  "没连上服务器,没法判断;检查网络或代理后再试": "沒連上伺服器,沒法判斷;檢查網路或代理後再試",
472
446
  "法国": "法國",
473
447
  "法罗群岛": "法羅群島",
@@ -490,10 +464,11 @@
490
464
  "测试通知:需要你登录或验证时,会这样提醒你": "測試通知:需要你登入或驗證時,會這樣提醒你",
491
465
  "测试通过": "測試通過",
492
466
  "浏览器下载": "瀏覽器下載",
493
- "浏览器没有响应": "瀏覽器沒有響應",
494
- "浏览器连接断了": "瀏覽器連接斷了",
467
+ "浏览器被关闭": "瀏覽器被關閉",
468
+ "浏览器被占用": "瀏覽器被占用",
495
469
  "添加失败": "添加失敗",
496
470
  "添加学校": "添加學校",
471
+ "清除账号和密码?": "清除帳號和密碼?",
497
472
  "清除账号密码": "清除帳號密碼",
498
473
  "澳大利亚": "澳大利亞",
499
474
  "澳门": "澳門",
@@ -530,8 +505,6 @@
530
505
  "登录和下载都正常": "登入和下載都正常",
531
506
  "登录并继续": "登入並繼續",
532
507
  "登录成功,但这篇没有访问权限": "登入成功,但這篇沒有訪問權限",
533
- "登录重试已用尽": "登入重試已用盡",
534
- "登录页被关闭": "登入頁被關閉",
535
508
  "白俄罗斯": "白俄羅斯",
536
509
  "看看要改哪里": "看看要改哪裡",
537
510
  "研究机构": "研究機構",
@@ -543,10 +516,11 @@
543
516
  "秘鲁": "秘魯",
544
517
  "移除失败": "移除失敗",
545
518
  "移除这所学校": "移除這所學校",
519
+ "移除这所学校?": "移除這所學校?",
546
520
  "稍后再测,或换一篇": "稍後再測,或換一篇",
547
521
  "立即按新上限继续下载": "立即按新上限繼續下載",
548
522
  "等下载结束、关掉下载浏览器后再测": "等下載結束、關掉下載瀏覽器後再測",
549
- "等学校登录超时": "等學校登入超時",
523
+ "等你登录超时": "等你登入超時",
550
524
  "等待下载进程响应(暂无新进度)": "等待下載進程響應(暫無新進度)",
551
525
  "等待人机验证": "等待人機驗證",
552
526
  "等待机构登录": "等待機構登入",
@@ -564,12 +538,10 @@
564
538
  "继续": "繼續",
565
539
  "综合期刊": "綜合期刊",
566
540
  "缅因州": "緬因州",
567
- "网站人机验证拦截": "網站人機驗證攔截",
568
541
  "网站已阻止当前访问,未取得 PDF": "網站已阻止當前訪問,未取得 PDF",
569
- "网站拦截了当前网络": "網站攔截了當前網路",
570
- "网站暂不支持自动下载附录": "網站暫不支援自動下載附錄",
571
542
  "网站暂不支持转换": "網站暫不支援轉換",
572
- "网站没有学校登录入口": "網站沒有學校登入入口",
543
+ "网站暂未适配": "網站暫未適配",
544
+ "网站没有学校登录": "網站沒有學校登入",
573
545
  "网络不通": "網路不通",
574
546
  "网络中断": "網路中斷",
575
547
  "网络断了,等网络恢复后接着下": "網路斷了,等網路恢復後接著下",
@@ -586,6 +558,7 @@
586
558
  "自动填写": "自動填寫",
587
559
  "自动填写了账号密码,但没有回到文章;学校可能还要验证码或二次验证": "自動填寫了帳號密碼,但沒有回到文章;學校可能還要驗證碼或二次驗證",
588
560
  "自动填写了账号密码,全文已下载并核对": "自動填寫了帳號密碼,全文已下載並核對",
561
+ "自动登录": "自動登入",
589
562
  "自动登录已关闭;改好密码后保存,再测一次": "自動登入已關閉;改好密碼後儲存,再測一次",
590
563
  "自动验证尚未完成,请在浏览器中检查并完成验证": "自動驗證尚未完成,請在瀏覽器中檢查並完成驗證",
591
564
  "艾奥瓦州": "艾奧瓦州",
@@ -604,10 +577,11 @@
604
577
  "表格没取到": "表格沒取到",
605
578
  "被拒绝:Unpaywall 不接受这个邮箱,请填你自己常用的邮箱": "被拒絕:Unpaywall 不接受這個電子郵件,請填你自己常用的電子郵件",
606
579
  "被拒绝:key 不对,或已失效": "被拒絕:key 不對,或已失效",
580
+ "被网站拦截": "被網站攔截",
607
581
  "西弗吉尼亚州": "西維吉尼亞州",
582
+ "要你处理": "要你處理",
608
583
  "计划中": "計劃中",
609
584
  "认不出这篇文章:请填 DOI 或文章网址": "認不出這篇文章:請填 DOI 或文章網址",
610
- "认证入口未注册": "認證入口未註冊",
611
585
  "设为默认": "設為預設",
612
586
  "设置": "設定",
613
587
  "设置 › 系统 › 通知:打开通知,并允许 Windows PowerShell": "設定 › 系統 › 通知:打開通知,並允許 Windows PowerShell",
@@ -637,6 +611,7 @@
637
611
  "读取失败": "讀取失敗",
638
612
  "读取配置失败": "讀取配置失敗",
639
613
  "账号": "帳號",
614
+ "账号被锁或密码过期": "帳號被鎖或密碼過期",
640
615
  "贵州": "貴州",
641
616
  "赞比亚": "尚比亞",
642
617
  "跳到了个人账号登录": "跳到了個人帳號登入",
@@ -649,6 +624,7 @@
649
624
  "转换有缺漏或出错?": "轉換有缺漏或出錯?",
650
625
  "输入完整路径": "輸入完整路徑",
651
626
  "辽宁": "遼寧",
627
+ "达到每小时下载上限": "達到每小時下載上限",
652
628
  "返回进度 ›": "返回進度 ›",
653
629
  "还没有设置学校": "還沒有設定學校",
654
630
  "还没有设置学校:设置好学校后再来填账号": "還沒有設定學校:設定好學校後再來填帳號",
@@ -668,7 +644,6 @@
668
644
  "这批没有保存可导出的网页": "這批沒有儲存可導出的網頁",
669
645
  "这批没有暂未正式支持的网站": "這批沒有暫未正式支援的網站",
670
646
  "这条路没走通,正在换路": "這條路沒走通,正在換路",
671
- "这次更新了什么": "這次更新了什麼",
672
647
  "这次没有用到账号密码:浏览器里还是登录状态,或学校网络直接有权限": "這次沒有用到帳號密碼:瀏覽器裡還是登入狀態,或學校網路直接有權限",
673
648
  "进入机构访问": "進入機構訪問",
674
649
  "选择…": "選擇…",
@@ -688,6 +663,7 @@
688
663
  "阿尔巴尼亚": "阿爾巴尼亞",
689
664
  "阿联酋": "阿聯",
690
665
  "附录": "附錄",
666
+ "附录暂未适配": "附錄暫未適配",
691
667
  "附录检查完成": "附錄檢查完成",
692
668
  "附录没下载成功": "附錄沒下載成功",
693
669
  "陕西": "陝西",
@@ -695,13 +671,11 @@
695
671
  "需要你在浏览器里处理": "需要你在瀏覽器裡處理",
696
672
  "需要你处理": "需要你處理",
697
673
  "需要处理时发系统通知": "需要處理時發系統通知",
698
- "需要学校登录": "需要學校登入",
699
674
  "需要激活": "需要啟用",
700
675
  "韩国": "韓國",
701
676
  "页面可能需要你处理,请查看浏览器窗口": "頁面可能需要你處理,請查看瀏覽器視窗",
702
- "页面处理超时": "頁面處理超時",
703
677
  "页面或安全验证一直没有完成,换一篇或稍后再测": "頁面或安全驗證一直沒有完成,換一篇或稍後再測",
704
- "页面提示全文受限": "頁面提示全文受限",
678
+ "页面或浏览器卡住": "頁面或瀏覽器卡住",
705
679
  "页面暂时无进展": "頁面暫時無進展",
706
680
  "预印本": "預印本",
707
681
  "马上生效": "馬上生效",
@@ -13,7 +13,8 @@ start forgets:
13
13
 
14
14
  It keeps bot-verification records (Cloudflare), personal publisher accounts
15
15
  and cookie-consent choices; before a sign-in with another school (``before_sign_in``)
16
- the personal accounts go too: Elsevier's keeps the school's access with it. Besides the profile's own cookie store it filters
16
+ the personal accounts go too: Elsevier's keeps the school's access with it, while that school's own sign-in (its
17
+ login hosts and domains) stays, as it would come back as it is. Besides the profile's own cookie store it filters
17
18
  the files that put cookies back: the session cookies saved for the next
18
19
  launch and the saved publisher cookies. IndexedDB goes per site. Chrome keeps
19
20
  every site's local storage in one database, which goes whole when it holds a
@@ -35,9 +36,10 @@ from . import federations
35
36
  from .browser.backend import SESSION_COOKIES_FILE, chrome_profile_dir, profile_holder
36
37
  from .browser.cookies import _CLOUDFLARE_COOKIE_NAMES, PUBLISHER_DOMAINS
37
38
  from .engine.batch_institution import InstitutionMixin, _school_auth_patterns
39
+ from .schools import lookup as school_lookup
38
40
 
39
41
  DELETE = ("school_login", "publisher", "other_site")
40
- KEEP = ("verification", "personal_account", "consent")
42
+ KEEP = ("verification", "personal_account", "consent", "own_school")
41
43
 
42
44
  # Personal publisher accounts (Elsevier's account system); extend when another
43
45
  # publisher keeps personal sign-in on a host of its own.
@@ -67,17 +69,24 @@ def _publisher_domains() -> tuple[str, ...]:
67
69
 
68
70
  class Classifier:
69
71
  """Sorts a cookie (host, name) or a site's data (host) into the categories above. ``accounts``: the personal
70
- publisher accounts are forgotten as a school's login (another school to sign in with)."""
72
+ publisher accounts are forgotten as a school's login (another school to sign in with). ``keep_own``: the sign-in of
73
+ ``config``'s school, the one about to sign in, is kept (its login hosts and domains, not a service other schools
74
+ sign in on): forgetting another school's need not make it type its password again, which its login answered with
75
+ a picture code after a few that day (a test school, Windows, 2026-11-22)."""
71
76
 
72
- def __init__(self, config: dict[str, Any], accounts: bool = False):
77
+ def __init__(self, config: dict[str, Any], accounts: bool = False, keep_own: bool = False):
73
78
  self.school_tokens = tuple(t.lower() for t in _school_auth_patterns(config) if t)
74
79
  self.publishers = _publisher_domains()
75
80
  self.accounts = accounts
81
+ own = (*school_lookup.login_hosts(config), *school_lookup.domains(config)) if keep_own else ()
82
+ self.own = tuple(h for h in dict.fromkeys(own) if h and not _under(h, FEDERATION_HOSTS))
76
83
 
77
84
  def __call__(self, host: str, name: str = "") -> str:
78
85
  host = (host or "").lower().lstrip(".").split(":")[0]
79
86
  if name and (name in _CLOUDFLARE_COOKIE_NAMES or name.startswith(("cf_chl", "__cf"))):
80
87
  return "verification"
88
+ if self.own and _under(host, self.own):
89
+ return "own_school"
81
90
  if _under(host, PERSONAL_ACCOUNT_HOSTS):
82
91
  # Elsevier's account keeps the school it was signed in through (remember.me signs the next visit in with
83
92
  # it, the school's access and all: a test of another school passed with the last one's, user 2026-11-21).
@@ -110,10 +119,11 @@ def _netscape_rows(path: Path) -> list[list[str]]:
110
119
 
111
120
 
112
121
  class ColdStart:
113
- def __init__(self, profile: Path, cache_dir: Path | None, config: dict[str, Any], accounts: bool = False):
122
+ def __init__(self, profile: Path, cache_dir: Path | None, config: dict[str, Any], accounts: bool = False,
123
+ keep_own: bool = False):
114
124
  self.profile = profile
115
125
  self.cache_dir = cache_dir # None: the profile only, no saved cookie files
116
- self.classify = Classifier(config, accounts)
126
+ self.classify = Classifier(config, accounts, keep_own)
117
127
 
118
128
  # -- reading ------------------------------------------------------------
119
129
 
@@ -265,7 +275,7 @@ def _write_json(path: Path, data: Any) -> None:
265
275
 
266
276
 
267
277
  def for_config(config: dict[str, Any], profile: str | None = None, cache_dir: str | None = None,
268
- accounts: bool = False) -> ColdStart:
278
+ accounts: bool = False, keep_own: bool = False) -> ColdStart:
269
279
  """The cold start for the configured download profile (Chrome's own directory)
270
280
  and the configured cache. Another profile comes with only the cache named for
271
281
  it: the configured cache belongs to the configured profile."""
@@ -273,9 +283,9 @@ def for_config(config: dict[str, Any], profile: str | None = None, cache_dir: st
273
283
  from .engine.batch_common import _resolve_profile_dir
274
284
 
275
285
  if profile:
276
- return ColdStart(Path(profile), Path(cache_dir) if cache_dir else None, config, accounts)
286
+ return ColdStart(Path(profile), Path(cache_dir) if cache_dir else None, config, accounts, keep_own)
277
287
  cache = cache_dir or config.get("cache_dir", str(DATA_DIR / "cache"))
278
- return ColdStart(chrome_profile_dir(_resolve_profile_dir(config)), Path(cache), config, accounts)
288
+ return ColdStart(chrome_profile_dir(_resolve_profile_dir(config)), Path(cache), config, accounts, keep_own)
279
289
 
280
290
 
281
291
  # -- another school's sign-in --------------------------------------------------------------------
@@ -313,8 +323,9 @@ def before_sign_in(config: dict[str, Any], *, always: bool = False) -> str:
313
323
  _signed_in_path().parent.mkdir(parents=True, exist_ok=True)
314
324
  _write_json(_signed_in_path(), {"school": entity})
315
325
  return ""
316
- # The personal publisher accounts too: Elsevier's signs the next visit in with the last school's access.
317
- run = for_config(config, accounts=True)
326
+ # The personal publisher accounts too: Elsevier's signs the next visit in with the last school's access. The school
327
+ # about to sign in keeps its own sign-in, but not for a test (``always``): its account is what the test tries.
328
+ run = for_config(config, accounts=True, keep_own=not always)
318
329
  try:
319
330
  run.apply()
320
331
  except RuntimeError:
@@ -254,9 +254,10 @@ def reader_access(lines: list[str], text: str, probe: dict) -> str:
254
254
  # Short controls and labels, a whole line or a control's whole text (links in a
255
255
  # row share a line: BMJ's "Buy this article ($64)", Thieme's "Buy Article"):
256
256
  # "Buy article PDF 39,95 €", "Purchase PDF", "Rent this article", "Get Access",
257
- # "Check Access" (journals.lww.com, Ovid).
257
+ # "Check Access" (journals.lww.com, Ovid); Taylor & Francis's "Purchase options *" heading over its
258
+ # "Issue Purchase" box, the school signed in (Scand J Rheumatol 2013, Windows 2026-11-22).
258
259
  OFFER_LABEL = (r"(?:buy|purchase|rent)\s+(?:this\s+)?(?:article|pdf|chapter|e-?book|issue|instant access|access)\b.{0,40}"
259
- r"|(?:get|check)\s+access")
260
+ r"|(?:get|check)\s+access|purchase options\W{0,3}|issue purchase")
260
261
  _OFFER_LINE = re.compile(OFFER_LABEL, re.I)
261
262
  # Sentences only a reader without access is shown, anywhere in a line.
262
263
  _OFFER_PHRASE = re.compile(
@@ -589,6 +589,8 @@ class PublisherBatchDownloader(
589
589
  result.state = "article_loaded_after_sso"
590
590
  pdf_bytes, pdf_url, cap_block = self._capture_pdf(page, record.doi, result)
591
591
  ip_block = ip_block or cap_block
592
+ else:
593
+ self._note_wait_end(page, result)
592
594
  result._pdf_retry_login = False
593
595
  if (not pdf_bytes and not ip_block and result.reason != "institution_pdf_entitlement_missing"
594
596
  and not self._pdf_sent_to_article_after_login(page, result, attempts_from)
@@ -860,13 +862,19 @@ class PublisherBatchDownloader(
860
862
  step; elsewhere the program did not reach the login, ADR 0012)."""
861
863
  result.reason = self._login_block_reason(page) or result.reason or "sso_required"
862
864
  result.state = result.reason
863
- if result.reason == "login_timeout" or (
864
- result.reason == "sso_required" and getattr(result, "_user_wait_expired", False)):
865
- result.login_wait_page = self._login_wait_page(page)
866
- self._event(result, "login_wait_ended", result.login_wait_page)
865
+ if result.reason in ("login_timeout", "sso_required"):
866
+ self._note_wait_end(page, result)
867
867
  self._write_diagnostic(page, result, run_dir)
868
868
  return result
869
869
 
870
+ def _note_wait_end(self, page: Any, result: DownloadResult) -> None:
871
+ """A wait on the user that ran out: where it ended (``login_wait_page``). Also after the login a failed PDF
872
+ asked for (Thieme's wait ended on its school list page, JAMA's on the school's login page, and neither said
873
+ where: both counted as the user's, Windows 2026-11-22)."""
874
+ if result.reason == "login_timeout" or getattr(result, "_user_wait_expired", False):
875
+ result.login_wait_page = self._login_wait_page(page)
876
+ self._event(result, "login_wait_ended", result.login_wait_page)
877
+
870
878
  def _save_captured_pdf(self, page: Any, record: PaperRecord, result: DownloadResult, run_dir: Path,
871
879
  pdf_bytes: bytes, pdf_url: str) -> DownloadResult:
872
880
  """Check that a captured PDF is this article's and save it with its record."""
@@ -435,15 +435,27 @@ class AccessMixin:
435
435
 
436
436
  def _is_success_article_url(self, url: str) -> bool:
437
437
  verdict = self.adapter.is_article_page_url(url)
438
- if verdict is not None:
439
- return verdict
440
- verdict = self.adapter.is_success_article_url(url)
441
- if verdict is not None:
442
- return verdict
443
- lower = url.lower()
444
- if self.profile.success_url_markers:
445
- return any(marker in lower for marker in self.profile.success_url_markers)
446
- return self._names_this_article(url)
438
+ if verdict is None:
439
+ verdict = self.adapter.is_success_article_url(url)
440
+ if verdict is None and self.profile.success_url_markers:
441
+ lower = url.lower()
442
+ verdict = any(marker in lower for marker in self.profile.success_url_markers)
443
+ if verdict is None:
444
+ return self._names_this_article(url)
445
+ # A rule of the publisher's that does not take the page still yields to an address ending
446
+ # in this item's DOI: a rule written for the publisher's own DOI prefix missed a journal it
447
+ # took over, which kept its prefix (Thieme's Thrombosis and Haemostasis, 10.1160, 2026-11-22).
448
+ return verdict or self._address_ends_with_this_doi(url)
449
+
450
+ def _address_ends_with_this_doi(self, url: str) -> bool:
451
+ """A page of the publisher's site, not a login page, whose path ends with this
452
+ item's DOI (as is or %2F-escaped, in any case): how article pages are addressed by
453
+ DOI. A PDF or a supplementary file has more after the DOI."""
454
+ doi = str(getattr(self, "_adapter_doi", "") or "").strip().lower()
455
+ if (not doi or not str(url or "").startswith("http") or not self._on_publisher_host(url)
456
+ or self._is_auth_page(url)):
457
+ return False
458
+ return unquote(urlparse(url).path).lower().rstrip("/").endswith("/" + doi)
447
459
 
448
460
  def _names_this_article(self, url: str) -> bool:
449
461
  """The article page for a profile without article-page markers of its own
@@ -132,7 +132,7 @@ class CaptureMixin:
132
132
 
133
133
  attempts = result.pdf_attempts[since:]
134
134
  sent_back = [a for a in attempts if a.get("outcome") in self._WEB_PAGE_OUTCOMES
135
- and plain(a.get("final_url")) != plain(a.get("url"))
135
+ and (plain(a.get("final_url")) != plain(a.get("url")) or self.adapter.pdf_address_shows_article_page)
136
136
  and self._is_success_article_url(str(a.get("final_url") or ""))]
137
137
  url = str(getattr(page, "url", "") or "")
138
138
  if (not sent_back or not self._school_login_done()