papersearch 0.6.3 → 0.6.5

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 (59) hide show
  1. package/README.en.md +16 -20
  2. package/README.md +16 -20
  3. package/dist/capabilities/pdf-discovery/school/SchoolMcpClient.js +1 -1
  4. package/package.json +1 -1
  5. package/school/paper_search_school/adapters/base.py +3 -2
  6. package/school/paper_search_school/adapters/elsevier/__init__.py +46 -0
  7. package/school/paper_search_school/adapters/sage/__init__.py +9 -1
  8. package/school/paper_search_school/cli.py +1 -1
  9. package/school/paper_search_school/config.py +2 -0
  10. package/school/paper_search_school/engine/batch_institution.py +153 -17
  11. package/school/paper_search_school/engine/batch_login.py +42 -11
  12. package/school/paper_search_school/federations/builtin/aaieduhr.json +11 -0
  13. package/school/paper_search_school/federations/builtin/aaiedumk.json +11 -0
  14. package/school/paper_search_school/federations/builtin/aconet.json +11 -0
  15. package/school/paper_search_school/federations/builtin/arnesaai.json +11 -0
  16. package/school/paper_search_school/federations/builtin/azsciencenet.json +11 -0
  17. package/school/paper_search_school/federations/builtin/belnet.json +11 -0
  18. package/school/paper_search_school/federations/builtin/bif.json +11 -0
  19. package/school/paper_search_school/federations/builtin/cstcloud.json +11 -0
  20. package/school/paper_search_school/federations/builtin/cynet.json +11 -0
  21. package/school/paper_search_school/federations/builtin/dfnaai.json +11 -0
  22. package/school/paper_search_school/federations/builtin/edugate.json +11 -0
  23. package/school/paper_search_school/federations/builtin/eduidcz.json +11 -0
  24. package/school/paper_search_school/federations/builtin/eduidhu.json +11 -0
  25. package/school/paper_search_school/federations/builtin/eduidlu.json +11 -0
  26. package/school/paper_search_school/federations/builtin/febas.json +11 -0
  27. package/school/paper_search_school/federations/builtin/feide.json +11 -0
  28. package/school/paper_search_school/federations/builtin/grnet.json +11 -0
  29. package/school/paper_search_school/federations/builtin/haka.json +11 -0
  30. package/school/paper_search_school/federations/builtin/iamres.json +11 -0
  31. package/school/paper_search_school/federations/builtin/idedume.json +11 -0
  32. package/school/paper_search_school/federations/builtin/idem.json +11 -0
  33. package/school/paper_search_school/federations/builtin/irfed.json +11 -0
  34. package/school/paper_search_school/federations/builtin/iucc.json +11 -0
  35. package/school/paper_search_school/federations/builtin/laife.json +11 -0
  36. package/school/paper_search_school/federations/builtin/leaf.json +11 -0
  37. package/school/paper_search_school/federations/builtin/litnet.json +11 -0
  38. package/school/paper_search_school/federations/builtin/maeen.json +11 -0
  39. package/school/paper_search_school/federations/builtin/peano.json +11 -0
  40. package/school/paper_search_school/federations/builtin/pionierid.json +11 -0
  41. package/school/paper_search_school/federations/builtin/rash.json +11 -0
  42. package/school/paper_search_school/federations/builtin/rctsaai.json +11 -0
  43. package/school/paper_search_school/federations/builtin/renater.json +11 -0
  44. package/school/paper_search_school/federations/builtin/ricerkanet.json +11 -0
  45. package/school/paper_search_school/federations/builtin/roedunetid.json +11 -0
  46. package/school/paper_search_school/federations/builtin/safeid.json +11 -0
  47. package/school/paper_search_school/federations/builtin/sir.json +11 -0
  48. package/school/paper_search_school/federations/builtin/surfconext.json +11 -0
  49. package/school/paper_search_school/federations/builtin/swamid.json +11 -0
  50. package/school/paper_search_school/federations/builtin/switchaai.json +11 -0
  51. package/school/paper_search_school/federations/builtin/taat.json +11 -0
  52. package/school/paper_search_school/federations/builtin/ukfederation.json +11 -0
  53. package/school/paper_search_school/federations/builtin/wayf.json +11 -0
  54. package/school/paper_search_school/federations/schools.py +96 -20
  55. package/school/paper_search_school/login_routes.py +6 -6
  56. package/school/paper_search_school/report_sanitizer.py +1 -1
  57. package/skills/paper-search/SKILL.md +1 -1
  58. package/skills/paper-search/references/federation-support.md +149 -11
  59. package/skills/paper-search/references/school-setup.md +3 -2
@@ -0,0 +1,11 @@
1
+ {
2
+ "code": "ukfederation",
3
+ "name": "UK federation",
4
+ "country": "GB",
5
+ "registration_authorities": ["http://ukfederation.org.uk"],
6
+ "chooser_labels": ["UK Higher Education", "UK Access Management Federation", "UK federation (United Kingdom)"],
7
+ "chooser_pattern": "\\bUK\\s+(?:Access\\s+Management\\s+)?Federation\\b|\\bUK\\s+Higher\\s+Education\\b",
8
+ "discovery_hosts": [],
9
+ "service_domains": ["ukfederation.org.uk"],
10
+ "metadata_url": "http://metadata.ukfederation.org.uk/ukfederation-export.xml"
11
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "code": "wayf",
3
+ "name": "WAYF",
4
+ "country": "DK",
5
+ "registration_authorities": ["https://www.wayf.dk"],
6
+ "chooser_labels": ["WAYF"],
7
+ "chooser_pattern": "\\bWAYF\\b",
8
+ "discovery_hosts": [],
9
+ "service_domains": ["wayf.dk"],
10
+ "metadata_url": "https://metadata.wayf.dk/wayf-edugain-metadata.xml"
11
+ }
@@ -21,8 +21,9 @@ from __future__ import annotations
21
21
  import hashlib
22
22
  import re
23
23
  import time
24
+ import unicodedata
24
25
  import xml.etree.ElementTree as ET
25
- from dataclasses import dataclass, field
26
+ from dataclasses import dataclass, field, replace
26
27
  from pathlib import Path
