mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 04:31:32 +00:00
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
commit
658351a4d3
|
@ -731,6 +731,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
|
|
||||||
private function folderNavigationBar($folder) { /* {{{ */
|
private function folderNavigationBar($folder) { /* {{{ */
|
||||||
$dms = $this->params['dms'];
|
$dms = $this->params['dms'];
|
||||||
|
$enableClipboard = $this->params['enableclipboard'];
|
||||||
$accessobject = $this->params['accessobject'];
|
$accessobject = $this->params['accessobject'];
|
||||||
if (!is_object($folder) || !$folder->isType('folder')) {
|
if (!is_object($folder) || !$folder->isType('folder')) {
|
||||||
self::showNavigationBar(array());
|
self::showNavigationBar(array());
|
||||||
|
@ -773,6 +774,9 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
if ($accessobject->check_controller_access('FolderNotify'))
|
if ($accessobject->check_controller_access('FolderNotify'))
|
||||||
$menuitems['edit_existing_notify'] = array('link'=>$this->params['settings']->_httpRoot."out/out.FolderNotify.php?folderid=". $folderID ."&showtree=". showtree(), 'label'=>getMLText('edit_existing_notify'));
|
$menuitems['edit_existing_notify'] = array('link'=>$this->params['settings']->_httpRoot."out/out.FolderNotify.php?folderid=". $folderID ."&showtree=". showtree(), 'label'=>getMLText('edit_existing_notify'));
|
||||||
}
|
}
|
||||||
|
if($enableClipboard) {
|
||||||
|
$menuitems['add_to_clipboard'] = array('class'=>'addtoclipboard', 'attributes'=>array(['rel', 'F'.$folder->getId()], ['msg', getMLText('splash_added_to_clipboard')], ['title', getMLText("add_to_clipboard")]), 'label'=>getMLText("add_to_clipboard"));
|
||||||
|
}
|
||||||
if ($accessobject->check_view_access('Indexer') && $this->params['enablefullsearch']) {
|
if ($accessobject->check_view_access('Indexer') && $this->params['enablefullsearch']) {
|
||||||
$menuitems['index_folder'] = array('link'=>$this->params['settings']->_httpRoot."out/out.Indexer.php?folderid=". $folderID."&showtree=".showtree(), 'label'=>getMLText('index_folder'));
|
$menuitems['index_folder'] = array('link'=>$this->params['settings']->_httpRoot."out/out.Indexer.php?folderid=". $folderID."&showtree=".showtree(), 'label'=>getMLText('index_folder'));
|
||||||
}
|
}
|
||||||
|
@ -795,6 +799,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
|
|
||||||
private function documentNavigationBar($document) { /* {{{ */
|
private function documentNavigationBar($document) { /* {{{ */
|
||||||
$accessobject = $this->params['accessobject'];
|
$accessobject = $this->params['accessobject'];
|
||||||
|
$enableClipboard = $this->params['enableclipboard'];
|
||||||
$accessMode = $document->getAccessMode($this->params['user']);
|
$accessMode = $document->getAccessMode($this->params['user']);
|
||||||
$docid=".php?documentid=" . $document->getID();
|
$docid=".php?documentid=" . $document->getID();
|
||||||
echo "<id=\"first\"><a href=\"".$this->params['settings']->_httpRoot."out/out.ViewDocument". $docid ."\" class=\"brand\">".getMLText("document")."</a>\n";
|
echo "<id=\"first\"><a href=\"".$this->params['settings']->_httpRoot."out/out.ViewDocument". $docid ."\" class=\"brand\">".getMLText("document")."</a>\n";
|
||||||
|
@ -847,6 +852,9 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
if ($accessobject->check_view_access('DocumentNotify'))
|
if ($accessobject->check_view_access('DocumentNotify'))
|
||||||
$menuitems['edit_existing_notify'] = array('link'=>$this->params['settings']->_httpRoot."out/out.DocumentNotify". $docid, 'label'=>getMLText('edit_existing_notify'));
|
$menuitems['edit_existing_notify'] = array('link'=>$this->params['settings']->_httpRoot."out/out.DocumentNotify". $docid, 'label'=>getMLText('edit_existing_notify'));
|
||||||
}
|
}
|
||||||
|
if($enableClipboard) {
|
||||||
|
$menuitems['add_to_clipboard'] = array('class'=>'addtoclipboard', 'attributes'=>array(['rel', 'D'.$document->getId()], ['msg', getMLText('splash_added_to_clipboard')], ['title', getMLText("add_to_clipboard")]), 'label'=>getMLText("add_to_clipboard"));
|
||||||
|
}
|
||||||
if ($accessobject->check_view_access('TransferDocument')) {
|
if ($accessobject->check_view_access('TransferDocument')) {
|
||||||
$menuitems['transfer_document'] = array('link'=>$this->params['settings']->_httpRoot."out/out.TransferDocument". $docid, 'label'=>getMLText('transfer_document'));
|
$menuitems['transfer_document'] = array('link'=>$this->params['settings']->_httpRoot."out/out.TransferDocument". $docid, 'label'=>getMLText('transfer_document'));
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,7 @@ class SeedDMS_View_Clipboard extends SeedDMS_Theme_Style {
|
||||||
*/
|
*/
|
||||||
public function menuClipboard() { /* {{{ */
|
public function menuClipboard() { /* {{{ */
|
||||||
$clipboard = $this->params['session']->getClipboard();
|
$clipboard = $this->params['session']->getClipboard();
|
||||||
if ($this->params['user']->isGuest() || (count($clipboard['docs']) + count($clipboard['folders'])) == 0) {
|
if (/*$this->params['user']->isGuest() ||*/ (count($clipboard['docs']) + count($clipboard['folders'])) == 0) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -658,6 +658,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
|
|
||||||
private function folderNavigationBar($folder) { /* {{{ */
|
private function folderNavigationBar($folder) { /* {{{ */
|
||||||
$dms = $this->params['dms'];
|
$dms = $this->params['dms'];
|
||||||
|
$enableClipboard = $this->params['enableclipboard'];
|
||||||
$accessobject = $this->params['accessobject'];
|
$accessobject = $this->params['accessobject'];
|
||||||
if (!is_object($folder) || !$folder->isType('folder')) {
|
if (!is_object($folder) || !$folder->isType('folder')) {
|
||||||
self::showNavigationBar(array());
|
self::showNavigationBar(array());
|
||||||
|
@ -698,6 +699,9 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
if ($accessobject->check_controller_access('FolderNotify'))
|
if ($accessobject->check_controller_access('FolderNotify'))
|
||||||
$menuitems['edit_existing_notify'] = array('link'=>$this->params['settings']->_httpRoot."out/out.FolderNotify.php?folderid=". $folderID ."&showtree=". showtree(), 'label'=>getMLText('edit_existing_notify'));
|
$menuitems['edit_existing_notify'] = array('link'=>$this->params['settings']->_httpRoot."out/out.FolderNotify.php?folderid=". $folderID ."&showtree=". showtree(), 'label'=>getMLText('edit_existing_notify'));
|
||||||
}
|
}
|
||||||
|
if($enableClipboard) {
|
||||||
|
$menuitems['add_to_clipboard'] = array('class'=>'addtoclipboard', 'attributes'=>array(['rel', 'F'.$folder->getId()], ['msg', getMLText('splash_added_to_clipboard')], ['title', getMLText("add_to_clipboard")]), 'label'=>getMLText("add_to_clipboard"));
|
||||||
|
}
|
||||||
if ($this->params['user']->isAdmin() && $this->params['enablefullsearch']) {
|
if ($this->params['user']->isAdmin() && $this->params['enablefullsearch']) {
|
||||||
$menuitems['index_folder'] = array('link'=>$this->params['settings']->_httpRoot."out/out.Indexer.php?folderid=". $folderID."&showtree=".showtree(), 'label'=>getMLText('index_folder'));
|
$menuitems['index_folder'] = array('link'=>$this->params['settings']->_httpRoot."out/out.Indexer.php?folderid=". $folderID."&showtree=".showtree(), 'label'=>getMLText('index_folder'));
|
||||||
}
|
}
|
||||||
|
@ -718,6 +722,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
|
|
||||||
private function documentNavigationBar($document) { /* {{{ */
|
private function documentNavigationBar($document) { /* {{{ */
|
||||||
$accessobject = $this->params['accessobject'];
|
$accessobject = $this->params['accessobject'];
|
||||||
|
$enableClipboard = $this->params['enableclipboard'];
|
||||||
$accessMode = $document->getAccessMode($this->params['user']);
|
$accessMode = $document->getAccessMode($this->params['user']);
|
||||||
$docid=".php?documentid=" . $document->getID();
|
$docid=".php?documentid=" . $document->getID();
|
||||||
$menuitems = array();
|
$menuitems = array();
|
||||||
|
@ -768,6 +773,9 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
if ($accessobject->check_view_access('DocumentNotify'))
|
if ($accessobject->check_view_access('DocumentNotify'))
|
||||||
$menuitems['edit_existing_notify'] = array('link'=>$this->params['settings']->_httpRoot."out/out.DocumentNotify". $docid, 'label'=>getMLText('edit_existing_notify'));
|
$menuitems['edit_existing_notify'] = array('link'=>$this->params['settings']->_httpRoot."out/out.DocumentNotify". $docid, 'label'=>getMLText('edit_existing_notify'));
|
||||||
}
|
}
|
||||||
|
if($enableClipboard) {
|
||||||
|
$menuitems['add_to_clipboard'] = array('class'=>'addtoclipboard', 'attributes'=>array(['rel', 'D'.$document->getId()], ['msg', getMLText('splash_added_to_clipboard')], ['title', getMLText("add_to_clipboard")]), 'label'=>getMLText("add_to_clipboard"));
|
||||||
|
}
|
||||||
if ($accessobject->check_view_access('TransferDocument')) {
|
if ($accessobject->check_view_access('TransferDocument')) {
|
||||||
$menuitems['transfer_document'] = array('link'=>$this->params['settings']->_httpRoot."out/out.TransferDocument". $docid, 'label'=>getMLText('transfer_document'));
|
$menuitems['transfer_document'] = array('link'=>$this->params['settings']->_httpRoot."out/out.TransferDocument". $docid, 'label'=>getMLText('transfer_document'));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user