diff --git a/module/doc/view/tablecontents.html.php b/module/doc/view/tablecontents.html.php
index 36a70f8d2d..13c9cef5ba 100644
--- a/module/doc/view/tablecontents.html.php
+++ b/module/doc/view/tablecontents.html.php
@@ -104,13 +104,16 @@ if(empty($type)) $type = 'product';
echo $html;
?>
doc->manageBook, '', "class='btn btn-info btn-wide'");
- }
- elseif(!empty($libs))
- {
- common::printLink('tree', 'browse', "rootID=$libID&view=doc", $lang->doc->manageType, '', "class='btn btn-info btn-wide iframe'", '', true);
+ if($type == 'book')
+ {
+ common::printLink('doc', 'manageBook', "bookID=$libID", $lang->doc->manageBook, '', "class='btn btn-info btn-wide'");
+ }
+ else
+ {
+ common::printLink('tree', 'browse', "rootID=$libID&view=doc", $lang->doc->manageType, '', "class='btn btn-info btn-wide iframe'", '', true);
+ }
}
?>