diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/documentViewBL.php b/presentation/lookAndFeel/knowledgeTree/documentmanagement/documentViewBL.php
new file mode 100644
index 0000000..c051cd4
--- /dev/null
+++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/documentViewBL.php
@@ -0,0 +1,31 @@
+owl_fs_root/lib/security/permission.inc");
+require_once("$default->owl_fs_root/lib/documentmanagement/Document.inc");
+require_once("$default->owl_fs_root/lib/foldermanagement/Folder.inc");
+require_once("$default->owl_fs_root/lib/visualpatterns/PatternListFromQuery.inc");
+require_once("$default->owl_fs_root/presentation/lookAndFeel/knowledgeTree/documentmanagement/documentViewUI.php");
+
+//if (checkSession()) {
+ $oDocument = & Document::get(12);
+ renderDocumentMetaData($oDocument);
+/*} else {
+ echo "You do not have permission for this page";
+}*/
+
+?>
diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/documentViewUI.php b/presentation/lookAndFeel/knowledgeTree/documentmanagement/documentViewUI.php
new file mode 100644
index 0000000..08b34d2
--- /dev/null
+++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/documentViewUI.php
@@ -0,0 +1,50 @@
+getFolderID()) . " > " . $oDocument->getName();
+ echo "
\n";
+}
+
+function renderDocumentGenericMetaData($oDocument) {
+ echo "\n";
+}
+
+function renderDocumentMetaData($oDocument) {
+ $sQuery = "SELECT D.name AS name, DT.datetime AS created_date, D.modified as last_modified, U.name as initiator, DFL.value as authors, CONCAT(CONCAT(D.major_version, \".\"), D.minor_version) AS version, WDSL.name AS status, DFL2.value AS category " .
+ "FROM documents AS D INNER JOIN document_fields_link AS DFL on D.id = DFL.document_id " .
+ "INNER JOIN users AS U on D.creator_id = U.id " .
+ "INNER JOIN document_transactions AS DT on DT.document_id = D.id " .
+ "INNER JOIN document_fields AS DF ON DF.id = DFL.document_field_id " .
+ "INNER JOIN document_transaction_types_lookup AS DTTL ON DTTL.id = DT.transaction_id " .
+ "INNER JOIN document_fields_link AS DFL2 ON DFL2.document_id = D.id " .
+ "INNER JOIN document_fields AS DF2 ON DF2.id = DFL2.document_field_id " .
+ "INNER JOIN web_documents AS WD ON WD.document_id = D.ID " .
+ "INNER JOIN web_documents_status_lookup AS WDSL ON WD.status_id = WDSL.id " .
+ "WHERE D.id = " . $oDocument->getID() . " " .
+ "AND DF.name LIKE 'Author' " .
+ "AND DF2.name LIKE 'Category' " .
+ "AND DTTL.name LIKE 'Create'";
+
+ $aColumns = array("name", "created_date", "last_modified", "initiator", "authors", "version", "status", "category");
+ $aColumnNames = array("Document title", "Date created", "Last updated", "Document initiator", "Author(s)", "Version", "Status", "Category");
+ $aColumnTypes = array(1,1,1,1,1,1,1,1);
+
+ $oPatternListFromQuery = & new PatternListFromQuery($sQuery, $aColumns, $aColumnNames, $aColumnTypes);
+ $oPatternListFromQuery->setTableHeading("Generic Meta Data");
+ echo $oPatternListFromQuery->render();
+
+}
+?>