mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +00:00
workflows can be turned off completely
This commit is contained in:
parent
c9aaa68925
commit
1f8c5fe7c3
|
@ -7,6 +7,9 @@
|
||||||
- new hooks leftContentPre and leftContentPost
|
- new hooks leftContentPre and leftContentPost
|
||||||
- minimize sql queries when fetching sub folders and documents of a folder
|
- minimize sql queries when fetching sub folders and documents of a folder
|
||||||
- custom attributes can be validated in a hook
|
- custom attributes can be validated in a hook
|
||||||
|
- document attributes comment, keywords, categories, expiration date, and sequence
|
||||||
|
can be turned of in the configuration
|
||||||
|
- workflows can be turned off completely
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
Changes in version 5.1.13
|
Changes in version 5.1.13
|
||||||
|
|
|
@ -69,6 +69,7 @@ if($view) {
|
||||||
$view->setParam('folder', $folder);
|
$view->setParam('folder', $folder);
|
||||||
$view->setParam('document', $document);
|
$view->setParam('document', $document);
|
||||||
$view->setParam('strictformcheck', $settings->_strictFormCheck);
|
$view->setParam('strictformcheck', $settings->_strictFormCheck);
|
||||||
|
$view->setParam('nodocumentformfields', $settings->_noDocumentFormFields);
|
||||||
$view->setParam('enablelargefileupload', $settings->_enableLargeFileUpload);
|
$view->setParam('enablelargefileupload', $settings->_enableLargeFileUpload);
|
||||||
$view->setParam('enableadminrevapp', $settings->_enableAdminRevApp);
|
$view->setParam('enableadminrevapp', $settings->_enableAdminRevApp);
|
||||||
$view->setParam('enableownerrevapp', $settings->_enableOwnerRevApp);
|
$view->setParam('enableownerrevapp', $settings->_enableOwnerRevApp);
|
||||||
|
|
|
@ -345,6 +345,7 @@ $(document).ready(function() {
|
||||||
$this->getDropFolderChooserHtml("form1", $dropfolderfile)
|
$this->getDropFolderChooserHtml("form1", $dropfolderfile)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
if(!$nodocumentformfields || !in_array('version_comment', $nodocumentformfields)) {
|
||||||
$this->formField(
|
$this->formField(
|
||||||
getMLText("comment_for_current_version"),
|
getMLText("comment_for_current_version"),
|
||||||
array(
|
array(
|
||||||
|
@ -363,6 +364,7 @@ $(document).ready(function() {
|
||||||
'value'=>1
|
'value'=>1
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
}
|
||||||
$attrdefs = $dms->getAllAttributeDefinitions(array(SeedDMS_Core_AttributeDefinition::objtype_documentcontent, SeedDMS_Core_AttributeDefinition::objtype_all));
|
$attrdefs = $dms->getAllAttributeDefinitions(array(SeedDMS_Core_AttributeDefinition::objtype_documentcontent, SeedDMS_Core_AttributeDefinition::objtype_all));
|
||||||
if($attrdefs) {
|
if($attrdefs) {
|
||||||
foreach($attrdefs as $attrdef) {
|
foreach($attrdefs as $attrdef) {
|
||||||
|
@ -429,7 +431,7 @@ $(document).ready(function() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
$this->warningMsg(getMLText("add_doc_workflow_warning"));
|
$this->warningMsg(getMLText("add_doc_workflow_warning"));
|
||||||
} else {
|
} elseif($workflowmode == 'traditional' || $workflowmode == 'traditional_only_approval') {
|
||||||
if($workflowmode == 'traditional') {
|
if($workflowmode == 'traditional') {
|
||||||
$this->contentSubHeading(getMLText("assign_reviewers"));
|
$this->contentSubHeading(getMLText("assign_reviewers"));
|
||||||
|
|
||||||
|
|
|
@ -277,7 +277,7 @@ class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style {
|
||||||
<label class="checkbox" for='pendingReview'><input type="checkbox" id="pendingReview" name="pendingReview" value="1" <?php echo in_array(S_DRAFT_REV, $status) ? "checked" : ""; ?>><?php printOverallStatusText(S_DRAFT_REV);?></label>
|
<label class="checkbox" for='pendingReview'><input type="checkbox" id="pendingReview" name="pendingReview" value="1" <?php echo in_array(S_DRAFT_REV, $status) ? "checked" : ""; ?>><?php printOverallStatusText(S_DRAFT_REV);?></label>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<label class="checkbox" for='pendingApproval'><input type="checkbox" id="pendingApproval" name="pendingApproval" value="1" <?php echo in_array(S_DRAFT_APP, $status) ? "checked" : ""; ?>><?php printOverallStatusText(S_DRAFT_APP);?></label>
|
<label class="checkbox" for='pendingApproval'><input type="checkbox" id="pendingApproval" name="pendingApproval" value="1" <?php echo in_array(S_DRAFT_APP, $status) ? "checked" : ""; ?>><?php printOverallStatusText(S_DRAFT_APP);?></label>
|
||||||
<?php } else { ?>
|
<?php } elseif($workflowmode == 'advanced') { ?>
|
||||||
<label class="checkbox" for='inWorkflow'><input type="checkbox" id="inWorkflow" name="inWorkflow" value="1" <?php echo in_array(S_IN_WORKFLOW, $status) ? "checked" : ""; ?>><?php printOverallStatusText(S_IN_WORKFLOW);?></label>
|
<label class="checkbox" for='inWorkflow'><input type="checkbox" id="inWorkflow" name="inWorkflow" value="1" <?php echo in_array(S_IN_WORKFLOW, $status) ? "checked" : ""; ?>><?php printOverallStatusText(S_IN_WORKFLOW);?></label>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<label class="checkbox" for='released'><input type="checkbox" id="released" name="released" value="1" <?php echo in_array(S_RELEASED, $status) ? "checked" : ""; ?>><?php printOverallStatusText(S_RELEASED);?></label>
|
<label class="checkbox" for='released'><input type="checkbox" id="released" name="released" value="1" <?php echo in_array(S_RELEASED, $status) ? "checked" : ""; ?>><?php printOverallStatusText(S_RELEASED);?></label>
|
||||||
|
|
|
@ -421,7 +421,7 @@ $this->showStartPaneContent('site', (!$currenttab || $currenttab == 'site'));
|
||||||
-- SETTINGS - ADVANCED - EDITION
|
-- SETTINGS - ADVANCED - EDITION
|
||||||
-->
|
-->
|
||||||
<?php $this->showConfigHeadline('settings_Edition'); ?>
|
<?php $this->showConfigHeadline('settings_Edition'); ?>
|
||||||
<?php $this->showConfigOption('settings_workflowMode', 'workflowMode', array('traditional'=>'settings_workflowMode_valtraditional', 'traditional_only_approval'=>'settings_workflowMode_valtraditional_only_approval', 'advanced'=>'settings_workflowMode_valadvanced'), false, true); ?>
|
<?php $this->showConfigOption('settings_workflowMode', 'workflowMode', array('traditional'=>'settings_workflowMode_valtraditional', 'traditional_only_approval'=>'settings_workflowMode_valtraditional_only_approval', 'advanced'=>'settings_workflowMode_valadvanced', 'none'=>'settings_workflowMode_valnone'), false, true); ?>
|
||||||
<?php $this->showConfigText('settings_versioningFileName', 'versioningFileName'); ?>
|
<?php $this->showConfigText('settings_versioningFileName', 'versioningFileName'); ?>
|
||||||
<?php $this->showConfigText('settings_presetExpirationDate', 'presetExpirationDate'); ?>
|
<?php $this->showConfigText('settings_presetExpirationDate', 'presetExpirationDate'); ?>
|
||||||
<?php $this->showConfigCheckbox('settings_allowReviewerOnly', 'allowReviewerOnly'); ?>
|
<?php $this->showConfigCheckbox('settings_allowReviewerOnly', 'allowReviewerOnly'); ?>
|
||||||
|
|
|
@ -142,6 +142,7 @@ console.log(element);
|
||||||
$folder = $this->params['folder'];
|
$folder = $this->params['folder'];
|
||||||
$document = $this->params['document'];
|
$document = $this->params['document'];
|
||||||
$strictformcheck = $this->params['strictformcheck'];
|
$strictformcheck = $this->params['strictformcheck'];
|
||||||
|
$nodocumentformfields = $this->params['nodocumentformfields'];
|
||||||
$enablelargefileupload = $this->params['enablelargefileupload'];
|
$enablelargefileupload = $this->params['enablelargefileupload'];
|
||||||
$maxuploadsize = $this->params['maxuploadsize'];
|
$maxuploadsize = $this->params['maxuploadsize'];
|
||||||
$enableadminrevapp = $this->params['enableadminrevapp'];
|
$enableadminrevapp = $this->params['enableadminrevapp'];
|
||||||
|
@ -230,6 +231,7 @@ console.log(element);
|
||||||
$this->getDropFolderChooserHtml("form1")
|
$this->getDropFolderChooserHtml("form1")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
if(!$nodocumentformfields || !in_array('version_comment', $nodocumentformfields)) {
|
||||||
$this->formField(
|
$this->formField(
|
||||||
getMLText("comment"),
|
getMLText("comment"),
|
||||||
array(
|
array(
|
||||||
|
@ -239,6 +241,8 @@ console.log(element);
|
||||||
'cols'=>80
|
'cols'=>80
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
if(!$nodocumentformfields || !in_array('expires', $nodocumentformfields)) {
|
||||||
if($presetexpiration) {
|
if($presetexpiration) {
|
||||||
if(!($expts = strtotime($presetexpiration)))
|
if(!($expts = strtotime($presetexpiration)))
|
||||||
$expts = false;
|
$expts = false;
|
||||||
|
@ -265,6 +269,7 @@ console.log(element);
|
||||||
getMLText("expires"),
|
getMLText("expires"),
|
||||||
$this->getDateChooser(($expts ? date('Y-m-d', $expts) : ''), "expdate", $this->params['session']->getLanguage())
|
$this->getDateChooser(($expts ? date('Y-m-d', $expts) : ''), "expdate", $this->params['session']->getLanguage())
|
||||||
);
|
);
|
||||||
|
}
|
||||||
$attrdefs = $dms->getAllAttributeDefinitions(array(SeedDMS_Core_AttributeDefinition::objtype_documentcontent, SeedDMS_Core_AttributeDefinition::objtype_all));
|
$attrdefs = $dms->getAllAttributeDefinitions(array(SeedDMS_Core_AttributeDefinition::objtype_documentcontent, SeedDMS_Core_AttributeDefinition::objtype_all));
|
||||||
if($attrdefs) {
|
if($attrdefs) {
|
||||||
foreach($attrdefs as $attrdef) {
|
foreach($attrdefs as $attrdef) {
|
||||||
|
|
|
@ -483,7 +483,7 @@ $(document).ready( function() {
|
||||||
'options'=>$options
|
'options'=>$options
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
} else {
|
} elseif($workflowmode == 'advanced') {
|
||||||
$workflows = $dms->getAllWorkflows();
|
$workflows = $dms->getAllWorkflows();
|
||||||
if($workflows) {
|
if($workflows) {
|
||||||
$this->contentSubHeading(getMLText("workflow"));
|
$this->contentSubHeading(getMLText("workflow"));
|
||||||
|
|
|
@ -486,7 +486,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
||||||
|
|
||||||
$needwkflaction = false;
|
$needwkflaction = false;
|
||||||
if($workflowmode == 'traditional' || $workflowmode == 'traditional_only_approval') {
|
if($workflowmode == 'traditional' || $workflowmode == 'traditional_only_approval') {
|
||||||
} else {
|
} elseif($workflowmode == 'advanced') {
|
||||||
$workflow = $latestContent->getWorkflow();
|
$workflow = $latestContent->getWorkflow();
|
||||||
if($workflow) {
|
if($workflow) {
|
||||||
$workflowstate = $latestContent->getWorkflowState();
|
$workflowstate = $latestContent->getWorkflowState();
|
||||||
|
@ -528,7 +528,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
||||||
<li class="<?php if($currenttab == 'revapp') echo 'active'; ?>"><a data-target="#revapp" data-toggle="tab"><?php if($workflowmode == 'traditional') echo getMLText('reviewers')."/"; echo getMLText('approvers'); ?></a></li>
|
<li class="<?php if($currenttab == 'revapp') echo 'active'; ?>"><a data-target="#revapp" data-toggle="tab"><?php if($workflowmode == 'traditional') echo getMLText('reviewers')."/"; echo getMLText('approvers'); ?></a></li>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
} else {
|
} elseif($workflowmode == 'advanced') {
|
||||||
if($workflow) {
|
if($workflow) {
|
||||||
?>
|
?>
|
||||||
<li class="<?php if($currenttab == 'workflow') echo 'active'; ?>"><a data-target="#workflow" data-toggle="tab"><?php echo getMLText('workflow'); ?></a></li>
|
<li class="<?php if($currenttab == 'workflow') echo 'active'; ?>"><a data-target="#workflow" data-toggle="tab"><?php echo getMLText('workflow'); ?></a></li>
|
||||||
|
@ -670,7 +670,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
||||||
if($accessop->maySetReviewersApprovers()) {
|
if($accessop->maySetReviewersApprovers()) {
|
||||||
print "<li><a href='../out/out.SetReviewersApprovers.php?documentid=".$documentid."&version=".$latestContent->getVersion()."'><i class=\"icon-edit\"></i>".getMLText("change_assignments")."</a></li>";
|
print "<li><a href='../out/out.SetReviewersApprovers.php?documentid=".$documentid."&version=".$latestContent->getVersion()."'><i class=\"icon-edit\"></i>".getMLText("change_assignments")."</a></li>";
|
||||||
}
|
}
|
||||||
} else {
|
} elseif($workflowmode == 'advanced') {
|
||||||
if($accessop->maySetWorkflow()) {
|
if($accessop->maySetWorkflow()) {
|
||||||
if(!$workflow) {
|
if(!$workflow) {
|
||||||
print "<li><a href='../out/out.SetWorkflow.php?documentid=".$documentid."&version=".$latestContent->getVersion()."'><i class=\"icon-random\"></i>".getMLText("set_workflow")."</a></li>";
|
print "<li><a href='../out/out.SetWorkflow.php?documentid=".$documentid."&version=".$latestContent->getVersion()."'><i class=\"icon-random\"></i>".getMLText("set_workflow")."</a></li>";
|
||||||
|
@ -961,7 +961,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
} else {
|
} elseif($workflowmode == 'advanced') {
|
||||||
if($workflow) {
|
if($workflow) {
|
||||||
/* Check if user is involved in workflow */
|
/* Check if user is involved in workflow */
|
||||||
$user_is_involved = false;
|
$user_is_involved = false;
|
||||||
|
|
|
@ -517,7 +517,6 @@ $('body').on('click', '.order-btn', function(ev) {
|
||||||
$expandFolderTree = $this->params['expandFolderTree'];
|
$expandFolderTree = $this->params['expandFolderTree'];
|
||||||
$showtree = $this->params['showtree'];
|
$showtree = $this->params['showtree'];
|
||||||
$cachedir = $this->params['cachedir'];
|
$cachedir = $this->params['cachedir'];
|
||||||
$workflowmode = $this->params['workflowmode'];
|
|
||||||
$enableRecursiveCount = $this->params['enableRecursiveCount'];
|
$enableRecursiveCount = $this->params['enableRecursiveCount'];
|
||||||
$maxRecursiveCount = $this->params['maxRecursiveCount'];
|
$maxRecursiveCount = $this->params['maxRecursiveCount'];
|
||||||
$maxItemsPerPage = $this->params['maxItemsPerPage'];
|
$maxItemsPerPage = $this->params['maxItemsPerPage'];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user