r44345 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r44344‎ | r44345 | r44346 >
Date:15:48, 9 December 2008
Author:yaron
Status:deferred
Tags:
Comment:
New installation notes
Modified paths:
  • /trunk/extensions/SemanticResultFormats/INSTALL (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticResultFormats/INSTALL
@@ -2,6 +2,7 @@
33
44 Installation instructions are available online in a more convenient form for
55 reading at:
 6+
67 http://semantic-mediawiki.org/wiki/Semantic_Result_Formats
78
89 Copy all files into MediaWiki's extensions folder, either by using SVN or by
@@ -9,38 +10,35 @@
1011 settings (after the inclusion of Semantic MediaWiki). The first one is to
1112 include the code:
1213
13 - require_once( 'path/to/extension/SRF_Settings.php' );
 14+ require_once("$IP/extensions/SemanticResultFormats/SRF_Settings.php");
1415
15 -If nothing else is added, no format will be included. In order to include a
16 -format, add the following line to your local settings after the line above:
17 - srfInit( array('formatname', 'formatname', ...) );
 16+If nothing else is added, the following formats will be enabled: 'calendar',
 17+'timeline', 'eventline', 'sum', 'average', 'min' and 'max'. To add more
 18+formats to this list, you can add lines like:
1819
19 -with formatname being one of the following values (you can use as many
20 -formatnames as you like):
 20+ $srfgFormats[] = 'googlebar';
2121
22 - calendar, eventline, googlebar, googlepie, graph, timeline
 22+...or you can override the set of formats entirely, with a call like:
2323
24 -So for example to enable graph, timeline and calendar you would write:
 24+ $srfgFormats = array('calendar', 'timeline');
2525
26 - srfInit( array('graph', 'timeline', 'calendar') );
 26+with formatname being one of the following values (you can use as many
 27+formatnames as you like):
2728
28 -You can also just use the following command to include all available formats:
 29+ average, calendar, eventline, googlebar, googlepie, graph, max, min,
 30+ sum, timeline
2931
30 - srfInit('all');
 32+There are some formats that you may not want to include because they may
 33+not follow certain policies within your wiki; the formats 'googlebar' and
 34+'googlepie', for instance, send data to external web services for rendering,
 35+which may be considered a data leak.
3136
32 -but this is not recommended since it may expand your system with formats that
33 -do not follow certain policies within the wiki without you making that explicit
34 -decision (consider that result formats may send data to external web services
35 -for rendering which may be considered a data leak. For example, googlebar and
36 -googlepie do this).
37 -
3837 Notes on specific formats:
39 -* Eventline: Eventline requires Javascript to render.
40 -* Googlebar: note that Googlebar is sending data to Google for rendering.
 38+* eventline: requires Javascript to render.
 39+* googlebar: note that Googlebar sends data to Google for rendering.
4140 Googlebar requires access to the Google servers in order to render.
42 -* Googlepie: note that Googlepie is sending data to Google for rendering.
 41+* googlepie: note that Googlepie is sends data to Google for rendering.
4342 Googlepie requires access to the Google servers in order to render.
44 -* Graph: in order to get the graph format to run you first have to have
45 - the graph extension up and running. The graph format is based on the
46 - MediaWiki Graph extension.
47 -* Timeline: Eventline requires Javascript to render.
 43+* graph: in order to get the graph format to run, you first must have
 44+ the MediaWiki Graph extension running.
 45+* timeline: requires Javascript to render.

Status & tagging log