Diskussion:Infopedia

Aus Infopedia
Wechseln zu:Navigation, Suche

Composer[Bearbeiten]

eine composer.local.json gibt es vermutlich schon. Daher muss man nur die Einträge bei "require" hinzufügen, die fehlen. Rest kann man so lassen. Hier trotzdem die vollständige:



        "require": {
                "mediawiki/semantic-media-wiki": "~3",
                "mediawiki/semantic-result-formats": "~3",
                "mediawiki/semantic-compound-queries": "~2",
                "mediawiki/semantic-extra-special-properties": "~2.1",
                "mediawiki/semantic-meta-tags": "~2.0",
                "mediawiki/semantic-glossary": "~3",
                "mediawiki/maps": "~7",
                "mediawiki/lingo": "~3",
                "mediawiki/simple-batch-upload": "~1",
                "mediawiki/page-forms": "~4.8",
                "mediawiki/chameleon-skin": "~2"
        },
        "extra": {
                "merge-plugin": {
                        "include": [
                                "extensions/example/composer.json"
                        ]
                }
        },
        "config": {
                "preferred-install": "source",
                "optimize-autoloader": true
        }
}

Weitere Extensions[Bearbeiten]

cd extensions
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Widgets.git
cd Widgets
git submodule init
git submodule update
cd extensions
git clone https://github.com/wikimedia/mediawiki-extensions-DataTransfer.git
mv mediawiki-extensions-DataTransfer DataTransfer

optional:

LocalSettings.php[Bearbeiten]

hier ein paar wichtige Einstellungen zur Aktivierung von Extensions und Rechten

#Mitgelieferte Extensions aktivieren
wfLoadExtension( 'Cite' );
wfLoadExtension( 'CiteThisPage' );
wfLoadExtension( 'ImageMap' );
wfLoadExtension( 'InputBox' );
wfLoadExtension( 'ParserFunctions' );
$wgPFEnableStringFunctions = true;
$wgPFStringLengthLimit = 10000;
wfLoadExtension( 'PdfHandler' );
$wgPdfProcessor = "/usr/bin/gs";
$wgPdfPostProcessor = "/usr/bin/convert";
wfLoadExtension( 'Poem' );
wfLoadExtension( 'Renameuser' );
wfLoadExtension( 'ReplaceText' );
wfLoadExtension( 'WikiEditor' );
# aber Benutzern immer noch erlauben diese in den Einstellungen zu deaktivieren
$wgDefaultUserOptions['usebetatoolbar'] = 1;
$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;
$wgDefaultUserOptions['wikieditor-preview'] = 1;
# Zeigt eine Navigationsleiste (Zusammenfassung) auf der rechten Seite
$wgDefaultUserOptions['usenavigabletoc'] = 1;

# Semantic MediaWiki via Composer
# More info: http://semantic-mediawiki.org/wiki/Help:Installation
enableSemantics( parse_url( $wgServer, PHP_URL_HOST ) );
$smwgParserFeatures = SMW_PARSER_STRICT | SMW_PARSER_INL_ERROR | SMW_PARSER_HID_CATS | SMW_PARSER_UNSTRIP | SMW_PARSER_LINV;
$smwgQEqualitySupport = SMW_EQ_FULL;  // always interpret redirects as equality in queries
$smwgPageSpecialProperties = array( '_MDAT', '_CDAT', '_NEWP', '_LEDT');
$smwgQMaxInlineLimit = 20000;
$wgCategoryCollation = "uca-de-u-kn";
$smwgEntityCollation = "uca-de-u-kn";

# Semantic ResultFormats and SemanticExtraSpecialProperties via Composer
# More info: https://www.semantic-mediawiki.org/wiki/Extension:Semantic_Result_Formats
wfLoadExtension( 'SemanticResultFormats' );
$srfgFormats[] = 'filtered';
$srfgMapProvider='BasemapAT.basemap';
$GLOBALS['sespSpecialProperties'] = array(
        '_CUSER',
        '_USEREDITCNT',
);

# Lingo und Semantic Glossary via Composer
wfLoadExtension( 'SemanticGlossary' );
define("NS_GLOSSAR", 190);
define("NS_GLOSSAR_TALK", 191);

$wgExtraNamespaces[NS_GLOSSAR] = "Glossar";
$wgExtraNamespaces[NS_GLOSSAR_TALK] = "Glossar_Diskkussion";
$wgexLingoPage = 'Glossar';
$smwgNamespacesWithSemanticLinks[NS_GLOSSAR] = true;
$wgexLingoCacheType = CACHE_NONE;

# Page Forms
# More info: https://www.mediawiki.org/wiki/Extension:Page_Forms
wfLoadExtension( 'PageForms' );
$wgPageFormsRenameEditTabs = true;
$sfgRenameEditTabs = true;
$wgPageFormsLinkAllRedLinksToForms = true;
$wgGroupPermissions['*']['viewedittab'] = false;
$wgGroupPermissions['sysop']['viewedittab'] = true;
$wgPageFormsSimpleUpload = false;

# Widgets
# More info: https://www.mediawiki.org/wiki/Extension:Widgets
#wfLoadExtension( 'Widgets' );
require_once "$IP/extensions/Widgets/Widgets.php";

# TitleIcon
# More info: https://www.mediawiki.org/wiki/Extension:Title_Icon
wfLoadExtension( 'TitleIcon' );
$wgTitleIcon_EnableIconInSearchTitle = true;

# Data Transfer
# More info: https://www.mediawiki.org/wiki/Extension:Data_Transfer
include_once("$IP/extensions/DataTransfer/DataTransfer.php");
$wgPhpCli = false;

#BatchUpload
# More info:
wfLoadExtension('SimpleBatchUpload');

# DeleteBatch
# More info: https://www.mediawiki.org/wiki/Extension:DeleteBatch
wfLoadExtension( 'DeleteBatch' );

# Maps COMPOSER
wfLoadExtension( 'Maps' );
$egMapsDefaultService = 'leaflet';
$egMapsEnableCategory = false;

// Implicit group for all visitors
$wgGroupPermissions['*'    ]['createaccount']   = false;
$wgGroupPermissions['*'    ]['read']            = true;
$wgGroupPermissions['*'    ]['edit']            = false;
$wgGroupPermissions['*'    ]['createpage']      = false;
$wgGroupPermissions['*'    ]['createtalk']      = false;


Änderungen[Bearbeiten]

statt

$wgCategoryCollation = "uca-de-u-kn";
$smwgEntityCollation = "uca-de-u-kn";

bitte

$wgCategoryCollation = "numeric";
$smwgEntityCollation = "numeric";

Danach folgende Befehle ausführen:

php maintenance/updateCollation.php
php extensions/SemanticMediaWiki/maintenance/updateEntityCollation.php

Das neu setzen:

$wgRestrictDisplayTitle = false;