Skip to content

fix(ui): show CERN Archives label in Indexed in - #1009

Merged
zzacharo merged 1 commit into
CERNDocumentServer:masterfrom
TahaKhan998:fix/issue-996-cern-archives-label
Oct 9, 2026
Merged

zzacharo merged 1 commit into
CERNDocumentServer:masterfrom
TahaKhan998:fix/issue-996-cern-archives-label

Conversation

@TahaKhan998

Copy link
Copy Markdown

closes #996
renamed the ARCHIVE label to CERN Archives and added it under Indexed in on the record page (same as inspire). also using the production CERN Archives community logo.

some of the changes are for the spacing — screenshots show the before and after for that.

before:
image

after:
image

@kpsherva

kpsherva commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

@jbenito3 tagging you in case you would like to comment

Comment thread site/cds_rdm/views.py Outdated
@TahaKhan998
TahaKhan998 force-pushed the fix/issue-996-cern-archives-label branch from 43c4522 to f2fbbdf Compare October 9, 2026 07:47
Comment thread site/cds_rdm/views.py Outdated
for rel_value in archive_rel_ids:
ret.append(
dump_external_resource(
f"https://archives.cern.ch/index.php/{rel_value.lower()}",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we make this configurable please? So, we can easily change if needed? e.g CDS_RDM_CERN_ARCHIVES_URL_{PREFIX or BASE}

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@TahaKhan998
TahaKhan998 force-pushed the fix/issue-996-cern-archives-label branch 3 times, most recently from 3f32677 to 8a4ab7f Compare October 9, 2026 12:18
Comment thread invenio.cfg Outdated
CDS_HARVESTER_PROD_API_URL = "https://repository.cern"
"""Prod base URL used to resolve a CDSRDM id into parent.id and version id."""

CDS_CERN_ARCHIVES_BASE_URL = "https://archives.cern.ch"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why you have this also here? Also, shouldnt this be like that?

Suggested change
CDS_CERN_ARCHIVES_BASE_URL = "https://archives.cern.ch"
CDS_CERN_ARCHIVES_BASE_URL = "https://archives.cern.ch/index.php/"

Comment thread site/cds_rdm/views.py Outdated
for rel_id in record.data["metadata"].get("related_identifiers", [])
if rel_id["scheme"] == "archive"
]
archives_base = current_app.config["CDS_CERN_ARCHIVES_BASE_URL"].rstrip("/")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you dont need this I think

Comment thread site/cds_rdm/views.py Outdated
for rel_value in archive_rel_ids:
ret.append(
dump_external_resource(
f"{archives_base}/index.php/{rel_value.lower()}",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see my comment above

Suggested change
f"{archives_base}/index.php/{rel_value.lower()}",
f"{archives_base}/{rel_value.lower()}",

@TahaKhan998
TahaKhan998 force-pushed the fix/issue-996-cern-archives-label branch from 8a4ab7f to d8de97e Compare October 9, 2026 12:36
@TahaKhan998
TahaKhan998 force-pushed the fix/issue-996-cern-archives-label branch from d8de97e to ccf29fb Compare October 9, 2026 12:37
@zzacharo
zzacharo merged commit 01fca5c into CERNDocumentServer:master Oct 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rename schema ARCHIVE schema identifier to CERN Archives

4 participants