mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
add list of folders containing duplicate sequences
This commit is contained in:
parent
fbbc79815d
commit
863c3f971c
|
@ -240,6 +240,7 @@ if($view) {
|
|||
$view->setParam('nochecksumversions', $nochecksumversions);
|
||||
$view->setParam('wrongfiletypeversions', $wrongfiletypeversions);
|
||||
$view->setParam('duplicateversions', $duplicateversions);
|
||||
$view->setParam('duplicatesequences', $duplicatesequences);
|
||||
$view->setParam('docsinrevision', $docsinrevision);
|
||||
$view->setParam('docsmissingrevsiondate', $docsmissingrevsiondate);
|
||||
$view->setParam('docsinreception', $docsinreception);
|
||||
|
|
|
@ -434,6 +434,36 @@ class SeedDMS_View_ObjectCheck extends SeedDMS_Theme_Style {
|
|||
}
|
||||
} /* }}} */
|
||||
|
||||
function listDuplicateSequence() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
$user = $this->params['user'];
|
||||
$folder = $this->params['folder'];
|
||||
$duplicatesequences = $this->params['duplicatesequences'];
|
||||
|
||||
$this->contentHeading(getMLText("duplicate_sequences"));
|
||||
|
||||
if($duplicatesequences) {
|
||||
print "<table class=\"table table-condensed\">";
|
||||
print "<thead><tr>\n";
|
||||
print "<th></th>\n";
|
||||
print "<th>".getMLText("name")."</th>\n";
|
||||
print "<th>".getMLText("owner")."</th>\n";
|
||||
print "<th>".getMLText("actions")."</th>\n";
|
||||
print "</tr></thead>\n<tbody>\n";
|
||||
foreach($duplicatesequences as $fld) {
|
||||
echo $this->folderListRowStart($fld);
|
||||
$txt = $this->callHook('folderListItem', $fld, true, 'viewfolder');
|
||||
if(is_string($txt))
|
||||
echo $txt;
|
||||
else {
|
||||
echo $this->folderListRow($fld, true);
|
||||
}
|
||||
echo $this->folderListRowEnd($fld);
|
||||
}
|
||||
print "</tbody></table>";
|
||||
}
|
||||
} /* }}} */
|
||||
|
||||
function listDocsInRevisionNoAccess() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
$user = $this->params['user'];
|
||||
|
@ -632,6 +662,7 @@ $(document).ready( function() {
|
|||
$nofilesizeversions = $this->params['nofilesizeversions'];
|
||||
$nochecksumversions = $this->params['nochecksumversions'];
|
||||
$duplicateversions = $this->params['duplicateversions'];
|
||||
$duplicatesequences = $this->params['duplicatesequences'];
|
||||
$docsinrevision = $this->params['docsinrevision'];
|
||||
$docsinreception = $this->params['docsinreception'];
|
||||
$processwithoutusergroup = $this->params['processwithoutusergroup'];
|
||||
|
@ -666,6 +697,7 @@ $(document).ready( function() {
|
|||
$this->contentHeading(getMLText("object_check_warning"));
|
||||
$menuitems = [];
|
||||
$menuitems[] = array('label'=>getMLText('duplicate_content'), 'badge'=>count($duplicateversions), 'attributes'=>array(array('data-href', "#duplicate_content"), array('data-action', "listDuplicateContent")));
|
||||
$menuitems[] = array('label'=>getMLText('duplicate_sequences'), 'badge'=>count($duplicatesequences), 'attributes'=>array(array('data-href', "#duplicate_sequences"), array('data-action', "listDuplicateSequence")));
|
||||
$menuitems[] = array('label'=>getMLText('docs_in_revision_no_access'), 'badge'=>count($docsinrevision), 'attributes'=>array(array('data-href', "#inrevision_no_access"), array('data-action', "listDocsInRevisionNoAccess")));
|
||||
$menuitems[] = array('label'=>getMLText('docs_in_reception_no_access'), 'badge'=>count($docsinreception), 'attributes'=>array(array('data-href', "#inreception_no_access"), array('data-action', "listDocsInReceptionNoAccess")));
|
||||
$menuitems[] = array('label'=>getMLText('docs_with_missing_revision_date'), 'badge'=>count($docsmissingrevsiondate), 'attributes'=>array(array('data-href', "#missing_revision_date"), array('data-action', "listDocsWithMissingRevisionDate")));
|
||||
|
|
Loading…
Reference in New Issue
Block a user