Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
02c08ce
make DataTables:getCellContent() a public function again (#919)
simontaurus Mar 8, 2025
14197d0
Localisation updates from https://translatewiki.net.
translatewiki Mar 10, 2025
44f03e6
Localisation updates from https://translatewiki.net.
translatewiki Mar 17, 2025
02c2059
deps (nicmart/tree): 0.2.7 → 0.4.0
gesinn-it-gea Mar 18, 2025
5167efb
Localisation updates from https://translatewiki.net.
translatewiki Mar 24, 2025
f13705e
Update RELEASE-NOTES.md
JeroenDeDauw Mar 28, 2025
6f57590
Prepare 5.0.0 release notes (#928)
JeroenDeDauw Mar 28, 2025
e474802
Raise PHP version requirement (#927)
JeroenDeDauw Mar 28, 2025
e09a547
build: Use localBasePath to make DRY paths in QUnitTestModule (#926)
Krinkle Mar 28, 2025
c78d064
Remove unused addGlobalJSVariables() (#925)
Krinkle Mar 28, 2025
d83aa9a
Fix unnecessary div in incoming format (#870)
D-Groenewegen Mar 28, 2025
e0297b9
Update RELEASE-NOTES.md
JeroenDeDauw Mar 28, 2025
9eb6846
add #904
thomas-topway-it Mar 29, 2025
48c9a17
Update filter map (#901)
krabina Mar 29, 2025
7026407
Update SRF_Calendar.php (#929)
krabina Mar 29, 2025
83edb69
update calendar format - update leaflet map build (#930)
thomas-topway-it Mar 31, 2025
4782e36
filtered format enhancements
thomas-topway-it Mar 31, 2025
4111e65
Datatables fix template on ajax navigation (#931)
thomas-topway-it Mar 31, 2025
b0f5304
add merged pull request 931
thomas-topway-it Mar 31, 2025
b3e10e4
Update RELEASE-NOTES.md
JeroenDeDauw Mar 31, 2025
92e24f3
Issue 932 - improve docs about JSONScript (#933)
gesinn-it-ilm Apr 1, 2025
095035e
Update DataTables release notes for 5.0.0 release (#934)
alistair3149 Apr 2, 2025
13f7d73
Drop unused Codex polyfill
alistair3149 Apr 4, 2025
453911a
Bump DataTables to 2.2.2
alistair3149 Apr 4, 2025
9100779
5.0.0 release (#936)
JeroenDeDauw Apr 7, 2025
35f10a1
Improve release notes
JeroenDeDauw Apr 7, 2025
36bed50
Update compat
JeroenDeDauw Apr 7, 2025
a71733a
Localisation updates from https://translatewiki.net.
translatewiki Apr 21, 2025
df64395
Localisation updates from https://translatewiki.net.
translatewiki May 15, 2025
24aebd0
Localisation updates from https://translatewiki.net.
translatewiki May 19, 2025
86abc4e
Update SRF version number to 5.0 in INSTALL.md (#943)
jaideraf Jun 9, 2025
192c3eb
Localisation updates from https://translatewiki.net.
translatewiki Jun 12, 2025
e24237b
Fix template expansion to allow spaces in template names
HamishSlater Jun 16, 2025
726b947
Localisation updates from https://translatewiki.net.
translatewiki Jun 30, 2025
ce639de
Update SRF Gantt tests and add Mermaid version to CI config (#947)
gesinn-it-ilm Jul 8, 2025
3dcca56
Localisation updates from https://translatewiki.net.
translatewiki Jul 10, 2025
1c8cab2
Localisation updates from https://translatewiki.net.
translatewiki Jul 14, 2025
ee8c397
Migrate SRF d3chart to modern d3.min.js with ES module support (#950)
gesinn-it-ilm Jul 17, 2025
2b3dbd9
docs (RELEASE-NOTES): add notes for next release
gesinn-it-ilm Jul 17, 2025
d3ed63d
docs (RELEASE-NOTES): update next release [skip ci]
gesinn-it-ilm Jul 17, 2025
12d38e0
Bump d3 to 6.7.0 (#951)
gesinn-it-ilm Jul 17, 2025
50ad1cb
Localisation updates from https://translatewiki.net.
translatewiki Jul 17, 2025
03df6e7
docs (README): update path for d3 docs [skip ci]
gesinn-it-ilm Jul 17, 2025
7eec9b9
Add filtered sep (#952)
thomas-topway-it Jul 20, 2025
35e2fd7
Localisation updates from https://translatewiki.net.
translatewiki Jul 21, 2025
7689c00
Localisation updates from https://translatewiki.net.
translatewiki Jul 24, 2025
ca97c79
fix getName() for 2 result printers (#956)
emwiemaikel Jul 25, 2025
364a900
Use SMW version 5.1.0 for MW 1.39-1.42 in CI (#957)
paladox Jul 28, 2025
6dc5022
Localisation updates from https://translatewiki.net.
translatewiki Jul 31, 2025
13ab0c6
Localisation updates from https://translatewiki.net.
translatewiki Aug 4, 2025
850d92b
Issue 954 - add graphfieldspages param to optionally include Page-typ…
gesinn-it-ilm Aug 4, 2025
a951cd4
docs (RELEASE-NOTES): improvements to graph format
gesinn-it-gea Aug 4, 2025
0262821
chore (ci): set SMW to 5.1.0 for MW 1.43
gesinn-it-gea Aug 4, 2025
eda9623
Localisation updates from https://translatewiki.net.
translatewiki Aug 18, 2025
260907c
Use dev-master for MW 1.43 SMW ci (#960)
paladox Aug 21, 2025
8a65ffb
Localisation updates from https://translatewiki.net.
translatewiki Aug 21, 2025
ca6b858
Localisation updates from https://translatewiki.net.
translatewiki Aug 25, 2025
fe5f7e8
Stop using removed WikiPage::factory (#963)
JeroenDeDauw Sep 3, 2025
e4b6e4c
Update extension.json
JeroenDeDauw Sep 3, 2025
d7e46a1
Update RELEASE-NOTES.md for 5.1.0
JeroenDeDauw Sep 3, 2025
55dbe08
Update RELEASE-NOTES.md
JeroenDeDauw Sep 3, 2025
ca6f834
5.1.0 release
JeroenDeDauw Sep 3, 2025
fd6dfd8
Update README.md
JeroenDeDauw Sep 3, 2025
daaba54
Localisation updates from https://translatewiki.net.
translatewiki Sep 15, 2025
e7773b3
Use structured queries for datatables (#961)
thomas-topway-it Sep 24, 2025
a5230a2
Fix various PHPCS errors
alistair3149 Sep 24, 2025
635c6eb
Datatables searchpanes structured queries (#969)
thomas-topway-it Sep 29, 2025
606caf9
Datatables searchpanes structured queries (#970)
thomas-topway-it Sep 30, 2025
093da09
Datatables searchpanes structured queries (#971)
thomas-topway-it Sep 30, 2025
cd9cc9d
Datatables searchpanes structured queries (#972)
thomas-topway-it Sep 30, 2025
2e8709f
Datatables searchpanes structured queries (#973)
thomas-topway-it Sep 30, 2025
e3c36e4
fix phpcs
thomas-topway-it Sep 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,42 +18,47 @@ jobs:
matrix:
include:
- mediawiki_version: '1.39'
smw_version: dev-master
smw_version: 5.1.0
php_version: 8.1
mm_version: 6.0.1
database_type: mysql
database_image: "mariadb:10"
database_image: "mariadb:11.2"
coverage: false
experimental: false
- mediawiki_version: '1.40'
smw_version: dev-master
smw_version: 5.1.0
php_version: 8.1
mm_version: 6.0.1
database_type: mysql
database_image: "mariadb:11.2"
coverage: true
experimental: false
- mediawiki_version: '1.41'
smw_version: dev-master
smw_version: 5.1.0
pf_version: 5.9
sfs_version: dev-master
php_version: 8.1
mm_version: 6.0.1
database_type: mysql
database_image: "mariadb:11.2"
coverage: false
experimental: false
- mediawiki_version: '1.42'
smw_version: dev-master
smw_version: 5.1.0
pf_version: 5.9
sfs_version: dev-master
php_version: 8.1
mm_version: 6.0.1
database_type: mysql
database_image: "mariadb:11.2"
coverage: false
experimental: false
- mediawiki_version: '1.43'
- mediawiki_version: '1.43.1'
smw_version: dev-master
pf_version: 5.9
sfs_version: dev-master
php_version: 8.1
mm_version: 6.0.1
database_type: mysql
database_image: "mariadb:11.2"
coverage: false
Expand All @@ -67,6 +72,7 @@ jobs:
PHP_VERSION: ${{ matrix.php_version }}
DB_TYPE: ${{ matrix.database_type }}
DB_IMAGE: ${{ matrix.database_image }}
MM_VERSION: ${{ matrix.mm_version }}


steps:
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ EXTENSION=SemanticResultFormats
MW_VERSION?=1.39
PHP_VERSION?=8.1
DB_TYPE?=mysql
DB_IMAGE?="mariadb:10"
DB_IMAGE?="mariadb:11.2"

# extensions
SMW_VERSION?=dev-master
SMW_VERSION ?= 5.0.2
PF_VERSION ?= 5.5.1
SFS_VERSION ?= 4.0.0-beta
MM_VERSION ?= 3.1.0
MM_VERSION ?= 6.0.1

# composer
# Enables "composer update" inside of extension
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ Semantic Result Formats (SRF) is a MediaWiki extension that provides extra visua

## Requirements

- PHP 7.3.19 or later
- MediaWiki 1.35 or later
- Semantic MediaWiki 3.0 or later
PHP, MediaWiki, and Semantic MediaWiki. For specific supported versions, see the [compatibility overview](docs/COMPATIBILITY.md).

## Installation

Expand Down Expand Up @@ -48,6 +46,9 @@ A list of people who have made contributions in the past can be found [here][con
This extension provides unit and integration tests and is usually run by a [continues integration platform][GitHub Actions]
but can also be executed locally using the shortcut command `composer phpunit` from the extension base directory.

## For developers

See the documention on how to [update d3chart JS library](https://github.com/SemanticMediaWiki/SemanticResultFormats/blob/master/formats/d3/README.md).

## License

Expand Down
63 changes: 49 additions & 14 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,72 @@
These are the release notes for the [Semantic Result Formats](https://www.semantic-mediawiki.org/wiki/Extension:Semantic_Result_Formats) (a.k.a SRF) MediaWiki extension.

## SRF 5.1.0

Released on September 3, 2025.

### Improvements to

* Fixed compatibility issue with MediaWiki 1.43 in the `filtered` format
* Added `sep` parameter to the `filtered` format to allow specifying the separator ([952](https://github.com/SemanticMediaWiki/SemanticResultFormats/pull/952))
* Improved the `d3chart` format
* Refactored d3chart codebase to support newer D3 versions
* Bumped d3 from v3.0.4 to v6.7.0 ([951](https://github.com/SemanticMediaWiki/SemanticResultFormats/pull/951))
* Introduced package.json and modern build tooling to manage D3 as an npm dependency
* Updated D3 import and initialization to align with ES module standards
* Replaced legacy d3.v3.js with modern d3.min.js for better modularity and smaller bundle size
* Revised documentation to reflect new D3 usage and build process
* Improved the `graph` format by adding `graphfieldspages` param to optionally include Page-type values as node fields ([958](https://github.com/SemanticMediaWiki/SemanticResultFormats/pull/958))
* Fixed support for template names with spaces in the `datatables` format

## SRF 5.0.0

Released on TDB
Released on April 7, 2025.

Highlights:
* Support for MediaWiki 1.43 and Semantic MediaWiki 5
* Significant enhancements to the DataTables format

Compatibility changes
### Compatibility Changes

* Added compatibility with Semantic MediaWiki 5.x
* Changed minimum PHP version from 7.3 to 8.0
* Improved PHP support up to version 8.4
* Changed minimum MediaWiki version from 1.35 to 1.39
* Improved MediaWiki support up to 1.43
* Added support for PHP up to version 8.4
* Added support for MediaWiki support up to version 1.43
* Dropped support for MediaWiki older than 1.39
* Dropped support for PHP older than 8.1

Breaking changes
### Breaking Changes

*
* Removed the Exhibit format

New features and enhancements
### New Features and Enhancements

* [864](https://github.com/SemanticMediaWiki/SemanticResultFormats/pull/864) Updated DataTables from 1.13.2 to 2.1.8 (by @alistair3149)
* Overhauled DataTables format
* Improved UI integration with MediaWiki by using [Codex](https://doc.wikimedia.org/codex/main/) [871](https://github.com/SemanticMediaWiki/SemanticResultFormats/pull/871), [879](https://github.com/SemanticMediaWiki/SemanticResultFormats/pull/879) (by @alistair3149)
* Added "show all" to DataTable length [868](https://github.com/SemanticMediaWiki/SemanticResultFormats/pull/868) (by @alistair3149)
* Fixed various sorting and filter issues [865](https://github.com/SemanticMediaWiki/SemanticResultFormats/pull/865) (by @alistair3149)
* Fixed template Ajax navigation and improved expansion [931](https://github.com/SemanticMediaWiki/SemanticResultFormats/pull/931) (by @thomas-topway-it for ([KM-A](https://km-a.net))
* Fixed missing [ParentProperties](https://www.semantic-mediawiki.org/wiki/Help:Subobjects_and_queries) values [833](https://github.com/SemanticMediaWiki/SemanticResultFormats/pull/833) and [825](https://github.com/SemanticMediaWiki/SemanticResultFormats/issues/825) (by @hkwi)
* Bump DataTables from 1.13.2 to 2.1.8 [864](https://github.com/SemanticMediaWiki/SemanticResultFormats/pull/864) (by @alistair3149)
* Improved client-side cache mechanism [904](https://github.com/SemanticMediaWiki/SemanticResultFormats/pull/904) (by @thomas-topway-it)
* Improved accessibility with `aria-live = "polite"` attribute in DataTable [845](https://github.com/SemanticMediaWiki/SemanticResultFormats/pull/845) (by @robinwiel)
* Updated Filtered format dependencies: Fullcalendar 6 and leaflet 1.9/leaflet-providers 2.0 (by @thomas-topway-it for ([KM-A](https://km-a.net))
* Added `prolog` format that generates SVO predicates
* Added `dataframe` format
* Improved `carousel` format with vertical centering, height adjustments, smarter captions, and nested slide [857](https://github.com/SemanticMediaWiki/SemanticResultFormats/pull/857) (by @thomas-topway-it for ([KM-A](https://km-a.net))

Bug fixes
### Bug Fixes

*
* Fixed precision issue in the `time` format
* Fixed reuse of values output by the `incoming` format when no template is used

## SRF 4.2.1

Released on March 13, 2024.

* [815](https://github.com/SemanticMediaWiki/SemanticResultFormats/pull/815) Document graphfields parameter to the graph format (by @alex-mashin)
* [815](https://github.com/SemanticMediaWiki/SemanticResultFormats/pull/815) Document graphfields parameter to the graph format (by @alex-mashin)
* [806](https://github.com/SemanticMediaWiki/SemanticResultFormats/pull/806) Added required resources for the bubble chare to the jqplotchart format (by@YOUR1)
* [805](https://github.com/SemanticMediaWiki/SemanticResultFormats/pull/805) Fixed issue creating a lot of log spam (by @sophivorus)
* [793](https://github.com/SemanticMediaWiki/SemanticResultFormats/pull/793) Fixed issue with the slidesToShow paramter to the carousel format (by @thomas-topway-it)
* [793](https://github.com/SemanticMediaWiki/SemanticResultFormats/pull/793) Fixed issue with the slidesToShow parameter to the carousel format (by @thomas-topway-it)
* Further improvements and fixes to the Continuous Integration (CI) (by [gesinn.it](https://gesinn.it))
* Updated translations (by translatewiki.net community)

Expand Down
5 changes: 3 additions & 2 deletions Resources.php
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@

// D3
'ext.d3.core' => $moduleTemplate + [
'scripts' => 'resources/jquery/d3/d3.v3.js'
'scripts' => 'resources/jquery/d3/d3.min.js'
],

//
Expand Down Expand Up @@ -780,7 +780,8 @@
],
'dependencies' => [
'ext.srf.filtered.calendar-view.messages',
'ext.jquery.fullcalendar'
// included using gulp
// 'ext.jquery.fullcalendar'
],
],

Expand Down
1 change: 1 addition & 0 deletions SemanticResultFormats.hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ public static function addToAdminLinks( ALTree &$admin_links_tree ) {
* @return true
*/
public static function onResourceLoaderGetConfigVars( &$vars ) {
// Powers srf.settings.get(), via ext.stf.js.
$vars['srf-config'] = [
'version' => SRF_VERSION,
'settings' => [
Expand Down
15 changes: 0 additions & 15 deletions SemanticResultFormats.utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,6 @@ public static function htmlProcessingElement( $isHtml = true ) {
);
}

/**
* Add JavaScript variables to the output
*
* @since 1.8
*/
public static function addGlobalJSVariables() {
$options = [
'srfgScriptPath' => $GLOBALS['srfgScriptPath'],
'srfVersion' => SRF_VERSION
];

$requireHeadItem = [ 'srf.options' => $options ];
SMWOutputs::requireHeadItem( 'srf.options', self::makeVariablesScript( $requireHeadItem ) );
}

/**
* Returns semantic search link for the current query
*
Expand Down
2 changes: 1 addition & 1 deletion build
Submodule build updated 2 files
+7 −0 Makefile
+2 −2 README.adoc
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
"source": "https://github.com/SemanticMediaWiki/SemanticResultFormats"
},
"require": {
"php": ">=7.3",
"php": ">=8.1",
"composer/installers": ">=1.0.1",
"nicmart/tree": "^0.2.7",
"nicmart/tree": "^0.4.0",
"data-values/geo": "~4.0|~3.0|~2.0"
},
"suggest": {
Expand Down
23 changes: 15 additions & 8 deletions docs/COMPATIBILITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,26 @@ minimum requirements are indicated in bold.
<th>Semantic MediaWiki</th>
<th>Release status</th>
</tr>
<tr>
<th>5.1.x</th>
<td>8.1 - 8.4</td>
<td>1.39 - 1.44</td>
<td>5.0 - 6.x</td>
<td><strong>Stable release</strong></td>
<tr>
<tr>
<th>5.0.x</th>
<td><strong>8.0</strong> - 8.3+</td>
<td><strong>1.39</strong> - 1.43+</td>
<td><strong>4.0.0</strong> - 4.2+</td>
<td>Future release</td>
<td><strong>8.1</strong> - 8.4</td>
<td><strong>1.39</strong> - 1.43</td>
<td><strong>5.0</strong></td>
<td>Obsolete release, no support</td>
<tr>
<tr>
<th>4.2.x</th>
<td>7.3 - 8.1</td>
<td>1.35 - 1.39+</td>
<td>3.2.x - 4.2+</td>
<td><strong>Stable release</strong></td>
<td>7.3 - 8.2</td>
<td>1.35 - 1.39</td>
<td>3.2.x - 4.2</td>
<td>Obsolete release, no support</td>
<tr>
<tr>
<th>4.1.x</th>
Expand Down
4 changes: 2 additions & 2 deletions docs/INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ create one and add the following content to it:
```
{
"require": {
"mediawiki/semantic-result-formats": "~4.2"
"mediawiki/semantic-result-formats": "~5.0"
}
}
```

If you already have a "composer.local.json" file add the following line to the end of the "require"
section in your file:

"mediawiki/semantic-result-formats": "~4.2"
"mediawiki/semantic-result-formats": "~5.0"

Remember to add a comma to the end of the preceding line in this section.

Expand Down
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
## Technical documentation

* [Filtered format](https://github.com/SemanticMediaWiki/SemanticResultFormats/blob/master/formats/filtered/README.md)
* [D3chart format](https://github.com/SemanticMediaWiki/SemanticResultFormats/blob/master/formats/d3/README.md)

## Repository documentation

Expand Down
32 changes: 16 additions & 16 deletions extension.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "SemanticResultFormats",
"version": "5.0.0-alpha",
"version": "5.1.0",
"author": [
"James Hong Kong",
"Stephan Gambke",
Expand Down Expand Up @@ -38,22 +38,22 @@
"SRF\\Tests\\": "tests/phpunit/"
},
"QUnitTestModule": {
"localBasePath": "",
"remoteExtPath": "SemanticResultFormats",
"localBasePath": "tests/qunit/",
"remoteExtPath": "SemanticResultFormats/tests/qunit/",
"scripts": [
"tests/qunit/ext.srf.test.js",
"tests/qunit/ext.srf.util.test.js",
"tests/qunit/formats/ext.srf.formats.datatables.test.js",
"tests/qunit/formats/ext.srf.formats.carousel.test.js",
"tests/qunit/formats/ext.srf.formats.eventcalendar.tests.js",
"tests/qunit/formats/ext.srf.formats.filtered.test.js",
"tests/qunit/formats/ext.srf.formats.gallery.test.js",
"tests/qunit/formats/ext.srf.formats.media.test.js",
"tests/qunit/formats/ext.srf.formats.tagcloud.test.js",
"tests/qunit/widgets/ext.srf.widgets.eventcalendar.tests.js",
"tests/qunit/widgets/ext.srf.widgets.optionslist.test.js",
"tests/qunit/widgets/ext.srf.widgets.panel.test.js",
"tests/qunit/widgets/ext.srf.widgets.parameters.test.js"
"ext.srf.test.js",
"ext.srf.util.test.js",
"formats/ext.srf.formats.datatables.test.js",
"formats/ext.srf.formats.carousel.test.js",
"formats/ext.srf.formats.eventcalendar.tests.js",
"formats/ext.srf.formats.filtered.test.js",
"formats/ext.srf.formats.gallery.test.js",
"formats/ext.srf.formats.media.test.js",
"formats/ext.srf.formats.tagcloud.test.js",
"widgets/ext.srf.widgets.eventcalendar.tests.js",
"widgets/ext.srf.widgets.optionslist.test.js",
"widgets/ext.srf.widgets.panel.test.js",
"widgets/ext.srf.widgets.parameters.test.js"
],
"dependencies": [
"ext.srf",
Expand Down
2 changes: 1 addition & 1 deletion formats/Prolog/PrologPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class PrologPrinter extends FileExportPrinter {
* {@inheritDoc}
*/
public function getName() {
return $this->msg( 'srf-printername-prolog' );
return $this->msg( 'srf-printername-prolog' )->text();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion formats/calendar/SRF_Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ public function displayCalendar( $events ) {
$lastDayOfWeek = 7;
} else {
$firstDayOfWeek =
array_search( $srfgFirstDayOfWeek, $weekDayNames );
array_search( wfMessage( $srfgFirstDayOfWeek )->text(), $weekDayNames );
if ( $firstDayOfWeek === false ) {
// Bad value for $srfgFirstDayOfWeek!
print 'Warning: Bad value for $srfgFirstDayOfWeek "' .
Expand Down
Loading