Browse Source

Add comments and rename XSLT so it is not used by default...

The XSLT will still be used if it is present, though.
pull/126/head
Adam Vessey 13 years ago
parent
commit
1068dbde0a
  1. 3
      ObjectHelper.inc
  2. 1
      xsl/convertQDC.xsl.deprecated

3
ObjectHelper.inc

@ -398,7 +398,6 @@ class ObjectHelper {
function getFormattedDC($item) {
global $base_url;
$path = drupal_get_path('module', 'fedora_repository');
module_load_include('inc', 'fedora_repository', 'ConnectionHelper');
$dsid = array_key_exists('QDC', $item->get_datastreams_list_as_array()) ? 'QDC' : 'DC';
$xmlstr = $item->get_datastream_dissemination($dsid);
@ -408,7 +407,7 @@ class ObjectHelper {
}
if (($xsl_path = "$path/xsl/convertQDC.xsl") &&
($xsl = DOMDocument::load($xsl_path)) &&
($xsl = DOMDocument::load($xsl_path)) && //Fails loading XSLT -> FALSE
($ds = DOMDocument::loadXML($xmlstr))) {
$xslt_opts = array(
'BASEURL' => $base_url,

1
xsl/convertQDC.xsl → xsl/convertQDC.xsl.deprecated

@ -1,4 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- This was how the metadata in the 'Fedora Object Details' tab was rendered. Can be renamed back to 'convertQDC.xsl' (without '.deprecated') to make it be used again. -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- Old parameter names "$baseUrl" and "$path" are deprecated. Currently just used as defaults. -->
<xsl:param name="BASEURL" select="$baseUrl"/>
Loading…
Cancel
Save