@ -1,7 +1,5 @@
<?php
<?php
/**
/**
* @file fedora_repository.install
* @file fedora_repository.install
*/
*/
@ -78,6 +76,18 @@ function fedora_repository_requirements($phase) {
$requirements['dom']['serenity'] = REQUIREMENT_OK;
$requirements['dom']['serenity'] = REQUIREMENT_OK;
}
}
// Test for XSLT
$requirements['xsl']['title'] = "PHP XSL extension library";
if (!class_exists('XSLTProcessor')) {
$requirements['xslt']['value'] = t("Not installed");
$requirements['xslt']['severity'] = REQUIREMENT_ERROR;
$requirements['xslt']['description'] = t("Ensure that the PHP XSL extension is installed.");
}
else {
$requirements['xslt']['value'] = t("Installed");
$requirements['xslt']['serenity'] = REQUIREMENT_OK;
}
// Test for Imagick
// Test for Imagick
$requirements['imagick']['title'] = t("Image Magick library");
$requirements['imagick']['title'] = t("Image Magick library");
//if ( ! class_exists('Imagick') ) {
//if ( ! class_exists('Imagick') ) {
@ -110,8 +120,7 @@ function fedora_repository_requirements($phase) {
if (!fedora_available()) {
if (!fedora_available()) {
$requirements['fedora-repository']['value'] = t("Not available");
$requirements['fedora-repository']['value'] = t("Not available");
$requirements['fedora-repository']['severity'] = REQUIREMENT_ERROR;
$requirements['fedora-repository']['severity'] = REQUIREMENT_ERROR;
$requirements['fedora-repository']['description'] = t('Ensure that Fedora is running and that the <a href="@collection-settings">collection settings</a> are correct.',
$requirements['fedora-repository']['description'] = t('Ensure that Fedora is running and that the <a href="@collection-settings">collection settings</a> are correct.', array('@collection-settings' => $base_url . '/admin/settings/fedora_repository'));
array('@collection-settings' => $base_url . '/admin/settings/fedora_repository'));
}
}
else {
else {
$requirements['fedora-repository']['value'] = t("Available");
$requirements['fedora-repository']['value'] = t("Available");