27
28
  from typing import Any, Iterable
28
29
  from urllib.parse import quote, urlparse
@@ -46,6 +47,9 @@ class School:
46
47
  login_hosts: tuple[str, ...] = ()
47
48
  # Every domain the school's entry is registered for (tells the same school in two routes).
48
49
  scopes: tuple[str, ...] = field(default=(), compare=False)
50
+ # The login entry's own name, when the school is named as the user named it: a
51
+ # shared entry (a national one, "Feide") is listed by it on some choosers.
52
+ entry_name: str = field(default="", compare=False)
49
53
 
50
54
  def summary(self) -> dict[str, str]:
51
55
  federation = by_code(self.federation)
@@ -66,8 +70,10 @@ class Lookup:
66
70
  # --------------------------------------------------------------------------- saved
67
71
 
68
72
  def names(config: dict[str, Any]) -> tuple[str, ...]:
69
- """The saved school's names: as its federation lists it, then in English."""
70
- found = [str(config.get(key) or "").strip() for key in ("school_name", "school_name_en")]
73
+ """The saved school's names: as its federation lists it, then in English, then
74
+ its shared login entry's own name (a publisher's chooser listing login entries
75
+ lists a national one by it, 2026-11-13)."""
76
+ found = [str(config.get(key) or "").strip() for key in ("school_name", "school_name_en", "school_entry_name")]
71
77
  return tuple(dict.fromkeys(n for n in found if n))
72
78
 
73
79
 
@@ -140,8 +146,8 @@ def save(config: dict[str, Any], school: School) -> None:
140
146
  pages = [page for template in (federation.school_login_pages if federation else ())
141
147
  for page in ([template.replace("{scope}", scope) for scope in scopes] if "{scope}" in template
142
148
  else [template])]
143
- config.update(school_name=school.name, school_name_en=school.name_en, idp_entity_id=school.entity_id,
144
- idp_login_hosts=list(school.login_hosts), idp_login_pages=pages,
149
+ config.update(school_name=school.name, school_name_en=school.name_en, school_entry_name=school.entry_name,
150
+ idp_entity_id=school.entity_id, idp_login_hosts=list(school.login_hosts), idp_login_pages=pages,
145
151
  idp_domains=[d for d in scopes if "." in d],
146
152
  publisher_institution_federation=school.federation, carsi_enabled=school.federation == "carsi")
147
153
 
@@ -154,10 +160,16 @@ def institutional_configured(config: dict[str, Any]) -> bool:
154
160
 
155
161
  # --------------------------------------------------------------------------- finding
156
162
 
163
+ def _plain(text: str) -> str:
164
+ """Accents on Latin and Greek letters do not count ("Universite" listed for
165
+ "Université", 2026-11-13); other scripts' marks (Japanese voicing) stay."""
166
+ return unicodedata.normalize("NFC", re.sub(r"[\u0300-\u036f]", "", unicodedata.normalize("NFD", str(text or ""))))
167
+
168
+
157
169
  def _key(text: str) -> str:
158
- """Case, spaces, hyphens, punctuation and a leading "The" do not count; "&"
159
- is "and" (a school listed as "Science & Technology", 2026-11-12)."""
160
- text = re.sub(r"^the\s+", "", str(text or "").casefold().strip())
170
+ """Case, spaces, hyphens, punctuation, accents and a leading "The" do not
171
+ count; "&" is "and" (a school listed as "Science & Technology", 2026-11-12)."""
172
+ text = re.sub(r"^the\s+", "", _plain(text).casefold().strip())
161
173
  return re.sub(r"[\W_]+", "", text.replace("&", " and "))
162
174
 
163
175
 
@@ -175,8 +187,12 @@ class _Found:
175
187
 
176
188
  def __init__(self) -> None:
177
189
  self.rows: dict[str, tuple[School, bool]] = {}
190
+ # The entries found by one of their names, not only by a domain or entityID.
191
+ self.named: set[str] = set()
178
192
 
179
- def add(self, school: School, exact: bool) -> None:
193
+ def add(self, school: School, exact: bool, named: bool = True) -> None:
194
+ if named:
195
+ self.named.add(school.entity_id)
180
196
  known = self.rows.get(school.entity_id)
181
197
  if known is None or (exact and not known[1]):
182
198
  self.rows[school.entity_id] = (school, exact)
@@ -195,6 +211,8 @@ class _Found:
195
211
  matches a campus in CARSI, the school itself is listed in English)."""
196
212
  self._primary()
197
213
  exact = [s for s, e in self.rows.values() if e]
214
+ if len(exact) > 1:
215
+ exact = [_one_school(exact)] if _one_school(exact) else exact
198
216
  if len(exact) == 1:
199
217
  return exact[0], []
200
218
  if exact:
@@ -217,6 +235,17 @@ def _same_school(other: School, school: School) -> bool:
217
235
  return bool({d.rsplit(".", 1)[-1] for d in other.scopes} & {d.rsplit(".", 1)[-1] for d in school.scopes})
218
236
 
219
237
 
238
+ def _one_school(schools: list[School]) -> School | None:
239
+ """One school listed several times in one federation under a domain of its own
240
+ (a second login server, an alumni-only one: 2026-11-13): its entry with the
241
+ plainest name, the one the others' names contain. A shared entry (a national
242
+ one covering the school's domain) has another name and keeps them apart."""
243
+ if len({s.federation for s in schools}) != 1 or not set.intersection(*(set(s.scopes) for s in schools)):
244
+ return None
245
+ plain = min(schools, key=lambda s: (len(s.name), s.name))
246
+ return plain if all(_key(plain.name) in _key(s.name) for s in schools) else None
247
+
248
+
220
249
  def _secondary(school: School) -> bool:
221
250
  federation = by_code(school.federation)
222
251
  return bool(federation and federation.secondary)
@@ -229,6 +258,9 @@ _RETIRED = re.compile(r"\bdo not use\b|\btest\b|\blegacy\b", re.I)
229
258
  _PARTS = re.compile(r"\s+[-\u2013\u2014]\s+")
230
259
  _BRACKET = re.compile(r"\(([^()]+)\)")
