diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc
index daf6a26..7b80a5a 100644
--- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc
+++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc
@@ -384,17 +384,37 @@ function renderDependantDocuments($oDocument, $bEdit) {
return $sToRender;
}
+$aImageNameToLabel = array(
+ "dependentdoc" => "Link new doc",
+);
+
function displayButton($sAction, $sQueryString, $sImageName, $sDisabledText = "") {
global $default;
+ global $aImageNameToLabel;
// the active is active if there is no disabled text
$bActive = !strlen($sDisabledText) > 0;
- $sImage = "graphicsUrl/widgets/docactions/";
- if ($bActive) {
- $sImage .= "$sImageName.gif\"";
- } else {
- $sImage .= "disabled-$sImageName.gif\" title=\"$sDisabledText\"";
- }
- $sImage .= "/>";
+ if ($default->useTextButtons === false) {
+ $sImage = "
graphicsUrl/widgets/docactions/";
+ if ($bActive) {
+ $sImage .= "$sImageName.gif\"";
+ } else {
+ $sImage .= "disabled-$sImageName.gif\" title=\"$sDisabledText\"";
+ }
+ $sImage .= "/>";
+ } else {
+ if (array_key_exists($sImageName, $aImageNameToLabel)) {
+ $sLabel = $aImageNameToLabel[$sImageName];
+ } else {
+ $sLabel = $sImageName;
+ }
+ $sLabel = strtoupper($sLabel);
+ if ($bActive) {
+ $sClass = "button";
+ } else {
+ $sClass = "disabledbutton";
+ }
+ $sImage = "$sLabel";
+ }
if ($bActive) {
return generateControllerLink($sAction, $sQueryString, $sImage);
} else {
@@ -405,7 +425,11 @@ function displayButton($sAction, $sQueryString, $sImageName, $sDisabledText = ""
function displayViewButton($oDocument, $bEdit) {
global $default;
$sViewAlert = _("This will download a copy of the document and is not the same as Checking Out a document. Changes to this downloaded file will not be managed in the DMS.");
+ if ($default->useTextButtons === false) {
return "