'DiffHistoryBlob' => 'includes/HistoryBlob.php',
'DjVuImage' => 'includes/DjVuImage.php',
'DoubleReplacer' => 'includes/StringUtils.php',
- 'DublinCoreRdf' => 'includes/Metadata.php',
'DummyLinker' => 'includes/Linker.php',
'Dump7ZipOutput' => 'includes/Export.php',
'DumpBZip2Output' => 'includes/Export.php',
*/
/** RDF metadata toggles */
-$wgEnableDublinCoreRdf = false;
$wgEnableCreativeCommonsRdf = false;
/** Override for copyright metadata.
);
/**
- * Array of disabled article actions, e.g. view, edit, dublincore, delete, etc.
+ * Array of disabled article actions, e.g. view, edit, delete, etc.
* @deprecated since 1.18; just set $wgActions['action'] = false instead
*/
$wgDisabledActions = array();
<?php
/**
- * Provides DublinCore and CreativeCommons metadata
+ * Provides CreativeCommons metadata
*
* Copyright 2004, Evan Prodromou <evan@wikitravel.org>.
*
}
}
-class DublinCoreRdf extends RdfMetaData {
-
- public function show(){
- if( $this->setup() ){
- $this->prologue();
- $this->basics();
- $this->epilogue();
- }
- }
-
- /**
- * begin of the page
- */
- protected function prologue() {
- $url = htmlspecialchars( $this->reallyFullUrl() );
- print <<<PROLOGUE
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE rdf:RDF PUBLIC "-//DUBLIN CORE//DCMES DTD 2002/07/31//EN" "http://dublincore.org/documents/2002/07/31/dcmes-xml/dcmes-xml-dtd.dtd">
-<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:dc="http://purl.org/dc/elements/1.1/">
- <rdf:Description rdf:about="{$url}">
-
-PROLOGUE;
- }
-
- /**
- * end of the page
- */
- protected function epilogue() {
- print <<<EPILOGUE
- </rdf:Description>
-</rdf:RDF>
-EPILOGUE;
- }
-}
-
class CreativeCommonsRdf extends RdfMetaData {
public function show(){
global $wgUniversalEditButton, $wgFavicon, $wgAppleTouchIcon, $wgEnableAPI,
$wgSitename, $wgVersion, $wgHtml5, $wgMimeType,
$wgFeed, $wgOverrideSiteFeed, $wgAdvertisedFeedTypes,
- $wgEnableDublinCoreRdf, $wgEnableCreativeCommonsRdf,
+ $wgEnableCreativeCommonsRdf,
$wgDisableLangConversion, $wgCanonicalLanguageLinks, $wgContLang,
$wgRightsPage, $wgRightsUrl;
'href' => $this->getTitle()->getLocalURL( 'action=creativecommons' ) )
);
}
-
- if ( $wgEnableDublinCoreRdf ) {
- $tags[] = Html::element( 'link', array(
- 'rel' => $this->getMetadataAttribute(),
- 'title' => 'Dublin Core',
- 'type' => 'application/rdf+xml',
- 'href' => $this->getTitle()->getLocalURL( 'action=dublincore' ) )
- );
- }
}
# Language variants
*/
private function performAction( $article ) {
global $wgSquidMaxage, $wgUseExternalEditor,
- $wgEnableDublinCoreRdf, $wgEnableCreativeCommonsRdf;
+ $wgEnableCreativeCommonsRdf;
wfProfileIn( __METHOD__ );
case 'deletetrackback':
$article->$act();
break;
- case 'dublincore':
- if ( !$wgEnableDublinCoreRdf ) {
- wfHttpError( 403, 'Forbidden', wfMsg( 'nodublincore' ) );
- } else {
- $rdf = new DublinCoreRdf( $article );
- $rdf->show();
- }
- break;
case 'creativecommons':
if ( !$wgEnableCreativeCommonsRdf ) {
wfHttpError( 403, 'Forbidden', wfMsg( 'nocreativecommons' ) );
'group-bureaucrat.js',
),
'metadata_cc' => array(
- 'nodublincore',
'nocreativecommons',
'notacceptable',
),