You are here: Foswiki>Tasks Web>Item8440 (29 Jan 2010, PaulHarvey)Edit Attach

Item8440: Expand Macros in References

pencil
Priority: Normal
Current State: Closed
Released In:
Target Release: n/a
Applies To: Extension
Component: BibliographyPlugin
Branches:
Reported By: AndreLichtsteiner
Waiting For: Main.AndrewJones
Last Change By: PaulHarvey
Macros in References get not expanded. This would be nice for example to show an Icon or so:

| *Key* | *Description* |
| ref1 | R. Eference, bla ha ha, 2010 [[http://somewhere/document.pdf][%ICON{"pdf"}%]] |

The following change in BibliographyPlugin.pm seems to solve the problem.

@@ -144,3 +144,3 @@
 # in Foswiki:Extensions/DeprecatedHandlers.
-sub preRenderingHandler
+sub beforeCommonTagsHandler
 {

But honestly, I don't now about collateral impact or potential danger of this change.

-- AndreLichtsteiner - 29 Jan 2010

I'm also not sure about what impact this change might have for existing users of the plugin. Have you done much testing with existing bibliographies?

I will see if I can test this and if it doesn't break existing users then I am happy to make the change.

-- AndrewJones - 29 Jan 2010

I did some testing and this looks like a good change, so have updated the plugin and uploaded a new version.

-- AndrewJones - 29 Jan 2010

Cool smile

-- PaulHarvey - 29 Jan 2010
 
Topic revision: r5 - 29 Jan 2010, PaulHarvey - This page was cached on 14 May 2020 - 09:59.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy