Skip to content

Commit

Permalink
Adding missing dc11 -> dc property namespace conversion, fixes #487
Browse files Browse the repository at this point in the history
  • Loading branch information
henriyli committed Mar 24, 2016
1 parent ba9f1d0 commit 03c09a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions model/Vocabulary.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 03c09a1

Please sign in to comment.