mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-17 15:11:21 +00:00
show number or reverse links in documentListRow()
This commit is contained in:
parent
b593b2471c
commit
541e3ba358
|
@ -1887,6 +1887,10 @@ $(document).ready( function() {
|
||||||
$links = $document->getDocumentLinks();
|
$links = $document->getDocumentLinks();
|
||||||
$links = SeedDMS_Core_DMS::filterDocumentLinks($user, $links);
|
$links = SeedDMS_Core_DMS::filterDocumentLinks($user, $links);
|
||||||
|
|
||||||
|
/* Retrieve reverse linked documents */
|
||||||
|
$revlinks = $document->getReverseDocumentLinks();
|
||||||
|
$revlinks = SeedDMS_Core_DMS::filterDocumentLinks($user, $revlinks);
|
||||||
|
|
||||||
$content .= "<td>";
|
$content .= "<td>";
|
||||||
if (file_exists($dms->contentDir . $latestContent->getPath())) {
|
if (file_exists($dms->contentDir . $latestContent->getPath())) {
|
||||||
$content .= "<a draggable=\"false\" href=\"../op/op.Download.php?documentid=".$docID."&version=".$version."\">";
|
$content .= "<a draggable=\"false\" href=\"../op/op.Download.php?documentid=".$docID."&version=".$version."\">";
|
||||||
|
@ -1921,8 +1925,8 @@ $(document).ready( function() {
|
||||||
$content .= "<small>";
|
$content .= "<small>";
|
||||||
if(count($files))
|
if(count($files))
|
||||||
$content .= count($files)." ".getMLText("linked_files")."<br />";
|
$content .= count($files)." ".getMLText("linked_files")."<br />";
|
||||||
if(count($links))
|
if(count($links) || count($revlinks))
|
||||||
$content .= count($links)." ".getMLText("linked_documents")."<br />";
|
$content .= count($links)."/".count($revlinks)." ".getMLText("linked_documents")."<br />";
|
||||||
if($status["status"] == S_IN_WORKFLOW && $workflowmode == 'advanced') {
|
if($status["status"] == S_IN_WORKFLOW && $workflowmode == 'advanced') {
|
||||||
$workflowstate = $latestContent->getWorkflowState();
|
$workflowstate = $latestContent->getWorkflowState();
|
||||||
$content .= '<span title="'.getOverallStatusText($status["status"]).': '.$workflow->getName().'">'.$workflowstate->getName().'</span>';
|
$content .= '<span title="'.getOverallStatusText($status["status"]).': '.$workflow->getName().'">'.$workflowstate->getName().'</span>';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user