From 03c09a12396c85b7b48578b1f6fadd0bca290400 Mon Sep 17 00:00:00 2001 From: henriyli Date: Thu, 24 Mar 2016 13:53:08 +0200 Subject: [PATCH] Adding missing dc11 -> dc property namespace conversion, fixes #487 --- model/Vocabulary.php | 1 + 1 file changed, 1 insertion(+) diff --git a/model/Vocabulary.php b/model/Vocabulary.php index 8d878ce60..848cacfe5 100644 --- a/model/Vocabulary.php +++ b/model/Vocabulary.php @@ -156,6 +156,7 @@ public function getInfo($lang = null) } if (!isset($ret[$prop]) || sizeof($ret[$prop]) == 0) { // not found with language tag foreach ($conceptscheme->allLiterals($prop, null) as $val) { + $prop = (substr($prop, 0, 5) == 'dc11:') ? str_replace('dc11:', 'dc:', $prop) : $prop; $value = $val->getValue(); if ($value instanceof DateTime) { $val = Punic\Calendar::formatDate($value, 'full', $lang) . ' ' . Punic\Calendar::format($value, 'HH:mm:ss', $lang);