diff --git a/CHANGELOG b/CHANGELOG index 1a97681f1..55a100361 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -3,8 +3,9 @@ -------------------------------------------------------------------------------- - add hooks showDocumentAttribute and showDocumentContentAttribute in Search view - fix layout problems of select2 menu, add option for adding an icon to each option -- better import for users from csv file +- better import of users from csv file - fix various methods in restapi (Closes: #481) +- add hooks showDocumentKeywords and showDocumentCategories -------------------------------------------------------------------------------- Changes in version 5.1.18 diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php index cdc976b5c..8555a8cc1 100644 --- a/views/bootstrap/class.ViewDocument.php +++ b/views/bootstrap/class.ViewDocument.php @@ -284,27 +284,47 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { getKeywords()) { + $arr = $this->callHook('showDocumentKeywords', $document); + if(is_array($arr)) { + echo ""; + echo "".$arr[0].":"; + echo "".$arr[1].""; + echo ""; + } elseif(is_string($arr)) { + echo $arr; + } else { ?> : getKeywords());?> getCategories()) { + $arr = $this->callHook('showDocumentCategories', $document); + if(is_array($arr)) { + echo ""; + echo "".$arr[0].":"; + echo "".$arr[1].""; + echo ""; + } elseif(is_string($arr)) { + echo $arr; + } else { ?> : - getName()); - echo implode(', ', $ct); - ?> +getName()); + echo implode(', ', $ct); +?>