Task title: Write a citation input filter

Task description: Write an input filter that collects used references in the submitted textfield, and appends it to the text. The annotation of the references could be on the pattern of [ref:http://drupal.org]. Its often useful for a longer article not to have inline links, but to have a followable display of references used in the article, much like LaTeX/BibTeX does it, or Wikipedia.

The filter would replace the [ref:...] tags with numbers (links to the references listed on the bottom), and it would append the list of used references, repeating the replacement number and the link (possibly not just the link, but the <title> of the reference as a link to the page.

Example input:

This GHOP task is sponsored by Google [ref:http://www.google.com], and if you take it you can participate in the work of the incredibly cool Drupal [ref:http://drupal.org] community!

Example output:

This GHOP task is sponsored by Google [1], and if you take it you can participate in the work of the incredibly cool Drupal [2] community!

[1] - Google
[2] - drupal.org | Community plumbing

Primary contact: snufkin

CommentFileSizeAuthor
#3 citation_filter.zip 1.62 KBcwgordon7

Comments

webchick’s picture

Comment #1

webchick
she/they
Primary language English
Location Vancouver 🇨🇦
commented

subscribing

snufkin’s picture

Comment #2

snufkin commented

Extension: create the filter as a module, and attach it to this issue queue, and write it for Drupal 6.

cwgordon7’s picture

Comment #3

cwgordon7 commented
Assigned: Unassigned » cwgordon7
Status: Active » Needs review
StatusFileSize
new citation_filter.zip 1.62 KB

Here is the module, written for Drupal 6. Setting to patch (code needs review) for lack of a better option.

-cwgordon7

snufkin’s picture

Comment #4

snufkin commented

Looks great! Just as i imagined it. +1 from me. Good job!

snufkin’s picture

Comment #5

snufkin commented
Status: Needs review » Fixed

and a +1 from dmitrig01 on IRC, hence I mark it completed.

cwgordon7’s picture

Comment #6

cwgordon7 commented
Status: Fixed » Needs review
cwgordon7’s picture

Comment #7

cwgordon7 commented
Status: Needs review » Fixed

Whoops didn't mean to set back to code needs review.

Anonymous’s picture

Comment #8

(not verified) commented
Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.