|
|
@ -131,7 +131,7 @@ class DublinCore { |
|
|
|
$dc_label = explode(':', $field); |
|
|
|
$dc_label = explode(':', $field); |
|
|
|
$element_label = drupal_ucfirst($dc_label[1]); |
|
|
|
$element_label = drupal_ucfirst($dc_label[1]); |
|
|
|
$dc_array[$field]['label'] = $element_label; |
|
|
|
$dc_array[$field]['label'] = $element_label; |
|
|
|
$dc_array[$field]['value'] = $value; |
|
|
|
$dc_array[$field]['value'] = filter_xss($value); |
|
|
|
$dc_array[$field]['class'] = drupal_strtolower(preg_replace('/[^A-Za-z0-9]/', '-', $field)); |
|
|
|
$dc_array[$field]['class'] = drupal_strtolower(preg_replace('/[^A-Za-z0-9]/', '-', $field)); |
|
|
|
$dc_array[$field]['dcterms'] = preg_replace('/^dc/', 'dcterms', $field); |
|
|
|
$dc_array[$field]['dcterms'] = preg_replace('/^dc/', 'dcterms', $field); |
|
|
|
} |
|
|
|
} |
|
|
@ -140,7 +140,6 @@ class DublinCore { |
|
|
|
return $dc_array; |
|
|
|
return $dc_array; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Creates a new instance of the class by parsing dc_xml. |
|
|
|
* Creates a new instance of the class by parsing dc_xml. |
|
|
|
* |
|
|
|
* |
|
|
|