CompareRevisionsAddOn Plugin

Compares two revisions of a document. In contrast to normal rdiff, the comparison is done with the rendered HTML output.

This is an helper plugin for the CompareRevisionsAddOn on Foswiki

It has two purposes:
  1. It sets the CompareRevisionAddonPluginEnabled flag, which can be used by templates (e.g. used by the HistoryPlugin)
  2. It provides an easy way to replace links to the original rdiff script by links to the new compare script.

Syntax Rules

%RDIFF2COMPARE{"text"}% - Replaces links to the rdiff script with links to the compare script

Plugin Settings

(none)

Plugin Installation Instructions

This plugin is installed together with the CompareRevisionsAddOn, see the instructions there. It should be enabled (if necessary) with the configure script.

Test: CompareRevisionsAddOnPlugin is not installed and enabled.

Change History

08 Apr 2017 (1.115) Foswikitask:Item14366: Reorder initialization to allow local CGI::Carp.
01 May 2014 (1.112) Foswikitask:Item12407: Don't decode entities during comparson. Convert to simple decimal version.
10 Feb 2014 Foswikitask:Item12741: Formatting parameters not passed on the referenced scripts
23 Oct 2013 (1.1.11) Foswikitask:Item12423: fix double encoding in header on UTF-8 sites
28 Feb 2013 (1.1.10) Foswikitask:Item12408: use correct template names in docs
31 Jan 2013 (1.1.9) Foswikitask:Item12337: Remove undocumented dependency on CPAN:HTML::TreeBuilder >= 4.0
28 Nov 2012 (1.1.8) Foswikitask:Item11267: Convert to perl version strings,
Foswikitask:Item11755: Compare breaks characterset encoding.
Foswikitask:Item11930: Read settings from SitePreferences
06 Apr 2012 (1.1.7) Foswikitask:Item11445: References to Sandbos should use %SANDBOXWEB% macro. Release with Foswiki 1.1.5.
05 Dec 2011 (1.1.6) Release with Foswiki 1.1.4 - minor code and documentation cleanup.
28 May 2011 (1.1.6) Foswikitask:Item10803 - Fix invalid Foswiki configuration affecting ApacheLogin users introduced in 1.1.4
17 May 2011 (1.1.5) Foswikitask:Item10677 - Speed optimization by avoiding doing pointless lookup for settings in plugin topic
30 Apr 2011 (1.1.4) Foswikitask:Item10566 - Add compareauth script for ApacheLogin users
- Switch to x.y.z version numbering
- Moved dependency list from documentation into DEPENDENCIES manifest - Modernize system topic for BuildContrib
10 Apr 2011 Foswikitask:Item10401 - Call logEvent in compare
Foswikitask:Item10402 - Don't use obsolete template for missing web/topic.
Version shipping with 1.1.3
21 Oct 2010 Version shipping with 1.1.1
12 Sep 2009 Kenneth Lavrsen: Fixed problem with tables always showing up as changed even when they were not
09 Aug 2009 Plugin is now a default plugin shipped with Foswiki. It will later have its function integrated in core in a future Foswiki version so its life as default plugin is temporary. Changed its switchboard setting to EXPERT so it is hidden in configure. You should never need to change this anyway.
22 Mar 2009 Gilmar Santos Jr: ported to FSA architecture (Foswiki:Tasks/Item1352)
09 Jan 2009 Gilmar Santos Jr: fixed ambigous print (Foswiki:Tasks.Item716)
08 Dec 2008 Kenneth Lavrsen: Changed the author to myself. JChristophFuchs is the original author but announced in 2006 that he no longer maintains this plugin. So now I officially take the task as maintainer. Plugin is changed to Foswiki namespace and tested and works under Foswiki 1.0.0. Policy is now feel free to modify but please do not break compatibility.
07 Nov 2007 Updated for TWiki 4.2.0.
26 Feb 2006 Initial version
CPAN Dependencies: none
Other Dependencies: none
Perl Version: 5.008

Related Topics: DeveloperDocumentationCategory, AdminDocumentationCategory, DefaultPreferences, SitePreferences, Plugins

PackageForm edit

Author Foswiki:Main.KennethLavrsen
Version 1.116
Release 06 Aug 2023
Description Compares two revisions of a document. In contrast to normal rdiff, the comparison is done with the rendered HTML output.
Repository https://github.com/foswiki/CompareRevisionsAddonPlugin
Copyright 2006, JChristophFuchs; 2008-2014 Kenneth Lavrsen and Foswiki Contributors
License GPL (GNU General Public License)
Home http://foswiki.org/Extensions/CompareRevisionsAddOn
Support http://foswiki.org/Support/CompareRevisionsAddOn
Topic revision: r1 - 17 Jun 2022, ProjectContributor
This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding OGC Public Wiki? Send feedback