Tags:
create new tag
view all tags

Question

We use special software to semantically index electronic documents, including our division's internal wiki. However, this software believes that every wiki topic has changed each time it runs an update (weekly) even the ones that haven't been touched. I'm guessing that this has something to do with the RCS but I'm not positive. Is the RCS modifying the topics in some way such as changing the date in the meta data? Is there some way to prevent this? Thanks in advance.

Environment

TWiki version: TWikiRelease04x00x05 (I'm not actually positive which version it is, but this is the build we have: Fri, 31 Mar 2006 build 9626, Plugin API version 1.1)
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Sun Solaris
Web server: Apache
Perl version: ?
Client OS: Windows XP
Web Browser: IE 6.x
Categories: Version control

-- AmandaSmith - 03 Nov 2006

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

You probably need to tell your indexer the modification date of the topic. One way is probably a date meta data put into the html header, such as:

<meta name="date" content="2006-11-03T17:24:14+00:00">

You can get the modification timestamp with %REVINFO{"$time"}% (which is 2006-11-03 22:07:20 for this topic). You can use a SpreadSheetPlugin formula to convert that into ISO 8601 format:

%CALC{$FORMATGMTIME($TIME(%REVINFO{"$date $time"}%), $year-$mo-$dayT$hou:$min:$secZ)}%

returns 2006-11-04T06:07:20Z for this topic.

You can put this CALC into a meta data tag, and add that to a skin template file. Or, you can misuse the HTTP_EQUIV_ON_VIEW in TWikiPreferences to set the mata data globally on all topics:

   * Set HTTP_EQUIV_ON_VIEW = <meta name="date" content="%CALC{$FORMATGMTIME($TIME(%REVINFO{"$date $time"}%), $year-$mo-$dayT$hou:$min:$secZ)}%" />

Best to set that in Main.TWikiPreferences for easier upgrade. (Set it to the current value of TWiki.TWikiPreferences' HTTP_EQUIV_ON_VIEW, followed by the meta data tag.)

-- PeterThoeny - 03 Nov 2006

Change status to:
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2006-11-03 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.