BibCite integration

Created on 27 March 2025, 11 days ago

Work in progress

Please note that for right now, I am primarily creating this in order to be able to create a sandbox for my work up to this point on this integration but it is very much a work in progress, although I am open of course to any commentary on this work as I go. When I have something worthy of it, I'll update this to needs review and remove this disclaimer.

Problem/Motivation

We have a need to support BibCite in footnotes. The intent here is to add an autocomplete field to the CKEditor dialog to allow the insertion of existing bibcite references, as well as the ability to parse and display them.

Proposed resolution

I am working on a patch to implement this functionality.

Remaining tasks

Get this thing to a working state and obtain community feedback.

User interface changes

Adds an extra autocomplete field to the CKEditor dialog to allow the selections of existing BibCite references.

API changes

Additional data-citation attribute added to the footnote tag and relevant code to handle that including query strings related to the dialog and preview.

Data model changes

Additional data-citation attribute added to the footnote tag.

✨ Feature request
Status

Needs work

Version

4.0

Component

Footnotes

Created by

πŸ‡ΊπŸ‡ΈUnited States seanr

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @seanr
  • Merge request !73Resolve #3515650 "Bibcite integration" β†’ (Open) created by seanr
  • Pipeline finished with Failed
    3 days ago
    Total: 267s
    #465478
  • πŸ‡ΊπŸ‡ΈUnited States seanr

    OK, got this thing working locally. Might need a little help with that failure but looking into it right now:

    1) Drupal\Tests\footnotes\FunctionalJavascript\FootnotesCkeditorPluginTest::testBasicFootnoteCreation
    Behat\Mink\Exception\ElementNotFoundException: Element matching css ".ck .footnotes-preview" not found.
    /builds/issue/footnotes-3515650/vendor/behat/mink/src/WebAssert.php:465
    /builds/issue/footnotes-3515650/vendor/behat/mink/src/WebAssert.php:509
    /builds/issue/footnotes-3515650/tests/src/FunctionalJavascript/FootnotesCkeditorPluginTest.php:97
    

    Also, I'd need to add my own tests to it, but honestly not even sure how to do that in this context where the module to integrate with may not exist, needs its own setup, etc.

  • Pipeline finished with Success
    3 days ago
    #465730
  • Pipeline finished with Success
    3 days ago
    Total: 234s
    #465753
  • Pipeline finished with Failed
    3 days ago
    Total: 403s
    #465835
Production build 0.71.5 2024