The new version of Semantic Result Formats, 1.4.1, has been released. This
version contains four additional formats, all math functions: 'sum',
'average', 'min' and 'max'. Now we can do some math! The code for 'sum' was
created by Nathan Yergler, which I was then able to modify very slightly to
add handling for the other formats.
The other change is that initialization of formats has changed; so, if you
upgrade to this version, it will probably lead to an error message on your
wiki (sorry :) ). Before, the call in LocalSettings.php was:
But that function has been removed, and in its place is a new global
variable, $srfgFormats, that holds the formats to be initialized. It's an
array that defaults to the values 'calendar', 'timeline', 'eventline',
'sum', 'average', 'min' and 'max' (i.e., everything but 'graph', 'googlebar'
and 'googlepie', which all have special issues). So you can use those
formats without calling anything additionally in LocalSettings.php. If you
want to add more formats, you can add calls like the following to
$srfgFormats = 'googlebar';