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
--
AmandaSmith - 03 Nov 2006
Answer
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