Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

refactor(journal_quality)!: remove the retired DOAJ Seal quality signal (#4531)

LearningCircuit440657bd2582
diff --git a/changelog.d/+remove-retired-doaj-seal.removal.md b/changelog.d/+remove-retired-doaj-seal.removal.md
new file mode 100644
index 0000000000..76a29cc2b3
--- /dev/null
+++ b/changelog.d/+remove-retired-doaj-seal.removal.md
@@ -0,0 +1 @@
+Removed the DOAJ Seal quality tier (score 8) and the Tier 4 "+1 Seal bonus": DOAJ retired the Seal in April 2025 and removed it from its metadata, so the tier could never be earned again and only ever fired on stale pre-2025 data. DOAJ-listed journals keep their score-5 floor. The `has_doaj_seal` column was dropped from the reference DB (schema version 4 — the DB rebuilds automatically on first use) and the Seal star/count no longer appear on the journal-quality dashboard.
diff --git a/docs/journal-quality.md b/docs/journal-quality.md
index a1586ea541..4be1575e2a 100644
--- a/docs/journal-quality.md
+++ b/docs/journal-quality.md
@@ -11,7 +11,7 @@ When you search using academic engines (ArXiv, OpenAlex, Semantic Scholar, NASA
| Score | Tier | Description | Example |
|-------|------|-------------|---------|
| 10 | Elite | Top-tier journals with h-index > 150 | Nature, Science, NEJM |
-| 7–8 | Strong | Strong Q1 journals, h-index 41–150, or DOAJ Seal | PLOS ONE, IEEE Trans. |
+| 7–8 | Strong | Strong Q1 journals, h-index 41–150 | PLOS ONE, IEEE Trans. |
| 5–6 | Moderate | Solid journals, DOAJ-listed OA journals | Many field-specific journals |
| 4 | Default | Low h-index or unknown venue (no data in any bundled source) | Newer, niche, or unindexed journals |
| 1 | Predatory | Flagged by Stop Predatory Journals — auto-removed | SPJ list entries |
@@ -43,7 +43,7 @@ The system uses a tiered approach — the first tier that finds the journal wins
settle on one number with a clear qualifier. -->
2. **Tier 2 — OpenAlex Snapshot**: Looks up the journal in the bundled OpenAlex dataset (~280K sources, downloaded fresh from the OpenAlex S3 bulk dump). Scores based on h-index thresholds (>150 → 10, >75 → 8, >40 → 7, >20 → 6, >10 → 5, else → 4) with DOAJ cross-referencing. Quartile (Q1–Q4) is derived from cited_by_count percentiles per source type.
-3. **Tier 3 — DOAJ Check**: For journals with ISSN not in OpenAlex, checks DOAJ status. Listed = score 5, DOAJ Seal = score 8.
+3. **Tier 3 — DOAJ Check**: For journals with ISSN not in OpenAlex, checks DOAJ status. Listed = score 5. (DOAJ retired its "Seal" in April 2025, so the former Seal = score 8 tier no longer exists.)
4. **Tier 3.5 — Institution Affiliation Salvage**: For preprints (arXiv, bioRxiv) without a journal, fall back to scoring the author's institution using ~120K OpenAlex Institutions records. Capped at 6 — never beats a real venue match.
@@ -73,7 +73,7 @@ This system is made possible by the following open academic data initiatives. Al
| Source | Entries | License | What It Provides | Website |
|--------|---------|---------|-----------------|---------|
| [OpenAlex](https://openalex.org) | ~212K | CC0 Public Domain | h-index, impact factor, DOAJ status | openalex.org |
-| [DOAJ](https://doaj.org) | ~22K | CC0 (metadata) | Open access verification, Seal status | doaj.org |
+| [DOAJ](https://doaj.org) | ~22K | CC0 (metadata) | Open access verification | doaj.org |
| [Stop Predatory Journals](https://predatoryjournals.org) | ~2.5K | MIT License | Predatory journal/publisher blacklist | predatoryjournals.org |
We are grateful to these projects for making academic quality data freely available to the research community.
@@ -87,7 +87,7 @@ Features:
- **Quality distribution chart**: Bar chart showing score distribution (1-10)
- **Score source chart**: Doughnut showing OpenAlex vs DOAJ vs LLM breakdown
- **Searchable table**: 212K journals with pagination, filtering by tier/source, sortable columns
-- **Trust indicators**: DOAJ checkmark, DOAJ Seal star, predatory warning per journal
+- **Trust indicators**: DOAJ checkmark, predatory warning per journal
## Source Quality Tags
@@ -132,7 +132,7 @@ The result is cached in the per-user `journals` table for `search.journal_reputa
- Check `search.journal_reputation.threshold`. The default of `2` only removes predatory journals — raise to `5`+ to also drop unknown / low-impact venues.
- Look up the journal in the `/metrics/journals` dashboard. If it's missing, none of OpenAlex, DOAJ, or the predatory list matched it.
-- If the journal is in the predatory list but you believe it's legitimate, verify the whitelist: journals with h-index > `JOURNAL_PREDATORY_WHITELIST_HINDEX` (see `src/local_deep_research/constants.py`) or a DOAJ Seal override the predatory flag automatically.
+- If the journal is in the predatory list but you believe it's legitimate, verify the whitelist: journals with h-index > `JOURNAL_PREDATORY_WHITELIST_HINDEX` (see `src/local_deep_research/constants.py`) or a DOAJ listing override the predatory flag automatically.
### Journal not appearing in results
diff --git a/src/local_deep_research/advanced_search_system/filters/journal_reputation_filter.py b/src/local_deep_research/advanced_search_system/filters/journal_reputation_filter.py
index 47962a54a8..77ec86b706 100644
--- a/src/local_deep_research/advanced_search_system/filters/journal_reputation_filter.py
+++ b/src/local_deep_research/advanced_search_system/filters/journal_reputation_filter.py
@@ -11,8 +11,7 @@ Scoring tiers (tried in order, first match wins):
(whitelist override prevents false positives)
2. OpenAlex — h-index, quartile, DOAJ from ~217K bundled sources;
preprint repos can be lifted via institution affiliations
- 3. DOAJ — quality floor (5) for listed OA journals;
- DOAJ Seal → 8
+ 3. DOAJ — quality floor (5) for listed OA journals
3.5 Institutions — author affiliation lookup when no venue matched
(capped at 6, never beats a real venue)
@@ -965,17 +964,12 @@ JOURNAL INFORMATION:
if oa_entry:
h_idx = oa_entry.get("h_index")
oa_doaj = oa_entry.get("is_in_doaj", False)
- # OpenAlex has is_in_doaj but not has_doaj_seal — cross-ref DOAJ
- oa_seal = (
- dm.has_doaj_seal(oa_entry.get("issn_l")) if oa_doaj else False
- )
oa_type = oa_entry.get("type", "journal")
oa_quartile = oa_entry.get("quartile")
score = dm.derive_quality_score(
h_index=h_idx,
quartile=oa_quartile,
is_in_doaj=oa_doaj,
- has_doaj_seal=oa_seal,
source_type=oa_type,
)
if score is not None:
@@ -1011,14 +1005,9 @@ JOURNAL INFORMATION:
if issn:
doaj_entry = dm.lookup_doaj(issn=issn)
if doaj_entry:
- seal = doaj_entry.get("has_seal", False)
- score = dm.derive_quality_score(
- is_in_doaj=True,
- has_doaj_seal=seal,
- )
+ score = dm.derive_quality_score(is_in_doaj=True)
logger.debug(
- f"Tier 3 (DOAJ): '{journal_name}' → "
- f"score {score}/10 (DOAJ Seal: {seal})"
+ f"Tier 3 (DOAJ): '{journal_name}' → score {score}/10"
)
return score, "doaj"
@@ -1121,16 +1110,10 @@ JOURNAL INFORMATION:
if oa_retry:
h_idx = oa_retry.get("h_index")
oa_doaj = oa_retry.get("is_in_doaj", False)
- oa_seal = (
- dm.has_doaj_seal(oa_retry.get("issn_l"))
- if oa_doaj
- else False
- )
score = dm.derive_quality_score(
h_index=h_idx,
quartile=oa_retry.get("quartile"),
is_in_doaj=oa_doaj,
- has_doaj_seal=oa_seal,
source_type=oa_retry.get("type", "journal"),
)
if score is not None:
@@ -1155,34 +1138,14 @@ JOURNAL INFORMATION:
try:
quality = self.__analyze_journal_reputation(journal_name)
self.__reset_searxng_failures()
- # DOAJ Seal bump: if we know the journal has the Seal,
- # give the LLM score a +1 (capped at 10). The Seal is a
- # strong independent OA signal the LLM can't see from
- # SearXNG snippets. After the bump, snap back to the
- # emitted-score set so the cache stays canonical.
- seal_bonus = False
- if issn and dm.has_doaj_seal(issn):
- bumped = min(quality + 1, 10)
- if bumped in VALID_QUALITY_SCORES:
- quality = bumped
- seal_bonus = True
- else:
- # Bump lands outside the canonical score set
- # (e.g. q=8 → 9, and 9 ∉ VALID_QUALITY_SCORES).
- # Log the skip so operators can see the Seal
- # had no effect instead of dropping silently.
- logger.debug(
- f"DOAJ Seal +1 bonus skipped for "
- f"'{journal_name}': {quality}+1={bumped} "
- f"not in VALID_QUALITY_SCORES "
- f"{sorted(VALID_QUALITY_SCORES)}"
- )
+ # There used to be a +1 "DOAJ Seal bonus" here. DOAJ
+ # retired the Seal in April 2025, so the bonus could
+ # only ever fire on stale pre-2025 data and was removed.
self.__save_llm_score_to_db(name=journal_name, quality=quality)
logger.debug(
f"Tier 4 (LLM): '{journal_name}' → "
f"score {quality}/10 "
- f"[via SearXNG + LLM analysis"
- f"{', +1 DOAJ Seal bonus' if seal_bonus else ''}]"
+ f"[via SearXNG + LLM analysis]"
)
return quality, "llm"
except Exception:
diff --git a/src/local_deep_research/constants.py b/src/local_deep_research/constants.py
index a9231890b3..48ba7495ec 100644
--- a/src/local_deep_research/constants.py
+++ b/src/local_deep_research/constants.py
@@ -190,9 +190,11 @@ VALID_QUALITY_SCORES = frozenset(
}
)
-# DOAJ scoring (DOAJ Seal = top ~10% of DOAJ journals, best OA practices)
-DOAJ_QUALITY_WITH_SEAL = 8
-DOAJ_QUALITY_NO_SEAL = 5
+# DOAJ scoring. There used to be a higher DOAJ_QUALITY_WITH_SEAL = 8
+# tier, but DOAJ retired the Seal in April 2025 and removed it from
+# their metadata, so listing is now the only DOAJ signal:
+# https://blog.doaj.org/2025/04/09/our-metadata-changes-are-live-and-the-seal-has-been-retired/
+DOAJ_QUALITY_LISTED = 5
CONFERENCE_QUALITY_DEFAULT = (
5 # Neutral; in CS top conferences are Q1-equivalent
)
diff --git a/src/local_deep_research/journal_quality/data_sources/doaj.py b/src/local_deep_research/journal_quality/data_sources/doaj.py
index 4da9b7ea5e..6401ab21da 100644
--- a/src/local_deep_research/journal_quality/data_sources/doaj.py
+++ b/src/local_deep_research/journal_quality/data_sources/doaj.py
@@ -29,8 +29,11 @@ _DOAJ_CSV_URL = "https://doaj.org/csv"
_COL_TITLE = "Journal title"
_COL_PISSN = "Journal ISSN (print version)"
_COL_EISSN = "Journal EISSN (online version)"
-_COL_SEAL = "DOAJ Seal"
_COL_PUBLISHER = "Publisher"
+# NB: the "DOAJ Seal" column is intentionally no longer parsed — DOAJ
+# retired the Seal in April 2025 and removed it from their metadata, so
+# the column only ever yields blanks now:
+# https://blog.doaj.org/2025/04/09/our-metadata-changes-are-live-and-the-seal-has-been-retired/
# Safety floor — DOAJ has ~22K journals. A fetch that returns far fewer
# records almost certainly indicates a schema change upstream (e.g.
@@ -46,7 +49,7 @@ class DOAJSource(DataSource):
dataset_url = "https://doaj.org/docs/public-data-dump"
license = "CC0 (metadata)"
license_url = "https://creativecommons.org/publicdomain/zero/1.0/"
- description = "~22K verified open access journals with DOAJ Seal status"
+ description = "~22K verified open access journals"
filename = "doaj_journals.json"
count_label = "DOAJ journals"
auto_download = False
@@ -85,17 +88,8 @@ class DOAJSource(DataSource):
if not issn:
continue
- # DOAJ's seal column is actually ternary in the CSV: "yes",
- # "no", or blank (never applied). The current consumer
- # (scoring.py) only needs the boolean floor, so we collapse
- # blank and "no" into False here. If a future scoring tier
- # wants to distinguish "applied and was denied" from "never
- # applied", preserve the raw value in a new dict key and
- # plumb it through the Source ORM.
- seal_raw = (row.get(_COL_SEAL) or "").strip().lower()
journals[issn] = {
"name": (row.get(_COL_TITLE) or "").strip(),
- "has_seal": seal_raw in ("yes", "true", "1"),
"publisher": (row.get(_COL_PUBLISHER) or "").strip(),
}
diff --git a/src/local_deep_research/journal_quality/db.py b/src/local_deep_research/journal_quality/db.py
index b3c0afbd27..cd804fbabf 100644
--- a/src/local_deep_research/journal_quality/db.py
+++ b/src/local_deep_research/journal_quality/db.py
@@ -66,7 +66,8 @@ _BATCH_SIZE = 5000
# Stamped as SQLite `PRAGMA user_version` during build_db; checked on
# _ensure_engine. Separate from JOURNAL_DATA_VERSION (downloader.py)
# which tracks upstream source-data freshness.
-JOURNAL_QUALITY_SCHEMA_VERSION = 3
+# v4: dropped Source.has_doaj_seal — DOAJ retired the Seal in April 2025.
+JOURNAL_QUALITY_SCHEMA_VERSION = 4
# Quality tier → score range, used by the dashboard tier filter.
_TIER_RANGES = {
@@ -494,17 +495,12 @@ class JournalQualityDB:
return None
return {
"name": row.name,
- "has_seal": row.has_doaj_seal,
"publisher": row.publisher,
}
def is_in_doaj(self, issn: Optional[str]) -> bool:
return self.lookup_doaj(issn=issn) is not None
- def has_doaj_seal(self, issn: Optional[str]) -> bool:
- entry = self.lookup_doaj(issn=issn)
- return bool(entry and entry.get("has_seal"))
-
def is_predatory(
self,
*,
@@ -765,7 +761,6 @@ class JournalQualityDB:
"avg_h_index": None,
"predatory_count": 0,
"doaj_count": 0,
- "seal_count": 0,
"llm_count": 0,
}
@@ -783,9 +778,6 @@ class JournalQualityDB:
func.sum(func.iif(Source.is_in_doaj, 1, 0)).label(
"doaj_count"
),
- func.sum(func.iif(Source.has_doaj_seal, 1, 0)).label(
- "seal_count"
- ),
func.sum(
func.iif(Source.score_source == "llm", 1, 0)
).label("llm_count"),
@@ -964,7 +956,6 @@ def _source_to_dashboard_dict(row: Source) -> dict:
round(row.impact_factor, 2) if row.impact_factor else None
),
"is_in_doaj": bool(row.is_in_doaj),
- "has_doaj_seal": bool(row.has_doaj_seal),
"is_predatory": bool(row.is_predatory),
"predatory_source": row.predatory_source,
"score_source": row.score_source,
@@ -1396,7 +1387,6 @@ def _populate_sources(
doaj_entry = doaj_data.get(issn) if issn else None
is_in_doaj = doaj_entry is not None
- has_doaj_seal = bool(doaj_entry and doaj_entry.get("has_seal"))
is_pred = name_lower in pred_journals
pred_source = "stop-predatory-journals" if is_pred else None
@@ -1419,7 +1409,6 @@ def _populate_sources(
quality = derive_quality_score(
h_index=h_index,
is_in_doaj=is_in_doaj,
- has_doaj_seal=has_doaj_seal,
is_predatory=is_pred,
source_type=source_type,
)
@@ -1437,7 +1426,6 @@ def _populate_sources(
"quartile": None, # filled in by the post-pass below
"quality": quality,
"is_in_doaj": is_in_doaj,
- "has_doaj_seal": has_doaj_seal,
"is_predatory": is_pred,
"predatory_source": pred_source,
"score_source": "openalex",
@@ -1460,12 +1448,10 @@ def _populate_sources(
name_lower = normalize_name(name)
if name_lower in openalex_names:
continue
- has_seal = bool(doaj_entry.get("has_seal"))
publisher = doaj_entry.get("publisher") or None
quality = derive_quality_score(
h_index=None,
is_in_doaj=True,
- has_doaj_seal=has_seal,
is_predatory=False,
source_type="journal",
)
@@ -1482,7 +1468,6 @@ def _populate_sources(
"quartile": None,
"quality": quality,
"is_in_doaj": True,
- "has_doaj_seal": has_seal,
"is_predatory": False,
"predatory_source": None,
"score_source": "doaj",
@@ -1529,7 +1514,6 @@ def _populate_sources(
h_index=r.get("h_index"),
quartile=r.get("quartile"),
is_in_doaj=r.get("is_in_doaj") or False,
- has_doaj_seal=r.get("has_doaj_seal") or False,
is_predatory=r.get("is_predatory") or False,
source_type=r.get("source_type"),
)
diff --git a/src/local_deep_research/journal_quality/models.py b/src/local_deep_research/journal_quality/models.py
index bdb9fda658..4dcf5a51f8 100644
--- a/src/local_deep_research/journal_quality/models.py
+++ b/src/local_deep_research/journal_quality/models.py
@@ -84,7 +84,9 @@ class Source(JournalQualityBase):
quartile: Mapped[str | None] = mapped_column(String(2), index=True)
quality: Mapped[int | None] = mapped_column(Integer, index=True)
is_in_doaj: Mapped[bool] = mapped_column(Boolean, default=False)
- has_doaj_seal: Mapped[bool] = mapped_column(Boolean, default=False)
+ # NB: there used to be a has_doaj_seal column here. DOAJ retired the
+ # Seal in April 2025 and removed it from their metadata, so the
+ # column was dropped (schema version 4).
is_predatory: Mapped[bool] = mapped_column(
Boolean, default=False, index=True
)
diff --git a/src/local_deep_research/journal_quality/scoring.py b/src/local_deep_research/journal_quality/scoring.py
index 06e8f009f2..33af96a391 100644
--- a/src/local_deep_research/journal_quality/scoring.py
+++ b/src/local_deep_research/journal_quality/scoring.py
@@ -16,8 +16,7 @@ from typing import Optional
from ..constants import (
CONFERENCE_QUALITY_DEFAULT,
- DOAJ_QUALITY_NO_SEAL,
- DOAJ_QUALITY_WITH_SEAL,
+ DOAJ_QUALITY_LISTED,
INSTITUTION_HINDEX_HIGH,
INSTITUTION_HINDEX_TOP,
INSTITUTION_QUALITY_DEFAULT,
@@ -54,7 +53,6 @@ def derive_quality_score(
h_index: Optional[int] = None,
quartile: Optional[str] = None,
is_in_doaj: bool = False,
- has_doaj_seal: bool = False,
is_predatory: bool = False,
source_type: Optional[str] = None,
) -> Optional[int]:
@@ -65,7 +63,12 @@ def derive_quality_score(
is what librarians and reviewers use when evaluating journals, so
we honour it directly and only use h-index as a tiebreaker.
- ``h_index``: used standalone when no quartile is available.
- - ``is_in_doaj`` / ``has_doaj_seal``: weakest fall-through signal.
+ - ``is_in_doaj``: weakest fall-through signal.
+
+ There is deliberately no DOAJ Seal input anymore: DOAJ retired the
+ Seal in April 2025 and removed it from their metadata, so the old
+ ``has_doaj_seal`` tier (score 8) could never be earned again and
+ only ever fired on stale pre-2025 data.
H-index thresholds calibrated from real data:
- Nature h-index: 1,442
@@ -102,7 +105,7 @@ def derive_quality_score(
# Quartile takes precedence — it is the canonical librarian signal.
# We still let a high h-index bump a Q1 to "elite" so Nature stays
- # distinguishable from a typical Q1. DOAJ Seal floor also applies
+ # distinguishable from a typical Q1. DOAJ listing applies
# orthogonally via max() so it cannot be silently discarded.
if quartile:
q = quartile.upper().strip()
@@ -120,10 +123,8 @@ def derive_quality_score(
q_score = JOURNAL_QUALITY_ACCEPTABLE
if q_score is not None:
- if has_doaj_seal:
- return max(q_score, DOAJ_QUALITY_WITH_SEAL)
if is_in_doaj:
- return max(q_score, DOAJ_QUALITY_NO_SEAL)
+ return max(q_score, DOAJ_QUALITY_LISTED)
return q_score
# h_index=0 means newly indexed, not meaningful. Negative values
@@ -143,19 +144,15 @@ def derive_quality_score(
else:
h_score = JOURNAL_QUALITY_DEFAULT
- # DOAJ Seal is an orthogonal quality signal (best OA practices).
- # A journal with moderate h-index but DOAJ Seal should get at
- # least the Seal floor score. Use max() so the signals reinforce
- # rather than conflict.
- if has_doaj_seal:
- return max(h_score, DOAJ_QUALITY_WITH_SEAL)
+ # DOAJ listing is an orthogonal quality signal (verified open
+ # access). Use max() so the signals reinforce rather than
+ # conflict.
if is_in_doaj:
- return max(h_score, DOAJ_QUALITY_NO_SEAL)
+ return max(h_score, DOAJ_QUALITY_LISTED)
return h_score
if is_in_doaj:
- # DOAJ Seal = top ~10% of DOAJ journals (best OA practices)
- return DOAJ_QUALITY_WITH_SEAL if has_doaj_seal else DOAJ_QUALITY_NO_SEAL
+ return DOAJ_QUALITY_LISTED
if source_type == "conference":
return CONFERENCE_QUALITY_DEFAULT # Neutral — in CS, top conferences are Q1-equivalent
diff --git a/src/local_deep_research/web/routes/metrics_routes.py b/src/local_deep_research/web/routes/metrics_routes.py
index 667491489e..ecea3fa11e 100644
--- a/src/local_deep_research/web/routes/metrics_routes.py
+++ b/src/local_deep_research/web/routes/metrics_routes.py
@@ -2440,7 +2440,7 @@ def _ref_db_lookup(ref_db, name: str) -> dict:
Returns a dict with keys the dashboard template already renders
(h_index, impact_factor, sjr_quartile, publisher, is_predatory,
- predatory_source, is_in_doaj, has_doaj_seal). Missing fields default
+ predatory_source, is_in_doaj). Missing fields default
to None / False so the frontend never sees KeyError. On any ref-DB
error the function returns an empty dict — the dashboard still shows
the name + user-DB quality, just without the extras.
@@ -2464,7 +2464,6 @@ def _ref_db_lookup(ref_db, name: str) -> dict:
"is_predatory": bool(entry.get("is_predatory")),
"predatory_source": entry.get("predatory_source"),
"is_in_doaj": bool(entry.get("is_in_doaj")),
- "has_doaj_seal": bool(entry.get("has_doaj_seal")),
"publisher": entry.get("publisher"),
}
diff --git a/src/local_deep_research/web/templates/pages/journal_quality.html b/src/local_deep_research/web/templates/pages/journal_quality.html
index 4c067da7ec..d402c5c02c 100644
--- a/src/local_deep_research/web/templates/pages/journal_quality.html
+++ b/src/local_deep_research/web/templates/pages/journal_quality.html
@@ -132,7 +132,7 @@
{{ help_step(1, "Automatic Scoring", "When your research encounters a journal for the first time, it is automatically scored using real bibliometric data. Scores are cached so subsequent lookups are instant.") }}
{{ help_step(2, "Tiered Data Sources", "Scoring uses a tiered approach: (1) Predatory blacklist check, (2) OpenAlex snapshot with h-index data for ~217K journals, (3) DOAJ open access status, (4) LLM analysis as a last resort for unknown journals.") }}
{{ help_step(3, "Quality Scale (1-10)", "9-10 = Elite (Nature, Science-level), 7-8 = Strong Q1, 5-6 = Moderate, 3-4 = Low, 1-2 = Predatory. Predatory journals are auto-removed from results.") }}
- {{ help_step(4, "Trust Signals", "Badges show: DOAJ listing (open access verified), DOAJ Seal (top 10%), Scopus indexing, and predatory flags.") }}
+ {{ help_step(4, "Trust Signals", "Badges show: DOAJ listing (open access verified), Scopus indexing, and predatory flags.") }}
{{ help_step(5, "Data Storage & Refresh (admin)", "The reference database and raw source files are stored at ~/.local/share/local-deep-research/journal_data/ on Linux/macOS, or %APPDATA%\\local-deep-research\\journal_data\\ on Windows. The data is shared across all users on this server, so a forced refresh affects everyone. To update to a newer OpenAlex snapshot: stop the server, delete the files in that directory, and restart — the next search or dashboard visit will re-download in the background. Typically an admin task; normal users don't need to refresh.") }}
</div>
{{ help_tip("<strong>Note:</strong> H-index has field-dependent bias — mathematics journals naturally have lower h-index than biomedical journals.") }}
@@ -263,8 +263,8 @@
citedness, citation count, publisher, ISSN. Quality is derived from h-index thresholds
(≥150 → 10, ≥75 → 8, ≥40 → 7, ≥20 → 6, ≥10 → 5, else → 4) and a Q1–Q4 quartile is computed
from cited_by_count percentiles per source type.</li>
- <li><strong>Tier 3 — DOAJ.</strong> ~22K verified open-access journals. DOAJ Seal (top ~10%) → 8,
- regular DOAJ listing → 5. Used when OpenAlex doesn't have a row.</li>
+ <li><strong>Tier 3 — DOAJ.</strong> ~22K verified open-access journals. DOAJ listing → 5.
+ Used when OpenAlex doesn't have a row.</li>
<li><strong>Tier 3.5 — Institution affiliation salvage.</strong> For preprints (arXiv, bioRxiv, …)
without a journal, fall back to scoring the author's institution using ~120K OpenAlex Institutions
records (h-index ≥ 250 → 6, ≥ 50 → 5, else → 4). Capped — never beats a real venue match.</li>
@@ -294,7 +294,6 @@
<h3 style="margin-top:0;">Trust signals</h3>
<ul style="color: var(--text-secondary); line-height: 1.65;">
<li><strong>DOAJ</strong> — listed as a verified open-access journal</li>
- <li><strong>DOAJ Seal</strong> — top ~10% of DOAJ journals (best-practice publishing)</li>
<li><strong>Scopus / Core</strong> — indexed in OpenAlex's <em>core</em> set</li>
<li><strong>Predatory</strong> — appears on the Stop Predatory Journals blacklist <em>and</em> is not rescued by the whitelist (DOAJ-listed or h-index above the `PREDATORY_WHITELIST_HINDEX` threshold)</li>
</ul>
@@ -334,7 +333,7 @@
<li><strong>5</strong> — Also drop default/unknown venues (score 4). Repository aggregators, garbled refs, brand-new or niche venues with no h-index data.</li>
<li><strong>6</strong> — Also drop moderate journals (score 5). Conferences and DOAJ-only OA journals start to disappear.</li>
<li><strong>7</strong> — Keep only good journals (h-index ≥ 20).</li>
- <li><strong>8</strong> — Keep only strong Q1 journals (h-index ≥ 40 OR DOAJ Seal).</li>
+ <li><strong>8</strong> — Keep only strong Q1 journals (h-index ≥ 40).</li>
<li><strong>9–10</strong> — Elite only. Nature, Science, NEJM tier (h-index ≥ 75 / ≥ 150). Aggressive — most search results will be filtered out.</li>
</ul>
<p style="color: var(--text-secondary); font-size: 0.8rem; margin-bottom: 0; font-style: italic;">
@@ -455,10 +454,6 @@
<span class="ldr-stat-value" id="stat-doaj" style="color: var(--success-color);">0</span>
<div class="ldr-stat-label">DOAJ Listed</div>
</div>
- <div class="ldr-stat-item">
- <span class="ldr-stat-value" id="stat-seal">0</span>
- <div class="ldr-stat-label">DOAJ Seal</div>
- </div>
<div class="ldr-stat-item">
<span class="ldr-stat-value" id="stat-h-index">0</span>
<div class="ldr-stat-label">Avg H-Index</div>
@@ -589,7 +584,7 @@ const THRESHOLD_DESCRIPTIONS = {
5: { label: 'Predatory + unknowns', detail: 'Also drops journals with no signal in any bundled dataset (score 4): repository aggregators, garbled refs, brand-new venues with no h-index data.' },
6: { label: 'Moderate quality and up', detail: 'Also drops moderate journals (score 5). Conferences and DOAJ-only OA journals start to disappear.' },
7: { label: 'Good quality and up', detail: 'Keeps only journals with h-index > 20. About 60% of OpenAlex sources fall below this.' },
- 8: { label: 'Strong Q1 only', detail: 'Keeps only strong Q1 journals (h-index > 40 or DOAJ Seal). Most search results will be filtered.' },
+ 8: { label: 'Strong Q1 only', detail: 'Keeps only strong Q1 journals (h-index > 40). Most search results will be filtered.' },
9: { label: 'Elite Q1 only', detail: 'Keeps only top journals with h-index > 75. Very aggressive — expect ~80–90% of results to be removed.' },
10: { label: 'Nature/Science tier only', detail: 'Keeps only Nature/Science/NEJM-tier journals (h-index > 150). Almost everything will be filtered out.' },
};
@@ -972,7 +967,6 @@ function getSourceBadge(source) {
function getTrustIcons(j) {
let icons = '';
if (j.is_in_doaj) icons += '<span class="ldr-trust-icon" title="DOAJ Listed" style="color:var(--success-color);">✓</span>';
- if (j.has_doaj_seal) icons += '<span class="ldr-trust-icon" title="DOAJ Seal" style="color:var(--warning-color);">★</span>';
if (j.is_predatory) icons += '<span class="ldr-trust-icon" title="Predatory: ' + escHtml(j.predatory_source||'') + '" style="color:var(--error-color);">⚠</span>';
return icons || '<span style="color:var(--text-muted);">—</span>';
}
@@ -1031,7 +1025,6 @@ async function loadJournalPage(page, includeSummary) {
document.getElementById('stat-avg-quality').textContent = s.avg_quality;
document.getElementById('stat-predatory').textContent = s.predatory_count;
document.getElementById('stat-doaj').textContent = s.doaj_count;
- document.getElementById('stat-seal').textContent = s.seal_count || 0;
document.getElementById('stat-h-index').textContent = s.avg_h_index ?? '—';
updateQualityDistChart(s.quality_distribution);
diff --git a/tests/advanced_search_system/filters/test_journal_filter_tiers.py b/tests/advanced_search_system/filters/test_journal_filter_tiers.py
index 32eb7b318c..adb1484d59 100644
--- a/tests/advanced_search_system/filters/test_journal_filter_tiers.py
+++ b/tests/advanced_search_system/filters/test_journal_filter_tiers.py
@@ -45,7 +45,6 @@ def _mock_dm(filt):
dm.is_whitelisted.return_value = False
dm.lookup_openalex.return_value = None
dm.lookup_doaj.return_value = None
- dm.has_doaj_seal.return_value = False
dm.derive_quality_score.return_value = None
dm.expand_abbreviation.return_value = None
dm.score_from_affiliations.return_value = None
@@ -183,17 +182,16 @@ class TestOpenAlexTier:
class TestDoajTier:
- def test_doaj_with_seal(self):
- """DOAJ Seal → uses DOAJ quality score."""
+ def test_doaj_listed(self):
+ """DOAJ-listed journal → uses DOAJ quality score."""
filt, _ = _make_filter(threshold=4)
dm = _mock_dm(filt)
_mock_db_no_cache(filt)
_mock_clean_name(filt, "OA Journal")
dm.lookup_openalex.return_value = None # Tier 2 misses
- dm.lookup_doaj.return_value = {"has_seal": True, "name": "OA Journal"}
- dm.has_doaj_seal.return_value = True
- dm.derive_quality_score.return_value = 8 # DOAJ Seal → score 8
+ dm.lookup_doaj.return_value = {"name": "OA Journal"}
+ dm.derive_quality_score.return_value = 5 # DOAJ listed → score 5
results = filt.filter_results(
[
@@ -205,7 +203,7 @@ class TestDoajTier:
],
"test query",
)
- # DOAJ Seal scores 8, threshold is 4 → result kept
+ # DOAJ listing scores 5, threshold is 4 → result kept
assert len(results) == 1
@@ -283,7 +281,6 @@ class TestSearxngFailFast:
# All tiers before LLM return nothing
dm.lookup_openalex.return_value = None
dm.lookup_doaj.return_value = None
- dm.has_doaj_seal.return_value = False
dm.derive_quality_score.return_value = None
dm.score_from_affiliations.return_value = None
dm.expand_abbreviation.return_value = None
diff --git a/tests/advanced_search_system/filters/test_journal_reputation_coverage.py b/tests/advanced_search_system/filters/test_journal_reputation_coverage.py
index 469a09676f..0745d863ed 100644
--- a/tests/advanced_search_system/filters/test_journal_reputation_coverage.py
+++ b/tests/advanced_search_system/filters/test_journal_reputation_coverage.py
@@ -364,290 +364,6 @@ class TestScoreJournalUnknown:
# ---------------------------------------------------------------------------
-# ---------------------------------------------------------------------------
-# Tier 4 DOAJ Seal +1 bump
-# ---------------------------------------------------------------------------
-
-
-class TestTier4DoajSealBonus:
- """When the Tier 4 LLM scores a journal that also happens to have the
- DOAJ Seal, the score gets a +1 bump (capped at 10). This locks in the
- behavior added in commit 98608ed04 — earlier versions only used the
- Seal as a Tier 2/3 signal, ignoring it for the LLM tier.
-
- Implementation: ``__score_journal`` calls ``__analyze_journal_reputation``,
- then checks ``dm.has_doaj_seal(issn)`` and bumps the result before
- persisting via ``__save_journal_to_db``. We can't easily patch the
- private name-mangled methods, so we drive the behavior end-to-end
- via ``filter_results``.
- """
-
- def _enable_tier4(self):
- """Patch the settings snapshot reader so Tier 4 fires."""
- from local_deep_research.config import search_config
-
- return patch.object(
- search_config,
- "get_setting_from_snapshot",
- side_effect=lambda key, default=None, settings_snapshot=None: (
- True
- if key == "search.journal_reputation.enable_llm_scoring"
- else default
- ),
- )
-
- def test_tier4_score_bumped_when_doaj_seal_present(self):
- """A LLM score of 7 + DOAJ Seal → 8."""
- from local_deep_research.advanced_search_system.filters.journal_reputation_filter import (
- JournalReputationFilter,
- )
-
- filt, _, _ = _make_filter(threshold=2)
-
- with (
- patch.object(
- JournalReputationFilter,
- "_JournalReputationFilter__analyze_journal_reputation",
- return_value=7,
- ),
- patch.object(
- JournalReputationFilter,
- "_JournalReputationFilter__save_llm_score_to_db",
- ) as mock_save,
- patch.object(
- filt._JournalReputationFilter__data_manager,
- "lookup_openalex",
- return_value=None,
- ),
- patch.object(
- filt._JournalReputationFilter__data_manager,
- "lookup_doaj",
- return_value=None,
- ),
- patch.object(
- filt._JournalReputationFilter__data_manager,
- "is_predatory",
- return_value=(False, None),
- ),
- patch.object(
- filt._JournalReputationFilter__data_manager,
- "score_from_affiliations",
- return_value=None,
- ),
- patch.object(
- filt._JournalReputationFilter__data_manager,
- "has_doaj_seal",
- return_value=True,
- ),
- self._enable_tier4(),
- ):
- results = filt.filter_results(
- [
- {
- "journal_ref": "Some Open Access Journal",
- "issn": "1234-5678",
- "title": "Test paper",
- }
- ],
- "query",
- )
-
- # Result kept (bumped score 8 >= threshold 2)
- assert len(results) == 1
- # Persisted under the bumped score (seal bonus: 7 → 8 ∈ VALID)
- save_call = mock_save.call_args
- assert save_call.kwargs["quality"] == 8
-
- def test_tier4_score_capped_at_ten(self):
- """LLM score of 10 + DOAJ Seal → still 10 (no overflow).
-
- With the snap-to-valid-set logic, 10 + 1 = 11 is out-of-set,
- so the bump is dropped and the cached score stays 10.
- """
- from local_deep_research.advanced_search_system.filters.journal_reputation_filter import (
- JournalReputationFilter,
- )
-
- filt, _, _ = _make_filter(threshold=2)
-
- with (
- patch.object(
- JournalReputationFilter,
- "_JournalReputationFilter__analyze_journal_reputation",
- return_value=10,
- ),
- patch.object(
- JournalReputationFilter,
- "_JournalReputationFilter__save_llm_score_to_db",
- ) as mock_save,
- patch.object(
- filt._JournalReputationFilter__data_manager,
- "lookup_openalex",
- return_value=None,
- ),
- patch.object(
- filt._JournalReputationFilter__data_manager,
- "lookup_doaj",
- return_value=None,
- ),
- patch.object(
- filt._JournalReputationFilter__data_manager,
- "is_predatory",
- return_value=(False, None),
- ),
- patch.object(
- filt._JournalReputationFilter__data_manager,
- "score_from_affiliations",
- return_value=None,
- ),
- patch.object(
- filt._JournalReputationFilter__data_manager,
- "has_doaj_seal",
- return_value=True,
- ),
- self._enable_tier4(),
- ):
- filt.filter_results(
- [
- {
- "journal_ref": "Top OA Journal",
- "issn": "1111-2222",
- "title": "Test",
- }
- ],
- "query",
- )
-
- save_call = mock_save.call_args
- assert save_call.kwargs["quality"] == 10 # 11 would be out-of-set
-
- def test_tier4_no_bump_without_seal(self):
- """LLM score 6 + no seal → still 6."""
- from local_deep_research.advanced_search_system.filters.journal_reputation_filter import (
- JournalReputationFilter,
- )
-
- filt, _, _ = _make_filter(threshold=2)
-
- with (
- patch.object(
- JournalReputationFilter,
- "_JournalReputationFilter__analyze_journal_reputation",
- return_value=6,
- ),
- patch.object(
- JournalReputationFilter,
- "_JournalReputationFilter__save_llm_score_to_db",
- ) as mock_save,
- patch.object(
- filt._JournalReputationFilter__data_manager,
- "lookup_openalex",
- return_value=None,
- ),
- patch.object(
- filt._JournalReputationFilter__data_manager,
- "lookup_doaj",
- return_value=None,
- ),
- patch.object(
- filt._JournalReputationFilter__data_manager,
- "is_predatory",
- return_value=(False, None),
- ),
- patch.object(
- filt._JournalReputationFilter__data_manager,
- "score_from_affiliations",
- return_value=None,
- ),
- patch.object(
- filt._JournalReputationFilter__data_manager,
- "has_doaj_seal",
- return_value=False,
- ),
- self._enable_tier4(),
- ):
- filt.filter_results(
- [
- {
- "journal_ref": "Random Journal",
- "issn": "9999-8888",
- "title": "Test",
- }
- ],
- "query",
- )
-
- save_call = mock_save.call_args
- assert save_call.kwargs["quality"] == 6
-
- def test_tier4_seal_bump_skipped_when_out_of_set(self, loguru_caplog):
- """LLM score 8 + DOAJ Seal → stays 8 (bumped value 9 is not
- in VALID_QUALITY_SCORES so the +1 is dropped).
-
- Locks in the visibility log added to explain why the Seal
- had no apparent effect on a Strong-tier journal.
- """
- from local_deep_research.advanced_search_system.filters.journal_reputation_filter import (
- JournalReputationFilter,
- )
-
- filt, _, _ = _make_filter(threshold=2)
-
- with (
- loguru_caplog.at_level("DEBUG"),
- patch.object(
- JournalReputationFilter,
- "_JournalReputationFilter__analyze_journal_reputation",
- return_value=8,
- ),
- patch.object(
- JournalReputationFilter,
- "_JournalReputationFilter__save_llm_score_to_db",
- ) as mock_save,
- patch.object(
- filt._JournalReputationFilter__data_manager,
- "lookup_openalex",
- return_value=None,
- ),
- patch.object(
- filt._JournalReputationFilter__data_manager,
- "lookup_doaj",
- return_value=None,
- ),
- patch.object(
- filt._JournalReputationFilter__data_manager,
- "is_predatory",
- return_value=(False, None),
- ),
- patch.object(
- filt._JournalReputationFilter__data_manager,
- "score_from_affiliations",
- return_value=None,
- ),
- patch.object(
- filt._JournalReputationFilter__data_manager,
- "has_doaj_seal",
- return_value=True,
- ),
- self._enable_tier4(),
- ):
- filt.filter_results(
- [
- {
- "journal_ref": "Strong OA Journal",
- "issn": "2222-3333",
- "title": "Test",
- }
- ],
- "query",
- )
-
- save_call = mock_save.call_args
- assert save_call.kwargs["quality"] == 8
- assert "DOAJ Seal +1 bonus skipped" in loguru_caplog.text
- assert "8+1=9" in loguru_caplog.text
-
-
class TestTier36LlmNameCleanup:
"""Tier 3.6 — LLM name-cleanup salvage. When all bundled tiers miss
AND ``enable_llm_scoring`` is on, the filter asks the LLM to
@@ -728,11 +444,6 @@ class TestTier36LlmNameCleanup:
"score_from_affiliations",
return_value=None,
),
- patch.object(
- filt._JournalReputationFilter__data_manager,
- "has_doaj_seal",
- return_value=False,
- ),
self._enable_tier4(),
):
results = filt.filter_results(
@@ -798,11 +509,6 @@ class TestTier36LlmNameCleanup:
"score_from_affiliations",
return_value=None,
),
- patch.object(
- filt._JournalReputationFilter__data_manager,
- "has_doaj_seal",
- return_value=False,
- ),
self._enable_tier4(),
):
filt.filter_results(
diff --git a/tests/advanced_search_system/filters/test_journal_reputation_filter.py b/tests/advanced_search_system/filters/test_journal_reputation_filter.py
index 85081806fa..cf8fac15af 100644
--- a/tests/advanced_search_system/filters/test_journal_reputation_filter.py
+++ b/tests/advanced_search_system/filters/test_journal_reputation_filter.py
@@ -529,7 +529,6 @@ class TestCachedJournalQuality:
# derive_quality_score lives on the DM; return a fixed score
mock_dm.derive_quality_score.return_value = 10
mock_dm.score_from_affiliations.return_value = None
- mock_dm.has_doaj_seal.return_value = False
filter_obj._JournalReputationFilter__data_manager = mock_dm
results = filter_obj.filter_results(
@@ -618,7 +617,6 @@ class TestPredatoryNotReadmittedOnCrash:
mock_dm.lookup_openalex.return_value = None
mock_dm.lookup_doaj.return_value = None
mock_dm.score_from_affiliations.return_value = None
- mock_dm.has_doaj_seal.return_value = False
# expand_abbreviation must return None — otherwise Mock's default
# truthy return value becomes the "cleaned name" and downstream
# string comparisons silently break.
diff --git a/tests/integration/test_journal_quality_release_gate.py b/tests/integration/test_journal_quality_release_gate.py
index 3dc21167c8..f1629ecc20 100644
--- a/tests/integration/test_journal_quality_release_gate.py
+++ b/tests/integration/test_journal_quality_release_gate.py
@@ -231,7 +231,7 @@ def test_doaj_journals(downloaded_data_dir: Path):
sample = next(iter(data.values()))
# Field names consumed by the DOAJ pass in db.py::_populate_sources.
assert "name" in sample
- assert "has_seal" in sample
+ assert "publisher" in sample
def test_predatory_list(downloaded_data_dir: Path):
diff --git a/tests/journal_quality/test_db.py b/tests/journal_quality/test_db.py
index 2e596e0e61..d2ed9befc2 100644
--- a/tests/journal_quality/test_db.py
+++ b/tests/journal_quality/test_db.py
@@ -307,13 +307,10 @@ class TestBuildReferenceDb:
try:
# Minimal columns needed for a valid row — the NOT NULL flags
- # come from the model, not this test. is_in_doaj / has_doaj_seal
- # / is_predatory all default to False but the insert still has
+ # come from the model, not this test. is_in_doaj /
+ # is_predatory both default to False but the insert still has
# to satisfy NOT NULL.
- cols = (
- "name, name_lower, is_in_doaj, has_doaj_seal, "
- "is_predatory, score_source"
- )
+ cols = "name, name_lower, is_in_doaj, is_predatory, score_source"
with engine.begin() as conn:
# Happy path: known-valid value goes through.
@@ -321,7 +318,7 @@ class TestBuildReferenceDb:
text(
f"INSERT INTO sources ({cols}) "
"VALUES ('Test Journal', 'test journal', "
- "0, 0, 0, 'openalex')"
+ "0, 0, 'openalex')"
)
)
@@ -333,7 +330,7 @@ class TestBuildReferenceDb:
text(
f"INSERT INTO sources ({cols}) "
"VALUES ('Bad Journal', 'bad journal', "
- "0, 0, 0, 'garbage')"
+ "0, 0, 'garbage')"
)
)
finally:
@@ -444,7 +441,6 @@ class TestPopulateSources:
doaj = {
"9999-0001": {
"name": "Some Small OA Journal",
- "has_seal": False,
"publisher": "Small Press",
}
}
diff --git a/tests/journal_quality/test_db_accessors.py b/tests/journal_quality/test_db_accessors.py
index 727772eea5..08c0d440f9 100644
--- a/tests/journal_quality/test_db_accessors.py
+++ b/tests/journal_quality/test_db_accessors.py
@@ -65,7 +65,7 @@ def _openalex_id_for_ror(ref_db, ror_id):
# ---------------------------------------------------------------------------
-# lookup_doaj / is_in_doaj / has_doaj_seal
+# lookup_doaj / is_in_doaj
# ---------------------------------------------------------------------------
@@ -76,8 +76,7 @@ class TestLookupDoaj:
result = ref_db.lookup_doaj(issn=DOAJ_ISSN)
assert result is not None
assert "name" in result
- assert "has_seal" in result
- assert isinstance(result["has_seal"], bool)
+ assert "publisher" in result
def test_lookup_non_doaj_journal_returns_none(self, ref_db):
# Nature exists in the sources table but is not in DOAJ, so the
@@ -108,17 +107,6 @@ class TestIsInDoaj:
assert ref_db.is_in_doaj("0000-0000") is False
-class TestHasDoajSeal:
- def test_returns_bool(self, ref_db):
- # No stable seal=True example exists — the current bundled DOAJ
- # snapshot carries no sealed rows — so only the type is asserted.
- result = ref_db.has_doaj_seal(DOAJ_ISSN)
- assert isinstance(result, bool)
-
- def test_nonexistent_issn(self, ref_db):
- assert ref_db.has_doaj_seal("0000-0000") is False
-
-
# ---------------------------------------------------------------------------
# count_predatory_by_names
# ---------------------------------------------------------------------------
diff --git a/tests/journal_quality/test_scoring.py b/tests/journal_quality/test_scoring.py
index 80d61abd92..0d570f6147 100644
--- a/tests/journal_quality/test_scoring.py
+++ b/tests/journal_quality/test_scoring.py
@@ -28,12 +28,7 @@ class TestDeriveQualityScore:
# because the whitelist override at build time clears it.
# `derive_quality_score` itself only applies the auto-remove rule
# when NOT in DOAJ; otherwise it uses the normal scoring.
- assert (
- derive_quality_score(
- is_predatory=True, is_in_doaj=True, has_doaj_seal=False
- )
- == 5
- )
+ assert derive_quality_score(is_predatory=True, is_in_doaj=True) == 5
@pytest.mark.parametrize(
"h_index,expected",
@@ -50,23 +45,18 @@ class TestDeriveQualityScore:
def test_h_index_thresholds(self, h_index, expected):
assert derive_quality_score(h_index=h_index) == expected
- def test_doaj_seal_returns_eight(self):
- # The reviewer-driven bump from 7 → 8: DOAJ Seal is the top ~10%
- # of DOAJ journals (curated against best OA practices) and
- # deserves more than a +2 lift over plain DOAJ.
- assert derive_quality_score(is_in_doaj=True, has_doaj_seal=True) == 8
-
- def test_doaj_no_seal_returns_five(self):
- assert derive_quality_score(is_in_doaj=True, has_doaj_seal=False) == 5
+ def test_doaj_listed_returns_five(self):
+ # There used to be a DOAJ Seal tier (score 8) above this; DOAJ
+ # retired the Seal in April 2025 so listing is the only DOAJ
+ # signal now.
+ assert derive_quality_score(is_in_doaj=True) == 5
def test_h_index_takes_precedence_over_doaj(self):
# If we have an h-index, it wins over DOAJ — h-index is the
# canonical bibliometric and DOAJ is the OA fallback.
assert (
- derive_quality_score(
- h_index=80, is_in_doaj=True, has_doaj_seal=True
- )
- == 8 # h_index branch returns 8, not the seal branch
+ derive_quality_score(h_index=80, is_in_doaj=True)
+ == 8 # h_index branch returns 8 (> 75)
)
def test_conference_default(self):
@@ -107,8 +97,8 @@ class TestDeriveQualityScore:
# h-index=0 means "newly indexed, not meaningful" — should NOT
# trigger the h-index branch.
assert (
- derive_quality_score(h_index=0, is_in_doaj=True, has_doaj_seal=True)
- == 8 # falls through to DOAJ Seal scoring
+ derive_quality_score(h_index=0, is_in_doaj=True)
+ == 5 # falls through to DOAJ-listed scoring
)
@@ -206,14 +196,9 @@ class TestDeriveQualityScoreQuartile:
def test_quartile_takes_precedence_over_doaj(self):
# When both quartile and DOAJ are present, quartile wins (it's
# a stronger signal than just being in DOAJ).
- # Q4 (5) is the same value as DOAJ_QUALITY_NO_SEAL (5), so use
- # Q3 (6) which is distinct from the DOAJ no-seal score.
- assert (
- derive_quality_score(
- quartile="Q3", is_in_doaj=True, has_doaj_seal=False
- )
- == 6
- )
+ # Q4 (5) is the same value as DOAJ_QUALITY_LISTED (5), so use
+ # Q3 (6) which is distinct from the DOAJ-listed score.
+ assert derive_quality_score(quartile="Q3", is_in_doaj=True) == 6
def test_predatory_overrides_quartile(self):
# Even a Q1 journal gets dropped if predatory and not in DOAJ.