Skip to content

Commit

Permalink
Add more settings to connect swMATH
Browse files Browse the repository at this point in the history
  • Loading branch information
physikerwelt authored Jul 19, 2023
1 parent 2c31df8 commit f3abbe1
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions mediawiki/LocalSettings.d/LocalSettings.override.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,30 @@
$wgWBRepoSettings['siteLinkGroups'] = [ 'mathematics' ];
$wgWBClientSettings['siteLinkGroups'] = [ 'mathematics' ];
$wgWBClientSettings['siteGlobalID'] = 'mardi';
$wgWBClientSettings['repoUrl'] = 'https://portal.mardi4nfdi.de';
$wgWBClientSettings['repoScriptPath'] = '/w';
$wgWBClientSettings['repoArticlePath'] = '/wiki/$1';
$wgWBClientSettings['entitySources'] = [
'mardi_source' => [
'repoDatabase' => 'my_wiki',
'baseUri' => 'https://portal.mardi4nfdi.de/entity',
'entityNamespaces' => [
'item' => 120,
'property' => 122,
],
'rdfNodeNamespacePrefix' => 'wd',
'rdfPredicateNamespacePrefix' => '',
'interwikiPrefix' => 'mardi',
],
];
$wgWBClientSettings['itemAndPropertySourceName'] = 'mardi_source';
// my_wiki is the MaRDI database
$wgLocalDatabases = [ 'wiki_swmath', 'my_wiki' ];
$wgWBRepoSettings['localClientDatabases'] = [
'mardi' => 'my_wiki',
'swmath' => 'wiki_swmath'
];

// insert site with
// php addSite.php --filepath=https://portal.mardi4nfdi.de/w/\$1 --pagepath=https://portal.mardi4nfdi.de/wiki/\$1 --language en --interwiki-id mardi mardi mathematics
// php addSite.php --filepath=https://staging.swmath.org/w/\$1 --pagepath=https://staging.swmath.org/wiki/\$1 --language en --interwiki-id swmath swmath mathematics
Expand Down

0 comments on commit f3abbe1

Please sign in to comment.