Skip to content

Conversation

@egonw
Copy link
Collaborator

@egonw egonw commented Aug 23, 2025

Implements item 2 of #2709

Description

Before this patch, the 'retracted articles' panel in the Author aspect linked to the root Scholia folder, for many items in the list, forwarding via the default aspect typing to the /work/ aspect. This patch will update that table to always link to the /retraction/ aspect.

The idea here is that when people link from this table of retracted articles, they are more likely to want to know about why it was retracted. The regular work list (also on the /author/ aspect) continues to link to the regular /work/ aspect. Moreover, from the /retraction/ aspect, users can also go to the /work/ aspect.

Caveats

Same as #2710:

It assumes that that section always exist. The /author/ aspect only shows that section when retractions are
discovered, but both aspects should use the same logic. That said, there are several models (and both aspect
support several aspects) and noting that one is predominant, this is not expected to give a lot of problems. If it
does, it basically is a curation event in Wikidata. BTW, if the section does not exist, it will just default to the
author page, so there is no impact on the user experience.

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
    • I have made corresponding changes to the documentation
  • This change requires new dependencies (please list)

Testing

Checklist

  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have not used code from external sources without attribution
  • I have considered accessibility in my implementation
  • There are no remaining debug statements (print, console.log, ...)

@egonw egonw added the max-5-lines Tag for pull requests to indicate the changes are at most 5 lines changed label Aug 23, 2025
@fnielsen fnielsen requested a review from Copilot August 27, 2025 16:04
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Updates the "retracted articles" panel in the Author aspect to link to the /retraction/ aspect instead of the default /work/ aspect, providing users with more relevant context about why articles were retracted.

  • Modified SPARQL query to generate URLs pointing to the retraction aspect
  • Added workUrl field to construct retraction-specific URLs
  • Updated GROUP BY clause to include the new URL field

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@fnielsen fnielsen merged commit a1eca79 into main Aug 27, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

max-5-lines Tag for pull requests to indicate the changes are at most 5 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants