OAI plugin: Fix encoding in XML declaration

According to the OAI PMH protocol version 2.0, chapter 3.2
(XML Response Format), the "first tag output is an XML declaration
where the version is always 1.0 and the encoding is always UTF-8".

Goobi used utf-8 instead of UTF-8 and at least one validator complains
because of that difference.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2015-04-15 09:52:44 +02:00
parent e523ded09f
commit addc1f992b
1 changed files with 1 additions and 1 deletions

View File

@ -415,7 +415,7 @@ class tx_dlf_oai extends tx_dlf_plugin {
$this->deleteExpiredTokens();
// Create XML document.
$this->oai = new DOMDocument('1.0', 'utf-8');
$this->oai = new DOMDocument('1.0', 'UTF-8');
// Add processing instruction (aka XSL stylesheet).
if (!empty($this->conf['stylesheet'])) {