231
260
  # Chinese, Japanese and Korean writing, beside a name in Latin letters.
261
+ # A word naming the login server, not the school, at the end of a listed name
262
+ # ("<School> IdP", "<entry> Single Sign-On Service": 2026-11-13).
263
+ _SERVER_WORD = re.compile(r"\s+(?:IdP|Identity\s+Provider|SSO|Single\s+Sign[- ]?On(?:\s+Service)?)$", re.I)
232
264
  _CJK = re.compile(r"[\u3040-\u30ff\u3400-\u9fff\uac00-\ud7af][\u3040-\u30ff\u3400-\u9fff\uac00-\ud7af\s・·]*")
233
265
 
234
266
 
@@ -237,14 +269,15 @@ def _names(titles: Iterable[str]) -> list[str]:
237
269
  Harbour University" (an abbreviation before the name), "北大学 (Kita
238
270
  University) – OpenAthens" (a second name in brackets, the route after a dash),
239
271
  "National Harbour Bay University (NHBU) 海灣大學" (brackets inside, and a name in
240
- another script beside the English one: OpenAthens in Taiwan, 2026-11-12)."""
272
+ another script beside the English one: OpenAthens in Taiwan, 2026-11-12),
273
+ "Harbour University IdP" (the login server's word after the name)."""
241
274
  names = [str(t).strip() for t in titles if str(t or "").strip()]
242
275
  found = list(names)
243
276
  for name in names:
244
277
  for part in _PARTS.split(name):
245
278
  part = part.strip()
246
279
  outside = re.sub(r"\s+", " ", _BRACKET.sub(" ", part)).strip()
247
- found += [part, outside, *(m.strip() for m in _BRACKET.findall(part))]
280
+ found += [part, outside, _SERVER_WORD.sub("", outside), *(m.strip() for m in _BRACKET.findall(part))]
248
281
  if _CJK.search(outside) and re.search(r"[A-Za-z]{2}", _CJK.sub(" ", outside)):
249
282
  found += [m.strip() for m in _CJK.findall(outside)] + [re.sub(r"\s+", " ", _CJK.sub(" ", outside)).strip()]
250
283
  return list(dict.fromkeys(n for n in found if n))
@@ -252,7 +285,7 @@ def _names(titles: Iterable[str]) -> list[str]:
252
285
 
253
286
  def _words(text: str) -> list[str]:
254
287
  """The words of a name, as ``_key`` compares them."""
255
- words = [w for w in re.split(r"[\W_]+", str(text or "").casefold().replace("&", " and ")) if w]
288
+ words = [w for w in re.split(r"[\W_]+", _plain(text).casefold().replace("&", " and ")) if w]
256
289
  return words[1:] if words[:1] == ["the"] else words
257
290
 
258
291
 
@@ -315,7 +348,9 @@ def _seamlessaccess(text: str, config: dict[str, Any]) -> list[dict[str, Any]]:
315
348
 
316
349
  def _from_seamlessaccess(given: list[str], config: dict[str, Any], found: _Found, lookup: Lookup,
317
350
  carsi_listed: bool) -> None:
318
- for text in given:
351
+ # Its search keeps accents: a name given with them is also searched without
352
+ # ("Université" listed as "Universite", 2026-11-13).
353
+ for text in dict.fromkeys([*given, *(_plain(t) for t in given)]):
319
354
  try:
320
355
  rows = _seamlessaccess(text, config)
321
356
  except Exception:
