Add link to SPARQL query on works list page (T397554)

Changes Made:

  • Added a helper function generate_wqs_link(query) in the squeries module to generate a URL-encoded WQS link.
  • Updated the /works-list/<author_id> route to:
    • Build the SPARQL query string for the selected author.
    • Generate the WQS link and pass it to the template.
  • Updated the works-list.html template to display “View query on Wikidata Query Service” link above the author’s works list.

After Changes: Screenshot_2025-10-22_144954

Screenshot_2025-10-22_145018

Merge request reports

Loading