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
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | citation_filter.zip | 1.62 KB | cwgordon7 |
Comments
Comment #2
snufkin commentedExtension: create the filter as a module, and attach it to this issue queue, and write it for Drupal 6.
Comment #3
cwgordon7 commented| Status | File | Size |
|---|---|---|
| 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
Comment #4
snufkin commentedLooks great! Just as i imagined it. +1 from me. Good job!
Comment #5
snufkin commentedand a +1 from dmitrig01 on IRC, hence I mark it completed.
Comment #6
cwgordon7 commentedProject created at http://drupal.org/project/citation_filter.
Comment #7
cwgordon7 commentedWhoops didn't mean to set back to code needs review.
Comment #8
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #1
webchicksubscribing