@@ -341,9 +376,24 @@ def _from_seamlessaccess(given: list[str], config: dict[str, Any], found: _Found
341
376
  continue
342
377
  if federation.member_list == "carsi" and carsi_listed:
343
378
  continue # CARSI's own list is the source for its schools
344
- english = str((row.get("title_langs") or {}).get("en") or title)
345
- found.add(School(english, english, entity, federation.code, scopes[0] if scopes else "",
346
- scopes=tuple(scopes)), exact)
379
+ english = listed_english = _SERVER_WORD.sub("", str((row.get("title_langs") or {}).get("en") or title)).strip()
380
+ if exact:
381
+ # The English name given, publishers' likelier name for the school, when the
382
+ # list has none of its own: the school only as part of a longer name ("<school>
383
+ # - Staff"), or one name in every language ("Universitat de Liman", 2026-11-13).
384
+ listed = {_key(v) for v in [*(row.get("title_langs") or {}).values(), title] if str(v or "").strip()}
385
+ own = _own_names(given)
386
+ other = [t for t in [*own[1:], *own[:1]] if t.isascii() and _key(t) not in listed]
387
+ parts = {_key(n) for n in titles}
388
+ english = next((t for t in other if _key(t) in parts), None) or (
389
+ other[0] if other and len(listed) == 1 else listed_english)
390
+ # The name in the school's own language when that is the one given: publishers
391
+ # may list it so (a French name searched in English found nothing, 2026-11-13).
392
+ # Spaces as written once (a Greek name listed with a trailing space, 2026-11-13).
393
+ local = next((" ".join(str(v).split()) for k, v in (row.get("title_langs") or {}).items()
394
+ if k != "en" and any(_key(t) == _key(v) for t in given)), listed_english)
395
+ found.add(School(local, english, entity, federation.code, scopes[0] if scopes else "",
396
+ scopes=tuple(scopes)), exact, named=_named(given, titles))
347
397
 
348
398
 
349
399
  def _metadata(federation: Federation, config: dict[str, Any], data_dir: Path) -> ET.Element:
@@ -373,7 +423,7 @@ def _metadata_schools(federation: Federation, root: ET.Element) -> list[tuple[Sc
373
423
  for n in idp.findall("md:Extensions/mdui:UIInfo/mdui:DisplayName", _NS)}
374
424
  organization = [(n.text or "").strip() for n in entity.findall("md:Organization/md:OrganizationDisplayName", _NS)]
375
425
  listed = _names([*display.values(), *organization])
376
- english = display.get("en") or (organization[0] if organization else entity_id)
426
+ english = _SERVER_WORD.sub("", display.get("en") or (organization[0] if organization else entity_id)).strip()
377
427
  if _RETIRED.search(english):
378
428
  continue
379
429
  scopes = [(s.text or "").strip().lower() for s in idp.findall("md:Extensions/shibmd:Scope", _NS)]
@@ -398,7 +448,7 @@ def _from_metadata(given: list[str], config: dict[str, Any], data_dir: Path, fou
398
448
  for school, listed, scopes in _metadata_schools(federation, root):
399
449
  exact, partial = _matches(given, listed, scopes, school.entity_id)
400
450
  if exact or partial:
401
- found.add(school, exact)
451
+ found.add(school, exact, named=_named(given, listed))
402
452
 
403
453
 
404
454
  def _with_login_hosts(school: School, config: dict[str, Any], data_dir: Path) -> School:
@@ -413,8 +463,32 @@ def _with_login_hosts(school: School, config: dict[str, Any], data_dir: Path) ->
413
463
  listed = next((s for s, _, _ in _metadata_schools(federation, root) if s.entity_id == school.entity_id), None)
414
464
  if listed is None:
415
465
  return school
416
- return School(school.name, school.name_en, school.entity_id, school.federation,
417
- school.domain or listed.domain, listed.login_hosts, school.scopes)
466
+ return replace(school, domain=school.domain or listed.domain, login_hosts=listed.login_hosts)
467
+
468
+
469
+ def _named(given: Iterable[str], listed_names: Iterable[str]) -> bool:
470
+ """One of the names given is one the entry is listed under."""
471
+ keys = {_key(n) for n in listed_names} - {""}
472
+ return any(_key(t) in keys for t in given)
473
+
474
+
475
+ def _own_names(given: Iterable[str]) -> list[str]:
476
+ """What was given as the school's names: no entityID, no domain."""
477
+ return [t for t in given if not _is_entity_id(t) and not re.fullmatch(r"[\w-]+(?:\.[\w-]+)+", t)]
478
+
479
+
480
+ def _named_as_given(school: School, given: list[str]) -> School:
481
+ """A school found only by its domain, under a login entry many schools share
482
+ (a school system's ID, a national entry: 2026-11-13), is named as the user named it: that
483
+ name is what publishers' choosers list it under. Its English name is the one
484
+ given beside it, accents allowed, else the first name if in Latin letters, else
485
+ the entry's: a name in the school's own language may be ASCII ("Kitan
486
+ yliopisto" beside "Kita University", 2026-11-13)."""
487
+ own = _own_names(given)
488
+ if not own:
489
+ return school
490
+ english = next((t for t in [*own[1:], own[0]] if _plain(t).isascii()), school.name_en)
491
+ return replace(school, name=own[0], name_en=english, entry_name=school.name)
418
492
 
419
493
 
420
494
  def find(query: str, config: dict[str, Any], data_dir: Path, *, also: Iterable[str] = ()) -> Lookup:
@@ -429,6 +503,8 @@ def find(query: str, config: dict[str, Any], data_dir: Path, *, also: Iterable[s
429
503
  if "SeamlessAccess" in lookup.unavailable:
430
504
  _from_metadata(given, config, data_dir, found, lookup)
431
505
  school, candidates = found.decide()
506
+ if school is not None and school.entity_id not in found.named:
507
+ school = _named_as_given(school, given)
432
508
  lookup.school = _with_login_hosts(school, config, data_dir) if school else None
433
509
  lookup.candidates = candidates[:10]
434
510
  return lookup
@@ -24,12 +24,12 @@ def ledger_path() -> Path:
24
24
 
25
25
 
26
26
  def school_key(config: dict[str, Any]) -> str:
27
- """The configured school: its entityID, else its CARSI name; "" without one."""
28
- for field in ("idp_entity_id", "school_name", "school_name_en"):
29
- value = " ".join(str(config.get(field) or "").split())
30
- if value:
31
- return value.lower()
32
- return ""
27
+ """The configured school: its entityID and its name, else either; "" without
28
+ one. The name keeps apart schools signing in through one shared entry (a
29
+ national one: Norway's, 2026-11-13), whose entityID is the same for all."""
30
+ entity, name, english = (" ".join(str(config.get(field) or "").split())
31
+ for field in ("idp_entity_id", "school_name", "school_name_en"))
32
+ return " | ".join(part for part in (entity, name or english) if part).lower()
33
33
 
34
34
 
35
35
  def _key(publisher: str, school: str) -> str:
@@ -49,7 +49,7 @@ class Redactor:
49
49
  self.terms: set[str] = set()
50
50
  self.school_hosts: set[str] = set()
51
51
  cfg = config or {}
52
- for key in ('school_name', 'school_name_en', 'idp_entity_id', 'institution_domain', 'idp_domain'):
52
+ for key in ('school_name', 'school_name_en', 'school_entry_name', 'idp_entity_id', 'institution_domain', 'idp_domain'):
53
53
  value = str(cfg.get(key) or '').strip()
54
54
  if len(value) > 2:
55
55
  self.terms.add(value)
@@ -4,7 +4,7 @@ description: |
4
4
  用本机 paper-search 命令做文献工作:检索论文、核对 DOI/PMID、搜正文片段(找方法和结果的原文)、查期刊影响因子与分区、查施引和参考文献、下载全文和补充材料。
5
5
  用户要找文献、查期刊、下载论文,或说“请开始配置”时使用;英文请求(literature search、journal metrics、paper download、start setup)同样适用。
6
6
  metadata:
7
- version: "0.6.3"
7
+ version: "0.6.5"
8
8
  ---
9
9
 
10
10
  # 文献检索与下载(paper-search)
@@ -1,6 +1,6 @@
1
1
  # 学校订阅下载:各学术身份联盟支持情况
2
2
 
3
- 本表说明学校订阅下载能经哪些学术身份联盟登录(截至 2026-11-12)。“支持”是说:用户说出学校名称,程序能查出学校所属的联盟,并在出版社网站上自动选好联盟和学校,走到学校的登录页。登录之后能否下到全文,取决于学校的订阅,以及出版社是否给这所学校开通了学校账号登录。
3
+ 本表说明学校订阅下载能经哪些学术身份联盟登录(截至 2026-11-13)。“支持”是说:用户说出学校名称,程序能查出学校所属的联盟,并在出版社网站上自动选好联盟和学校,走到学校的登录页。登录之后能否下到全文,取决于学校的订阅,以及出版社是否给这所学校开通了学校账号登录。
4
4
 
5
5
  各国的学术身份联盟通过 eduGAIN 互联,出版社借此认可各国学校的账号;OpenAthens 是跨国的机构登录服务,没有加入本国联盟的学校不少经它登录。
6
6
 
@@ -11,37 +11,175 @@
11
11
 
12
12
  符号:✓ 已实测(自动走到学校登录页);○ 已支持,尚未实测。
13
13
 
14
+ 按大洲和区域列出,顺序与扩展计划相同:亚洲(东亚、东南亚、南亚、中亚、西亚)→ 欧洲(西欧、北欧、中欧、南欧、东欧)→ 美洲(北美洲:美国、加拿大;拉丁美洲和加勒比:中美洲、加勒比、南美洲)→ 大洋洲(澳大利亚与新西兰、美拉尼西亚、密克罗尼西亚、波利尼西亚)→ 非洲。
15
+
14
16
  ## 亚洲
15
17
 
18
+ ### 东亚
19
+
16
20
  | 地区 | 联盟 | 全称 | 联盟内学校数 | 状态 | 已实测的学校 |
17
21
  | --- | --- | --- | --- | --- | --- |
18
22
  | 中国内地、澳门 | CARSI | CERNET 联邦认证与资源共享基础设施(CERNET Authentication and Resource Sharing Infrastructure) | 约 590 | ✓ | 澳门大学、澳门科技大学 |
19
23
  | 香港 | HKAF | Hong Kong Access Federation | 15 | ✓ | 香港大学、香港中文大学、香港科技大学、香港理工大学 |
20
- | 新加坡 | SGAF | Singapore Access Federation | 13 | ✓ | 新加坡国立大学、南洋理工大学、新加坡管理大学 |
21
24
  | 日本 | GakuNin(学認) | 学術認証フェデレーション(Academic Access Management Federation in Japan) | 约 170 | ✓ | 东京大学、大阪大学、东北大学、庆应义塾大学、早稻田大学 |
22
25
  | 韩国 | KAFE | Korean Access Federation | 27 | ✓ | KAIST、延世大学、浦项工科大学、成均馆大学 |
26
+ | 中国内地(科研机构) | CSTCloud | 中国科技云联盟(CSTCloud Federation) | 10 | ✓ | 中国科学院上海应用物理研究所(经中国科技云通行证)、北京协和医学院(经协和统一身份认证) |
27
+
28
+ - 中国科技云联盟供中国内地的科研院所等机构使用;同时在 CARSI 里的学校按 CARSI 登录。经共用入口登录的科研院所,配置时同时给出机构名称和官网域名。
29
+ - 台湾没有加入 eduGAIN 的联盟,台湾的学校经 OpenAthens 登录;没有接入 OpenAthens 的台湾学校暂时无法使用。
30
+
31
+ ### 东南亚
32
+
33
+ | 地区 | 联盟 | 全称 | 联盟内学校数 | 状态 | 已实测的学校 |
34
+ | --- | --- | --- | --- | --- | --- |
35
+ | 新加坡 | SGAF | Singapore Access Federation | 13 | ✓ | 新加坡国立大学、南洋理工大学、新加坡管理大学 |
23
36
  | 马来西亚 | SIFULAN | SIFULAN Malaysian Access Federation | 约 150 | ✓ | 马来西亚理科大学、博特拉大学 |
37
+
38
+ - 泰国、菲律宾等地的学校多经 OpenAthens 登录(见“跨地区”);泰国的联盟 ThaiIDF 只有两个全国入口,且交给 eduGAIN 的名单目前已过期,暂不支持。
39
+
40
+ ### 南亚
41
+
42
+ | 地区 | 联盟 | 全称 | 联盟内学校数 | 状态 | 已实测的学校 |
43
+ | --- | --- | --- | --- | --- | --- |
24
44
  | 印度 | INFED | INFLIBNET Access Management Federation | 约 390 | ✓ | 印度理工学院德里分校 |
25
- | 土耳其 | YETKİM | YETKİM Identity Federation | 约 170 | ✓ | 哈杰泰佩大学、中东技术大学、海峡大学、伊斯坦布尔大学 |
26
45
  | 斯里兰卡 | LIAF | LEARN Identity Access Federation | 31 | ✓ | 科伦坡大学 |
27
46
  | 孟加拉 | TIGERfed | Trust, Identity and Group management for Education and Research Federation | 30 | ✓ | 孟加拉工程技术大学 |
28
47
  | 巴基斯坦 | PKIFED | Pakistan Identity Federation | 8 | ✓ | COMSATS 大学伊斯兰堡分校、巴基斯坦国立科技大学、真纳大学 |
48
+
49
+ - 巴基斯坦有一百多所学校经 PERN 全国共用入口登录,联盟名单里只有它们的域名:按校名查不到时,同时给出校名和学校官网域名配置。
50
+
51
+ ### 中亚
52
+
53
+ 暂无可用的联盟:吉尔吉斯斯坦的 KRENA 只有联盟自己的一个账号入口,没有学校入口;塔吉克斯坦的联盟尚未正式运行;哈萨克斯坦、乌兹别克斯坦没有联盟。
54
+
55
+ ### 西亚
56
+
57
+ | 地区 | 联盟 | 全称 | 联盟内学校数 | 状态 | 已实测的学校 |
58
+ | --- | --- | --- | --- | --- | --- |
59
+ | 土耳其 | YETKİM | YETKİM Identity Federation | 约 170 | ✓ | 哈杰泰佩大学、中东技术大学、海峡大学、伊斯坦布尔大学 |
60
+ | 沙特阿拉伯 | Maeen | Maeen Identity Federation | 36 | ○ | — |
61
+ | 塞浦路斯 | CyNet | CyNet Identity Federation | 10 | ✓ | 塞浦路斯大学、塞浦路斯技术大学 |
62
+ | 以色列 | IUCC | IUCC Identity Federation | 1 个共用入口 | ✓ | 特拉维夫大学、希伯来大学 |
63
+ | 伊朗 | IRFED | IRFED | 2 | ○ | — |
64
+ | 阿塞拜疆 | AzScienceNet | AzScienceNet Identity Federation | 2 | ○ | — |
29
65
  | 阿曼 | OMREN | OMREN Identity Federation | 约 30 | ○ | — |
30
- | 跨地区 | OpenAthens | OpenAthens 机构登录服务 | — | ✓ | 马来亚大学、朱拉隆功大学、菲律宾大学 Diliman、名古屋大学、台湾大学、阳明交通大学、台湾师范大学 |
31
66
 
32
- - 联盟内学校数取自 eduGAIN 登记的身份提供方数量,一所学校可能登记不止一个。
33
- - OpenAthens 不是某个国家的联盟,是跨国的机构登录服务;学校同时有本国联盟入口时,程序优先用联盟的。
34
- - 台湾没有加入 eduGAIN 的联盟,台湾的学校经 OpenAthens 登录;没有接入 OpenAthens 的台湾学校暂时无法使用。
35
- - 巴基斯坦有一百多所学校经 PERN 全国共用入口登录,联盟名单里只有它们的域名:按校名查不到时,用学校官网域名配置。
67
+ - 以色列的大学经 IUCC 共用入口登录,联盟名单里只有它们的域名:配置时同时给出校名和学校官网域名。
68
+ - 沙特的大学在出版社上能自动选中,但从境外测试时,有的学校登录服务器连不上,有的学校未为出版社开通,尚未走到能输入账号的登录页。
69
+ - 伊朗、阿塞拜疆的联盟各只有一所学校;出版社不一定为这些学校开通联盟登录,程序会写明原因。
36
70
  - 阿曼 OMREN 交给 eduGAIN 的学校名单目前已过期,阿曼的学校暂时查不到;名单恢复后无需改动即可使用。
37
- - 学校登录服务器连不上,或学校认证服务器拒绝出版社的登录请求时,程序立即结束并说明“学校登录系统出错”;这类情况要由学校处理。
71
+ - 亚美尼亚、格鲁吉亚的联盟只登记了网络运营方、研究所和图书馆的入口,没有学校入口;黎巴嫩的联盟尚未正式运行。
72
+
73
+ ## 欧洲
74
+
75
+ ### 西欧
76
+
77
+ | 地区 | 联盟 | 全称 | 联盟内学校数 | 状态 | 已实测的学校 |
78
+ | --- | --- | --- | --- | --- | --- |
79
+ | 英国 | UK federation | UK Access Management Federation | 约 690 | ✓ | 牛津大学、剑桥大学、帝国理工学院、伦敦大学学院、伦敦国王学院、爱丁堡大学、伦敦政治经济学院 |
80
+ | 爱尔兰 | Edugate | Edugate | 41 | ✓ | 都柏林圣三一学院、都柏林大学 |
81
+ | 法国 | RENATER | Fédération Éducation-Recherche | 约 310 | ✓ | 巴黎西岱大学、巴黎-萨克雷大学、斯特拉斯堡大学 |
82
+ | 荷兰 | SURFconext | SURFconext | 约 200 | ✓ | 阿姆斯特丹大学、莱顿大学、乌得勒支大学、代尔夫特理工大学 |
83
+ | 比利时 | Belnet | Belnet Federation | 58 | ✓ | 根特大学、鲁汶天主教大学、布鲁塞尔自由大学 |
84
+ | 卢森堡 | eduID Luxembourg | eduID Luxembourg | 12 | ✓ | 卢森堡大学 |
85
+
86
+ - 荷兰的学校都经 SURFconext 的统一中转站登录,程序自动经过。
87
+ - 法国、荷兰、比利时的学校可以用当地语言的校名配置;出版社按一个名称搜不到时,程序会换学校的其他名称再搜。
88
+
89
+ ### 北欧
90
+
91
+ | 地区 | 联盟 | 全称 | 联盟内学校数 | 状态 | 已实测的学校 |
92
+ | --- | --- | --- | --- | --- | --- |
93
+ | 丹麦(含冰岛、格陵兰) | WAYF | WAYF – Where Are You From | 71 | ✓ | 哥本哈根大学、奥胡斯大学、丹麦技术大学、冰岛大学 |
94
+ | 瑞典 | SWAMID | Swedish Academic Identity Federation | 53 | ✓ | 卡罗林斯卡学院、隆德大学、乌普萨拉大学、瑞典皇家理工学院 |
95
+ | 芬兰 | Haka | Haka Identity Federation | 40 | ✓ | 阿尔托大学、坦佩雷大学 |
96
+ | 挪威 | Feide | Feide | 1 个全国入口 | ○ | — |
97
+
98
+ - 丹麦的学校都经 WAYF 的中转站登录,程序自动经过。
99
+ - 挪威的学校都经 Feide 全国共用入口登录,联盟名单里只有学校的域名:配置时同时给出校名和学校官网域名。Elsevier 只给挪威的大学开了 IP 方式,Springer Nature、牛津大学出版社的机构列表里没有 Feide,程序会写明原因;IOP 经 OpenAthens 列出几条同名的“Feide”入口,由用户自己选。
100
+ - 坦佩雷大学在联盟名单里与坦佩雷应用科学大学合写为“Tampere Universities”,按校名查不到时加上官网域名配置。
101
+
102
+ ### 中欧
103
+
104
+ | 地区 | 联盟 | 全称 | 联盟内学校数 | 状态 | 已实测的学校 |
105
+ | --- | --- | --- | --- | --- | --- |
106
+ | 德国 | DFN-AAI | DFN-AAI(德国科研网身份联盟) | 约 390 | ✓ | 慕尼黑大学、慕尼黑工业大学、海德堡大学、柏林夏里特医学院、柏林洪堡大学 |
107
+ | 瑞士 | Switch edu-ID | Switch edu-ID(SWITCHaai) | 63 | ✓ | 苏黎世联邦理工学院、苏黎世大学、洛桑联邦理工学院、日内瓦大学 |
108
+ | 奥地利 | ACOnet | ACOnet Identity Federation | 84 | ✓ | 维也纳大学、维也纳技术大学 |
109
+ | 波兰 | PIONIER.Id | PIONIER.Id | 93 | ✓ | 华沙大学、雅盖隆大学、华沙理工大学 |
110
+ | 捷克 | eduID.cz | eduID.cz | 约 220 | ✓ | 布拉格查理大学、马萨里克大学、布拉格捷克理工大学 |
111
+ | 斯洛伐克 | safeID | safeID | 33 | ✓ | 布拉迪斯拉发考门斯基大学、斯洛伐克理工大学 |
112
+ | 匈牙利 | eduId.hu | eduId.hu | 81 | ✓ | 罗兰大学、塞梅尔维斯大学、德布勒森大学 |
113
+
114
+ - 瑞士多数学校经 Switch edu-ID 登录,学校登录页在 edu-ID 的网站上,程序照常认出。
115
+
116
+ ### 南欧
117
+
118
+ | 地区 | 联盟 | 全称 | 联盟内学校数 | 状态 | 已实测的学校 |
119
+ | --- | --- | --- | --- | --- | --- |
120
+ | 西班牙 | SIR | Servicio de Identidad de RedIRIS | 约 180 | ✓ | 马德里康普顿斯大学、巴塞罗那大学、马德里自治大学、瓦伦西亚大学 |
121
+ | 葡萄牙 | RCTSaai | RCTSaai | 约 110 | ✓ | 里斯本大学、波尔图大学、科英布拉大学 |
122
+ | 意大利 | IDEM | IDEM GARR AAI | 约 170 | ✓ | 博洛尼亚大学、罗马第一大学、米兰大学、帕多瓦大学 |
123
+ | 希腊 | GRNET | GRNET AAI Federation | 53 | ✓ | 雅典国立卡波迪斯特里亚大学、塞萨洛尼基亚里士多德大学、雅典国立理工大学 |
124
+ | 马耳他 | RiċerkaNET | RiċerkaNET Identity Federation | 1 | ✓ | 马耳他大学(剑桥大学出版社) |
125
+ | 斯洛文尼亚 | ArnesAAI | ArnesAAI | 21 | ✓ | 卢布尔雅那大学、马里博尔大学 |
126
+ | 克罗地亚 | AAI@EduHr | AAI@EduHr | 1 个全国入口 | ✓ | 萨格勒布大学(Springer Nature,经全国入口) |
127
+ | 塞尔维亚 | iAMRES | iAMRES | 19 | ✓ | 诺维萨德大学、贝尔格莱德大学化学学院 |
128
+ | 黑山 | IDeduME | IDeduME | 3 | ✓ | 黑山大学(剑桥大学出版社) |
129
+ | 北马其顿 | AAIEduMk | AAIEduMk | 4 | ✓ | 斯科普里圣西里尔和美多德大学 |
130
+ | 阿尔巴尼亚 | RASH | RASH | 2 | ○ | — |
131
+ | 保加利亚 | BIF | Bulgarian Identity Federation | 21 | ○ | — |
132
+ | 罗马尼亚 | RoEduNetID | RoEduNetID | 24 | ✓ | 布加勒斯特大学、雅西大学 |
133
+
134
+ - 西班牙的学校都经 SIR 的中转站登录,程序自动经过。
135
+ - 克罗地亚的学校都经 AAI@EduHr 全国共用入口登录:配置时同时给出校名和学校官网域名。
136
+ - 贝尔格莱德大学没有全校的登录入口,各学院分别登记;配置时程序会列出各学院请用户选。
137
+ - 马耳他大学、萨格勒布大学、地拉那大学、索非亚大学、索非亚技术大学:Elsevier 只给它们开了 IP 方式,程序会写明原因;黑山大学只有教职工入口登记在 eduGAIN,Elsevier 的机构列表里没有它。马耳他大学、黑山大学在剑桥大学出版社、萨格勒布大学在 Springer Nature 能走到学校登录页。
138
+ - 阿尔巴尼亚、保加利亚:除 Elsevier 外又试了六家出版社,Springer Nature 的机构列表里没有这两国的学校,其他几家在测试电脑上出了人机验证页或没选上学校,尚未走到学校登录页。
139
+
140
+ ### 东欧
141
+
142
+ | 地区 | 联盟 | 全称 | 联盟内学校数 | 状态 | 已实测的学校 |
143
+ | --- | --- | --- | --- | --- | --- |
144
+ | 爱沙尼亚 | TAAT | TAAT | 13 | ✓ | 塔尔图大学、塔林理工大学 |
145
+ | 拉脱维亚 | LAIFE | Latvian Academic Identity Federation | 19 | ✓ | 拉脱维亚大学 |
146
+ | 立陶宛 | LITNET FEDI | LITNET FEDI | 22 | ✓ | 维尔纽斯大学、考纳斯理工大学、立陶宛健康科学大学 |
147
+ | 白俄罗斯 | FEBAS | FEBAS | 3 | ○ | — |
148
+ | 乌克兰 | PEANO | PEANO | 8 | ✓ | 切尔诺夫策国立大学、哈尔科夫理工学院 |
149
+ | 摩尔多瓦 | LEAF | LEAF | 4 | ○ | — |
150
+
151
+ - 拉脱维亚有十几所学校(含里加理工大学、里加斯特拉金什大学)经 LAIFE 共用入口登录:配置时同时给出校名和学校官网域名;Elsevier 只给这两所开了 IP 方式。
152
+ - 塔林理工大学在联盟名单里写作“TalTech”,用这个简称或旧域名 `ttu.ee` 能查到。
153
+ - 白俄罗斯国立大学的登录服务器从境外连不上,程序立即结束并说明学校登录系统出错;摩尔多瓦国立大学在 Elsevier 只开了 IP 方式,在剑桥大学出版社能选中,但测试时选校页没有接受这次选择,尚未走到学校登录页。
38
154
 
39
155
  ## 美洲
40
156
 
157
+ ### 北美洲
158
+
41
159
  | 地区 | 联盟 | 全称 | 联盟内学校数 | 状态 | 已实测的学校 |
42
160
  | --- | --- | --- | --- | --- | --- |
43
161
  | 美国 | InCommon | InCommon Federation | 约 590 | ✓ | 斯坦福大学、麻省理工学院、耶鲁大学、普林斯顿大学、哥伦比亚大学、加州大学伯克利分校、加州大学洛杉矶分校、加州大学旧金山分校、密歇根大学、宾夕法尼亚大学、杜克大学、华盛顿大学、纽约大学、康奈尔大学、约翰斯·霍普金斯大学 |
44
162
 
45
- ## 计划中
163
+ 计划中:加拿大,再拉丁美洲和加勒比(中美洲、加勒比、南美洲)。
164
+
165
+ ## 大洋洲
166
+
167
+ 计划中:澳大利亚与新西兰、美拉尼西亚、密克罗尼西亚、波利尼西亚。
46
168
 
47
- 英国(UK federation)、澳大利亚(AAF)、欧洲各国联盟,之后是 eduGAIN 里的其他国家。
169
+ ## 非洲
170
+
171
+ 计划中。
172
+
173
+ ## 跨地区
174
+
175
+ | 地区 | 联盟 | 全称 | 联盟内学校数 | 状态 | 已实测的学校 |
176
+ | --- | --- | --- | --- | --- | --- |
177
+ | 跨地区 | OpenAthens | OpenAthens 机构登录服务 | — | ✓ | 马来亚大学、朱拉隆功大学、菲律宾大学 Diliman、名古屋大学、台湾大学、阳明交通大学、台湾师范大学 |
178
+
179
+ - OpenAthens 不是某个国家的联盟,是跨国的机构登录服务;学校同时有本国联盟入口时,程序优先用联盟的。
180
+
181
+ ## 说明
182
+
183
+ - 联盟内学校数取自 eduGAIN 登记的身份提供方数量,一所学校可能登记不止一个。
184
+ - 学校登录服务器连不上,或学校认证服务器拒绝出版社的登录请求时,程序立即结束并说明“学校登录系统出错”;这类情况要由学校处理。
185
+ - 学校登录服务器没有登记这家出版社时(页面显示 Unsupported Request、Metadata not found 等),程序立即结束并说明学校没有为这家出版社开通。
@@ -53,8 +53,9 @@ paper-search school login --doi <学校订阅的一篇文章的 DOI>
53
53
  paper-search-school setup --institution "用户说的校名" [--also-name "学校的英文正式名称"]
54
54
  ```
55
55
 
56
- - 目前支持中国内地和澳门(CARSI)、香港(HKAF)、新加坡(SGAF)、日本(GakuNin)、韩国(KAFE)、马来西亚(SIFULAN)、印度(INFED)、土耳其(YETKİM)、斯里兰卡(LIAF)、孟加拉(TIGERfed)、巴基斯坦(PKIFED)、阿曼(OMREN)、美国(InCommon)的学术身份联盟,以及只经 OpenAthens 登录的学校。`--institution` 可以是校名(任何语言)、学校域名或 entityID;后端在各联盟的学校名单里查,确定是哪一所才保存,并保存它所属的联盟。
57
- - 联盟名单里的校名是当地语言和英文(中国内地、澳门有中文,日本有日文,土耳其有土耳其文,香港、韩国、新加坡、马来西亚、南亚和美国多只有英文)。用户说的校名不是这两种时,加 `--also-name` 给出学校的英文正式名称;不确定英文名就不加。
56
+ - 目前支持中国内地和澳门(CARSI)、香港(HKAF)、新加坡(SGAF)、日本(GakuNin)、韩国(KAFE)、马来西亚(SIFULAN)、印度(INFED)、土耳其(YETKİM)、斯里兰卡(LIAF)、孟加拉(TIGERfed)、巴基斯坦(PKIFED)、阿曼(OMREN)、中国内地科研机构(CSTCloud)、沙特阿拉伯(Maeen)、塞浦路斯(CyNet)、以色列(IUCC)、伊朗(IRFED)、阿塞拜疆(AzScienceNet)、英国(UK federation)、爱尔兰(Edugate)、法国(RENATER)、荷兰(SURFconext)、比利时(Belnet)、卢森堡(eduID Luxembourg)、北欧、中欧、南欧和东欧各国(各联盟见 `federation-support.md`)、美国(InCommon)的学术身份联盟,以及只经 OpenAthens 登录的学校。`--institution` 可以是校名(任何语言)、学校域名或 entityID;后端在各联盟的学校名单里查,确定是哪一所才保存,并保存它所属的联盟。
57
+ - 联盟名单里的校名是当地语言和英文(中国内地、澳门有中文,日本有日文,土耳其有土耳其文,欧洲各国多有当地语言名,香港、韩国、新加坡、马来西亚、南亚和美国多只有英文)。用户说的校名不是英文时,加 `--also-name` 给出学校的英文正式名称(出版社多按英文名列学校);不确定英文名就不加。
58
+ - 有些学校经多校共用的登录入口登录(如以色列、挪威、克罗地亚的大学,中国内地的科研院所,巴基斯坦、拉脱维亚的部分学校),联盟名单里只有它们的域名:按校名查不到时,用 `--institution <校名> --also-name <学校官网域名>` 再查一次,程序会按域名找到入口,并按所给校名在出版社搜索。
58
59
  - 返回 `school_ambiguous` 时,把 `candidates`(含学校名、联盟、域名)列给用户选,再用所选学校的 `entity_id` 作为 `--institution` 重新运行;只有一个候选也要问,那是名字不完全一致的学校。`school_not_found` 时请用户换成学校正式名称、英文名或学校域名,仍找不到就按回复里的 `reasons` 如实说明:这所学校可能没有接入学术身份联盟或 OpenAthens,学校订阅下载无法为它登录;`federation_not_supported` 是找到了学校但它所属的联盟还不支持,如实告诉用户;`school_list_unavailable` 是名单取不到,稍后重试。
59
60
  - `--carsi --institution` 只在 CARSI 名单里查(错误码 `carsi_school_*`);查 CARSI 名单:`paper-search-school setup --list-carsi-schools 关键词`。
60
61
  - `setup --check` 的 `school` 项为 `missing` 时,说明只存了学校名,按提示重新运行上面的命令。