Skip to content

Commit

Permalink
Merge pull request #525 from MaRDI4NFDI/add_community_namespace
Browse files Browse the repository at this point in the history
Add community namespace
  • Loading branch information
eloiferrer authored May 10, 2024
2 parents b60b6b6 + d19b23a commit aec5621
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions mediawiki/LocalSettings.d/LocalSettings.override.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,5 @@
# MaRDI profile types items
$wgMathProfileQueries['dataset']='?item wdt:P1460 wd:Q5984635';
$wgMathProfileQIdMap['dataset']='Q5984635';
$wgMathProfileQueries['community']='?item wdt:P1460 wd:Q6205095';
$wgMathProfileQIdMap['community']='Q6205095';
8 changes: 7 additions & 1 deletion mediawiki/LocalSettings.d/mardi_namespaces.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
define("NS_SOFTWARE_TALK", 4209);
define("NS_DATASET", 4210);
define("NS_DATASET_TALK", 4211);
define("NS_COMMUNITY", 4212);
define("NS_COMMUNITY_TALK", 4213);

// Add namespaces.
$wgExtraNamespaces[NS_FORMULA] = "Formula";
Expand All @@ -24,12 +26,15 @@
$wgExtraNamespaces[NS_SOFTWARE_TALK] = "Software_talk";
$wgExtraNamespaces[NS_DATASET] = "Dataset";
$wgExtraNamespaces[NS_DATASET_TALK] = "Dataset_talk";
$wgExtraNamespaces[NS_COMMUNITY] = "Community";
$wgExtraNamespaces[NS_COMMUNITY_TALK] = "Community_talk";

$wgNamespaceProtection[NS_FORMULA] = array( 'overwriteprofilepages' );
$wgNamespaceProtection[NS_PERSON] = array( 'overwriteprofilepages' );
$wgNamespaceProtection[NS_PUBLICATION] = array( 'overwriteprofilepages' );
$wgNamespaceProtection[NS_SOFTWARE] = array( 'overwriteprofilepages' );
$wgNamespaceProtection[NS_DATASET] = array( 'overwriteprofilepages' );
$wgNamespaceProtection[NS_DATASET] = array( 'overwriteprofilepages' );
$wgNamespaceProtection[NS_COMMUNITY] = array( 'overwriteprofilepages' );


$wgGroupPermissions['sysop']['overwriteprofilepages'] = true;
Expand All @@ -39,6 +44,7 @@
$wgContentNamespaces[] = NS_PUBLICATION;
$wgContentNamespaces[] = NS_SOFTWARE;
$wgContentNamespaces[] = NS_DATASET;
$wgContentNamespaces[] = NS_COMMUNITY;



Expand Down

0 comments on commit aec5621

Please sign in to comment.