Changeset 6188


Ignore:
Timestamp:
01/29/10 15:49:13 (2 years ago)
Author:
AndrewJones
Message:

Item8440: Expand Macros in References

Location:
trunk/BibliographyPlugin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BibliographyPlugin/data/System/BibliographyPlugin.txt

    r3146 r6188  
    2020 
    2121| *Key* | *Description* | 
    22 | big | Jass, Hugh. _A big paper_. The journal of big papers, 7991, volume MCMXCVII. | 
     22| big | Jass, Hugh. _A big paper_. The journal of big papers, 7991, volume MCMXCVII. %ICON{note}% | 
    2323| small | Freely, I.P. _A small paper_. The journal of small papers, 1997. (to appear). | 
    2424 
     
    9999%$INSTALL_INSTRUCTIONS% 
    100100 
    101 ---++ Plugin Files 
    102  
    103    | *File:* | *Description:* | 
    104 %$MANIFEST% 
    105  
    106101---++ Plugin Info 
    107102 
    108103|  Plugin Author(s): | Foswiki:Main.AndrewJones | 
    109 |  Previous Author(s): | TWiki:Main.AntonioTerceiro | 
    110 |  Copyright: | © 2009, Andrew Jones, © 2004, Antonio Terceiro | 
     104|  Previous Author(s): | Foswiki:Main.AntonioTerceiro | 
     105|  Copyright: | © 2009 - 2010, Andrew Jones, © 2004, Antonio Terceiro | 
    111106|  License: | [[http://www.gnu.org/licenses/gpl.html][GPL (Gnu General Public License)]] | 
    112107|  Plugin Release: | %$RELEASE% | 
    113108|  Plugin Version: | %$VERSION% | 
    114109|  Change History: | <!-- versions below in reverse order -->&nbsp; | 
    115 |  17 Mar 2009 | 1.0: Foswikitask:Item1251 - Initial release for Foswiki - Foswiki:Main.AndrewJones | 
     110|  29 Jan 2010 | 1.1: Foswikitask:Item8440 - Expand Macros in References -- Foswiki:Main.AndrewJones | 
     111|  17 Mar 2009 | 1.0: Foswikitask:Item1251 - Initial release for Foswiki -- Foswiki:Main.AndrewJones | 
    116112|  28 Aug 2005: | Adhering to official handlers in TWiki:Codev/DakarRelease. Added <code>%<nop/>CITEINLINE{...}%</code>. | 
    117113|  23 Aug 2004: | Added multiple references sources support | 
  • trunk/BibliographyPlugin/lib/Foswiki/Plugins/BibliographyPlugin.pm

    r3146 r6188  
    11# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/ 
    22# 
    3 # Copyright (C) 2009 Andrew Jones, andrewjones86@gmail.com 
     3# Copyright (C) 2009 - 2010 Andrew Jones, http://andrew-jones.com 
    44# Copyright (C) 2004 Antonio Terceiro, asaterceiro@inf.ufrgs.br 
    55# 
     
    1919 
    2020# ========================= 
    21 use vars qw( $web $topic $VERSION $RELEASE $SHORTDESCRIPTION $debug $pluginName $NO_PREFS_IN_TOPIC ); 
     21use vars qw( $web $topic ); 
    2222 
    2323our $VERSION = '$Rev$'; 
    24 our $RELEASE = '1.0'; 
     24our $RELEASE = '1.1'; 
    2525our $SHORTDESCRIPTION = 'Cite bibliography in one topic and get a references list automatically created.'; 
    2626our $NO_PREFS_IN_TOPIC = 1; 
     
    141141} 
    142142 
    143 # was startRenderingHandler before. changed to preRenderingHandler as indicated 
    144 # in Foswiki:Extensions/DeprecatedHandlers. 
    145 sub preRenderingHandler 
     143# Changed from preRenderingHandler to allow for Macro expansion in references 
     144# See http://foswiki.org/Tasks/Item8440 
     145sub beforeCommonTagsHandler 
    146146{ 
    147147### my ( $text, $web ) = @_;   # do not uncomment, use $_[0], $_[1] instead 
    148148 
    149149    Foswiki::Func::writeDebug( "- ${pluginName}::startRenderingHandler( $_[1] )" ) if $Foswiki::cfg{Plugins}{$pluginName}{Debug}; 
    150  
    151     # This handler is called by getRenderedVersion just before the line loop 
    152150 
    153151    # do custom extension rule, like for example: 
Note: See TracChangeset for help on using the changeset viewer.